|
|
!(function(){var fx=Object.defineProperty,px=Object.defineProperties;var mx=Object.getOwnPropertyDescriptors;var ug=Object.getOwnPropertySymbols;var Ab=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable;var ny=Math.pow,Nb=(Q,C,h)=>C in Q?fx(Q,C,{enumerable:!0,configurable:!0,writable:!0,value:h}):Q[C]=h,Uo=(Q,C)=>{for(var h in C||(C={}))Ab.call(C,h)&&Nb(Q,h,C[h]);if(ug)for(var h of ug(C))kb.call(C,h)&&Nb(Q,h,C[h]);return Q},cd=(Q,C)=>px(Q,mx(C));var Ib=(Q,C)=>{var h={};for(var v in Q)Ab.call(Q,v)&&C.indexOf(v)<0&&(h[v]=Q[v]);if(Q!=null&&ug)for(var v of ug(Q))C.indexOf(v)<0&&kb.call(Q,v)&&(h[v]=Q[v]);return h};var iy=(Q,C,h)=>new Promise((v,I)=>{var O=F=>{try{G(h.next(F))}catch(M){I(M)}},B=F=>{try{G(h.throw(F))}catch(M){I(M)}},G=F=>F.done?v(F.value):Promise.resolve(F.value).then(O,B);G((h=h.apply(Q,C)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[7935],{89489:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},59477:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},40001:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},26227:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},49198:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},41464:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},73331:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},15277:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},52671:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},8657:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},56082:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},33853:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},15075:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},43531:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},61485:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},38819:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},47472:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=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,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},32050:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(92413),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},B=O,G=h(7657),F=function(te,Me){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Me,icon:B}))},M=I.forwardRef(F),he=M},37036:function(){"use strict"},95625:function(){"use strict"},50371:function(Q,C){"use strict";function h(){const v=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let I=1;I<arguments.length;I++){const O=I<0||arguments.length<=I?void 0:arguments[I];O&&Object.keys(O).forEach(B=>{const G=O[B];G!==void 0&&(v[B]=G)})}return v}C.Z=h},77578:function(Q,C,h){"use strict";h.d(C,{Z:function(){return v}});const v=I=>I?typeof I=="function"?I():I:null},13845:function(Q,C,h){"use strict";h.d(C,{F:function(){return v},Z:function(){return I}});function v(O){return O!=null&&O===O.window}function I(O,B){var G,F;if(typeof window=="undefined")return 0;const M=B?"scrollTop":"scrollLeft";let he=0;return v(O)?he=O[B?"pageYOffset":"pageXOffset"]:O instanceof Document?he=O.documentElement[M]:(O instanceof HTMLElement||O)&&(he=O[M]),O&&!v(O)&&typeof he!="number"&&(he=(F=((G=O.ownerDocument)!==null&&G!==void 0?G:O).documentElement)===null||F===void 0?void 0:F[M]),he}},56762:function(Q,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(59301);function I(){const[,O]=v.useReducer(B=>B+1,0);return O}},68031:function(Q,C,h){"use strict";h.d(C,{Z:function(){return B}});var v=h(16089);function I(G,F,M,he){const ue=M-F;return G/=he/2,G<1?ue/2*G*G*G+F:ue/2*((G-=2)*G*G+2)+F}var O=h(13845);function B(G){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:M=()=>window,callback:he,duration:ue=450}=F,te=M(),Me=(0,O.Z)(te,!0),we=Date.now(),Je=()=>{const Te=Date.now()-we,Ae=I(Te>ue?ue:Te,Me,G,ue);(0,O.F)(te)?te.scrollTo(window.pageXOffset,Ae):te instanceof Document||te.constructor.name==="HTMLDocument"?te.documentElement.scrollTop=Ae:te.scrollTop=Ae,Te<ue?(0,v.Z)(Je):typeof he=="function"&&he()};(0,v.Z)(Je)}},24905:function(Q,C,h){"use strict";h.d(C,{default:function(){return Ne}});var v=h(92310),I=h.n(v),O=h(5630),B=h(59301),G=h(36355),F=h(1684),M=h(32441),ue=B.createContext(null),te=h(98447),Me=h(14088),we=h(4572),Je=function(Ie,Pe){var Xe={};for(var Ye in Ie)Object.prototype.hasOwnProperty.call(Ie,Ye)&&Pe.indexOf(Ye)<0&&(Xe[Ye]=Ie[Ye]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Ye=Object.getOwnPropertySymbols(Ie);ie<Ye.length;ie++)Pe.indexOf(Ye[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ye[ie])&&(Xe[Ye[ie]]=Ie[Ye[ie]]);return Xe};const Oe=(Ie,Pe)=>{var Xe;const{prefixCls:Ye,className:ie,rootClassName:lt,children:We,indeterminate:Pt=!1,style:xt,onMouseEnter:Tt,onMouseLeave:Et,skipGroup:wn=!1,disabled:qe}=Ie,ae=Je(Ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:le,direction:$t,checkbox:Vt}=B.useContext(G.E_),St=B.useContext(ue),{isFormItemInput:un}=B.useContext(M.aM),Ft=B.useContext(F.Z),ai=(Xe=(St==null?void 0:St.disabled)||qe)!==null&&Xe!==void 0?Xe:Ft,On=B.useRef(ae.value);B.useEffect(()=>{St==null||St.registerValue(ae.value)},[]),B.useEffect(()=>{if(!wn)return ae.value!==On.current&&(St==null||St.cancelValue(On.current),St==null||St.registerValue(ae.value),On.current=ae.value),()=>St==null?void 0:St.cancelValue(ae.value)},[ae.value]);const ni=le("checkbox",Ye),[Jn,In]=(0,te.ZP)(ni),Mn=Object.assign({},ae);St&&!wn&&(Mn.onChange=function(){ae.onChange&&ae.onChange.apply(ae,arguments),St.toggleOption&&St.toggleOption({label:We,value:ae.value})},Mn.name=St.name,Mn.checked=St.value.includes(ae.value));const xe=I()(`${ni}-wrapper`,{[`${ni}-rtl`]:$t==="rtl",[`${ni}-wrapper-checked`]:Mn.checked,[`${ni}-wrapper-disabled`]:ai,[`${ni}-wrapper-in-form-item`]:un},Vt==null?void 0:Vt.className,ie,lt,In),P=I()({[`${ni}-indeterminate`]:Pt},we.A,In),k=Pt?"mixed":void 0;return Jn(B.createElement(Me.Z,{component:"Checkbox",disabled:ai},B.createElement("label",{className:xe,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),xt),onMouseEnter:Tt,onMouseLeave:Et},B.createElement(O.Z,Object.assign({"aria-checked":k},Mn,{prefixCls:ni,className:P,disabled:ai,ref:Pe})),We!==void 0&&B.createElement("span",null,We))))};var Ae=B.forwardRef(Oe),Re=h(26407),de=h(2738),pe=function(Ie,Pe){var Xe={};for(var Ye in Ie)Object.prototype.hasOwnProperty.call(Ie,Ye)&&Pe.indexOf(Ye)<0&&(Xe[Ye]=Ie[Ye]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,Ye=Object.getOwnPropertySymbols(Ie);ie<Ye.length;ie++)Pe.indexOf(Ye[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ye[ie])&&(Xe[Ye[ie]]=Ie[Ye[ie]]);return Xe};const be=(Ie,Pe)=>{const{defaultValue:Xe,children:Ye,options:ie=[],prefixCls:lt,className:We,rootClassName:Pt,style:xt,onChange:Tt}=Ie,Et=pe(Ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:wn,direction:qe}=B.useContext(G.E_),[ae,le]=B.useState(Et.value||Xe||[]),[$t,Vt]=B.useState([]);B.useEffect(()=>{"value"in Et&&le(Et.value||[])},[Et.value]);const St=B.useMemo(()=>ie.map(j=>typeof j=="string"||typeof j=="number"?{label:j,value:j}:j),[ie]),un=j=>{Vt(X=>X.filter(T=>T!==j))},Ft=j=>{Vt(X=>[].concat((0,Re.Z)(X),[j]))},ai=j=>{const X=ae.indexOf(j.value),T=(0,Re.Z)(ae);X===-1?T.push(j.value):T.splice(X,1),"value"in Et||le(T),Tt==null||Tt(T.filter(_e=>$t.includes(_e)).sort((_e,kt)=>{const Ue=St.findIndex(mt=>mt.value===_e),Be=St.findIndex(mt=>mt.value===kt);return Ue-Be}))},On=wn("checkbox",lt),ni=`${On}-group`,[Jn,In]=(0,te.ZP)(On),Mn=(0,de.Z)(Et,["value","disabled"]),xe=ie.length?St.map(j=>B.createElement(Ae,{prefixCls:On,key:j.value.toString(),disabled:"disabled"in j?j.disabled:Et.disabled,value:j.value,checked:ae.includes(j.value),onChange:j.onChange,className:`${ni}-item`,style:j.style,title:j.title},j.label)):Ye,P={toggleOption:ai,value:ae,disabled:Et.disabled,name:Et.name,registerValue:Ft,cancelValue:un},k=I()(ni,{[`${ni}-rtl`]:qe==="rtl"},We,Pt,In);return Jn(B.createElement("div",Object.assign({className:k,style:xt},Mn,{ref:Pe}),B.createElement(ue.Provider,{value:P},xe)))},me=B.forwardRef(be);var ke=B.memo(me);const ee=Ae;ee.Group=ke,ee.__ANT_CHECKBOX=!0;var Ne=ee},98447:function(Q,C,h){"use strict";h.d(C,{C2:function(){return G}});var v=h(17313),I=h(37613),O=h(83116);const B=F=>{const{checkboxCls:M}=F,he=`${M}-wrapper`;return[{[`${M}-group`]:Object.assign(Object.assign({},(0,v.Wf)(F)),{display:"inline-flex",flexWrap:"wrap",columnGap:F.marginXS,[`> ${F.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,v.Wf)(F)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[M]:Object.assign(Object.assign({},(0,v.Wf)(F)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:F.borderRadiusSM,alignSelf:"center",[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${M}-inner`]:Object.assign({},(0,v.oN)(F))},[`${M}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:F.checkboxSize,height:F.checkboxSize,direction:"ltr",backgroundColor:F.colorBgContainer,border:`${F.lineWidth}px ${F.lineType} ${F.colorBorder}`,borderRadius:F.borderRadiusSM,borderCollapse:"separate",transition:`all ${F.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:F.checkboxSize/14*5,height:F.checkboxSize/14*8,border:`${F.lineWidthBold}px solid ${F.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${F.motionDurationFast} ${F.motionEaseInBack}, opacity ${F.motionDurationFast}`}},"& + span":{paddingInlineStart:F.paddingXS,paddingInlineEnd:F.paddingXS}})},{[`
|
|
|
${he}:not(${he}-disabled),
|
|
|
${M}:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{borderColor:F.colorPrimary}},[`${he}:not(${he}-disabled)`]:{[`&:hover ${M}-checked:not(${M}-disabled) ${M}-inner`]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${M}-checked:not(${M}-disabled):after`]:{borderColor:F.colorPrimaryHover}}},{[`${M}-checked`]:{[`${M}-inner`]:{backgroundColor:F.colorPrimary,borderColor:F.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${F.motionDurationMid} ${F.motionEaseOutBack} ${F.motionDurationFast}`}}},[`
|
|
|
${he}-checked:not(${he}-disabled),
|
|
|
${M}-checked:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"}}},{[M]:{"&-indeterminate":{[`${M}-inner`]:{backgroundColor:F.colorBgContainer,borderColor:F.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:F.fontSizeLG/2,height:F.fontSizeLG/2,backgroundColor:F.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${he}-disabled`]:{cursor:"not-allowed"},[`${M}-disabled`]:{[`&, ${M}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${M}-inner`]:{background:F.colorBgContainerDisabled,borderColor:F.colorBorder,"&:after":{borderColor:F.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:F.colorTextDisabled},[`&${M}-indeterminate ${M}-inner::after`]:{background:F.colorTextDisabled}}}]};function G(F,M){const he=(0,I.TS)(M,{checkboxCls:`.${F}`,checkboxSize:M.controlInteractiveSize});return[B(he)]}C.ZP=(0,O.Z)("Checkbox",(F,M)=>{let{prefixCls:he}=M;return[G(he,F)]})},93891:function(Q,C,h){"use strict";var v=h(59301),I=h(36355),O=h(64165);const B=G=>{const{componentName:F}=G,{getPrefixCls:M}=(0,v.useContext)(I.E_),he=M("empty");switch(F){case"Table":case"List":return v.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${he}-small`});default:return v.createElement(O.Z,null)}};C.Z=B},43428:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Jn}});var v=h(92310),I=h.n(v),O=h(33708),B=h(33606),G=h(43403),F=h(34280),M=h(59301),he=M.createContext(null),ue=M.createContext({}),te=he,Me=h(400),we=h(92413),Je=h(77900),Oe=h(10228),Te=h(26112),Ae=h(70425),Re=function(Mn){var xe=Mn.prefixCls,P=Mn.className,k=Mn.style,j=Mn.children,X=Mn.containerRef,T=Mn.id,_e=Mn.onMouseEnter,kt=Mn.onMouseOver,Ue=Mn.onMouseLeave,Be=Mn.onClick,mt=Mn.onKeyDown,ct=Mn.onKeyUp,tt={onMouseEnter:_e,onMouseOver:kt,onMouseLeave:Ue,onClick:Be,onKeyDown:mt,onKeyUp:ct},It=M.useContext(ue),an=It.panel,en=(0,Ae.useComposeRef)(an,X);return M.createElement(M.Fragment,null,M.createElement("div",(0,we.Z)({id:T,className:I()("".concat(xe,"-content"),P),style:(0,O.Z)({},k),"aria-modal":"true",role:"dialog",ref:en},tt),j))},de=Re,pe=h(48736);function be(In){return typeof In=="string"&&String(Number(In))===In?((0,pe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(In)):In}function me(In){warning(!("wrapperClassName"in In),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!In.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ee(In,Mn){var xe,P,k,j,X=In.prefixCls,T=In.open,_e=In.placement,kt=In.inline,Ue=In.push,Be=In.forceRender,mt=In.autoFocus,ct=In.keyboard,tt=In.rootClassName,It=In.rootStyle,an=In.zIndex,en=In.className,Bt=In.id,cn=In.style,gn=In.motion,Qe=In.width,Ut=In.height,tn=In.children,nn=In.contentWrapperStyle,He=In.mask,Bn=In.maskClosable,kn=In.maskMotion,Kn=In.maskClassName,Ti=In.maskStyle,hi=In.afterOpenChange,dn=In.onClose,sn=In.onMouseEnter,gr=In.onMouseOver,dr=In.onMouseLeave,qn=In.onClick,Rr=In.onKeyDown,tr=In.onKeyUp,U=M.useRef(),br=M.useRef(),fr=M.useRef();M.useImperativeHandle(Mn,function(){return U.current});var Fr=function(Ct){var Ke=Ct.keyCode,Ht=Ct.shiftKey;switch(Ke){case Oe.Z.TAB:{if(Ke===Oe.Z.TAB){if(!Ht&&document.activeElement===fr.current){var Rt;(Rt=br.current)===null||Rt===void 0||Rt.focus({preventScroll:!0})}else if(Ht&&document.activeElement===br.current){var jn;(jn=fr.current)===null||jn===void 0||jn.focus({preventScroll:!0})}}break}case Oe.Z.ESC:{dn&&ct&&(Ct.stopPropagation(),dn(Ct));break}}};M.useEffect(function(){if(T&&mt){var on;(on=U.current)===null||on===void 0||on.focus({preventScroll:!0})}},[T]);var jr=M.useState(!1),so=(0,B.Z)(jr,2),Ar=so[0],to=so[1],vr=M.useContext(te),Ji;Ue===!1?Ji={distance:0}:Ue===!0?Ji={}:Ji=Ue||{};var di=(xe=(P=(k=Ji)===null||k===void 0?void 0:k.distance)!==null&&P!==void 0?P:vr==null?void 0:vr.pushDistance)!==null&&xe!==void 0?xe:180,ft=M.useMemo(function(){return{pushDistance:di,push:function(){to(!0)},pull:function(){to(!1)}}},[di]);M.useEffect(function(){if(T){var on;vr==null||(on=vr.push)===null||on===void 0||on.call(vr)}else{var Ct;vr==null||(Ct=vr.pull)===null||Ct===void 0||Ct.call(vr)}},[T]),M.useEffect(function(){return function(){var on;vr==null||(on=vr.pull)===null||on===void 0||on.call(vr)}},[]);var Un=He&&M.createElement(Je.default,(0,we.Z)({key:"mask"},kn,{visible:T}),function(on,Ct){var Ke=on.className,Ht=on.style;return M.createElement("div",{className:I()("".concat(X,"-mask"),Ke,Kn),style:(0,O.Z)((0,O.Z)({},Ht),Ti),onClick:Bn&&T?dn:void 0,ref:Ct})}),Wn=typeof gn=="function"?gn(_e):gn,vt={};if(Ar&&di)switch(_e){case"top":vt.transform="translateY(".concat(di,"px)");break;case"bottom":vt.transform="translateY(".concat(-di,"px)");break;case"left":vt.transform="translateX(".concat(di,"px)");break;default:vt.transform="translateX(".concat(-di,"px)");break}_e==="left"||_e==="right"?vt.width=be(Qe):vt.height=be(Ut);var Ve={onMouseEnter:sn,onMouseOver:gr,onMouseLeave:dr,onClick:qn,onKeyDown:Rr,onKeyUp:tr},vn=M.createElement(Je.default,(0,we.Z)({key:"panel"},Wn,{visible:T,forceRender:Be,onVisibleChanged:function(Ct){hi==null||hi(Ct)},removeOnLeave:!1,leavedClassName:"".concat(X,"-content-wrapper-hidden")}),function(on,Ct){var Ke=on.className,Ht=on.style;return M.createElement("div",(0,we.Z)({className:I()("".concat(X,"-content-wrapper"),Ke),style:(0,O.Z)((0,O.Z)((0,O.Z)({},vt),Ht),nn)},(0,Te.Z)(In,{data:!0})),M.createElement(de,(0,we.Z)({id:Bt,containerRef:Ct,prefixCls:X,className:en,style:cn},Ve),tn))}),Nn=(0,O.Z)({},It);return an&&(Nn.zIndex=an),M.createElement(te.Provider,{value:ft},M.createElement("div",{className:I()(X,"".concat(X,"-").concat(_e),tt,(j={},(0,Me.Z)(j,"".concat(X,"-open"),T),(0,Me.Z)(j,"".concat(X,"-inline"),kt),j)),style:Nn,tabIndex:-1,ref:U,onKeyDown:Fr},Un,M.createElement("div",{tabIndex:0,ref:br,style:ke,"aria-hidden":"true","data-sentinel":"start"}),vn,M.createElement("div",{tabIndex:0,ref:fr,style:ke,"aria-hidden":"true","data-sentinel":"end"})))}var Ne=M.forwardRef(ee),Ie=Ne,Pe=function(Mn){var xe=Mn.open,P=xe===void 0?!1:xe,k=Mn.prefixCls,j=k===void 0?"rc-drawer":k,X=Mn.placement,T=X===void 0?"right":X,_e=Mn.autoFocus,kt=_e===void 0?!0:_e,Ue=Mn.keyboard,Be=Ue===void 0?!0:Ue,mt=Mn.width,ct=mt===void 0?378:mt,tt=Mn.mask,It=tt===void 0?!0:tt,an=Mn.maskClosable,en=an===void 0?!0:an,Bt=Mn.getContainer,cn=Mn.forceRender,gn=Mn.afterOpenChange,Qe=Mn.destroyOnClose,Ut=Mn.onMouseEnter,tn=Mn.onMouseOver,nn=Mn.onMouseLeave,He=Mn.onClick,Bn=Mn.onKeyDown,kn=Mn.onKeyUp,Kn=Mn.panelRef,Ti=M.useState(!1),hi=(0,B.Z)(Ti,2),dn=hi[0],sn=hi[1],gr=M.useState(!1),dr=(0,B.Z)(gr,2),qn=dr[0],Rr=dr[1];(0,F.Z)(function(){Rr(!0)},[]);var tr=qn?P:!1,U=M.useRef(),br=M.useRef();(0,F.Z)(function(){tr&&(br.current=document.activeElement)},[tr]);var fr=function(to){var vr;if(sn(to),gn==null||gn(to),!to&&br.current&&!((vr=U.current)!==null&&vr!==void 0&&vr.contains(br.current))){var Ji;(Ji=br.current)===null||Ji===void 0||Ji.focus({preventScroll:!0})}},Fr=M.useMemo(function(){return{panel:Kn}},[Kn]);if(!cn&&!dn&&!tr&&Qe)return null;var jr={onMouseEnter:Ut,onMouseOver:tn,onMouseLeave:nn,onClick:He,onKeyDown:Bn,onKeyUp:kn},so=(0,O.Z)((0,O.Z)({},Mn),{},{open:tr,prefixCls:j,placement:T,autoFocus:kt,keyboard:Be,width:ct,mask:It,maskClosable:en,inline:Bt===!1,afterOpenChange:fr,ref:U},jr);return M.createElement(ue.Provider,{value:Fr},M.createElement(G.Z,{open:tr||cn||dn,autoDestroy:!1,getContainer:Bt,autoLock:It&&(tr||dn)},M.createElement(Ie,so)))},Xe=Pe,Ye=Xe,ie=h(62892),lt=h(36355),We=h(32441),Pt=h(47729),Tt=In=>{const{prefixCls:Mn,title:xe,footer:P,extra:k,closeIcon:j,closable:X,onClose:T,headerStyle:_e,drawerStyle:kt,bodyStyle:Ue,footerStyle:Be,children:mt}=In,ct=M.useCallback(Bt=>M.createElement("button",{type:"button",onClick:T,"aria-label":"Close",className:`${Mn}-close`},Bt),[T]),[tt,It]=(0,Pt.Z)(X,j,ct,void 0,!0),an=M.useMemo(()=>!xe&&!tt?null:M.createElement("div",{style:_e,className:I()(`${Mn}-header`,{[`${Mn}-header-close-only`]:tt&&!xe&&!k})},M.createElement("div",{className:`${Mn}-header-title`},It,xe&&M.createElement("div",{className:`${Mn}-title`},xe)),k&&M.createElement("div",{className:`${Mn}-extra`},k)),[tt,It,k,_e,Mn,xe]),en=M.useMemo(()=>{if(!P)return null;const Bt=`${Mn}-footer`;return M.createElement("div",{className:Bt,style:Be},P)},[P,Be,Mn]);return M.createElement("div",{className:`${Mn}-wrapper-body`,style:kt},an,M.createElement("div",{className:`${Mn}-body`,style:Ue},mt),en)},Et=h(33234),wn=h(83116),qe=h(37613),le=In=>{const{componentCls:Mn,motionDurationSlow:xe}=In,P={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xe}`}}};return{[Mn]:{[`${Mn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Mn}-panel-motion`]:{"&-left":[P,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[P,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[P,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[P,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const $t=In=>{const{componentCls:Mn,zIndexPopup:xe,colorBgMask:P,colorBgElevated:k,motionDurationSlow:j,motionDurationMid:X,padding:T,paddingLG:_e,fontSizeLG:kt,lineHeightLG:Ue,lineWidth:Be,lineType:mt,colorSplit:ct,marginSM:tt,colorIcon:It,colorIconHover:an,colorText:en,fontWeightStrong:Bt,footerPaddingBlock:cn,footerPaddingInline:gn}=In,Qe=`${Mn}-content-wrapper`;return{[Mn]:{position:"fixed",inset:0,zIndex:xe,pointerEvents:"none","&-pure":{position:"relative",background:k,[`&${Mn}-left`]:{boxShadow:In.boxShadowDrawerLeft},[`&${Mn}-right`]:{boxShadow:In.boxShadowDrawerRight},[`&${Mn}-top`]:{boxShadow:In.boxShadowDrawerUp},[`&${Mn}-bottom`]:{boxShadow:In.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Mn}-mask`]:{position:"absolute",inset:0,zIndex:xe,background:P,pointerEvents:"auto"},[Qe]:{position:"absolute",zIndex:xe,maxWidth:"100vw",transition:`all ${j}`,"&-hidden":{display:"none"}},[`&-left > ${Qe}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:In.boxShadowDrawerLeft},[`&-right > ${Qe}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:In.boxShadowDrawerRight},[`&-top > ${Qe}`]:{top:0,insetInline:0,boxShadow:In.boxShadowDrawerUp},[`&-bottom > ${Qe}`]:{bottom:0,insetInline:0,boxShadow:In.boxShadowDrawerDown},[`${Mn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:k,pointerEvents:"auto"},[`${Mn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Mn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${T}px ${_e}px`,fontSize:kt,lineHeight:Ue,borderBottom:`${Be}px ${mt} ${ct}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Mn}-extra`]:{flex:"none"},[`${Mn}-close`]:{display:"inline-block",marginInlineEnd:tt,color:It,fontWeight:Bt,fontSize:kt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${X}`,textRendering:"auto","&:focus, &:hover":{color:an,textDecoration:"none"}},[`${Mn}-title`]:{flex:1,margin:0,color:en,fontWeight:In.fontWeightStrong,fontSize:kt,lineHeight:Ue},[`${Mn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_e,overflow:"auto"},[`${Mn}-footer`]:{flexShrink:0,padding:`${cn}px ${gn}px`,borderTop:`${Be}px ${mt} ${ct}`},"&-rtl":{direction:"rtl"}}}};var Vt=(0,wn.Z)("Drawer",In=>{const Mn=(0,qe.TS)(In,{});return[$t(Mn),le(Mn)]},In=>({zIndexPopup:In.zIndexPopupBase,footerPaddingBlock:In.paddingXS,footerPaddingInline:In.padding})),St=h(11575),un=function(In,Mn){var xe={};for(var P in In)Object.prototype.hasOwnProperty.call(In,P)&&Mn.indexOf(P)<0&&(xe[P]=In[P]);if(In!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,P=Object.getOwnPropertySymbols(In);k<P.length;k++)Mn.indexOf(P[k])<0&&Object.prototype.propertyIsEnumerable.call(In,P[k])&&(xe[P[k]]=In[P[k]]);return xe};const Ft=null,ai={distance:180},On=In=>{var Mn;const{rootClassName:xe,width:P,height:k,size:j="default",mask:X=!0,push:T=ai,open:_e,afterOpenChange:kt,onClose:Ue,prefixCls:Be,getContainer:mt,style:ct,className:tt,visible:It,afterVisibleChange:an}=In,en=un(In,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Bt,getPrefixCls:cn,direction:gn,drawer:Qe}=M.useContext(lt.E_),Ut=cn("drawer",Be),[tn,nn]=Vt(Ut),He=mt===void 0&&Bt?()=>Bt(document.body):mt,Bn=I()({"no-mask":!X,[`${Ut}-rtl`]:gn==="rtl"},xe,nn),kn=M.useMemo(()=>P!=null?P:j==="large"?736:378,[P,j]),Kn=M.useMemo(()=>k!=null?k:j==="large"?736:378,[k,j]),Ti={motionName:(0,ie.m)(Ut,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},hi=sn=>({motionName:(0,ie.m)(Ut,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dn=(0,St.H)();return tn(M.createElement(Et.BR,null,M.createElement(We.Ux,{status:!0,override:!0},M.createElement(Ye,Object.assign({prefixCls:Ut,onClose:Ue,maskMotion:Ti,motion:hi},en,{open:_e!=null?_e:It,mask:X,push:T,width:kn,height:Kn,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),ct),className:I()(Qe==null?void 0:Qe.className,tt),rootClassName:Bn,getContainer:He,afterOpenChange:kt!=null?kt:an,panelRef:dn}),M.createElement(Tt,Object.assign({prefixCls:Ut},en,{onClose:Ue}))))))},ni=In=>{const{prefixCls:Mn,style:xe,className:P,placement:k="right"}=In,j=un(In,["prefixCls","style","className","placement"]),{getPrefixCls:X}=M.useContext(lt.E_),T=X("drawer",Mn),[_e,kt]=Vt(T),Ue=I()(T,`${T}-pure`,`${T}-${k}`,kt,P);return _e(M.createElement("div",{className:Ue,style:xe},M.createElement(Tt,Object.assign({prefixCls:T},j))))};On._InternalPanelDoNotUseOrYouWillBeFired=ni;var Jn=On},91857:function(Q,C,h){"use strict";var v=h(59301),I=h(38819),O=h(92310),B=h.n(O),G=h(31561),F=h(70425),M=h(18929),he=h(2738),ue=h(79676),te=h(53487),Me=h(92343),we=h(36355),Je=h(20834),Oe=h(40875),Te=h(88088),Ae=h(47211);const Re=null,de=ke=>{const{menu:ee,arrow:Ne,prefixCls:Ie,children:Pe,trigger:Xe,disabled:Ye,dropdownRender:ie,getPopupContainer:lt,overlayClassName:We,rootClassName:Pt,open:xt,onOpenChange:Tt,visible:Et,onVisibleChange:wn,mouseEnterDelay:qe=.15,mouseLeaveDelay:ae=.1,autoAdjustOverflow:le=!0,placement:$t="",overlay:Vt,transitionName:St}=ke,{getPopupContainer:un,getPrefixCls:Ft,direction:ai}=v.useContext(we.E_),On=v.useMemo(()=>{const tt=Ft();return St!==void 0?St:$t.includes("top")?`${tt}-slide-down`:`${tt}-slide-up`},[Ft,$t,St]),ni=v.useMemo(()=>$t?$t.includes("Center")?$t.slice(0,$t.indexOf("Center")):$t:ai==="rtl"?"bottomRight":"bottomLeft",[$t,ai]),Jn=Ft("dropdown",Ie),[In,Mn]=(0,Ae.Z)(Jn),[,xe]=(0,Te.Z)(),P=v.Children.only(Pe),k=(0,Me.Tm)(P,{className:B()(`${Jn}-trigger`,{[`${Jn}-rtl`]:ai==="rtl"},P.props.className),disabled:Ye}),j=Ye?[]:Xe;let X;j&&j.includes("contextMenu")&&(X=!0);const[T,_e]=(0,M.Z)(!1,{value:xt!=null?xt:Et}),kt=(0,F.useEvent)(tt=>{Tt==null||Tt(tt),wn==null||wn(tt),_e(tt)}),Ue=B()(We,Pt,Mn,{[`${Jn}-rtl`]:ai==="rtl"}),Be=(0,ue.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:le,offset:xe.marginXXS,arrowWidth:Ne?xe.sizePopupArrow:0,borderRadius:xe.borderRadius}),mt=v.useCallback(()=>{_e(!1)},[]),ct=()=>{let tt;return ee!=null&&ee.items?tt=v.createElement(Je.default,Object.assign({},ee)):typeof Vt=="function"?tt=Vt():tt=Vt,ie&&(tt=ie(tt)),tt=v.Children.only(typeof tt=="string"?v.createElement("span",null,tt):tt),v.createElement(Oe.J,{prefixCls:`${Jn}-menu`,expandIcon:v.createElement("span",{className:`${Jn}-menu-submenu-arrow`},v.createElement(I.Z,{className:`${Jn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:It=>{let{mode:an}=It}},tt)};return In(v.createElement(G.Z,Object.assign({alignPoint:X},(0,he.Z)(ke,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:ae,visible:T,builtinPlacements:Be,arrow:!!Ne,overlayClassName:Ue,prefixCls:Jn,getPopupContainer:lt||un,transitionName:On,trigger:j,overlay:ct,placement:ni,onVisibleChange:kt}),k))};function pe(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const be=(0,te.Z)(de,"dropdown",ke=>ke,pe),me=ke=>v.createElement(be,Object.assign({},ke),v.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=me,C.Z=de},38854:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Te}});var v=h(91857),I=h(92310),O=h.n(I),B=h(59301),G=h(18785),F=h(3113),M=h(36355),he=h(81327),ue=h(33234),te=h(47211),Me=function(Ae,Re){var de={};for(var pe in Ae)Object.prototype.hasOwnProperty.call(Ae,pe)&&Re.indexOf(pe)<0&&(de[pe]=Ae[pe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(Ae);be<pe.length;be++)Re.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(Ae,pe[be])&&(de[pe[be]]=Ae[pe[be]]);return de};const we=Ae=>{const{getPopupContainer:Re,getPrefixCls:de,direction:pe}=B.useContext(M.E_),{prefixCls:be,type:me="default",danger:ke,disabled:ee,loading:Ne,onClick:Ie,htmlType:Pe,children:Xe,className:Ye,menu:ie,arrow:lt,autoFocus:We,overlay:Pt,trigger:xt,align:Tt,open:Et,onOpenChange:wn,placement:qe,getPopupContainer:ae,href:le,icon:$t=B.createElement(G.Z,null),title:Vt,buttonsRender:St=ct=>ct,mouseEnterDelay:un,mouseLeaveDelay:Ft,overlayClassName:ai,overlayStyle:On,destroyPopupOnHide:ni,dropdownRender:Jn}=Ae,In=Me(Ae,["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"]),Mn=de("dropdown",be),xe=`${Mn}-button`,[P,k]=(0,te.Z)(Mn),j={menu:ie,arrow:lt,autoFocus:We,align:Tt,disabled:ee,trigger:ee?[]:xt,onOpenChange:wn,getPopupContainer:ae||Re,mouseEnterDelay:un,mouseLeaveDelay:Ft,overlayClassName:ai,overlayStyle:On,destroyPopupOnHide:ni,dropdownRender:Jn},{compactSize:X,compactItemClassnames:T}=(0,ue.ri)(Mn,pe),_e=O()(xe,T,Ye,k);"overlay"in Ae&&(j.overlay=Pt),"open"in Ae&&(j.open=Et),"placement"in Ae?j.placement=qe:j.placement=pe==="rtl"?"bottomLeft":"bottomRight";const kt=B.createElement(F.ZP,{type:me,danger:ke,disabled:ee,loading:Ne,onClick:Ie,htmlType:Pe,href:le,title:Vt},Xe),Ue=B.createElement(F.ZP,{type:me,danger:ke,icon:$t}),[Be,mt]=St([kt,Ue]);return P(B.createElement(he.Z.Compact,Object.assign({className:_e,size:X,block:!0},In),Be,B.createElement(v.Z,Object.assign({},j),mt)))};we.__ANT_BUTTON=!0;var Je=we;const Oe=v.Z;Oe.Button=Je;var Te=Oe},47211:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Me}});var v=h(17313),I=h(13826),O=h(92899),B=h(29878),G=h(19447),F=h(83116),M=h(37613),ue=we=>{const{componentCls:Je,menuCls:Oe,colorError:Te,colorTextLightSolid:Ae}=we,Re=`${Oe}-item`;return{[`${Je}, ${Je}-menu-submenu`]:{[`${Oe} ${Re}`]:{[`&${Re}-danger:not(${Re}-disabled)`]:{color:Te,"&:hover":{color:Ae,backgroundColor:Te}}}}}};const te=we=>{const{componentCls:Je,menuCls:Oe,zIndexPopup:Te,dropdownArrowDistance:Ae,sizePopupArrow:Re,antCls:de,iconCls:pe,motionDurationMid:be,dropdownPaddingVertical:me,fontSize:ke,dropdownEdgeChildPadding:ee,colorTextDisabled:Ne,fontSizeIcon:Ie,controlPaddingHorizontal:Pe,colorBgElevated:Xe}=we;return[{[Je]:Object.assign(Object.assign({},(0,v.Wf)(we)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Te,display:"block","&::before":{position:"absolute",insetBlock:-Ae+Re/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${de}-btn`]:{[`& > ${pe}-down, & > ${de}-btn-icon > ${pe}-down`]:{fontSize:Ie}},[`${Je}-wrap`]:{position:"relative",[`${de}-btn > ${pe}-down`]:{fontSize:Ie},[`${pe}-down::before`]:{transition:`transform ${be}`}},[`${Je}-wrap-open`]:{[`${pe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${de}-slide-down-enter${de}-slide-down-enter-active${Je}-placement-bottomLeft,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${Je}-placement-bottomLeft,
|
|
|
&${de}-slide-down-enter${de}-slide-down-enter-active${Je}-placement-bottom,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${Je}-placement-bottom,
|
|
|
&${de}-slide-down-enter${de}-slide-down-enter-active${Je}-placement-bottomRight,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${Je}-placement-bottomRight`]:{animationName:I.fJ},[`&${de}-slide-up-enter${de}-slide-up-enter-active${Je}-placement-topLeft,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${Je}-placement-topLeft,
|
|
|
&${de}-slide-up-enter${de}-slide-up-enter-active${Je}-placement-top,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${Je}-placement-top,
|
|
|
&${de}-slide-up-enter${de}-slide-up-enter-active${Je}-placement-topRight,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${Je}-placement-topRight`]:{animationName:I.Qt},[`&${de}-slide-down-leave${de}-slide-down-leave-active${Je}-placement-bottomLeft,
|
|
|
&${de}-slide-down-leave${de}-slide-down-leave-active${Je}-placement-bottom,
|
|
|
&${de}-slide-down-leave${de}-slide-down-leave-active${Je}-placement-bottomRight`]:{animationName:I.Uw},[`&${de}-slide-up-leave${de}-slide-up-leave-active${Je}-placement-topLeft,
|
|
|
&${de}-slide-up-leave${de}-slide-up-leave-active${Je}-placement-top,
|
|
|
&${de}-slide-up-leave${de}-slide-up-leave-active${Je}-placement-topRight`]:{animationName:I.ly}})},(0,G.ZP)(we,{colorBg:Xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Je} ${Oe}`]:{position:"relative",margin:0},[`${Oe}-submenu-popup`]:{position:"absolute",zIndex:Te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Je}, ${Je}-menu-submenu`]:{[Oe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,v.Qy)(we)),{[`${Oe}-item-group-title`]:{padding:`${me}px ${Pe}px`,color:we.colorTextDescription,transition:`all ${be}`},[`${Oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Oe}-item-icon`]:{minWidth:ke,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${Oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${be}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Oe}-item, ${Oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${me}px ${Pe}px`,color:we.colorText,fontWeight:"normal",fontSize:ke,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${be}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,v.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:Xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${we.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${Je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${Je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:Ie,fontStyle:"normal"}}}),[`${Oe}-item-group-list`]:{margin:`0 ${we.marginXS}px`,padding:0,listStyle:"none"},[`${Oe}-submenu-title`]:{paddingInlineEnd:Pe+we.fontSizeSM},[`${Oe}-submenu-vertical`]:{position:"relative"},[`${Oe}-submenu${Oe}-submenu-disabled ${Je}-menu-submenu-title`]:{[`&, ${Je}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:Xe,cursor:"not-allowed"}},[`${Oe}-submenu-selected ${Je}-menu-submenu-title`]:{color:we.colorPrimary}})}},[(0,I.oN)(we,"slide-up"),(0,I.oN)(we,"slide-down"),(0,O.Fm)(we,"move-up"),(0,O.Fm)(we,"move-down"),(0,B._y)(we,"zoom-big")]]};var Me=(0,F.Z)("Dropdown",(we,Je)=>{let{rootPrefixCls:Oe}=Je;const{marginXXS:Te,sizePopupArrow:Ae,controlHeight:Re,fontSize:de,lineHeight:pe,paddingXXS:be,componentCls:me,borderRadiusLG:ke}=we,ee=(Re-de*pe)/2,{dropdownArrowOffset:Ne}=(0,G.fS)({contentRadius:ke}),Ie=(0,M.TS)(we,{menuCls:`${me}-menu`,rootPrefixCls:Oe,dropdownArrowDistance:Ae/2+Te,dropdownArrowOffset:Ne,dropdownPaddingVertical:ee,dropdownEdgeChildPadding:be});return[te(Ie),ue(Ie)]},we=>({zIndexPopup:we.zIndexPopupBase+50}))},64165:function(Q,C,h){"use strict";h.d(C,{Z:function(){return be}});var v=h(92310),I=h.n(v),O=h(59301),B=h(36355),G=h(9763),F=h(64993),M=h(88088),ue=()=>{const[,me]=(0,M.Z)(),ee=new F.C(me.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return O.createElement("svg",{style:ee,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"}))))},Me=()=>{const[,me]=(0,M.Z)(),{colorFill:ke,colorFillTertiary:ee,colorFillQuaternary:Ne,colorBgContainer:Ie}=me,{borderColor:Pe,shadowColor:Xe,contentColor:Ye}=(0,O.useMemo)(()=>({borderColor:new F.C(ke).onBackground(Ie).toHexShortString(),shadowColor:new F.C(ee).onBackground(Ie).toHexShortString(),contentColor:new F.C(Ne).onBackground(Ie).toHexShortString()}),[ke,ee,Ne,Ie]);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:Xe,cx:"32",cy:"33",rx:"32",ry:"7"}),O.createElement("g",{fillRule:"nonzero",stroke:Pe},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:Ye}))))},we=h(83116),Je=h(37613);const Oe=me=>{const{componentCls:ke,margin:ee,marginXS:Ne,marginXL:Ie,fontSize:Pe,lineHeight:Xe}=me;return{[ke]:{marginInline:Ne,fontSize:Pe,lineHeight:Xe,textAlign:"center",[`${ke}-image`]:{height:me.emptyImgHeight,marginBottom:Ne,opacity:me.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:me.colorText},[`${ke}-footer`]:{marginTop:ee},"&-normal":{marginBlock:Ie,color:me.colorTextDisabled,[`${ke}-description`]:{color:me.colorTextDisabled},[`${ke}-image`]:{height:me.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:me.colorTextDisabled,[`${ke}-image`]:{height:me.emptyImgHeightSM}}}}};var Te=(0,we.Z)("Empty",me=>{const{componentCls:ke,controlHeightLG:ee}=me,Ne=(0,Je.TS)(me,{emptyImgCls:`${ke}-img`,emptyImgHeight:ee*2.5,emptyImgHeightMD:ee,emptyImgHeightSM:ee*.875});return[Oe(Ne)]}),Ae=function(me,ke){var ee={};for(var Ne in me)Object.prototype.hasOwnProperty.call(me,Ne)&&ke.indexOf(Ne)<0&&(ee[Ne]=me[Ne]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ne=Object.getOwnPropertySymbols(me);Ie<Ne.length;Ie++)ke.indexOf(Ne[Ie])<0&&Object.prototype.propertyIsEnumerable.call(me,Ne[Ie])&&(ee[Ne[Ie]]=me[Ne[Ie]]);return ee};const Re=O.createElement(ue,null),de=O.createElement(Me,null),pe=me=>{var{className:ke,rootClassName:ee,prefixCls:Ne,image:Ie=Re,description:Pe,children:Xe,imageStyle:Ye,style:ie}=me,lt=Ae(me,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:We,direction:Pt,empty:xt}=O.useContext(B.E_),Tt=We("empty",Ne),[Et,wn]=Te(Tt),[qe]=(0,G.Z)("Empty"),ae=typeof Pe!="undefined"?Pe:qe==null?void 0:qe.description,le=typeof ae=="string"?ae:"empty";let $t=null;return typeof Ie=="string"?$t=O.createElement("img",{alt:le,src:Ie}):$t=Ie,Et(O.createElement("div",Object.assign({className:I()(wn,Tt,xt==null?void 0:xt.className,{[`${Tt}-normal`]:Ie===de,[`${Tt}-rtl`]:Pt==="rtl"},ke,ee),style:Object.assign(Object.assign({},xt==null?void 0:xt.style),ie)},lt),O.createElement("div",{className:`${Tt}-image`,style:Ye},$t),ae&&O.createElement("div",{className:`${Tt}-description`},ae),Xe&&O.createElement("div",{className:`${Tt}-footer`},Xe)))};pe.PRESENTED_IMAGE_DEFAULT=Re,pe.PRESENTED_IMAGE_SIMPLE=de;var be=pe},78241:function(Q,C,h){"use strict";h.d(C,{default:function(){return di}});var v=h(26407),I=h(92310),O=h.n(I),B=h(77900),G=h(59301),F=h(62892),M=h(32441);function he(ft){const[Un,Wn]=G.useState(ft);return G.useEffect(()=>{const vt=setTimeout(()=>{Wn(ft)},ft.length?0:10);return()=>{clearTimeout(vt)}},[ft]),Un}var ue=h(17313),te=h(29878),Me=h(8378),we=h(37613),Je=h(83116),Te=ft=>{const{componentCls:Un}=ft,Wn=`${Un}-show-help`,vt=`${Un}-show-help-item`;return{[Wn]:{transition:`opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[vt]:{overflow:"hidden",transition:`height ${ft.motionDurationSlow} ${ft.motionEaseInOut},
|
|
|
opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut},
|
|
|
transform ${ft.motionDurationSlow} ${ft.motionEaseInOut} !important`,[`&${vt}-appear, &${vt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${vt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ae=ft=>({legend:{display:"block",width:"100%",marginBottom:ft.marginLG,padding:0,color:ft.colorTextDescription,fontSize:ft.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`},label:{fontSize:ft.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 ${ft.controlOutlineWidth}px ${ft.controlOutline}`},output:{display:"block",paddingTop:15,color:ft.colorText,fontSize:ft.fontSize,lineHeight:ft.lineHeight}}),Re=(ft,Un)=>{const{formItemCls:Wn}=ft;return{[Wn]:{[`${Wn}-label > label`]:{height:Un},[`${Wn}-control-input`]:{minHeight:Un}}}},de=ft=>{const{componentCls:Un}=ft;return{[ft.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(ft)),Ae(ft)),{[`${Un}-text`]:{display:"inline-block",paddingInlineEnd:ft.paddingSM},"&-small":Object.assign({},Re(ft,ft.controlHeightSM)),"&-large":Object.assign({},Re(ft,ft.controlHeightLG))})}},pe=ft=>{const{formItemCls:Un,iconCls:Wn,componentCls:vt,rootPrefixCls:Ve,labelRequiredMarkColor:vn,labelColor:Nn,labelFontSize:on,labelHeight:Ct,labelColonMarginInlineStart:Ke,labelColonMarginInlineEnd:Ht,itemMarginBottom:Rt}=ft;return{[Un]:Object.assign(Object.assign({},(0,ue.Wf)(ft)),{marginBottom:Rt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ve}-row`]:{display:"none"},"&-has-warning":{[`${Un}-split`]:{color:ft.colorError}},"&-has-error":{[`${Un}-split`]:{color:ft.colorWarning}},[`${Un}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ft.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ct,color:Nn,fontSize:on,[`> ${Wn}`]:{fontSize:ft.fontSize,verticalAlign:"top"},[`&${Un}-required:not(${Un}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ft.marginXXS,color:vn,fontSize:ft.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${vt}-hide-required-mark &`]:{display:"none"}},[`${Un}-optional`]:{display:"inline-block",marginInlineStart:ft.marginXXS,color:ft.colorTextDescription,[`${vt}-hide-required-mark &`]:{display:"none"}},[`${Un}-tooltip`]:{color:ft.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ft.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ke,marginInlineEnd:Ht},[`&${Un}-no-colon::after`]:{content:'"\\a0"'}}},[`${Un}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ve}-col-'"]):not([class*="' ${Ve}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ft.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Un]:{"&-explain, &-extra":{clear:"both",color:ft.colorTextDescription,fontSize:ft.fontSize,lineHeight:ft.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ft.controlHeightSM,transition:`color ${ft.motionDurationMid} ${ft.motionEaseOut}`},"&-explain":{"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning}}},[`&-with-help ${Un}-explain`]:{height:"auto",opacity:1},[`${Un}-feedback-icon`]:{fontSize:ft.fontSize,textAlign:"center",visibility:"visible",animationName:te.kr,animationDuration:ft.motionDurationMid,animationTimingFunction:ft.motionEaseOutBack,pointerEvents:"none","&-success":{color:ft.colorSuccess},"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning},"&-validating":{color:ft.colorPrimary}}})}},be=ft=>{const{componentCls:Un,formItemCls:Wn}=ft;return{[`${Un}-horizontal`]:{[`${Wn}-label`]:{flexGrow:0},[`${Wn}-control`]:{flex:"1 1 0",minWidth:0},[`${Wn}-label[class$='-24'], ${Wn}-label[class*='-24 ']`]:{[`& + ${Wn}-control`]:{minWidth:"unset"}}}}},me=ft=>{const{componentCls:Un,formItemCls:Wn}=ft;return{[`${Un}-inline`]:{display:"flex",flexWrap:"wrap",[Wn]:{flex:"none",marginInlineEnd:ft.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Wn}-label,
|
|
|
> ${Wn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Wn}-label`]:{flex:"none"},[`${Un}-text`]:{display:"inline-block"},[`${Wn}-has-feedback`]:{display:"inline-block"}}}}},ke=ft=>({padding:ft.verticalLabelPadding,margin:ft.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ee=ft=>{const{componentCls:Un,formItemCls:Wn,rootPrefixCls:vt}=ft;return{[`${Wn} ${Wn}-label`]:ke(ft),[Un]:{[Wn]:{flexWrap:"wrap",[`${Wn}-label, ${Wn}-control`]:{[`&:not([class*=" ${vt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=ft=>{const{componentCls:Un,formItemCls:Wn,rootPrefixCls:vt}=ft;return{[`${Un}-vertical`]:{[Wn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Un}-item-control`]:{width:"100%"}}},[`${Un}-vertical ${Wn}-label,
|
|
|
.${vt}-col-24${Wn}-label,
|
|
|
.${vt}-col-xl-24${Wn}-label`]:ke(ft),[`@media (max-width: ${ft.screenXSMax}px)`]:[ee(ft),{[Un]:{[`.${vt}-col-xs-24${Wn}-label`]:ke(ft)}}],[`@media (max-width: ${ft.screenSMMax}px)`]:{[Un]:{[`.${vt}-col-sm-24${Wn}-label`]:ke(ft)}},[`@media (max-width: ${ft.screenMDMax}px)`]:{[Un]:{[`.${vt}-col-md-24${Wn}-label`]:ke(ft)}},[`@media (max-width: ${ft.screenLGMax}px)`]:{[Un]:{[`.${vt}-col-lg-24${Wn}-label`]:ke(ft)}}}},Ie=(ft,Un)=>(0,we.TS)(ft,{formItemCls:`${ft.componentCls}-item`,rootPrefixCls:Un});var Pe=(0,Je.Z)("Form",(ft,Un)=>{let{rootPrefixCls:Wn}=Un;const vt=Ie(ft,Wn);return[de(vt),pe(vt),Te(vt),be(vt),me(vt),Ne(vt),(0,Me.Z)(vt),te.kr]},ft=>({labelRequiredMarkColor:ft.colorError,labelColor:ft.colorTextHeading,labelFontSize:ft.fontSize,labelHeight:ft.controlHeight,labelColonMarginInlineStart:ft.marginXXS/2,labelColonMarginInlineEnd:ft.marginXS,itemMarginBottom:ft.marginLG,verticalLabelPadding:`0 0 ${ft.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Xe=[];function Ye(ft,Un,Wn){let vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ft=="string"?ft:`${Un}-${vt}`,error:ft,errorStatus:Wn}}var lt=ft=>{let{help:Un,helpStatus:Wn,errors:vt=Xe,warnings:Ve=Xe,className:vn,fieldId:Nn,onVisibleChanged:on}=ft;const{prefixCls:Ct}=G.useContext(M.Rk),Ke=`${Ct}-item-explain`,[,Ht]=Pe(Ct),Rt=(0,G.useMemo)(()=>(0,F.Z)(Ct),[Ct]),jn=he(vt),at=he(Ve),hn=G.useMemo(()=>Un!=null?[Ye(Un,"help",Wn)]:[].concat((0,v.Z)(jn.map((Ge,L)=>Ye(Ge,"error","error",L))),(0,v.Z)(at.map((Ge,L)=>Ye(Ge,"warning","warning",L)))),[Un,Wn,jn,at]),yt={};return Nn&&(yt.id=`${Nn}_help`),G.createElement(B.default,{motionDeadline:Rt.motionDeadline,motionName:`${Ct}-show-help`,visible:!!hn.length,onVisibleChanged:on},Ge=>{const{className:L,style:Dt}=Ge;return G.createElement("div",Object.assign({},yt,{className:O()(Ke,L,vn,Ht),style:Dt,role:"alert"}),G.createElement(B.CSSMotionList,Object.assign({keys:hn},(0,F.Z)(Ct),{motionName:`${Ct}-show-help-item`,component:!1}),Jt=>{const{key:gt,error:fn,errorStatus:Cn,className:ui,style:Ln}=Jt;return G.createElement("div",{key:gt,className:O()(ui,{[`${Ke}-${Cn}`]:Cn}),style:Ln},fn)}))})},We=h(95013),Pt=h(36355),xt=h(1684),Tt=h(52946),Et=h(19716),wn=h(16722);const qe=["parentNode"],ae="form_item";function le(ft){return ft===void 0||ft===!1?[]:Array.isArray(ft)?ft:[ft]}function $t(ft,Un){if(!ft.length)return;const Wn=ft.join("_");return Un?`${Un}_${Wn}`:qe.includes(Wn)?`${ae}_${Wn}`:Wn}function Vt(ft,Un,Wn,vt,Ve,vn){let Nn=vt;return vn!==void 0?Nn=vn:Wn.validating?Nn="validating":ft.length?Nn="error":Un.length?Nn="warning":(Wn.touched||Ve&&Wn.validated)&&(Nn="success"),Nn}function St(ft){return le(ft).join("_")}function un(ft){const[Un]=(0,We.useForm)(),Wn=G.useRef({}),vt=G.useMemo(()=>ft!=null?ft:Object.assign(Object.assign({},Un),{__INTERNAL__:{itemRef:Ve=>vn=>{const Nn=St(Ve);vn?Wn.current[Nn]=vn:delete Wn.current[Nn]}},scrollToField:function(Ve){let vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Nn=le(Ve),on=$t(Nn,vt.__INTERNAL__.name),Ct=on?document.getElementById(on):null;Ct&&(0,wn.Z)(Ct,Object.assign({scrollMode:"if-needed",block:"nearest"},vn))},getFieldInstance:Ve=>{const vn=St(Ve);return Wn.current[vn]}}),[ft,Un]);return[vt]}var Ft=h(28726),ai=function(ft,Un){var Wn={};for(var vt in ft)Object.prototype.hasOwnProperty.call(ft,vt)&&Un.indexOf(vt)<0&&(Wn[vt]=ft[vt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,vt=Object.getOwnPropertySymbols(ft);Ve<vt.length;Ve++)Un.indexOf(vt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ft,vt[Ve])&&(Wn[vt[Ve]]=ft[vt[Ve]]);return Wn};const On=(ft,Un)=>{const Wn=G.useContext(xt.Z),{getPrefixCls:vt,direction:Ve,form:vn}=G.useContext(Pt.E_),{prefixCls:Nn,className:on,rootClassName:Ct,size:Ke,disabled:Ht=Wn,form:Rt,colon:jn,labelAlign:at,labelWrap:hn,labelCol:yt,wrapperCol:Ge,hideRequiredMark:L,layout:Dt="horizontal",scrollToFirstError:Jt,requiredMark:gt,onFinishFailed:fn,name:Cn,style:ui,feedbackIcons:Ln}=ft,rt=ai(ft,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Oi=(0,Et.Z)(Ke),Qi=G.useContext(Ft.Z),Kt=(0,G.useMemo)(()=>gt!==void 0?gt:vn&&vn.requiredMark!==void 0?vn.requiredMark:!L,[L,gt,vn]),zi=jn!=null?jn:vn==null?void 0:vn.colon,J=vt("form",Nn),[re,Hn]=Pe(J),Fe=O()(J,`${J}-${Dt}`,{[`${J}-hide-required-mark`]:Kt===!1,[`${J}-rtl`]:Ve==="rtl",[`${J}-${Oi}`]:Oi},Hn,vn==null?void 0:vn.className,on,Ct),[wt]=un(Rt),{__INTERNAL__:gi}=wt;gi.name=Cn;const Rn=(0,G.useMemo)(()=>({name:Cn,labelAlign:at,labelCol:yt,labelWrap:hn,wrapperCol:Ge,vertical:Dt==="vertical",colon:zi,requiredMark:Kt,itemRef:gi.itemRef,form:wt,feedbackIcons:Ln}),[Cn,at,yt,Ge,Dt,zi,Kt,wt,Ln]);G.useImperativeHandle(Un,()=>wt);const _i=(Ei,Zt)=>{if(Ei){let Bi={block:"nearest"};typeof Ei=="object"&&(Bi=Ei),wt.scrollToField(Zt,Bi)}},Xt=Ei=>{if(fn==null||fn(Ei),Ei.errorFields.length){const Zt=Ei.errorFields[0].name;if(Jt!==void 0){_i(Jt,Zt);return}vn&&vn.scrollToFirstError!==void 0&&_i(vn.scrollToFirstError,Zt)}};return re(G.createElement(xt.n,{disabled:Ht},G.createElement(Tt.q,{size:Oi},G.createElement(M.RV,Object.assign({},{validateMessages:Qi}),G.createElement(M.q3.Provider,{value:Rn},G.createElement(We.default,Object.assign({id:Cn},rt,{name:Cn,onFinishFailed:Xt,form:wt,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),ui),className:Fe})))))))};var Jn=G.forwardRef(On),In=h(41799),Mn=h(8654),xe=h(92343),P=h(11592);function k(ft){if(typeof ft=="function")return ft;const Un=(0,P.Z)(ft);return Un.length<=1?Un[0]:Un}const j=()=>{const{status:ft,errors:Un=[],warnings:Wn=[]}=(0,G.useContext)(M.aM);return{status:ft,errors:Un,warnings:Wn}};j.Context=M.aM;var X=j,T=h(16089);function _e(ft){const[Un,Wn]=G.useState(ft),vt=(0,G.useRef)(null),Ve=(0,G.useRef)([]),vn=(0,G.useRef)(!1);G.useEffect(()=>(vn.current=!1,()=>{vn.current=!0,T.Z.cancel(vt.current),vt.current=null}),[]);function Nn(on){vn.current||(vt.current===null&&(Ve.current=[],vt.current=(0,T.Z)(()=>{vt.current=null,Wn(Ct=>{let Ke=Ct;return Ve.current.forEach(Ht=>{Ke=Ht(Ke)}),Ke})})),Ve.current.push(on))}return[Un,Nn]}function kt(){const{itemRef:ft}=G.useContext(M.q3),Un=G.useRef({});function Wn(vt,Ve){const vn=Ve&&typeof Ve=="object"&&Ve.ref,Nn=vt.join("_");return(Un.current.name!==Nn||Un.current.originRef!==vn)&&(Un.current.name=Nn,Un.current.originRef=vn,Un.current.ref=(0,Mn.sQ)(ft(vt),vn)),Un.current.ref}return Wn}var Ue=h(29194),Be=h(34280),mt=h(2738),ct=h(27382),tt=h(37028);const It=ft=>{const{formItemCls:Un}=ft;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Un}-control`]:{display:"flex"}}}};var an=(0,Je.b)(["Form","item-item"],(ft,Un)=>{let{rootPrefixCls:Wn}=Un;const vt=Ie(ft,Wn);return[It(vt)]}),Bt=ft=>{const{prefixCls:Un,status:Wn,wrapperCol:vt,children:Ve,errors:vn,warnings:Nn,_internalItemRender:on,extra:Ct,help:Ke,fieldId:Ht,marginBottom:Rt,onErrorVisibleChanged:jn}=ft,at=`${Un}-item`,hn=G.useContext(M.q3),yt=vt||hn.wrapperCol||{},Ge=O()(`${at}-control`,yt.className),L=G.useMemo(()=>Object.assign({},hn),[hn]);delete L.labelCol,delete L.wrapperCol;const Dt=G.createElement("div",{className:`${at}-control-input`},G.createElement("div",{className:`${at}-control-input-content`},Ve)),Jt=G.useMemo(()=>({prefixCls:Un,status:Wn}),[Un,Wn]),gt=Rt!==null||vn.length||Nn.length?G.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},G.createElement(M.Rk.Provider,{value:Jt},G.createElement(lt,{fieldId:Ht,errors:vn,warnings:Nn,help:Ke,helpStatus:Wn,className:`${at}-explain-connected`,onVisibleChanged:jn})),!!Rt&&G.createElement("div",{style:{width:0,height:Rt}})):null,fn={};Ht&&(fn.id=`${Ht}_extra`);const Cn=Ct?G.createElement("div",Object.assign({},fn,{className:`${at}-extra`}),Ct):null,ui=on&&on.mark==="pro_table_render"&&on.render?on.render(ft,{input:Dt,errorList:gt,extra:Cn}):G.createElement(G.Fragment,null,Dt,gt,Cn);return G.createElement(M.q3.Provider,{value:L},G.createElement(tt.Z,Object.assign({},yt,{className:Ge}),ui),G.createElement(an,{prefixCls:Un}))},cn=h(61485),gn=h(31724),Qe=h(9763),Ut=h(6848),tn=function(ft,Un){var Wn={};for(var vt in ft)Object.prototype.hasOwnProperty.call(ft,vt)&&Un.indexOf(vt)<0&&(Wn[vt]=ft[vt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,vt=Object.getOwnPropertySymbols(ft);Ve<vt.length;Ve++)Un.indexOf(vt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ft,vt[Ve])&&(Wn[vt[Ve]]=ft[vt[Ve]]);return Wn};function nn(ft){return ft?typeof ft=="object"&&!G.isValidElement(ft)?ft:{title:ft}:null}var Bn=ft=>{let{prefixCls:Un,label:Wn,htmlFor:vt,labelCol:Ve,labelAlign:vn,colon:Nn,required:on,requiredMark:Ct,tooltip:Ke}=ft;var Ht;const[Rt]=(0,Qe.Z)("Form"),{vertical:jn,labelAlign:at,labelCol:hn,labelWrap:yt,colon:Ge}=G.useContext(M.q3);if(!Wn)return null;const L=Ve||hn||{},Dt=vn||at,Jt=`${Un}-item-label`,gt=O()(Jt,Dt==="left"&&`${Jt}-left`,L.className,{[`${Jt}-wrap`]:!!yt});let fn=Wn;const Cn=Nn===!0||Ge!==!1&&Nn!==!1;Cn&&!jn&&typeof Wn=="string"&&Wn.trim()!==""&&(fn=Wn.replace(/[:|:]\s*$/,""));const Ln=nn(Ke);if(Ln){const{icon:Kt=G.createElement(cn.Z,null)}=Ln,zi=tn(Ln,["icon"]),J=G.createElement(Ut.Z,Object.assign({},zi),G.cloneElement(Kt,{className:`${Un}-item-tooltip`,title:""}));fn=G.createElement(G.Fragment,null,fn,J)}const rt=Ct==="optional",Oi=typeof Ct=="function";Oi?fn=Ct(fn,{required:!!on}):rt&&!on&&(fn=G.createElement(G.Fragment,null,fn,G.createElement("span",{className:`${Un}-item-optional`,title:""},(Rt==null?void 0:Rt.optional)||((Ht=gn.Z.Form)===null||Ht===void 0?void 0:Ht.optional))));const Qi=O()({[`${Un}-item-required`]:on,[`${Un}-item-required-mark-optional`]:rt||Oi,[`${Un}-item-no-colon`]:!Cn});return G.createElement(tt.Z,Object.assign({},L,{className:gt}),G.createElement("label",{htmlFor:vt,className:Qi,title:typeof Wn=="string"?Wn:""},fn))},kn=h(29679),Kn=h(19248),Ti=h(96512),hi=h(58617);const dn={success:kn.Z,warning:Ti.Z,error:Kn.Z,validating:hi.Z};function sn(ft){let{children:Un,errors:Wn,warnings:vt,hasFeedback:Ve,validateStatus:vn,prefixCls:Nn,meta:on,noStyle:Ct}=ft;const Ke=`${Nn}-item`,{feedbackIcons:Ht}=G.useContext(M.q3),Rt=Vt(Wn,vt,on,null,!!Ve,vn),{isFormItemInput:jn,status:at}=G.useContext(M.aM),hn=G.useMemo(()=>{var yt;let Ge;if(Ve){const Jt=Ve!==!0&&Ve.icons||Ht,gt=Rt&&((yt=Jt==null?void 0:Jt({status:Rt,errors:Wn,warnings:vt}))===null||yt===void 0?void 0:yt[Rt]),fn=Rt&&dn[Rt];Ge=gt!==!1&&fn?G.createElement("span",{className:O()(`${Ke}-feedback-icon`,`${Ke}-feedback-icon-${Rt}`)},gt||G.createElement(fn,null)):null}let L=!0,Dt=Rt||"";return Ct&&(L=jn,Dt=(Rt!=null?Rt:at)||""),{status:Dt,errors:Wn,warnings:vt,hasFeedback:!!Ve,feedbackIcon:Ge,isFormItemInput:L}},[Rt,Ve,Ct,jn,at]);return G.createElement(M.aM.Provider,{value:hn},Un)}var gr=function(ft,Un){var Wn={};for(var vt in ft)Object.prototype.hasOwnProperty.call(ft,vt)&&Un.indexOf(vt)<0&&(Wn[vt]=ft[vt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,vt=Object.getOwnPropertySymbols(ft);Ve<vt.length;Ve++)Un.indexOf(vt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ft,vt[Ve])&&(Wn[vt[Ve]]=ft[vt[Ve]]);return Wn};function dr(ft){const{prefixCls:Un,className:Wn,rootClassName:vt,style:Ve,help:vn,errors:Nn,warnings:on,validateStatus:Ct,meta:Ke,hasFeedback:Ht,hidden:Rt,children:jn,fieldId:at,required:hn,isRequired:yt,onSubItemMetaChange:Ge}=ft,L=gr(ft,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Dt=`${Un}-item`,{requiredMark:Jt}=G.useContext(M.q3),gt=G.useRef(null),fn=he(Nn),Cn=he(on),ui=vn!=null,Ln=!!(ui||Nn.length||on.length),rt=!!gt.current&&(0,Ue.Z)(gt.current),[Oi,Qi]=G.useState(null);(0,Be.Z)(()=>{if(Ln&>.current){const Hn=getComputedStyle(gt.current);Qi(parseInt(Hn.marginBottom,10))}},[Ln,rt]);const Kt=Hn=>{Hn||Qi(null)},J=function(){let Hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Fe=Hn?fn:Ke.errors,wt=Hn?Cn:Ke.warnings;return Vt(Fe,wt,Ke,"",!!Ht,Ct)}(),re=O()(Dt,Wn,vt,{[`${Dt}-with-help`]:ui||fn.length||Cn.length,[`${Dt}-has-feedback`]:J&&Ht,[`${Dt}-has-success`]:J==="success",[`${Dt}-has-warning`]:J==="warning",[`${Dt}-has-error`]:J==="error",[`${Dt}-is-validating`]:J==="validating",[`${Dt}-hidden`]:Rt});return G.createElement("div",{className:re,style:Ve,ref:gt},G.createElement(ct.Z,Object.assign({className:`${Dt}-row`},(0,mt.Z)(L,["_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"])),G.createElement(Bn,Object.assign({htmlFor:at},ft,{requiredMark:Jt,required:hn!=null?hn:yt,prefixCls:Un})),G.createElement(Bt,Object.assign({},ft,Ke,{errors:fn,warnings:Cn,prefixCls:Un,status:J,help:vn,marginBottom:Oi,onErrorVisibleChanged:Kt}),G.createElement(M.qI.Provider,{value:Ge},G.createElement(sn,{prefixCls:Un,meta:Ke,errors:Ke.errors,warnings:Ke.warnings,hasFeedback:Ht,validateStatus:J},jn)))),!!Oi&&G.createElement("div",{className:`${Dt}-margin-offset`,style:{marginBottom:-Oi}}))}const qn="__SPLIT__",Rr=null,tr=G.memo(ft=>{let{children:Un}=ft;return Un},(ft,Un)=>ft.value===Un.value&&ft.update===Un.update&&ft.childProps.length===Un.childProps.length&&ft.childProps.every((Wn,vt)=>Wn===Un.childProps[vt]));function U(ft){return ft!=null}function br(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fr(ft){const{name:Un,noStyle:Wn,className:vt,dependencies:Ve,prefixCls:vn,shouldUpdate:Nn,rules:on,children:Ct,required:Ke,label:Ht,messageVariables:Rt,trigger:jn="onChange",validateTrigger:at,hidden:hn,help:yt}=ft,{getPrefixCls:Ge}=G.useContext(Pt.E_),{name:L}=G.useContext(M.q3),Dt=k(Ct),Jt=typeof Dt=="function",gt=G.useContext(M.qI),{validateTrigger:fn}=G.useContext(We.FieldContext),Cn=at!==void 0?at:fn,ui=U(Un),Ln=Ge("form",vn),[rt,Oi]=Pe(Ln),Qi=G.useContext(We.ListContext),Kt=G.useRef(),[zi,J]=_e({}),[re,Hn]=(0,In.Z)(()=>br()),Fe=Zt=>{const Bi=Qi==null?void 0:Qi.getKey(Zt.name);if(Hn(Zt.destroy?br():Zt,!0),Wn&&yt!==!1&>){let Gr=Zt.name;if(Zt.destroy)Gr=Kt.current||Gr;else if(Bi!==void 0){const[At,eo]=Bi;Gr=[At].concat((0,v.Z)(eo)),Kt.current=Gr}gt(Zt,Gr)}},wt=(Zt,Bi)=>{J(Gr=>{const At=Object.assign({},Gr),Qt=[].concat((0,v.Z)(Zt.name.slice(0,-1)),(0,v.Z)(Bi)).join(qn);return Zt.destroy?delete At[Qt]:At[Qt]=Zt,At})},[gi,Rn]=G.useMemo(()=>{const Zt=(0,v.Z)(re.errors),Bi=(0,v.Z)(re.warnings);return Object.values(zi).forEach(Gr=>{Zt.push.apply(Zt,(0,v.Z)(Gr.errors||[])),Bi.push.apply(Bi,(0,v.Z)(Gr.warnings||[]))}),[Zt,Bi]},[zi,re.errors,re.warnings]),_i=kt();function Xt(Zt,Bi,Gr){return Wn&&!hn?G.createElement(sn,{prefixCls:Ln,hasFeedback:ft.hasFeedback,validateStatus:ft.validateStatus,meta:re,errors:gi,warnings:Rn,noStyle:!0},Zt):G.createElement(dr,Object.assign({key:"row"},ft,{className:O()(vt,Oi),prefixCls:Ln,fieldId:Bi,isRequired:Gr,errors:gi,warnings:Rn,meta:re,onSubItemMetaChange:wt}),Zt)}if(!ui&&!Jt&&!Ve)return rt(Xt(Dt));let Ei={};return typeof Ht=="string"?Ei.label=Ht:Un&&(Ei.label=String(Un)),Rt&&(Ei=Object.assign(Object.assign({},Ei),Rt)),rt(G.createElement(We.Field,Object.assign({},ft,{messageVariables:Ei,trigger:jn,validateTrigger:Cn,onMetaChange:Fe}),(Zt,Bi,Gr)=>{const At=le(Un).length&&Bi?Bi.name:[],eo=$t(At,L),Qt=Ke!==void 0?Ke:!!(on&&on.some(pr=>{if(pr&&typeof pr=="object"&&pr.required&&!pr.warningOnly)return!0;if(typeof pr=="function"){const ar=pr(Gr);return ar&&ar.required&&!ar.warningOnly}return!1})),Li=Object.assign({},Zt);let wi=null;if(Array.isArray(Dt)&&ui)wi=Dt;else if(!(Jt&&(!(Nn||Ve)||ui))){if(!(Ve&&!Jt&&!ui))if((0,xe.l$)(Dt)){const pr=Object.assign(Object.assign({},Dt.props),Li);if(pr.id||(pr.id=eo),yt||gi.length>0||Rn.length>0||ft.extra){const ce=[];(yt||gi.length>0)&&ce.push(`${eo}_help`),ft.extra&&ce.push(`${eo}_extra`),pr["aria-describedby"]=ce.join(" ")}gi.length>0&&(pr["aria-invalid"]="true"),Qt&&(pr["aria-required"]="true"),(0,Mn.Yr)(Dt)&&(pr.ref=_i(At,Dt)),new Set([].concat((0,v.Z)(le(jn)),(0,v.Z)(le(Cn)))).forEach(ce=>{pr[ce]=function(){for(var mr,Er,cr,Wr,Wi,Kr=arguments.length,Ri=new Array(Kr),Ui=0;Ui<Kr;Ui++)Ri[Ui]=arguments[Ui];(cr=Li[ce])===null||cr===void 0||(mr=cr).call.apply(mr,[Li].concat(Ri)),(Wi=(Wr=Dt.props)[ce])===null||Wi===void 0||(Er=Wi).call.apply(Er,[Wr].concat(Ri))}});const Zn=[pr["aria-required"],pr["aria-invalid"],pr["aria-describedby"]];wi=G.createElement(tr,{value:Li[ft.valuePropName||"value"],update:Dt,childProps:Zn},(0,xe.Tm)(Dt,pr))}else Jt&&(Nn||Ve)&&!ui?wi=Dt(Gr):wi=Dt}return Xt(wi,eo,Qt)}))}const Fr=fr;Fr.useStatus=X;var jr=Fr,so=function(ft,Un){var Wn={};for(var vt in ft)Object.prototype.hasOwnProperty.call(ft,vt)&&Un.indexOf(vt)<0&&(Wn[vt]=ft[vt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,vt=Object.getOwnPropertySymbols(ft);Ve<vt.length;Ve++)Un.indexOf(vt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ft,vt[Ve])&&(Wn[vt[Ve]]=ft[vt[Ve]]);return Wn},to=ft=>{var{prefixCls:Un,children:Wn}=ft,vt=so(ft,["prefixCls","children"]);const{getPrefixCls:Ve}=G.useContext(Pt.E_),vn=Ve("form",Un),Nn=G.useMemo(()=>({prefixCls:vn,status:"error"}),[vn]);return G.createElement(We.List,Object.assign({},vt),(on,Ct,Ke)=>G.createElement(M.Rk.Provider,{value:Nn},Wn(on.map(Ht=>Object.assign(Object.assign({},Ht),{fieldKey:Ht.key})),Ct,{errors:Ke.errors,warnings:Ke.warnings})))};function vr(){const{form:ft}=(0,G.useContext)(M.q3);return ft}const Ji=Jn;Ji.Item=jr,Ji.List=to,Ji.ErrorList=lt,Ji.useForm=un,Ji.useFormInstance=vr,Ji.useWatch=We.useWatch,Ji.Provider=M.RV,Ji.create=()=>{};var di=Ji},8628:function(Q,C,h){"use strict";var v=h(59301),I=h(34280),O=h(56762),B=h(69507);function G(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const M=(0,v.useRef)({}),he=(0,O.Z)(),ue=(0,B.ZP)();return(0,I.Z)(()=>{const te=ue.subscribe(Me=>{M.current=Me,F&&he()});return()=>ue.unsubscribe(te)},[]),M.current}C.Z=G},11611:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Nn}});var v=h(59301),I=h(15277),O=h(92310),B=h.n(O),G=h(92413),F=h(33708),M=h(400),he=h(33606),ue=h(39559),te=h(37061),Me=h(55468),we=h(18929),Je=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Oe=v.createContext(null),Te=0;function Ae(on,Ct){var Ke=v.useState(function(){return Te+=1,String(Te)}),Ht=(0,he.Z)(Ke,1),Rt=Ht[0],jn=v.useContext(Oe),at={data:Ct,canPreview:on};return v.useEffect(function(){if(jn)return jn.register(Rt,at)},[]),v.useEffect(function(){jn&&jn.register(Rt,at)},[on,Ct]),Rt}function Re(on){return new Promise(function(Ct){var Ke=document.createElement("img");Ke.onerror=function(){return Ct(!1)},Ke.onload=function(){return Ct(!0)},Ke.src=on})}function de(on){var Ct=on.src,Ke=on.isCustomPlaceholder,Ht=on.fallback,Rt=(0,v.useState)(Ke?"loading":"normal"),jn=(0,he.Z)(Rt,2),at=jn[0],hn=jn[1],yt=(0,v.useRef)(!1),Ge=at==="error";(0,v.useEffect)(function(){Re(Ct).then(function(gt){gt||hn("error")})},[Ct]),(0,v.useEffect)(function(){Ke&&!yt.current?hn("loading"):Ge&&hn("normal")},[Ct]);var L=function(){hn("normal")},Dt=function(fn){yt.current=!1,at==="loading"&&fn!=null&&fn.complete&&(fn.naturalWidth||fn.naturalHeight)&&(yt.current=!0,L())},Jt=Ge&&Ht?{src:Ht}:{onLoad:L,src:Ct};return[Dt,Jt,at]}var pe=h(86923),be=h(8224),me=h(10228),ke=h(48736);function ee(on,Ct,Ke,Ht){var Rt=Ct+Ke,jn=(Ke-Ht)/2;if(Ke>Ht){if(Ct>0)return(0,M.Z)({},on,jn);if(Ct<0&&Rt<Ht)return(0,M.Z)({},on,-jn)}else if(Ct<0||Rt>Ht)return(0,M.Z)({},on,Ct<0?jn:-jn);return{}}function Ne(on,Ct,Ke,Ht){var Rt=(0,Me.g1)(),jn=Rt.width,at=Rt.height,hn=null;return on<=jn&&Ct<=at?hn={x:0,y:0}:(on>jn||Ct>at)&&(hn=(0,F.Z)((0,F.Z)({},ee("x",Ke,on,jn)),ee("y",Ht,Ct,at))),hn}var Ie=h(13697),Pe=h(16089),Xe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Ye(on,Ct,Ke,Ht){var Rt=(0,v.useRef)(null),jn=(0,v.useRef)([]),at=(0,v.useState)(Xe),hn=(0,he.Z)(at,2),yt=hn[0],Ge=hn[1],L=function(fn){Ge(Xe),Ht&&!(0,Ie.Z)(Xe,yt)&&Ht({transform:Xe,action:fn})},Dt=function(fn,Cn){Rt.current===null&&(jn.current=[],Rt.current=(0,Pe.Z)(function(){Ge(function(ui){var Ln=ui;return jn.current.forEach(function(rt){Ln=(0,F.Z)((0,F.Z)({},Ln),rt)}),Rt.current=null,Ht==null||Ht({transform:Ln,action:Cn}),Ln})})),jn.current.push((0,F.Z)((0,F.Z)({},yt),fn))},Jt=function(fn,Cn,ui,Ln){var rt=on.current,Oi=rt.width,Qi=rt.height,Kt=rt.offsetWidth,zi=rt.offsetHeight,J=rt.offsetLeft,re=rt.offsetTop,Hn=fn,Fe=yt.scale*fn;Fe>Ke?(Hn=Ke/yt.scale,Fe=Ke):Fe<Ct&&(Hn=Ct/yt.scale,Fe=Ct);var wt=ui!=null?ui:innerWidth/2,gi=Ln!=null?Ln:innerHeight/2,Rn=Hn-1,_i=Rn*Oi*.5,Xt=Rn*Qi*.5,Ei=Rn*(wt-yt.x-J),Zt=Rn*(gi-yt.y-re),Bi=yt.x-(Ei-_i),Gr=yt.y-(Zt-Xt);if(fn<1&&Fe===1){var At=Kt*Fe,eo=zi*Fe,Qt=(0,Me.g1)(),Li=Qt.width,wi=Qt.height;At<=Li&&eo<=wi&&(Bi=0,Gr=0)}Dt({x:Bi,y:Gr,scale:Fe},Cn)};return{transform:yt,resetTransform:L,updateTransform:Dt,dispatchZoomChange:Jt}}var ie=h(43403),lt=h(77900),We=function(Ct){var Ke=Ct.visible,Ht=Ct.maskTransitionName,Rt=Ct.getContainer,jn=Ct.prefixCls,at=Ct.rootClassName,hn=Ct.icons,yt=Ct.countRender,Ge=Ct.showSwitch,L=Ct.showProgress,Dt=Ct.current,Jt=Ct.transform,gt=Ct.count,fn=Ct.scale,Cn=Ct.minScale,ui=Ct.maxScale,Ln=Ct.closeIcon,rt=Ct.onSwitchLeft,Oi=Ct.onSwitchRight,Qi=Ct.onClose,Kt=Ct.onZoomIn,zi=Ct.onZoomOut,J=Ct.onRotateRight,re=Ct.onRotateLeft,Hn=Ct.onFlipX,Fe=Ct.onFlipY,wt=Ct.toolbarRender,gi=(0,v.useContext)(Oe),Rn=hn.rotateLeft,_i=hn.rotateRight,Xt=hn.zoomIn,Ei=hn.zoomOut,Zt=hn.close,Bi=hn.left,Gr=hn.right,At=hn.flipX,eo=hn.flipY,Qt="".concat(jn,"-operations-operation");v.useEffect(function(){var ar=function(ce){ce.keyCode===me.Z.ESC&&Qi()};return Ke&&window.addEventListener("keydown",ar),function(){window.removeEventListener("keydown",ar)}},[Ke]);var Li=[{icon:eo,onClick:Fe,type:"flipY"},{icon:At,onClick:Hn,type:"flipX"},{icon:Rn,onClick:re,type:"rotateLeft"},{icon:_i,onClick:J,type:"rotateRight"},{icon:Ei,onClick:zi,type:"zoomOut",disabled:fn===Cn},{icon:Xt,onClick:Kt,type:"zoomIn",disabled:fn===ui}],wi=Li.map(function(ar){var Zn,ce=ar.icon,mr=ar.onClick,Er=ar.type,cr=ar.disabled;return v.createElement("div",{className:B()(Qt,(Zn={},(0,M.Z)(Zn,"".concat(jn,"-operations-operation-").concat(Er),!0),(0,M.Z)(Zn,"".concat(jn,"-operations-operation-disabled"),!!cr),Zn)),onClick:mr,key:Er},ce)}),pr=v.createElement("div",{className:"".concat(jn,"-operations")},wi);return v.createElement(lt.default,{visible:Ke,motionName:Ht},function(ar){var Zn=ar.className,ce=ar.style;return v.createElement(ie.Z,{open:!0,getContainer:Rt!=null?Rt:document.body},v.createElement("div",{className:B()("".concat(jn,"-operations-wrapper"),Zn,at),style:ce},Ln===null?null:v.createElement("button",{className:"".concat(jn,"-close"),onClick:Qi},Ln||Zt),Ge&&v.createElement(v.Fragment,null,v.createElement("div",{className:B()("".concat(jn,"-switch-left"),(0,M.Z)({},"".concat(jn,"-switch-left-disabled"),Dt===0)),onClick:rt},Bi),v.createElement("div",{className:B()("".concat(jn,"-switch-right"),(0,M.Z)({},"".concat(jn,"-switch-right-disabled"),Dt===gt-1)),onClick:Oi},Gr)),v.createElement("div",{className:"".concat(jn,"-footer")},L&&v.createElement("div",{className:"".concat(jn,"-progress")},yt?yt(Dt+1,gt):"".concat(Dt+1," / ").concat(gt)),wt?wt(pr,(0,F.Z)({icons:{flipYIcon:wi[0],flipXIcon:wi[1],rotateLeftIcon:wi[2],rotateRightIcon:wi[3],zoomOutIcon:wi[4],zoomInIcon:wi[5]},actions:{onFlipY:Fe,onFlipX:Hn,onRotateLeft:re,onRotateRight:J,onZoomOut:zi,onZoomIn:Kt},transform:Jt},gi?{current:Dt,total:gt}:{})):pr)))})},Pt=We,xt=1,Tt=1,Et=["fallback","src","imgRef"],wn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],qe=function(Ct){var Ke=Ct.fallback,Ht=Ct.src,Rt=Ct.imgRef,jn=(0,te.Z)(Ct,Et),at=de({src:Ht,fallback:Ke}),hn=(0,he.Z)(at,2),yt=hn[0],Ge=hn[1];return v.createElement("img",(0,G.Z)({ref:function(Dt){Rt.current=Dt,yt(Dt)}},jn,Ge))},ae=function(Ct){var Ke=Ct.prefixCls,Ht=Ct.src,Rt=Ct.alt,jn=Ct.fallback,at=Ct.movable,hn=at===void 0?!0:at,yt=Ct.onClose,Ge=Ct.visible,L=Ct.icons,Dt=L===void 0?{}:L,Jt=Ct.rootClassName,gt=Ct.closeIcon,fn=Ct.getContainer,Cn=Ct.current,ui=Cn===void 0?0:Cn,Ln=Ct.count,rt=Ln===void 0?1:Ln,Oi=Ct.countRender,Qi=Ct.scaleStep,Kt=Qi===void 0?.5:Qi,zi=Ct.minScale,J=zi===void 0?1:zi,re=Ct.maxScale,Hn=re===void 0?50:re,Fe=Ct.transitionName,wt=Fe===void 0?"zoom":Fe,gi=Ct.maskTransitionName,Rn=gi===void 0?"fade":gi,_i=Ct.imageRender,Xt=Ct.imgCommonProps,Ei=Ct.toolbarRender,Zt=Ct.onTransform,Bi=Ct.onChange,Gr=(0,te.Z)(Ct,wn),At=(0,v.useRef)(),eo=(0,v.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Qt=(0,v.useState)(!1),Li=(0,he.Z)(Qt,2),wi=Li[0],pr=Li[1],ar=(0,v.useContext)(Oe),Zn=ar&&rt>1,ce=ar&&rt>=1,mr=Ye(At,J,Hn,Zt),Er=mr.transform,cr=mr.resetTransform,Wr=mr.updateTransform,Wi=mr.dispatchZoomChange,Kr=(0,v.useState)(!0),Ri=(0,he.Z)(Kr,2),Ui=Ri[0],Di=Ri[1],Cr=Er.rotate,Tr=Er.scale,io=Er.x,bo=Er.y,mi=B()((0,M.Z)({},"".concat(Ke,"-moving"),wi));(0,v.useEffect)(function(){Ui||Di(!0)},[Ui]);var Sa=function(){cr("close")},Wo=function(){Wi(xt+Kt,"zoomIn")},Jo=function(){Wi(xt/(xt+Kt),"zoomOut")},Ta=function(){Wr({rotate:Cr+90},"rotateRight")},Ya=function(){Wr({rotate:Cr-90},"rotateLeft")},ns=function(){Wr({flipX:!Er.flipX},"flipX")},Na=function(){Wr({flipY:!Er.flipY},"flipY")},cs=function(Mt){Mt==null||Mt.preventDefault(),Mt==null||Mt.stopPropagation(),ui>0&&(Di(!1),cr("prev"),Bi==null||Bi(ui-1,ui))},Za=function(Mt){Mt==null||Mt.preventDefault(),Mt==null||Mt.stopPropagation(),ui<rt-1&&(Di(!1),cr("next"),Bi==null||Bi(ui+1,ui))},jo=function(){if(Ge&&wi){pr(!1);var Mt=eo.current,Dr=Mt.transformX,mo=Mt.transformY,Ea=io!==Dr&&bo!==mo;if(!Ea)return;var xr=At.current.offsetWidth*Tr,Sn=At.current.offsetHeight*Tr,ur=At.current.getBoundingClientRect(),vi=ur.left,Vo=ur.top,ma=Cr%180!==0,is=Ne(ma?Sn:xr,ma?xr:Sn,vi,Vo);is&&Wr((0,F.Z)({},is),"dragRebound")}},Wt=function(Mt){!hn||Mt.button!==0||(Mt.preventDefault(),Mt.stopPropagation(),eo.current={deltaX:Mt.pageX-Er.x,deltaY:Mt.pageY-Er.y,transformX:Er.x,transformY:Er.y},pr(!0))},Ba=function(Mt){Ge&&wi&&Wr({x:Mt.pageX-eo.current.deltaX,y:Mt.pageY-eo.current.deltaY},"move")},eu=function(Mt){if(!(!Ge||Mt.deltaY==0)){var Dr=Math.abs(Mt.deltaY/100),mo=Math.min(Dr,Tt),Ea=xt+mo*Kt;Mt.deltaY>0&&(Ea=xt/Ea),Wi(Ea,"wheel",Mt.clientX,Mt.clientY)}},ol=function(Mt){!Ge||!Zn||(Mt.keyCode===me.Z.LEFT?cs():Mt.keyCode===me.Z.RIGHT&&Za())},po=function(Mt){Ge&&(Tr!==1?Wr({x:0,y:0,scale:1},"doubleClick"):Wi(xt+Kt,"doubleClick",Mt.clientX,Mt.clientY))};(0,v.useEffect)(function(){var yo,Mt,Dr,mo;if(hn){Dr=(0,be.Z)(window,"mouseup",jo,!1),mo=(0,be.Z)(window,"mousemove",Ba,!1);try{window.top!==window.self&&(yo=(0,be.Z)(window.top,"mouseup",jo,!1),Mt=(0,be.Z)(window.top,"mousemove",Ba,!1))}catch(Ea){(0,ke.Kp)(!1,"[rc-image] ".concat(Ea))}}return function(){var Ea,xr,Sn,ur;(Ea=Dr)===null||Ea===void 0||Ea.remove(),(xr=mo)===null||xr===void 0||xr.remove(),(Sn=yo)===null||Sn===void 0||Sn.remove(),(ur=Mt)===null||ur===void 0||ur.remove()}},[Ge,wi,io,bo,Cr,hn]),(0,v.useEffect)(function(){var yo=(0,be.Z)(window,"keydown",ol,!1);return function(){yo.remove()}},[Ge,Zn,ui]);var ko=v.createElement(qe,(0,G.Z)({},Xt,{width:Ct.width,height:Ct.height,imgRef:At,className:"".concat(Ke,"-img"),alt:Rt,style:{transform:"translate3d(".concat(Er.x,"px, ").concat(Er.y,"px, 0) scale3d(").concat(Er.flipX?"-":"").concat(Tr,", ").concat(Er.flipY?"-":"").concat(Tr,", 1) rotate(").concat(Cr,"deg)"),transitionDuration:!Ui&&"0s"},fallback:jn,src:Ht,onWheel:eu,onMouseDown:Wt,onDoubleClick:po}));return v.createElement(v.Fragment,null,v.createElement(pe.Z,(0,G.Z)({transitionName:wt,maskTransitionName:Rn,closable:!1,keyboard:!0,prefixCls:Ke,onClose:yt,visible:Ge,wrapClassName:mi,rootClassName:Jt,getContainer:fn},Gr,{afterClose:Sa}),v.createElement("div",{className:"".concat(Ke,"-img-wrapper")},_i?_i(ko,(0,F.Z)({transform:Er},ar?{current:ui}:{})):ko)),v.createElement(Pt,{visible:Ge,transform:Er,maskTransitionName:Rn,closeIcon:gt,getContainer:fn,prefixCls:Ke,rootClassName:Jt,icons:Dt,countRender:Oi,showSwitch:Zn,showProgress:ce,current:ui,count:rt,scale:Tr,minScale:J,maxScale:Hn,toolbarRender:Ei,onSwitchLeft:cs,onSwitchRight:Za,onZoomIn:Wo,onZoomOut:Jo,onRotateRight:Ta,onRotateLeft:Ya,onFlipX:ns,onFlipY:Na,onClose:yt}))},le=ae,$t=h(26407);function Vt(on){var Ct=v.useState({}),Ke=(0,he.Z)(Ct,2),Ht=Ke[0],Rt=Ke[1],jn=v.useCallback(function(hn,yt){return Rt(function(Ge){return(0,F.Z)((0,F.Z)({},Ge),{},(0,M.Z)({},hn,yt))}),function(){Rt(function(Ge){var L=(0,F.Z)({},Ge);return delete L[hn],L})}},[]),at=v.useMemo(function(){return on?on.map(function(hn){if(typeof hn=="string")return{data:{src:hn}};var yt={};return Object.keys(hn).forEach(function(Ge){["src"].concat((0,$t.Z)(Je)).includes(Ge)&&(yt[Ge]=hn[Ge])}),{data:yt}}):Object.keys(Ht).reduce(function(hn,yt){var Ge=Ht[yt],L=Ge.canPreview,Dt=Ge.data;return L&&hn.push({data:Dt,id:yt}),hn},[])},[on,Ht]);return[at,jn]}var St=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],un=["src"],Ft=function(Ct){var Ke,Ht=Ct.previewPrefixCls,Rt=Ht===void 0?"rc-image-preview":Ht,jn=Ct.children,at=Ct.icons,hn=at===void 0?{}:at,yt=Ct.items,Ge=Ct.preview,L=Ct.fallback,Dt=(0,ue.Z)(Ge)==="object"?Ge:{},Jt=Dt.visible,gt=Dt.onVisibleChange,fn=Dt.getContainer,Cn=Dt.current,ui=Dt.movable,Ln=Dt.minScale,rt=Dt.maxScale,Oi=Dt.countRender,Qi=Dt.closeIcon,Kt=Dt.onChange,zi=Dt.onTransform,J=Dt.toolbarRender,re=Dt.imageRender,Hn=(0,te.Z)(Dt,St),Fe=Vt(yt),wt=(0,he.Z)(Fe,2),gi=wt[0],Rn=wt[1],_i=(0,we.Z)(0,{value:Cn}),Xt=(0,he.Z)(_i,2),Ei=Xt[0],Zt=Xt[1],Bi=(0,v.useState)(!1),Gr=(0,he.Z)(Bi,2),At=Gr[0],eo=Gr[1],Qt=((Ke=gi[Ei])===null||Ke===void 0?void 0:Ke.data)||{},Li=Qt.src,wi=(0,te.Z)(Qt,un),pr=(0,we.Z)(!!Jt,{value:Jt,onChange:function(Cr,Tr){gt==null||gt(Cr,Tr,Ei)}}),ar=(0,he.Z)(pr,2),Zn=ar[0],ce=ar[1],mr=(0,v.useState)(null),Er=(0,he.Z)(mr,2),cr=Er[0],Wr=Er[1],Wi=v.useCallback(function(Di,Cr,Tr){var io=gi.findIndex(function(bo){return bo.id===Di});ce(!0),Wr({x:Cr,y:Tr}),Zt(io<0?0:io),eo(!0)},[gi]);v.useEffect(function(){Zn?At||Zt(0):eo(!1)},[Zn]);var Kr=function(Cr,Tr){Zt(Cr),Kt==null||Kt(Cr,Tr)},Ri=function(){ce(!1),Wr(null)},Ui=v.useMemo(function(){return{register:Rn,onPreview:Wi}},[Rn,Wi]);return v.createElement(Oe.Provider,{value:Ui},jn,v.createElement(le,(0,G.Z)({"aria-hidden":!Zn,movable:ui,visible:Zn,prefixCls:Rt,closeIcon:Qi,onClose:Ri,mousePosition:cr,imgCommonProps:wi,src:Li,fallback:L,icons:hn,minScale:Ln,maxScale:rt,getContainer:fn,current:Ei,count:gi.length,countRender:Oi,onTransform:zi,toolbarRender:J,imageRender:re,onChange:Kr},Hn)))},ai=Ft,On=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ni=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Jn=function(Ct){var Ke=Ct.src,Ht=Ct.alt,Rt=Ct.onPreviewClose,jn=Ct.prefixCls,at=jn===void 0?"rc-image":jn,hn=Ct.previewPrefixCls,yt=hn===void 0?"".concat(at,"-preview"):hn,Ge=Ct.placeholder,L=Ct.fallback,Dt=Ct.width,Jt=Ct.height,gt=Ct.style,fn=Ct.preview,Cn=fn===void 0?!0:fn,ui=Ct.className,Ln=Ct.onClick,rt=Ct.onError,Oi=Ct.wrapperClassName,Qi=Ct.wrapperStyle,Kt=Ct.rootClassName,zi=(0,te.Z)(Ct,On),J=Ge&&Ge!==!0,re=(0,ue.Z)(Cn)==="object"?Cn:{},Hn=re.src,Fe=re.visible,wt=Fe===void 0?void 0:Fe,gi=re.onVisibleChange,Rn=gi===void 0?Rt:gi,_i=re.getContainer,Xt=_i===void 0?void 0:_i,Ei=re.mask,Zt=re.maskClassName,Bi=re.movable,Gr=re.icons,At=re.scaleStep,eo=re.minScale,Qt=re.maxScale,Li=re.imageRender,wi=re.toolbarRender,pr=(0,te.Z)(re,ni),ar=Hn!=null?Hn:Ke,Zn=(0,we.Z)(!!wt,{value:wt,onChange:Rn}),ce=(0,he.Z)(Zn,2),mr=ce[0],Er=ce[1],cr=de({src:Ke,isCustomPlaceholder:J,fallback:L}),Wr=(0,he.Z)(cr,3),Wi=Wr[0],Kr=Wr[1],Ri=Wr[2],Ui=(0,v.useState)(null),Di=(0,he.Z)(Ui,2),Cr=Di[0],Tr=Di[1],io=(0,v.useContext)(Oe),bo=!!Cn,mi=function(){Er(!1),Tr(null)},Sa=B()(at,Oi,Kt,(0,M.Z)({},"".concat(at,"-error"),Ri==="error")),Wo=(0,v.useMemo)(function(){var ns={};return Je.forEach(function(Na){Ct[Na]!==void 0&&(ns[Na]=Ct[Na])}),ns},Je.map(function(ns){return Ct[ns]})),Jo=(0,v.useMemo)(function(){return(0,F.Z)((0,F.Z)({},Wo),{},{src:ar})},[ar,Wo]),Ta=Ae(bo,Jo),Ya=function(Na){var cs=(0,Me.os)(Na.target),Za=cs.left,jo=cs.top;io?io.onPreview(Ta,Za,jo):(Tr({x:Za,y:jo}),Er(!0)),Ln==null||Ln(Na)};return v.createElement(v.Fragment,null,v.createElement("div",(0,G.Z)({},zi,{className:Sa,onClick:bo?Ya:Ln,style:(0,F.Z)({width:Dt,height:Jt},Qi)}),v.createElement("img",(0,G.Z)({},Wo,{className:B()("".concat(at,"-img"),(0,M.Z)({},"".concat(at,"-img-placeholder"),Ge===!0),ui),style:(0,F.Z)({height:Jt},gt),ref:Wi},Kr,{width:Dt,height:Jt,onError:rt})),Ri==="loading"&&v.createElement("div",{"aria-hidden":"true",className:"".concat(at,"-placeholder")},Ge),Ei&&bo&&v.createElement("div",{className:B()("".concat(at,"-mask"),Zt),style:{display:(gt==null?void 0:gt.display)==="none"?"none":void 0}},Ei)),!io&&bo&&v.createElement(le,(0,G.Z)({"aria-hidden":!mr,visible:mr,prefixCls:yt,onClose:mi,mousePosition:Cr,src:ar,alt:Ht,fallback:L,getContainer:Xt,icons:Gr,movable:Bi,scaleStep:At,minScale:eo,maxScale:Qt,rootClassName:Kt,imageRender:Li,imgCommonProps:Wo,toolbarRender:wi},pr)))};Jn.PreviewGroup=ai,Jn.displayName="Image";var In=Jn,Mn=In,xe=h(62892),P=h(36355),k=h(31724),j=h(99267),X=h(33853),T=h(38819),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},kt=_e,Ue=h(7657),Be=function(Ct,Ke){return v.createElement(Ue.Z,(0,G.Z)({},Ct,{ref:Ke,icon:kt}))},mt=v.forwardRef(Be),ct=mt,tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},It=tt,an=function(Ct,Ke){return v.createElement(Ue.Z,(0,G.Z)({},Ct,{ref:Ke,icon:It}))},en=v.forwardRef(an),Bt=en,cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},gn=cn,Qe=function(Ct,Ke){return v.createElement(Ue.Z,(0,G.Z)({},Ct,{ref:Ke,icon:gn}))},Ut=v.forwardRef(Qe),tn=Ut,nn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},He=nn,Bn=function(Ct,Ke){return v.createElement(Ue.Z,(0,G.Z)({},Ct,{ref:Ke,icon:He}))},kn=v.forwardRef(Bn),Kn=kn,Ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},hi=Ti,dn=function(Ct,Ke){return v.createElement(Ue.Z,(0,G.Z)({},Ct,{ref:Ke,icon:hi}))},sn=v.forwardRef(dn),gr=sn,dr=h(64993),qn=h(73819),Rr=h(17313),tr=h(29878),U=h(1950),br=h(83116),fr=h(37613);const Fr=on=>({position:on||"absolute",inset:0}),jr=on=>{const{iconCls:Ct,motionDurationSlow:Ke,paddingXXS:Ht,marginXXS:Rt,prefixCls:jn,colorTextLightSolid:at}=on;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:at,background:new dr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ke}`,[`.${jn}-mask-info`]:Object.assign(Object.assign({},Rr.vS),{padding:`0 ${Ht}px`,[Ct]:{marginInlineEnd:Rt,svg:{verticalAlign:"baseline"}}})}},so=on=>{const{previewCls:Ct,modalMaskBg:Ke,paddingSM:Ht,marginXL:Rt,margin:jn,paddingLG:at,previewOperationColorDisabled:hn,previewOperationHoverColor:yt,motionDurationSlow:Ge,iconCls:L,colorTextLightSolid:Dt}=on,Jt=new dr.C(Ke).setAlpha(.1),gt=Jt.clone().setAlpha(.2);return{[`${Ct}-footer`]:{position:"fixed",bottom:Rt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:on.previewOperationColor},[`${Ct}-progress`]:{marginBottom:jn},[`${Ct}-close`]:{position:"fixed",top:Rt,right:{_skip_check_:!0,value:Rt},display:"flex",color:Dt,backgroundColor:Jt.toRgbString(),borderRadius:"50%",padding:Ht,outline:0,border:0,cursor:"pointer",transition:`all ${Ge}`,"&:hover":{backgroundColor:gt.toRgbString()},[`& > ${L}`]:{fontSize:on.previewOperationSize}},[`${Ct}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${at}px`,backgroundColor:Jt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ht,padding:Ht,cursor:"pointer",transition:`all ${Ge}`,userSelect:"none",[`&:not(${Ct}-operations-operation-disabled):hover > ${L}`]:{color:yt},"&-disabled":{color:hn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${L}`]:{fontSize:on.previewOperationSize}}}}},Ar=on=>{const{modalMaskBg:Ct,iconCls:Ke,previewOperationColorDisabled:Ht,previewCls:Rt,zIndexPopup:jn,motionDurationSlow:at}=on,hn=new dr.C(Ct).setAlpha(.1),yt=hn.clone().setAlpha(.2);return{[`${Rt}-switch-left, ${Rt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:jn+1,display:"flex",alignItems:"center",justifyContent:"center",width:on.imagePreviewSwitchSize,height:on.imagePreviewSwitchSize,marginTop:-on.imagePreviewSwitchSize/2,color:on.previewOperationColor,background:hn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${at}`,userSelect:"none","&:hover":{background:yt.toRgbString()},"&-disabled":{"&, &:hover":{color:Ht,background:"transparent",cursor:"not-allowed",[`> ${Ke}`]:{cursor:"not-allowed"}}},[`> ${Ke}`]:{fontSize:on.previewOperationSize}},[`${Rt}-switch-left`]:{insetInlineStart:on.marginSM},[`${Rt}-switch-right`]:{insetInlineEnd:on.marginSM}}},to=on=>{const{motionEaseOut:Ct,previewCls:Ke,motionDurationSlow:Ht,componentCls:Rt}=on;return[{[`${Rt}-preview-root`]:{[Ke]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ke}-body`]:Object.assign(Object.assign({},Fr()),{overflow:"hidden"}),[`${Ke}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ht} ${Ct} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Fr()),{transition:`transform ${Ht} ${Ct} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ke}-moving`]:{[`${Ke}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Rt}-preview-root`]:{[`${Ke}-wrap`]:{zIndex:on.zIndexPopup}}},{[`${Rt}-preview-operations-wrapper`]:{position:"fixed",zIndex:on.zIndexPopup+1},"&":[so(on),Ar(on)]}]},vr=on=>{const{componentCls:Ct}=on;return{[Ct]:{position:"relative",display:"inline-block",[`${Ct}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Ct}-img-placeholder`]:{backgroundColor:on.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Ct}-mask`]:Object.assign({},jr(on)),[`${Ct}-mask:hover`]:{opacity:1},[`${Ct}-placeholder`]:Object.assign({},Fr())}}},Ji=on=>{const{previewCls:Ct}=on;return{[`${Ct}-root`]:(0,tr._y)(on,"zoom"),"&":(0,U.J$)(on,!0)}};var di=(0,br.Z)("Image",on=>{const Ct=`${on.componentCls}-preview`,Ke=(0,fr.TS)(on,{previewCls:Ct,modalMaskBg:new dr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:on.controlHeightLG});return[vr(Ke),to(Ke),(0,qn.QA)((0,fr.TS)(Ke,{componentCls:Ct})),Ji(Ke)]},on=>({zIndexPopup:on.zIndexPopupBase+80,previewOperationColor:new dr.C(on.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new dr.C(on.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new dr.C(on.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:on.fontSizeIcon*1.5})),ft=function(on,Ct){var Ke={};for(var Ht in on)Object.prototype.hasOwnProperty.call(on,Ht)&&Ct.indexOf(Ht)<0&&(Ke[Ht]=on[Ht]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Ht=Object.getOwnPropertySymbols(on);Rt<Ht.length;Rt++)Ct.indexOf(Ht[Rt])<0&&Object.prototype.propertyIsEnumerable.call(on,Ht[Rt])&&(Ke[Ht[Rt]]=on[Ht[Rt]]);return Ke};const Un={rotateLeft:v.createElement(ct,null),rotateRight:v.createElement(Bt,null),zoomIn:v.createElement(Kn,null),zoomOut:v.createElement(gr,null),close:v.createElement(j.Z,null),left:v.createElement(X.Z,null),right:v.createElement(T.Z,null),flipX:v.createElement(tn,null),flipY:v.createElement(tn,{rotate:90})};var vt=on=>{var{previewPrefixCls:Ct,preview:Ke}=on,Ht=ft(on,["previewPrefixCls","preview"]);const{getPrefixCls:Rt}=v.useContext(P.E_),jn=Rt("image",Ct),at=`${jn}-preview`,hn=Rt(),[yt,Ge]=di(jn),L=v.useMemo(()=>{var Dt;if(Ke===!1)return Ke;const Jt=typeof Ke=="object"?Ke:{},gt=B()(Ge,(Dt=Jt.rootClassName)!==null&&Dt!==void 0?Dt:"");return Object.assign(Object.assign({},Jt),{transitionName:(0,xe.m)(hn,"zoom",Jt.transitionName),maskTransitionName:(0,xe.m)(hn,"fade",Jt.maskTransitionName),rootClassName:gt})},[Ke]);return yt(v.createElement(Mn.PreviewGroup,Object.assign({preview:L,previewPrefixCls:at,icons:Un},Ht)))},Ve=function(on,Ct){var Ke={};for(var Ht in on)Object.prototype.hasOwnProperty.call(on,Ht)&&Ct.indexOf(Ht)<0&&(Ke[Ht]=on[Ht]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Ht=Object.getOwnPropertySymbols(on);Rt<Ht.length;Rt++)Ct.indexOf(Ht[Rt])<0&&Object.prototype.propertyIsEnumerable.call(on,Ht[Rt])&&(Ke[Ht[Rt]]=on[Ht[Rt]]);return Ke};const vn=on=>{const{prefixCls:Ct,preview:Ke,className:Ht,rootClassName:Rt,style:jn}=on,at=Ve(on,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:hn,locale:yt=k.Z,getPopupContainer:Ge,image:L}=v.useContext(P.E_),Dt=hn("image",Ct),Jt=hn(),gt=yt.Image||k.Z.Image,[fn,Cn]=di(Dt),ui=B()(Rt,Cn),Ln=B()(Ht,Cn,L==null?void 0:L.className),rt=v.useMemo(()=>{if(Ke===!1)return Ke;const Qi=typeof Ke=="object"?Ke:{},{getContainer:Kt}=Qi,zi=Ve(Qi,["getContainer"]);return Object.assign(Object.assign({mask:v.createElement("div",{className:`${Dt}-mask-info`},v.createElement(I.Z,null),gt==null?void 0:gt.preview),icons:Un},zi),{getContainer:Kt||Ge,transitionName:(0,xe.m)(Jt,"zoom",Qi.transitionName),maskTransitionName:(0,xe.m)(Jt,"fade",Qi.maskTransitionName)})},[Ke,gt]),Oi=Object.assign(Object.assign({},L==null?void 0:L.style),jn);return fn(v.createElement(Mn,Object.assign({prefixCls:Dt,preview:rt,rootClassName:ui,className:Ln,style:Oi},at)))};vn.PreviewGroup=vt;var Nn=vn},9432:function(Q,C,h){"use strict";h.d(C,{Z:function(){return pe},n:function(){return Re}});var v=h(19248),I=h(92310),O=h.n(I),B=h(93681),G=h(8654),F=h(59301),M=h(19080),he=h(36355),ue=h(1684),te=h(19716),Me=h(32441),we=h(33234),Je=h(59412),Oe=h(9937);function Te(be){return!!(be.prefix||be.suffix||be.allowClear)}var Ae=function(be,me){var ke={};for(var ee in be)Object.prototype.hasOwnProperty.call(be,ee)&&me.indexOf(ee)<0&&(ke[ee]=be[ee]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ee=Object.getOwnPropertySymbols(be);Ne<ee.length;Ne++)me.indexOf(ee[Ne])<0&&Object.prototype.propertyIsEnumerable.call(be,ee[Ne])&&(ke[ee[Ne]]=be[ee[Ne]]);return ke};function Re(be,me){if(!be)return;be.focus(me);const{cursor:ke}=me||{};if(ke){const ee=be.value.length;switch(ke){case"start":be.setSelectionRange(0,0);break;case"end":be.setSelectionRange(ee,ee);break;default:be.setSelectionRange(0,ee);break}}}var pe=(0,F.forwardRef)((be,me)=>{var ke;const{prefixCls:ee,bordered:Ne=!0,status:Ie,size:Pe,disabled:Xe,onBlur:Ye,onFocus:ie,suffix:lt,allowClear:We,addonAfter:Pt,addonBefore:xt,className:Tt,style:Et,styles:wn,rootClassName:qe,onChange:ae,classNames:le}=be,$t=Ae(be,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Vt,direction:St,input:un}=F.useContext(he.E_),Ft=Vt("input",ee),ai=(0,F.useRef)(null),[On,ni]=(0,Oe.ZP)(Ft),{compactSize:Jn,compactItemClassnames:In}=(0,we.ri)(Ft,St),Mn=(0,te.Z)(an=>{var en;return(en=Pe!=null?Pe:Jn)!==null&&en!==void 0?en:an}),xe=F.useContext(ue.Z),P=Xe!=null?Xe:xe,{status:k,hasFeedback:j,feedbackIcon:X}=(0,F.useContext)(Me.aM),T=(0,M.F)(k,Ie),_e=Te(be)||!!j,kt=(0,F.useRef)(_e);(0,F.useEffect)(()=>{var an;_e&&kt.current,kt.current=_e},[_e]);const Ue=(0,Je.Z)(ai,!0),Be=an=>{Ue(),Ye==null||Ye(an)},mt=an=>{Ue(),ie==null||ie(an)},ct=an=>{Ue(),ae==null||ae(an)},tt=(j||lt)&&F.createElement(F.Fragment,null,lt,j&&X);let It;return typeof We=="object"&&(We!=null&&We.clearIcon)?It=We:We&&(It={clearIcon:F.createElement(v.Z,null)}),On(F.createElement(B.default,Object.assign({ref:(0,G.sQ)(me,ai),prefixCls:Ft,autoComplete:un==null?void 0:un.autoComplete},$t,{disabled:P,onBlur:Be,onFocus:mt,style:Object.assign(Object.assign({},un==null?void 0:un.style),Et),styles:Object.assign(Object.assign({},un==null?void 0:un.styles),wn),suffix:tt,allowClear:It,className:O()(Tt,qe,In,un==null?void 0:un.className),onChange:ct,addonAfter:Pt&&F.createElement(we.BR,null,F.createElement(Me.Ux,{override:!0,status:!0},Pt)),addonBefore:xt&&F.createElement(we.BR,null,F.createElement(Me.Ux,{override:!0,status:!0},xt)),classNames:Object.assign(Object.assign(Object.assign({},le),un==null?void 0:un.classNames),{input:O()({[`${Ft}-sm`]:Mn==="small",[`${Ft}-lg`]:Mn==="large",[`${Ft}-rtl`]:St==="rtl",[`${Ft}-borderless`]:!Ne},!_e&&(0,M.Z)(Ft,T),le==null?void 0:le.input,(ke=un==null?void 0:un.classNames)===null||ke===void 0?void 0:ke.input,ni)}),classes:{affixWrapper:O()({[`${Ft}-affix-wrapper-sm`]:Mn==="small",[`${Ft}-affix-wrapper-lg`]:Mn==="large",[`${Ft}-affix-wrapper-rtl`]:St==="rtl",[`${Ft}-affix-wrapper-borderless`]:!Ne},(0,M.Z)(`${Ft}-affix-wrapper`,T,j),ni),wrapper:O()({[`${Ft}-group-rtl`]:St==="rtl"},ni),group:O()({[`${Ft}-group-wrapper-sm`]:Mn==="small",[`${Ft}-group-wrapper-lg`]:Mn==="large",[`${Ft}-group-wrapper-rtl`]:St==="rtl",[`${Ft}-group-wrapper-disabled`]:P},(0,M.Z)(`${Ft}-group-wrapper`,T,j),ni)}})))})},1643:function(Q,C,h){"use strict";var v=h(19248),I=h(92310),O=h.n(I),B=h(9296),G=h(59301),F=h(19080),M=h(36355),he=h(1684),ue=h(19716),te=h(32441),Me=h(9432),we=h(9937),Je=function(Te,Ae){var Re={};for(var de in Te)Object.prototype.hasOwnProperty.call(Te,de)&&Ae.indexOf(de)<0&&(Re[de]=Te[de]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,de=Object.getOwnPropertySymbols(Te);pe<de.length;pe++)Ae.indexOf(de[pe])<0&&Object.prototype.propertyIsEnumerable.call(Te,de[pe])&&(Re[de[pe]]=Te[de[pe]]);return Re};const Oe=(0,G.forwardRef)((Te,Ae)=>{const{prefixCls:Re,bordered:de=!0,size:pe,disabled:be,status:me,allowClear:ke,showCount:ee,classNames:Ne,rootClassName:Ie,className:Pe}=Te,Xe=Je(Te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ye,direction:ie}=G.useContext(M.E_),lt=(0,ue.Z)(pe),We=G.useContext(he.Z),Pt=be!=null?be:We,{status:xt,hasFeedback:Tt,feedbackIcon:Et}=G.useContext(te.aM),wn=(0,F.F)(xt,me),qe=G.useRef(null);G.useImperativeHandle(Ae,()=>{var St;return{resizableTextArea:(St=qe.current)===null||St===void 0?void 0:St.resizableTextArea,focus:un=>{var Ft,ai;(0,Me.n)((ai=(Ft=qe.current)===null||Ft===void 0?void 0:Ft.resizableTextArea)===null||ai===void 0?void 0:ai.textArea,un)},blur:()=>{var un;return(un=qe.current)===null||un===void 0?void 0:un.blur()}}});const ae=Ye("input",Re);let le;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?le=ke:ke&&(le={clearIcon:G.createElement(v.Z,null)});const[$t,Vt]=(0,we.ZP)(ae);return $t(G.createElement(B.default,Object.assign({},Xe,{disabled:Pt,allowClear:le,className:O()(Pe,Ie),classes:{affixWrapper:O()(`${ae}-textarea-affix-wrapper`,{[`${ae}-affix-wrapper-rtl`]:ie==="rtl",[`${ae}-affix-wrapper-borderless`]:!de,[`${ae}-affix-wrapper-sm`]:lt==="small",[`${ae}-affix-wrapper-lg`]:lt==="large",[`${ae}-textarea-show-count`]:ee},(0,F.Z)(`${ae}-affix-wrapper`,wn),Vt)},classNames:Object.assign(Object.assign({},Ne),{textarea:O()({[`${ae}-borderless`]:!de,[`${ae}-sm`]:lt==="small",[`${ae}-lg`]:lt==="large"},(0,F.Z)(ae,wn),Vt,Ne==null?void 0:Ne.textarea)}),prefixCls:ae,suffix:Tt&&G.createElement("span",{className:`${ae}-textarea-suffix`},Et),showCount:ee,ref:qe})))});C.Z=Oe},59412:function(Q,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(59301);function I(O,B){const G=(0,v.useRef)([]),F=()=>{G.current.push(setTimeout(()=>{var M,he,ue,te;!((M=O.current)===null||M===void 0)&&M.input&&((he=O.current)===null||he===void 0?void 0:he.input.getAttribute("type"))==="password"&&(!((ue=O.current)===null||ue===void 0)&&ue.input.hasAttribute("value"))&&((te=O.current)===null||te===void 0||te.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(B&&F(),()=>G.current.forEach(M=>{M&&clearTimeout(M)})),[]),F}},92832:function(Q,C,h){"use strict";h.d(C,{default:function(){return lt}});var v=h(92310),I=h.n(v),O=h(59301),B=h(36355),G=h(32441),F=h(9937),he=We=>{const{getPrefixCls:Pt,direction:xt}=(0,O.useContext)(B.E_),{prefixCls:Tt,className:Et}=We,wn=Pt("input-group",Tt),qe=Pt("input"),[ae,le]=(0,F.ZP)(qe),$t=I()(wn,{[`${wn}-lg`]:We.size==="large",[`${wn}-sm`]:We.size==="small",[`${wn}-compact`]:We.compact,[`${wn}-rtl`]:xt==="rtl"},le,Et),Vt=(0,O.useContext)(G.aM),St=(0,O.useMemo)(()=>Object.assign(Object.assign({},Vt),{isFormItemInput:!1}),[Vt]);return ae(O.createElement("span",{className:$t,style:We.style,onMouseEnter:We.onMouseEnter,onMouseLeave:We.onMouseLeave,onFocus:We.onFocus,onBlur:We.onBlur},O.createElement(G.aM.Provider,{value:St},We.children)))},ue=h(9432),te=h(73331),Me=h(15277),we=h(2738),Je=h(8654),Oe=h(59412),Te=function(We,Pt){var xt={};for(var Tt in We)Object.prototype.hasOwnProperty.call(We,Tt)&&Pt.indexOf(Tt)<0&&(xt[Tt]=We[Tt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Tt=Object.getOwnPropertySymbols(We);Et<Tt.length;Et++)Pt.indexOf(Tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(We,Tt[Et])&&(xt[Tt[Et]]=We[Tt[Et]]);return xt};const Ae=We=>We?O.createElement(Me.Z,null):O.createElement(te.Z,null),Re={click:"onClick",hover:"onMouseOver"};var pe=O.forwardRef((We,Pt)=>{const{visibilityToggle:xt=!0}=We,Tt=typeof xt=="object"&&xt.visible!==void 0,[Et,wn]=(0,O.useState)(()=>Tt?xt.visible:!1),qe=(0,O.useRef)(null);O.useEffect(()=>{Tt&&wn(xt.visible)},[Tt,xt]);const ae=(0,Oe.Z)(qe),le=()=>{const{disabled:P}=We;P||(Et&&ae(),wn(k=>{var j;const X=!k;return typeof xt=="object"&&((j=xt.onVisibleChange)===null||j===void 0||j.call(xt,X)),X}))},$t=P=>{const{action:k="click",iconRender:j=Ae}=We,X=Re[k]||"",T=j(Et),_e={[X]:le,className:`${P}-icon`,key:"passwordIcon",onMouseDown:kt=>{kt.preventDefault()},onMouseUp:kt=>{kt.preventDefault()}};return O.cloneElement(O.isValidElement(T)?T:O.createElement("span",null,T),_e)},{className:Vt,prefixCls:St,inputPrefixCls:un,size:Ft}=We,ai=Te(We,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:On}=O.useContext(B.E_),ni=On("input",un),Jn=On("input-password",St),In=xt&&$t(Jn),Mn=I()(Jn,Vt,{[`${Jn}-${Ft}`]:!!Ft}),xe=Object.assign(Object.assign({},(0,we.Z)(ai,["suffix","iconRender","visibilityToggle"])),{type:Et?"text":"password",className:Mn,prefixCls:ni,suffix:In});return Ft&&(xe.size=Ft),O.createElement(ue.Z,Object.assign({ref:(0,Je.sQ)(Pt,qe)},xe))}),be=h(47472),me=h(92343),ke=h(3113),ee=h(19716),Ne=h(33234),Ie=function(We,Pt){var xt={};for(var Tt in We)Object.prototype.hasOwnProperty.call(We,Tt)&&Pt.indexOf(Tt)<0&&(xt[Tt]=We[Tt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Tt=Object.getOwnPropertySymbols(We);Et<Tt.length;Et++)Pt.indexOf(Tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(We,Tt[Et])&&(xt[Tt[Et]]=We[Tt[Et]]);return xt},Xe=O.forwardRef((We,Pt)=>{const{prefixCls:xt,inputPrefixCls:Tt,className:Et,size:wn,suffix:qe,enterButton:ae=!1,addonAfter:le,loading:$t,disabled:Vt,onSearch:St,onChange:un,onCompositionStart:Ft,onCompositionEnd:ai}=We,On=Ie(We,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ni,direction:Jn}=O.useContext(B.E_),In=O.useRef(!1),Mn=ni("input-search",xt),xe=ni("input",Tt),{compactSize:P}=(0,Ne.ri)(Mn,Jn),k=(0,ee.Z)(Bt=>{var cn;return(cn=wn!=null?wn:P)!==null&&cn!==void 0?cn:Bt}),j=O.useRef(null),X=Bt=>{Bt&&Bt.target&&Bt.type==="click"&&St&&St(Bt.target.value,Bt,{source:"clear"}),un&&un(Bt)},T=Bt=>{var cn;document.activeElement===((cn=j.current)===null||cn===void 0?void 0:cn.input)&&Bt.preventDefault()},_e=Bt=>{var cn,gn;St&&St((gn=(cn=j.current)===null||cn===void 0?void 0:cn.input)===null||gn===void 0?void 0:gn.value,Bt,{source:"input"})},kt=Bt=>{In.current||$t||_e(Bt)},Ue=typeof ae=="boolean"?O.createElement(be.Z,null):null,Be=`${Mn}-button`;let mt;const ct=ae||{},tt=ct.type&&ct.type.__ANT_BUTTON===!0;tt||ct.type==="button"?mt=(0,me.Tm)(ct,Object.assign({onMouseDown:T,onClick:Bt=>{var cn,gn;(gn=(cn=ct==null?void 0:ct.props)===null||cn===void 0?void 0:cn.onClick)===null||gn===void 0||gn.call(cn,Bt),_e(Bt)},key:"enterButton"},tt?{className:Be,size:k}:{})):mt=O.createElement(ke.ZP,{className:Be,type:ae?"primary":void 0,size:k,disabled:Vt,key:"enterButton",onMouseDown:T,onClick:_e,loading:$t,icon:Ue},ae),le&&(mt=[mt,(0,me.Tm)(le,{key:"addonAfter"})]);const It=I()(Mn,{[`${Mn}-rtl`]:Jn==="rtl",[`${Mn}-${k}`]:!!k,[`${Mn}-with-button`]:!!ae},Et),an=Bt=>{In.current=!0,Ft==null||Ft(Bt)},en=Bt=>{In.current=!1,ai==null||ai(Bt)};return O.createElement(ue.Z,Object.assign({ref:(0,Je.sQ)(j,Pt),onPressEnter:kt},On,{size:k,onCompositionStart:an,onCompositionEnd:en,prefixCls:xe,addonAfter:mt,suffix:qe,onChange:X,className:It,disabled:Vt}))}),Ye=h(1643);const ie=ue.Z;ie.Group=he,ie.Search=Xe,ie.TextArea=Ye.Z,ie.Password=pe;var lt=ie},45818:function(Q,C,h){"use strict";h.d(C,{D:function(){return be},Z:function(){return ee}});var v=h(92413),I=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,G=h(7657),F=function(Ie,Pe){return I.createElement(G.Z,(0,v.Z)({},Ie,{ref:Pe,icon:B}))},M=I.forwardRef(F),he=M,ue=h(33853),te=h(38819),Me=h(92310),we=h.n(Me),Je=h(2738),Te=Ne=>!isNaN(parseFloat(Ne))&&isFinite(Ne),Ae=h(36355),Re=h(84966),de=function(Ne,Ie){var Pe={};for(var Xe in Ne)Object.prototype.hasOwnProperty.call(Ne,Xe)&&Ie.indexOf(Xe)<0&&(Pe[Xe]=Ne[Xe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Xe=Object.getOwnPropertySymbols(Ne);Ye<Xe.length;Ye++)Ie.indexOf(Xe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Xe[Ye])&&(Pe[Xe[Ye]]=Ne[Xe[Ye]]);return Pe};const pe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},be=I.createContext({}),me=(()=>{let Ne=0;return function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ne+=1,`${Ie}${Ne}`}})();var ee=I.forwardRef((Ne,Ie)=>{const{prefixCls:Pe,className:Xe,trigger:Ye,children:ie,defaultCollapsed:lt=!1,theme:We="dark",style:Pt={},collapsible:xt=!1,reverseArrow:Tt=!1,width:Et=200,collapsedWidth:wn=80,zeroWidthTriggerStyle:qe,breakpoint:ae,onCollapse:le,onBreakpoint:$t}=Ne,Vt=de(Ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:St}=(0,I.useContext)(Re.Gs),[un,Ft]=(0,I.useState)("collapsed"in Ne?Ne.collapsed:lt),[ai,On]=(0,I.useState)(!1);(0,I.useEffect)(()=>{"collapsed"in Ne&&Ft(Ne.collapsed)},[Ne.collapsed]);const ni=(k,j)=>{"collapsed"in Ne||Ft(k),le==null||le(k,j)},Jn=(0,I.useRef)();Jn.current=k=>{On(k.matches),$t==null||$t(k.matches),un!==k.matches&&ni(k.matches,"responsive")},(0,I.useEffect)(()=>{function k(X){return Jn.current(X)}let j;if(typeof window!="undefined"){const{matchMedia:X}=window;if(X&&ae&&ae in pe){j=X(`(max-width: ${pe[ae]})`);try{j.addEventListener("change",k)}catch(T){j.addListener(k)}k(j)}}return()=>{try{j==null||j.removeEventListener("change",k)}catch(X){j==null||j.removeListener(k)}}},[ae]),(0,I.useEffect)(()=>{const k=me("ant-sider-");return St.addSider(k),()=>St.removeSider(k)},[]);const In=()=>{ni(!un,"clickTrigger")},{getPrefixCls:Mn}=(0,I.useContext)(Ae.E_),xe=()=>{const k=Mn("layout-sider",Pe),j=(0,Je.Z)(Vt,["collapsed"]),X=un?wn:Et,T=Te(X)?`${X}px`:String(X),_e=parseFloat(String(wn||0))===0?I.createElement("span",{onClick:In,className:we()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${Tt?"right":"left"}`),style:qe},Ye||I.createElement(he,null)):null,Be={expanded:Tt?I.createElement(te.Z,null):I.createElement(ue.Z,null),collapsed:Tt?I.createElement(ue.Z,null):I.createElement(te.Z,null)}[un?"collapsed":"expanded"],mt=Ye!==null?_e||I.createElement("div",{className:`${k}-trigger`,onClick:In,style:{width:T}},Ye||Be):null,ct=Object.assign(Object.assign({},Pt),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),tt=we()(k,`${k}-${We}`,{[`${k}-collapsed`]:!!un,[`${k}-has-trigger`]:xt&&Ye!==null&&!_e,[`${k}-below`]:!!ai,[`${k}-zero-width`]:parseFloat(T)===0},Xe);return I.createElement("aside",Object.assign({className:tt},j,{style:ct,ref:Ie}),I.createElement("div",{className:`${k}-children`},ie),xt||ai&&_e?mt:null)},P=I.useMemo(()=>({siderCollapsed:un}),[un]);return I.createElement(be.Provider,{value:P},xe())})},84966:function(Q,C,h){"use strict";h.d(C,{VY:function(){return be},$_:function(){return pe},h4:function(){return de},Gs:function(){return Je},ZP:function(){return me}});var v=h(26407),I=h(92310),O=h.n(I),B=h(2738),G=h(59301),F=h(36355),M=h(83116),ue=ke=>{const{componentCls:ee,bodyBg:Ne,lightSiderBg:Ie,lightTriggerBg:Pe,lightTriggerColor:Xe}=ke;return{[`${ee}-sider-light`]:{background:Ie,[`${ee}-sider-trigger`]:{color:Xe,background:Pe},[`${ee}-sider-zero-width-trigger`]:{color:Xe,background:Pe,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const te=ke=>{const{antCls:ee,componentCls:Ne,colorText:Ie,triggerColor:Pe,footerBg:Xe,triggerBg:Ye,headerHeight:ie,headerPadding:lt,headerColor:We,footerPadding:Pt,triggerHeight:xt,zeroTriggerHeight:Tt,zeroTriggerWidth:Et,motionDurationMid:wn,motionDurationSlow:qe,fontSize:ae,borderRadius:le,bodyBg:$t,headerBg:Vt,siderBg:St}=ke;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:$t,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:St,transition:`all ${wn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ee}-menu${ee}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:xt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:xt,color:Pe,lineHeight:`${xt}px`,textAlign:"center",background:Ye,cursor:"pointer",transition:`all ${wn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ie,insetInlineEnd:-Et,zIndex:1,width:Et,height:Tt,color:Pe,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:St,borderStartStartRadius:0,borderStartEndRadius:le,borderEndEndRadius:le,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Et,borderStartStartRadius:le,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:le}}}}},ue(ke)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:ie,padding:lt,color:We,lineHeight:`${ie}px`,background:Vt,[`${ee}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:Pt,color:Ie,fontSize:ae,background:Xe},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var Me=(0,M.Z)("Layout",ke=>[te(ke)],ke=>{const{colorBgLayout:ee,controlHeight:Ne,controlHeightLG:Ie,colorText:Pe,controlHeightSM:Xe,marginXXS:Ye,colorTextLightSolid:ie,colorBgContainer:lt}=ke,We=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:ee,colorBgTrigger:"#002140",bodyBg:ee,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${We}px`,headerColor:Pe,footerPadding:`${Xe}px ${We}px`,footerBg:ee,siderBg:"#001529",triggerHeight:Ie+Ye*2,triggerBg:"#002140",triggerColor:ie,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:Pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),we=function(ke,ee){var Ne={};for(var Ie in ke)Object.prototype.hasOwnProperty.call(ke,Ie)&&ee.indexOf(Ie)<0&&(Ne[Ie]=ke[Ie]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ie=Object.getOwnPropertySymbols(ke);Pe<Ie.length;Pe++)ee.indexOf(Ie[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ie[Pe])&&(Ne[Ie[Pe]]=ke[Ie[Pe]]);return Ne};const Je=G.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Oe(ke){let{suffixCls:ee,tagName:Ne,displayName:Ie}=ke;return Pe=>G.forwardRef((Ye,ie)=>G.createElement(Pe,Object.assign({ref:ie,suffixCls:ee,tagName:Ne},Ye)))}const Te=G.forwardRef((ke,ee)=>{const{prefixCls:Ne,suffixCls:Ie,className:Pe,tagName:Xe}=ke,Ye=we(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ie}=G.useContext(F.E_),lt=ie("layout",Ne),[We,Pt]=Me(lt),xt=Ie?`${lt}-${Ie}`:lt;return We(G.createElement(Xe,Object.assign({className:O()(Ne||xt,Pe,Pt),ref:ee},Ye)))}),Ae=G.forwardRef((ke,ee)=>{const{direction:Ne}=G.useContext(F.E_),[Ie,Pe]=G.useState([]),{prefixCls:Xe,className:Ye,rootClassName:ie,children:lt,hasSider:We,tagName:Pt,style:xt}=ke,Tt=we(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Et=(0,B.Z)(Tt,["suffixCls"]),{getPrefixCls:wn,layout:qe}=G.useContext(F.E_),ae=wn("layout",Xe),[le,$t]=Me(ae),Vt=O()(ae,{[`${ae}-has-sider`]:typeof We=="boolean"?We:Ie.length>0,[`${ae}-rtl`]:Ne==="rtl"},qe==null?void 0:qe.className,Ye,ie,$t),St=G.useMemo(()=>({siderHook:{addSider:un=>{Pe(Ft=>[].concat((0,v.Z)(Ft),[un]))},removeSider:un=>{Pe(Ft=>Ft.filter(ai=>ai!==un))}}}),[]);return le(G.createElement(Je.Provider,{value:St},G.createElement(Pt,Object.assign({ref:ee,className:Vt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),xt)},Et),lt)))}),Re=Oe({tagName:"div",displayName:"Layout"})(Ae),de=Oe({suffixCls:"header",tagName:"header",displayName:"Header"})(Te),pe=Oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Te),be=Oe({suffixCls:"content",tagName:"main",displayName:"Content"})(Te);var me=Re},40875:function(Q,C,h){"use strict";h.d(C,{J:function(){return F}});var v=h(59301),I=h(33234),O=h(70425),B=function(M,he){var ue={};for(var te in M)Object.prototype.hasOwnProperty.call(M,te)&&he.indexOf(te)<0&&(ue[te]=M[te]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,te=Object.getOwnPropertySymbols(M);Me<te.length;Me++)he.indexOf(te[Me])<0&&Object.prototype.propertyIsEnumerable.call(M,te[Me])&&(ue[te[Me]]=M[te[Me]]);return ue};const G=v.createContext(null),F=v.forwardRef((M,he)=>{const{children:ue}=M,te=B(M,["children"]),Me=v.useContext(G),we=v.useMemo(()=>Object.assign(Object.assign({},Me),te),[Me,te.prefixCls,te.mode,te.selectable]);return v.createElement(G.Provider,{value:we},v.createElement(I.BR,null,(0,O.supportNodeRef)(ue)?v.cloneElement(ue,{ref:he}):ue))});C.Z=G},20834:function(Q,C,h){"use strict";h.d(C,{default:function(){return P}});var v=h(15285),I=h(59301),O=h(45818),B=h(92310),G=h.n(B),F=h(36355),M=function(k,j){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(X[T[_e]]=k[T[_e]]);return X},ue=k=>{const{prefixCls:j,className:X,dashed:T}=k,_e=M(k,["prefixCls","className","dashed"]),{getPrefixCls:kt}=I.useContext(F.E_),Ue=kt("menu",j),Be=G()({[`${Ue}-item-divider-dashed`]:!!T},X);return I.createElement(v.iz,Object.assign({className:Be},_e))},te=h(11592),Me=h(2738),we=h(6848),Je=h(92343),Te=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Re=k=>{var j;const{className:X,children:T,icon:_e,title:kt,danger:Ue}=k,{prefixCls:Be,firstLevel:mt,direction:ct,disableMenuItemTitleTooltip:tt,inlineCollapsed:It}=I.useContext(Te),an=Ut=>{const tn=I.createElement("span",{className:`${Be}-title-content`},T);return(!_e||(0,Je.l$)(T)&&T.type==="span")&&T&&Ut&&mt&&typeof T=="string"?I.createElement("div",{className:`${Be}-inline-collapsed-noicon`},T.charAt(0)):tn},{siderCollapsed:en}=I.useContext(O.D);let Bt=kt;typeof kt=="undefined"?Bt=mt?T:"":kt===!1&&(Bt="");const cn={title:Bt};!en&&!It&&(cn.title=null,cn.open=!1);const gn=(0,te.Z)(T).length;let Qe=I.createElement(v.ck,Object.assign({},(0,Me.Z)(k,["title","icon","danger"]),{className:G()({[`${Be}-item-danger`]:Ue,[`${Be}-item-only-child`]:(_e?gn+1:gn)===1},X),title:typeof kt=="string"?kt:void 0}),(0,Je.Tm)(_e,{className:G()((0,Je.l$)(_e)?(j=_e.props)===null||j===void 0?void 0:j.className:"",`${Be}-item-icon`)}),an(It));return tt||(Qe=I.createElement(we.Z,Object.assign({},cn,{placement:ct==="rtl"?"left":"right",overlayClassName:`${Be}-inline-collapsed-tooltip`}),Qe)),Qe},pe=k=>{var j;const{popupClassName:X,icon:T,title:_e,theme:kt}=k,Ue=I.useContext(Te),{prefixCls:Be,inlineCollapsed:mt,theme:ct}=Ue,tt=(0,v.Xl)();let It;if(!T)It=mt&&!tt.length&&_e&&typeof _e=="string"?I.createElement("div",{className:`${Be}-inline-collapsed-noicon`},_e.charAt(0)):I.createElement("span",{className:`${Be}-title-content`},_e);else{const en=(0,Je.l$)(_e)&&_e.type==="span";It=I.createElement(I.Fragment,null,(0,Je.Tm)(T,{className:G()((0,Je.l$)(T)?(j=T.props)===null||j===void 0?void 0:j.className:"",`${Be}-item-icon`)}),en?_e:I.createElement("span",{className:`${Be}-title-content`},_e))}const an=I.useMemo(()=>Object.assign(Object.assign({},Ue),{firstLevel:!1}),[Ue]);return I.createElement(Te.Provider,{value:an},I.createElement(v.Wd,Object.assign({},(0,Me.Z)(k,["icon"]),{title:It,popupClassName:G()(Be,X,`${Be}-${kt||ct}`)})))},be=h(18785),me=h(70425),ke=h(62892),ee=h(40875),Ne=function(k,j){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(X[T[_e]]=k[T[_e]]);return X};function Ie(k){return(k||[]).map((j,X)=>{if(j&&typeof j=="object"){const T=j,{label:_e,children:kt,key:Ue,type:Be}=T,mt=Ne(T,["label","children","key","type"]),ct=Ue!=null?Ue:`tmp-${X}`;return kt||Be==="group"?Be==="group"?I.createElement(v.BW,Object.assign({key:ct},mt,{title:_e}),Ie(kt)):I.createElement(pe,Object.assign({key:ct},mt,{title:_e}),Ie(kt)):Be==="divider"?I.createElement(ue,Object.assign({key:ct},mt)):I.createElement(Re,Object.assign({key:ct},mt),_e)}return null}).filter(j=>j)}function Pe(k){return I.useMemo(()=>k&&Ie(k),[k])}var Xe=h(64993),Ye=h(17313),ie=h(8378),lt=h(13826),We=h(29878),Pt=h(83116),xt=h(37613),Et=k=>{const{componentCls:j,motionDurationSlow:X,horizontalLineHeight:T,colorSplit:_e,lineWidth:kt,lineType:Ue,itemPaddingInline:Be}=k;return{[`${j}-horizontal`]:{lineHeight:T,border:0,borderBottom:`${kt}px ${Ue} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${j}-item, ${j}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Be},[`> ${j}-item:hover,
|
|
|
> ${j}-item-active,
|
|
|
> ${j}-submenu ${j}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${j}-item, ${j}-submenu-title`]:{transition:[`border-color ${X}`,`background ${X}`].join(",")},[`${j}-submenu-arrow`]:{display:"none"}}}},qe=k=>{let{componentCls:j,menuArrowOffset:X}=k;return{[`${j}-rtl`]:{direction:"rtl"},[`${j}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${j}-rtl${j}-vertical,
|
|
|
${j}-submenu-rtl ${j}-vertical`]:{[`${j}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${X})`},"&::after":{transform:`rotate(45deg) translateY(${X})`}}}}};const ae=k=>Object.assign({},(0,Ye.oN)(k));var $t=(k,j)=>{const{componentCls:X,itemColor:T,itemSelectedColor:_e,groupTitleColor:kt,itemBg:Ue,subMenuItemBg:Be,itemSelectedBg:mt,activeBarHeight:ct,activeBarWidth:tt,activeBarBorderWidth:It,motionDurationSlow:an,motionEaseInOut:en,motionEaseOut:Bt,itemPaddingInline:cn,motionDurationMid:gn,itemHoverColor:Qe,lineType:Ut,colorSplit:tn,itemDisabledColor:nn,dangerItemColor:He,dangerItemHoverColor:Bn,dangerItemSelectedColor:kn,dangerItemActiveBg:Kn,dangerItemSelectedBg:Ti,itemHoverBg:hi,itemActiveBg:dn,menuSubMenuBg:sn,horizontalItemSelectedColor:gr,horizontalItemSelectedBg:dr,horizontalItemBorderRadius:qn,horizontalItemHoverBg:Rr,popupBg:tr}=k;return{[`${X}-${j}, ${X}-${j} > ${X}`]:{color:T,background:Ue,[`&${X}-root:focus-visible`]:Object.assign({},ae(k)),[`${X}-item-group-title`]:{color:kt},[`${X}-submenu-selected`]:{[`> ${X}-submenu-title`]:{color:_e}},[`${X}-item-disabled, ${X}-submenu-disabled`]:{color:`${nn} !important`},[`${X}-item:not(${X}-item-selected):not(${X}-submenu-selected)`]:{[`&:hover, > ${X}-submenu-title:hover`]:{color:Qe}},[`&:not(${X}-horizontal)`]:{[`${X}-item:not(${X}-item-selected)`]:{"&:hover":{backgroundColor:hi},"&:active":{backgroundColor:dn}},[`${X}-submenu-title`]:{"&:hover":{backgroundColor:hi},"&:active":{backgroundColor:dn}}},[`${X}-item-danger`]:{color:He,[`&${X}-item:hover`]:{[`&:not(${X}-item-selected):not(${X}-submenu-selected)`]:{color:Bn}},[`&${X}-item:active`]:{background:Kn}},[`${X}-item a`]:{"&, &:hover":{color:"inherit"}},[`${X}-item-selected`]:{color:_e,[`&${X}-item-danger`]:{color:kn},"a, a:hover":{color:"inherit"}},[`& ${X}-item-selected`]:{backgroundColor:mt,[`&${X}-item-danger`]:{backgroundColor:Ti}},[`${X}-item, ${X}-submenu-title`]:{[`&:not(${X}-item-disabled):focus-visible`]:Object.assign({},ae(k))},[`&${X}-submenu > ${X}`]:{backgroundColor:sn},[`&${X}-popup > ${X}`]:{backgroundColor:tr},[`&${X}-horizontal`]:Object.assign(Object.assign({},j==="dark"?{borderBottom:0}:{}),{[`> ${X}-item, > ${X}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:qn,"&::after":{position:"absolute",insetInline:cn,bottom:0,borderBottom:`${ct}px solid transparent`,transition:`border-color ${an} ${en}`,content:'""'},"&:hover, &-active, &-open":{background:Rr,"&::after":{borderBottomWidth:ct,borderBottomColor:gr}},"&-selected":{color:gr,backgroundColor:dr,"&:hover":{backgroundColor:dr},"&::after":{borderBottomWidth:ct,borderBottomColor:gr}}}}),[`&${X}-root`]:{[`&${X}-inline, &${X}-vertical`]:{borderInlineEnd:`${It}px ${Ut} ${tn}`}},[`&${X}-inline`]:{[`${X}-sub${X}-inline`]:{background:Be},[`${X}-item, ${X}-submenu-title`]:It&&tt?{width:`calc(100% + ${It}px)`}:{},[`${X}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${tt}px solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${gn} ${Bt}`,`opacity ${gn} ${Bt}`].join(","),content:'""'},[`&${X}-item-danger`]:{"&::after":{borderInlineEndColor:kn}}},[`${X}-selected, ${X}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${gn} ${en}`,`opacity ${gn} ${en}`].join(",")}}}}}};const Vt=k=>{const{componentCls:j,itemHeight:X,itemMarginInline:T,padding:_e,menuArrowSize:kt,marginXS:Ue,itemMarginBlock:Be}=k,mt=_e+kt+Ue;return{[`${j}-item`]:{position:"relative",overflow:"hidden"},[`${j}-item, ${j}-submenu-title`]:{height:X,lineHeight:`${X}px`,paddingInline:_e,overflow:"hidden",textOverflow:"ellipsis",marginInline:T,marginBlock:Be,width:`calc(100% - ${T*2}px)`},[`> ${j}-item,
|
|
|
> ${j}-submenu > ${j}-submenu-title`]:{height:X,lineHeight:`${X}px`},[`${j}-item-group-list ${j}-submenu-title,
|
|
|
${j}-submenu-title`]:{paddingInlineEnd:mt}}};var un=k=>{const{componentCls:j,iconCls:X,itemHeight:T,colorTextLightSolid:_e,dropdownWidth:kt,controlHeightLG:Ue,motionDurationMid:Be,motionEaseOut:mt,paddingXL:ct,itemMarginInline:tt,fontSizeLG:It,motionDurationSlow:an,paddingXS:en,boxShadowSecondary:Bt,collapsedWidth:cn,collapsedIconSize:gn}=k,Qe={height:T,lineHeight:`${T}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[j]:{"&-inline, &-vertical":Object.assign({[`&${j}-root`]:{boxShadow:"none"}},Vt(k))},[`${j}-submenu-popup`]:{[`${j}-vertical`]:Object.assign(Object.assign({},Vt(k)),{boxShadow:Bt})}},{[`${j}-submenu-popup ${j}-vertical${j}-sub`]:{minWidth:kt,maxHeight:`calc(100vh - ${Ue*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${j}-inline`]:{width:"100%",[`&${j}-root`]:{[`${j}-item, ${j}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${Be} ${mt}`].join(","),[`> ${j}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${j}-sub${j}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${j}-submenu > ${j}-submenu-title`]:Qe,[`& ${j}-item-group-title`]:{paddingInlineStart:ct}},[`${j}-item`]:Qe}},{[`${j}-inline-collapsed`]:{width:cn,[`&${j}-root`]:{[`${j}-item, ${j}-submenu ${j}-submenu-title`]:{[`> ${j}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${j}-item,
|
|
|
> ${j}-item-group > ${j}-item-group-list > ${j}-item,
|
|
|
> ${j}-item-group > ${j}-item-group-list > ${j}-submenu > ${j}-submenu-title,
|
|
|
> ${j}-submenu > ${j}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${tt}px)`,textOverflow:"clip",[`
|
|
|
${j}-submenu-arrow,
|
|
|
${j}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${j}-item-icon, ${X}`]:{margin:0,fontSize:gn,lineHeight:`${T}px`,"+ span":{display:"inline-block",opacity:0}}},[`${j}-item-icon, ${X}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${j}-item-icon, ${X}`]:{display:"none"},"a, a:hover":{color:_e}},[`${j}-item-group-title`]:Object.assign(Object.assign({},Ye.vS),{paddingInline:en})}}]};const Ft=k=>{const{componentCls:j,motionDurationSlow:X,motionDurationMid:T,motionEaseInOut:_e,motionEaseOut:kt,iconCls:Ue,iconSize:Be,iconMarginInlineEnd:mt}=k;return{[`${j}-item, ${j}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${X}`,`background ${X}`,`padding ${X} ${_e}`].join(","),[`${j}-item-icon, ${Ue}`]:{minWidth:Be,fontSize:Be,transition:[`font-size ${T} ${kt}`,`margin ${X} ${_e}`,`color ${X}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${X} ${_e}`,`margin ${X}`,`color ${X}`].join(",")}},[`${j}-item-icon`]:Object.assign({},(0,Ye.Ro)()),[`&${j}-item-only-child`]:{[`> ${Ue}, > ${j}-item-icon`]:{marginInlineEnd:0}}},[`${j}-item-disabled, ${j}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${j}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ai=k=>{const{componentCls:j,motionDurationSlow:X,motionEaseInOut:T,borderRadius:_e,menuArrowSize:kt,menuArrowOffset:Ue}=k;return{[`${j}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:kt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${X} ${T}, opacity ${X}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:kt*.6,height:kt*.15,backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${X} ${T}`,`transform ${X} ${T}`,`top ${X} ${T}`,`color ${X} ${T}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ue})`},"&::after":{transform:`rotate(-45deg) translateY(${Ue})`}}}}},On=k=>{const{antCls:j,componentCls:X,fontSize:T,motionDurationSlow:_e,motionDurationMid:kt,motionEaseInOut:Ue,paddingXS:Be,padding:mt,colorSplit:ct,lineWidth:tt,zIndexPopup:It,borderRadiusLG:an,subMenuItemBorderRadius:en,menuArrowSize:Bt,menuArrowOffset:cn,lineType:gn,menuPanelMaskInset:Qe,groupTitleLineHeight:Ut,groupTitleFontSize:tn}=k;return[{"":{[`${X}`]:Object.assign(Object.assign({},(0,Ye.dF)()),{"&-hidden":{display:"none"}})},[`${X}-submenu-hidden`]:{display:"none"}},{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(k)),(0,Ye.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:T,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${X}-item`]:{flex:"none"}},[`${X}-item, ${X}-submenu, ${X}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${X}-item-group-title`]:{padding:`${Be}px ${mt}px`,fontSize:tn,lineHeight:Ut,transition:`all ${_e}`},[`&-horizontal ${X}-submenu`]:{transition:[`border-color ${_e} ${Ue}`,`background ${_e} ${Ue}`].join(",")},[`${X}-submenu, ${X}-submenu-inline`]:{transition:[`border-color ${_e} ${Ue}`,`background ${_e} ${Ue}`,`padding ${kt} ${Ue}`].join(",")},[`${X}-submenu ${X}-sub`]:{cursor:"initial",transition:[`background ${_e} ${Ue}`,`padding ${_e} ${Ue}`].join(",")},[`${X}-title-content`]:{transition:`color ${_e}`},[`${X}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${X}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ct,borderStyle:gn,borderWidth:0,borderTopWidth:tt,marginBlock:tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ft(k)),{[`${X}-item-group`]:{[`${X}-item-group-list`]:{margin:0,padding:0,[`${X}-item, ${X}-submenu-title`]:{paddingInline:`${T*2}px ${mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:an,boxShadow:"none",transformOrigin:"0 0",[`&${X}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Qe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Qe},"\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},[`> ${X}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Ft(k)),ai(k)),{[`${X}-item, ${X}-submenu > ${X}-submenu-title`]:{borderRadius:en},[`${X}-submenu-title::after`]:{transition:`transform ${_e} ${Ue}`}})}}),ai(k)),{[`&-inline-collapsed ${X}-submenu-arrow,
|
|
|
&-inline ${X}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${cn})`},"&::after":{transform:`rotate(45deg) translateX(-${cn})`}},[`${X}-submenu-open${X}-submenu-inline > ${X}-submenu-title > ${X}-submenu-arrow`]:{transform:`translateY(-${Bt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${cn})`},"&::before":{transform:`rotate(45deg) translateX(${cn})`}}})},{[`${j}-layout-header`]:{[X]:{lineHeight:"inherit"}}}]};var ni=(k,j)=>(0,Pt.Z)("Menu",T=>{if(j===!1)return[];const{colorBgElevated:_e,colorPrimary:kt,colorTextLightSolid:Ue,controlHeightLG:Be,fontSize:mt,darkItemColor:ct,darkDangerItemColor:tt,darkItemBg:It,darkSubMenuItemBg:an,darkItemSelectedColor:en,darkItemSelectedBg:Bt,darkDangerItemSelectedBg:cn,darkItemHoverBg:gn,darkGroupTitleColor:Qe,darkItemHoverColor:Ut,darkItemDisabledColor:tn,darkDangerItemHoverColor:nn,darkDangerItemSelectedColor:He,darkDangerItemActiveBg:Bn}=T,kn=mt/7*5,Kn=(0,xt.TS)(T,{menuArrowSize:kn,menuHorizontalHeight:Be*1.15,menuArrowOffset:`${kn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_e}),Ti=(0,xt.TS)(Kn,{itemColor:ct,itemHoverColor:Ut,groupTitleColor:Qe,itemSelectedColor:en,itemBg:It,popupBg:It,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:Bt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:gn,itemDisabledColor:tn,dangerItemColor:tt,dangerItemHoverColor:nn,dangerItemSelectedColor:He,dangerItemActiveBg:Bn,dangerItemSelectedBg:cn,menuSubMenuBg:an,horizontalItemSelectedColor:Ue,horizontalItemSelectedBg:kt});return[On(Kn),Et(Kn),un(Kn),$t(Kn,"light"),$t(Ti,"dark"),qe(Kn),(0,ie.Z)(Kn),(0,lt.oN)(Kn,"slide-up"),(0,lt.oN)(Kn,"slide-down"),(0,We._y)(Kn,"zoom-big")]},T=>{const{colorPrimary:_e,colorError:kt,colorTextDisabled:Ue,colorErrorBg:Be,colorText:mt,colorTextDescription:ct,colorBgContainer:tt,colorFillAlter:It,colorFillContent:an,lineWidth:en,lineWidthBold:Bt,controlItemBgActive:cn,colorBgTextHover:gn,controlHeightLG:Qe,lineHeight:Ut,colorBgElevated:tn,marginXXS:nn,padding:He,fontSize:Bn,controlHeightSM:kn,fontSizeLG:Kn,colorTextLightSolid:Ti,colorErrorHover:hi}=T,dn=new Xe.C(Ti).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:T.zIndexPopupBase+50,radiusItem:T.borderRadiusLG,itemBorderRadius:T.borderRadiusLG,radiusSubMenuItem:T.borderRadiusSM,subMenuItemBorderRadius:T.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:ct,groupTitleColor:ct,colorItemTextSelected:_e,itemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:tt,itemBg:tt,colorItemBgHover:gn,itemHoverBg:gn,colorItemBgActive:an,itemActiveBg:cn,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:cn,itemSelectedBg:cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Bt,activeBarHeight:Bt,colorActiveBarBorderSize:en,activeBarBorderWidth:en,colorItemTextDisabled:Ue,itemDisabledColor:Ue,colorDangerItemText:kt,dangerItemColor:kt,colorDangerItemTextHover:kt,dangerItemHoverColor:kt,colorDangerItemTextSelected:kt,dangerItemSelectedColor:kt,colorDangerItemBgActive:Be,dangerItemActiveBg:Be,colorDangerItemBgSelected:Be,dangerItemSelectedBg:Be,itemMarginInline:T.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Qe,groupTitleLineHeight:Ut,collapsedWidth:Qe*2,popupBg:tn,itemMarginBlock:nn,itemPaddingInline:He,horizontalLineHeight:`${Qe*1.15}px`,iconSize:Bn,iconMarginInlineEnd:kn-Bn,collapsedIconSize:Kn,groupTitleFontSize:Bn,darkItemDisabledColor:new Xe.C(Ti).setAlpha(.25).toRgbString(),darkItemColor:dn,darkDangerItemColor:kt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ti,darkItemSelectedBg:_e,darkDangerItemSelectedBg:kt,darkItemHoverBg:"transparent",darkGroupTitleColor:dn,darkItemHoverColor:Ti,darkDangerItemHoverColor:hi,darkDangerItemSelectedColor:Ti,darkDangerItemActiveBg:kt}},{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),Jn=function(k,j){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(X[T[_e]]=k[T[_e]]);return X},Mn=(0,I.forwardRef)((k,j)=>{var X,T;const _e=I.useContext(ee.Z),kt=_e||{},{getPrefixCls:Ue,getPopupContainer:Be,direction:mt,menu:ct}=I.useContext(F.E_),tt=Ue(),{prefixCls:It,className:an,style:en,theme:Bt="light",expandIcon:cn,_internalDisableMenuItemTitleTooltip:gn,inlineCollapsed:Qe,siderCollapsed:Ut,items:tn,children:nn,rootClassName:He,mode:Bn,selectable:kn,onClick:Kn,overflowedIndicatorPopupClassName:Ti}=k,hi=Jn(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dn=(0,Me.Z)(hi,["collapsedWidth"]),sn=Pe(tn)||nn;(X=kt.validator)===null||X===void 0||X.call(kt,{mode:Bn});const gr=(0,me.useEvent)(function(){var Ar;Kn==null||Kn.apply(void 0,arguments),(Ar=kt.onClick)===null||Ar===void 0||Ar.call(kt)}),dr=kt.mode||Bn,qn=kn!=null?kn:kt.selectable,Rr=I.useMemo(()=>Ut!==void 0?Ut:Qe,[Qe,Ut]),tr={horizontal:{motionName:`${tt}-slide-up`},inline:(0,ke.Z)(tt),other:{motionName:`${tt}-zoom-big`}},U=Ue("menu",It||kt.prefixCls),[br,fr]=ni(U,!_e),Fr=G()(`${U}-${Bt}`,ct==null?void 0:ct.className,an);let jr;if(typeof cn=="function")jr=cn;else if(cn===null||cn===!1)jr=null;else if(kt.expandIcon===null||kt.expandIcon===!1)jr=null;else{const Ar=cn!=null?cn:kt.expandIcon;jr=(0,Je.Tm)(Ar,{className:G()(`${U}-submenu-expand-icon`,(0,Je.l$)(Ar)?(T=Ar.props)===null||T===void 0?void 0:T.className:"")})}const so=I.useMemo(()=>({prefixCls:U,inlineCollapsed:Rr||!1,direction:mt,firstLevel:!0,theme:Bt,mode:dr,disableMenuItemTitleTooltip:gn}),[U,Rr,mt,gn,Bt]);return br(I.createElement(ee.Z.Provider,{value:null},I.createElement(Te.Provider,{value:so},I.createElement(v.ZP,Object.assign({getPopupContainer:Be,overflowedIndicator:I.createElement(be.Z,null),overflowedIndicatorPopupClassName:G()(U,`${U}-${Bt}`,Ti),mode:dr,selectable:qn,onClick:gr},dn,{inlineCollapsed:Rr,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),en),className:Fr,prefixCls:U,direction:mt,defaultMotions:tr,expandIcon:jr,ref:j,rootClassName:G()(He,fr)}),sn))))});const xe=(0,I.forwardRef)((k,j)=>{const X=(0,I.useRef)(null),T=I.useContext(O.D);return(0,I.useImperativeHandle)(j,()=>({menu:X.current,focus:_e=>{var kt;(kt=X.current)===null||kt===void 0||kt.focus(_e)}})),I.createElement(Mn,Object.assign({ref:X},k,T))});xe.Item=Re,xe.SubMenu=pe,xe.Divider=ue,xe.ItemGroup=v.BW;var P=xe},58421:function(Q,C,h){"use strict";h.d(C,{Z:function(){return kt}});var v=h(92413),I=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,G=h(7657),F=function(Be,mt){return I.createElement(G.Z,(0,v.Z)({},Be,{ref:mt,icon:B}))},M=I.forwardRef(F),he=M,ue=h(49198),te=h(33853),Me=h(38819),we=h(92310),Je=h.n(we),Oe=h(400),Te=h(33708),Ae=h(6909),Re=h(4771),de=h(9427),pe=h(25440),be=h(26112),me={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=me,ee=h(91735),Ne=function(Ue){(0,de.Z)(mt,Ue);var Be=(0,pe.Z)(mt);function mt(){var ct;(0,Ae.Z)(this,mt);for(var tt=arguments.length,It=new Array(tt),an=0;an<tt;an++)It[an]=arguments[an];return ct=Be.call.apply(Be,[this].concat(It)),ct.state={goInputText:""},ct.getValidValue=function(){var en=ct.state.goInputText;return!en||Number.isNaN(en)?void 0:Number(en)},ct.buildOptionText=function(en){return"".concat(en," ").concat(ct.props.locale.items_per_page)},ct.changeSize=function(en){ct.props.changeSize(Number(en))},ct.handleChange=function(en){ct.setState({goInputText:en.target.value})},ct.handleBlur=function(en){var Bt=ct.props,cn=Bt.goButton,gn=Bt.quickGo,Qe=Bt.rootPrefixCls,Ut=ct.state.goInputText;cn||Ut===""||(ct.setState({goInputText:""}),!(en.relatedTarget&&(en.relatedTarget.className.indexOf("".concat(Qe,"-item-link"))>=0||en.relatedTarget.className.indexOf("".concat(Qe,"-item"))>=0))&&gn(ct.getValidValue()))},ct.go=function(en){var Bt=ct.state.goInputText;Bt!==""&&(en.keyCode===ke.ENTER||en.type==="click")&&(ct.setState({goInputText:""}),ct.props.quickGo(ct.getValidValue()))},ct}return(0,Re.Z)(mt,[{key:"getPageSizeOptions",value:function(){var tt=this.props,It=tt.pageSize,an=tt.pageSizeOptions;return an.some(function(en){return en.toString()===It.toString()})?an:an.concat([It.toString()]).sort(function(en,Bt){var cn=Number.isNaN(Number(en))?0:Number(en),gn=Number.isNaN(Number(Bt))?0:Number(Bt);return cn-gn})}},{key:"render",value:function(){var tt=this,It=this.props,an=It.pageSize,en=It.locale,Bt=It.rootPrefixCls,cn=It.changeSize,gn=It.quickGo,Qe=It.goButton,Ut=It.selectComponentClass,tn=It.buildOptionText,nn=It.selectPrefixCls,He=It.disabled,Bn=this.state.goInputText,kn="".concat(Bt,"-options"),Kn=Ut,Ti=null,hi=null,dn=null;if(!cn&&!gn)return null;var sn=this.getPageSizeOptions();if(cn&&Kn){var gr=sn.map(function(dr,qn){return I.createElement(Kn.Option,{key:qn,value:dr.toString()},(tn||tt.buildOptionText)(dr))});Ti=I.createElement(Kn,{disabled:He,prefixCls:nn,showSearch:!1,className:"".concat(kn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(an||sn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qn){return qn.parentNode},"aria-label":en.page_size,defaultOpen:!1},gr)}return gn&&(Qe&&(dn=typeof Qe=="boolean"?I.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:He,className:"".concat(kn,"-quick-jumper-button")},en.jump_to_confirm):I.createElement("span",{onClick:this.go,onKeyUp:this.go},Qe)),hi=I.createElement("div",{className:"".concat(kn,"-quick-jumper")},en.jump_to,I.createElement("input",{disabled:He,type:"text",value:Bn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":en.page}),en.page,dn)),I.createElement("li",{className:"".concat(kn)},Ti,hi)}}]),mt}(I.Component);Ne.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ie=Ne,Pe=function(Be){var mt,ct=Be.rootPrefixCls,tt=Be.page,It=Be.active,an=Be.className,en=Be.showTitle,Bt=Be.onClick,cn=Be.onKeyPress,gn=Be.itemRender,Qe="".concat(ct,"-item"),Ut=Je()(Qe,"".concat(Qe,"-").concat(tt),(mt={},(0,Oe.Z)(mt,"".concat(Qe,"-active"),It),(0,Oe.Z)(mt,"".concat(Qe,"-disabled"),!tt),(0,Oe.Z)(mt,Be.className,an),mt)),tn=function(){Bt(tt)},nn=function(kn){cn(kn,Bt,tt)},He=gn(tt,"page",I.createElement("a",{rel:"nofollow"},tt));return He?I.createElement("li",{title:en?tt.toString():null,className:Ut,onClick:tn,onKeyPress:nn,tabIndex:0},He):null},Xe=Pe;function Ye(){}function ie(Ue){var Be=Number(Ue);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}var lt=function(Be,mt,ct){return ct};function We(Ue,Be,mt){var ct=typeof Ue=="undefined"?Be.pageSize:Ue;return Math.floor((mt.total-1)/ct)+1}var Pt=function(Ue){(0,de.Z)(mt,Ue);var Be=(0,pe.Z)(mt);function mt(ct){var tt;(0,Ae.Z)(this,mt),tt=Be.call(this,ct),tt.paginationNode=I.createRef(),tt.getJumpPrevPage=function(){return Math.max(1,tt.state.current-(tt.props.showLessItems?3:5))},tt.getJumpNextPage=function(){return Math.min(We(void 0,tt.state,tt.props),tt.state.current+(tt.props.showLessItems?3:5))},tt.getItemIcon=function(cn,gn){var Qe=tt.props.prefixCls,Ut=cn||I.createElement("button",{type:"button","aria-label":gn,className:"".concat(Qe,"-item-link")});return typeof cn=="function"&&(Ut=I.createElement(cn,(0,Te.Z)({},tt.props))),Ut},tt.isValid=function(cn){var gn=tt.props.total;return ie(cn)&&cn!==tt.state.current&&ie(gn)&&gn>0},tt.shouldDisplayQuickJumper=function(){var cn=tt.props,gn=cn.showQuickJumper,Qe=cn.total,Ut=tt.state.pageSize;return Qe<=Ut?!1:gn},tt.handleKeyDown=function(cn){(cn.keyCode===ke.ARROW_UP||cn.keyCode===ke.ARROW_DOWN)&&cn.preventDefault()},tt.handleKeyUp=function(cn){var gn=tt.getValidValue(cn),Qe=tt.state.currentInputValue;gn!==Qe&&tt.setState({currentInputValue:gn}),cn.keyCode===ke.ENTER?tt.handleChange(gn):cn.keyCode===ke.ARROW_UP?tt.handleChange(gn-1):cn.keyCode===ke.ARROW_DOWN&&tt.handleChange(gn+1)},tt.handleBlur=function(cn){var gn=tt.getValidValue(cn);tt.handleChange(gn)},tt.changePageSize=function(cn){var gn=tt.state.current,Qe=We(cn,tt.state,tt.props);gn=gn>Qe?Qe:gn,Qe===0&&(gn=tt.state.current),typeof cn=="number"&&("pageSize"in tt.props||tt.setState({pageSize:cn}),"current"in tt.props||tt.setState({current:gn,currentInputValue:gn})),tt.props.onShowSizeChange(gn,cn),"onChange"in tt.props&&tt.props.onChange&&tt.props.onChange(gn,cn)},tt.handleChange=function(cn){var gn=tt.props,Qe=gn.disabled,Ut=gn.onChange,tn=tt.state,nn=tn.pageSize,He=tn.current,Bn=tn.currentInputValue;if(tt.isValid(cn)&&!Qe){var kn=We(void 0,tt.state,tt.props),Kn=cn;return cn>kn?Kn=kn:cn<1&&(Kn=1),"current"in tt.props||tt.setState({current:Kn}),Kn!==Bn&&tt.setState({currentInputValue:Kn}),Ut(Kn,nn),Kn}return He},tt.prev=function(){tt.hasPrev()&&tt.handleChange(tt.state.current-1)},tt.next=function(){tt.hasNext()&&tt.handleChange(tt.state.current+1)},tt.jumpPrev=function(){tt.handleChange(tt.getJumpPrevPage())},tt.jumpNext=function(){tt.handleChange(tt.getJumpNextPage())},tt.hasPrev=function(){return tt.state.current>1},tt.hasNext=function(){return tt.state.current<We(void 0,tt.state,tt.props)},tt.runIfEnter=function(cn,gn){if(cn.key==="Enter"||cn.charCode===13){for(var Qe=arguments.length,Ut=new Array(Qe>2?Qe-2:0),tn=2;tn<Qe;tn++)Ut[tn-2]=arguments[tn];gn.apply(void 0,Ut)}},tt.runIfEnterPrev=function(cn){tt.runIfEnter(cn,tt.prev)},tt.runIfEnterNext=function(cn){tt.runIfEnter(cn,tt.next)},tt.runIfEnterJumpPrev=function(cn){tt.runIfEnter(cn,tt.jumpPrev)},tt.runIfEnterJumpNext=function(cn){tt.runIfEnter(cn,tt.jumpNext)},tt.handleGoTO=function(cn){(cn.keyCode===ke.ENTER||cn.type==="click")&&tt.handleChange(tt.state.currentInputValue)},tt.renderPrev=function(cn){var gn=tt.props,Qe=gn.prevIcon,Ut=gn.itemRender,tn=Ut(cn,"prev",tt.getItemIcon(Qe,"prev page")),nn=!tt.hasPrev();return(0,I.isValidElement)(tn)?(0,I.cloneElement)(tn,{disabled:nn}):tn},tt.renderNext=function(cn){var gn=tt.props,Qe=gn.nextIcon,Ut=gn.itemRender,tn=Ut(cn,"next",tt.getItemIcon(Qe,"next page")),nn=!tt.hasNext();return(0,I.isValidElement)(tn)?(0,I.cloneElement)(tn,{disabled:nn}):tn};var It=ct.onChange!==Ye,an="current"in ct;an&&!It&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var en=ct.defaultCurrent;"current"in ct&&(en=ct.current);var Bt=ct.defaultPageSize;return"pageSize"in ct&&(Bt=ct.pageSize),en=Math.min(en,We(Bt,void 0,ct)),tt.state={current:en,currentInputValue:en,pageSize:Bt},tt}return(0,Re.Z)(mt,[{key:"componentDidUpdate",value:function(tt,It){var an=this.props.prefixCls;if(It.current!==this.state.current&&this.paginationNode.current){var en=this.paginationNode.current.querySelector(".".concat(an,"-item-").concat(It.current));if(en&&document.activeElement===en){var Bt;en==null||(Bt=en.blur)===null||Bt===void 0||Bt.call(en)}}}},{key:"getValidValue",value:function(tt){var It=tt.target.value,an=We(void 0,this.state,this.props),en=this.state.currentInputValue,Bt;return It===""?Bt=It:Number.isNaN(Number(It))?Bt=en:It>=an?Bt=an:Bt=Number(It),Bt}},{key:"getShowSizeChanger",value:function(){var tt=this.props,It=tt.showSizeChanger,an=tt.total,en=tt.totalBoundaryShowSizeChanger;return typeof It!="undefined"?It:an>en}},{key:"render",value:function(){var tt=this.props,It=tt.prefixCls,an=tt.className,en=tt.style,Bt=tt.disabled,cn=tt.hideOnSinglePage,gn=tt.total,Qe=tt.locale,Ut=tt.showQuickJumper,tn=tt.showLessItems,nn=tt.showTitle,He=tt.showTotal,Bn=tt.simple,kn=tt.itemRender,Kn=tt.showPrevNextJumpers,Ti=tt.jumpPrevIcon,hi=tt.jumpNextIcon,dn=tt.selectComponentClass,sn=tt.selectPrefixCls,gr=tt.pageSizeOptions,dr=this.state,qn=dr.current,Rr=dr.pageSize,tr=dr.currentInputValue;if(cn===!0&&gn<=Rr)return null;var U=We(void 0,this.state,this.props),br=[],fr=null,Fr=null,jr=null,so=null,Ar=null,to=Ut&&Ut.goButton,vr=tn?1:2,Ji=qn-1>0?qn-1:0,di=qn+1<U?qn+1:U,ft=(0,be.Z)(this.props,{aria:!0,data:!0}),Un=He&&I.createElement("li",{className:"".concat(It,"-total-text")},He(gn,[gn===0?0:(qn-1)*Rr+1,qn*Rr>gn?gn:qn*Rr]));if(Bn){to&&(typeof to=="boolean"?Ar=I.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Qe.jump_to_confirm):Ar=I.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},to),Ar=I.createElement("li",{title:nn?"".concat(Qe.jump_to).concat(qn,"/").concat(U):null,className:"".concat(It,"-simple-pager")},Ar));var Wn=this.renderPrev(Ji);return I.createElement("ul",(0,v.Z)({className:Je()(It,"".concat(It,"-simple"),(0,Oe.Z)({},"".concat(It,"-disabled"),Bt),an),style:en,ref:this.paginationNode},ft),Un,Wn?I.createElement("li",{title:nn?Qe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Je()("".concat(It,"-prev"),(0,Oe.Z)({},"".concat(It,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Wn):null,I.createElement("li",{title:nn?"".concat(qn,"/").concat(U):null,className:"".concat(It,"-simple-pager")},I.createElement("input",{type:"text",value:tr,disabled:Bt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),I.createElement("span",{className:"".concat(It,"-slash")},"/"),U),I.createElement("li",{title:nn?Qe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Je()("".concat(It,"-next"),(0,Oe.Z)({},"".concat(It,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(di)),Ar)}if(U<=3+vr*2){var vt={locale:Qe,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:nn,itemRender:kn};U||br.push(I.createElement(Xe,(0,v.Z)({},vt,{key:"noPager",page:1,className:"".concat(It,"-item-disabled")})));for(var Ve=1;Ve<=U;Ve+=1){var vn=qn===Ve;br.push(I.createElement(Xe,(0,v.Z)({},vt,{key:Ve,page:Ve,active:vn})))}}else{var Nn=tn?Qe.prev_3:Qe.prev_5,on=tn?Qe.next_3:Qe.next_5,Ct=kn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ti,"prev page")),Ke=kn(this.getJumpNextPage(),"jump-next",this.getItemIcon(hi,"next page"));Kn&&(fr=Ct?I.createElement("li",{title:nn?Nn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Je()("".concat(It,"-jump-prev"),(0,Oe.Z)({},"".concat(It,"-jump-prev-custom-icon"),!!Ti))},Ct):null,Fr=Ke?I.createElement("li",{title:nn?on:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Je()("".concat(It,"-jump-next"),(0,Oe.Z)({},"".concat(It,"-jump-next-custom-icon"),!!hi))},Ke):null),so=I.createElement(Xe,{locale:Qe,last:!0,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:U,page:U,active:!1,showTitle:nn,itemRender:kn}),jr=I.createElement(Xe,{locale:Qe,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:nn,itemRender:kn});var Ht=Math.max(1,qn-vr),Rt=Math.min(qn+vr,U);qn-1<=vr&&(Rt=1+vr*2),U-qn<=vr&&(Ht=U-vr*2);for(var jn=Ht;jn<=Rt;jn+=1){var at=qn===jn;br.push(I.createElement(Xe,{locale:Qe,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jn,page:jn,active:at,showTitle:nn,itemRender:kn}))}qn-1>=vr*2&&qn!==3&&(br[0]=(0,I.cloneElement)(br[0],{className:"".concat(It,"-item-after-jump-prev")}),br.unshift(fr)),U-qn>=vr*2&&qn!==U-2&&(br[br.length-1]=(0,I.cloneElement)(br[br.length-1],{className:"".concat(It,"-item-before-jump-next")}),br.push(Fr)),Ht!==1&&br.unshift(jr),Rt!==U&&br.push(so)}var hn=!this.hasPrev()||!U,yt=!this.hasNext()||!U,Ge=this.renderPrev(Ji),L=this.renderNext(di);return I.createElement("ul",(0,v.Z)({className:Je()(It,an,(0,Oe.Z)({},"".concat(It,"-disabled"),Bt)),style:en,ref:this.paginationNode},ft),Un,Ge?I.createElement("li",{title:nn?Qe.prev_page:null,onClick:this.prev,tabIndex:hn?null:0,onKeyPress:this.runIfEnterPrev,className:Je()("".concat(It,"-prev"),(0,Oe.Z)({},"".concat(It,"-disabled"),hn)),"aria-disabled":hn},Ge):null,br,L?I.createElement("li",{title:nn?Qe.next_page:null,onClick:this.next,tabIndex:yt?null:0,onKeyPress:this.runIfEnterNext,className:Je()("".concat(It,"-next"),(0,Oe.Z)({},"".concat(It,"-disabled"),yt)),"aria-disabled":yt},L):null,I.createElement(Ie,{disabled:Bt,locale:Qe,rootPrefixCls:It,selectComponentClass:dn,selectPrefixCls:sn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qn,pageSize:Rr,pageSizeOptions:gr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:to}))}}],[{key:"getDerivedStateFromProps",value:function(tt,It){var an={};if("current"in tt&&(an.current=tt.current,tt.current!==It.current&&(an.currentInputValue=an.current)),"pageSize"in tt&&tt.pageSize!==It.pageSize){var en=It.current,Bt=We(tt.pageSize,It,tt);en=en>Bt?Bt:en,"current"in tt||(an.current=en,an.currentInputValue=en),an.pageSize=tt.pageSize}return an}}]),mt}(I.Component);Pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ye,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ye,locale:ee.Z,style:{},itemRender:lt,totalBoundaryShowSizeChanger:50};var xt=Pt,Tt=h(22075),Et=h(36355),wn=h(19716),qe=h(8628),ae=h(9763),le=h(57809);const $t=Ue=>I.createElement(le.default,Object.assign({},Ue,{showSearch:!0,size:"small"})),Vt=Ue=>I.createElement(le.default,Object.assign({},Ue,{showSearch:!0,size:"middle"}));$t.Option=le.default.Option,Vt.Option=le.default.Option;var St=h(9937),un=h(17313),Ft=h(83116),ai=h(37613);const On=Ue=>{const{componentCls:Be}=Ue;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ue.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ue.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ue.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ue.colorBorder,backgroundColor:Ue.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ue.itemActiveBgDisabled},a:{color:Ue.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:Ue.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:Ue.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ni=Ue=>{const{componentCls:Be}=Ue;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:Ue.itemSizeSM,lineHeight:`${Ue.itemSizeSM}px`},[`&${Be}-mini ${Be}-item`]:{minWidth:Ue.itemSizeSM,height:Ue.itemSizeSM,margin:0,lineHeight:`${Ue.itemSizeSM-2}px`},[`&${Be}-mini:not(${Be}-disabled) ${Be}-item:not(${Be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ue.colorBgTextHover},"&:active":{backgroundColor:Ue.colorBgTextActive}},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:Ue.itemSizeSM,height:Ue.itemSizeSM,margin:0,lineHeight:`${Ue.itemSizeSM}px`},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:Ue.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ue.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Be}-mini ${Be}-prev ${Be}-item-link,
|
|
|
&${Be}-mini ${Be}-next ${Be}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ue.itemSizeSM,lineHeight:`${Ue.itemSizeSM}px`}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:Ue.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ue.itemSizeSM}px`},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:Ue.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ue.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ue.itemSizeSM,lineHeight:`${Ue.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,St.x0)(Ue)),{width:Ue.paginationMiniQuickJumperInputWidth,height:Ue.controlHeightSM})}}}},Jn=Ue=>{const{componentCls:Be}=Ue;return{[`
|
|
|
&${Be}-simple ${Be}-prev,
|
|
|
&${Be}-simple ${Be}-next
|
|
|
`]:{height:Ue.itemSizeSM,lineHeight:`${Ue.itemSizeSM}px`,verticalAlign:"top",[`${Be}-item-link`]:{height:Ue.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ue.colorBgTextHover},"&:active":{backgroundColor:Ue.colorBgTextActive},"&::after":{height:Ue.itemSizeSM,lineHeight:`${Ue.itemSizeSM}px`}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:Ue.itemSizeSM,marginInlineEnd:Ue.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ue.marginXS,padding:`0 ${Ue.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ue.itemInputBg,border:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`,borderRadius:Ue.borderRadius,outline:"none",transition:`border-color ${Ue.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ue.colorPrimary},"&:focus":{borderColor:Ue.colorPrimaryHover,boxShadow:`${Ue.inputOutlineOffset}px 0 ${Ue.controlOutlineWidth}px ${Ue.controlOutline}`},"&[disabled]":{color:Ue.colorTextDisabled,backgroundColor:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,cursor:"not-allowed"}}}}},In=Ue=>{const{componentCls:Be}=Ue;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:Ue.colorPrimary,fontSize:Ue.fontSizeSM,opacity:0,transition:`all ${Ue.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ue.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ue.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ue.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ue.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{marginInlineEnd:Ue.marginXS},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-next,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ue.itemSize,height:Ue.itemSize,color:Ue.colorText,fontFamily:Ue.fontFamily,lineHeight:`${Ue.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ue.borderRadius,cursor:"pointer",transition:`all ${Ue.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ue.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ue.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ue.lineWidth}px ${Ue.lineType} transparent`,borderRadius:Ue.borderRadius,outline:"none",transition:`all ${Ue.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:Ue.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ue.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:Ue.paginationSlashMarginInlineEnd,marginInlineStart:Ue.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:Ue.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ue.controlHeight,marginInlineStart:Ue.marginXS,lineHeight:`${Ue.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,St.ik)(Ue)),{width:Ue.controlHeightLG*1.25,height:Ue.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ue.marginXS,marginInlineEnd:Ue.marginXS})}}}},Mn=Ue=>{const{componentCls:Be}=Ue;return{[`${Be}-item`]:{display:"inline-block",minWidth:Ue.itemSize,height:Ue.itemSize,marginInlineEnd:Ue.marginXS,fontFamily:Ue.fontFamily,lineHeight:`${Ue.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ue.lineWidth}px ${Ue.lineType} transparent`,borderRadius:Ue.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ue.paginationItemPaddingInline}px`,color:Ue.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${Ue.motionDurationMid}`,backgroundColor:Ue.colorBgTextHover},"&:active":{backgroundColor:Ue.colorBgTextActive}},"&-active":{fontWeight:Ue.fontWeightStrong,backgroundColor:Ue.itemActiveBg,borderColor:Ue.colorPrimary,a:{color:Ue.colorPrimary},"&:hover":{borderColor:Ue.colorPrimaryHover},"&:hover a":{color:Ue.colorPrimaryHover}}}}},xe=Ue=>{const{componentCls:Be}=Ue;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,un.Wf)(Ue)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:Ue.itemSize,marginInlineEnd:Ue.marginXS,lineHeight:`${Ue.itemSize-2}px`,verticalAlign:"middle"}}),Mn(Ue)),In(Ue)),Jn(Ue)),ni(Ue)),On(Ue)),{[`@media only screen and (max-width: ${Ue.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ue.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${Ue.componentCls}-rtl`]:{direction:"rtl"}}},P=Ue=>{const{componentCls:Be}=Ue;return{[`${Be}${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:Ue.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:Ue.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,a:{color:Ue.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:Ue.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,color:Ue.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder}}},[`${Be}:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:Ue.colorPrimaryHover,backgroundColor:Ue.itemBg},[`${Be}-item-link`]:{backgroundColor:Ue.itemLinkBg,borderColor:Ue.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:Ue.colorPrimary,backgroundColor:Ue.itemBg,color:Ue.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:Ue.colorBorder,color:Ue.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:Ue.itemBg,border:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:Ue.colorPrimary,backgroundColor:Ue.itemBg,a:{color:Ue.colorPrimary}},"&-active":{borderColor:Ue.colorPrimary}}}}},k=Ue=>{const{componentCls:Be}=Ue;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,un.Qy)(Ue)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,un.oN)(Ue))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,un.oN)(Ue))}}}};var j=(0,Ft.Z)("Pagination",Ue=>{const Be=(0,ai.TS)(Ue,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ue.marginXXS/2,paginationMiniQuickJumperInputWidth:Ue.controlHeightLG*1.1,paginationItemPaddingInline:Ue.marginXXS*1.5,paginationEllipsisLetterSpacing:Ue.marginXXS/2,paginationSlashMarginInlineStart:Ue.marginXXS,paginationSlashMarginInlineEnd:Ue.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,St.e5)(Ue),(0,St.TM)(Ue));return[xe(Be),k(Be),Ue.wireframe&&P(Be)]},Ue=>({itemBg:Ue.colorBgContainer,itemSize:Ue.controlHeight,itemSizeSM:Ue.controlHeightSM,itemActiveBg:Ue.colorBgContainer,itemLinkBg:Ue.colorBgContainer,itemActiveColorDisabled:Ue.colorTextDisabled,itemActiveBgDisabled:Ue.controlItemBgActiveDisabled,itemInputBg:Ue.colorBgContainer,miniOptionsSizeChangerTop:0})),X=function(Ue,Be){var mt={};for(var ct in Ue)Object.prototype.hasOwnProperty.call(Ue,ct)&&Be.indexOf(ct)<0&&(mt[ct]=Ue[ct]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ct=Object.getOwnPropertySymbols(Ue);tt<ct.length;tt++)Be.indexOf(ct[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,ct[tt])&&(mt[ct[tt]]=Ue[ct[tt]]);return mt},_e=Ue=>{const{prefixCls:Be,selectPrefixCls:mt,className:ct,rootClassName:tt,style:It,size:an,locale:en,selectComponentClass:Bt,responsive:cn,showSizeChanger:gn}=Ue,Qe=X(Ue,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ut}=(0,qe.Z)(cn),{getPrefixCls:tn,direction:nn,pagination:He={}}=I.useContext(Et.E_),Bn=tn("pagination",Be),[kn,Kn]=j(Bn),Ti=gn!=null?gn:He.showSizeChanger,hi=I.useMemo(()=>{const U=I.createElement("span",{className:`${Bn}-item-ellipsis`},"\u2022\u2022\u2022"),br=I.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},nn==="rtl"?I.createElement(Me.Z,null):I.createElement(te.Z,null)),fr=I.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},nn==="rtl"?I.createElement(te.Z,null):I.createElement(Me.Z,null)),Fr=I.createElement("a",{className:`${Bn}-item-link`},I.createElement("div",{className:`${Bn}-item-container`},nn==="rtl"?I.createElement(ue.Z,{className:`${Bn}-item-link-icon`}):I.createElement(he,{className:`${Bn}-item-link-icon`}),U)),jr=I.createElement("a",{className:`${Bn}-item-link`},I.createElement("div",{className:`${Bn}-item-container`},nn==="rtl"?I.createElement(he,{className:`${Bn}-item-link-icon`}):I.createElement(ue.Z,{className:`${Bn}-item-link-icon`}),U));return{prevIcon:br,nextIcon:fr,jumpPrevIcon:Fr,jumpNextIcon:jr}},[nn,Bn]),[dn]=(0,ae.Z)("Pagination",Tt.Z),sn=Object.assign(Object.assign({},dn),en),gr=(0,wn.Z)(an),dr=gr==="small"||!!(Ut&&!gr&&cn),qn=tn("select",mt),Rr=Je()({[`${Bn}-mini`]:dr,[`${Bn}-rtl`]:nn==="rtl"},He==null?void 0:He.className,ct,tt,Kn),tr=Object.assign(Object.assign({},He==null?void 0:He.style),It);return kn(I.createElement(xt,Object.assign({},hi,Qe,{style:tr,prefixCls:Bn,selectPrefixCls:qn,className:Rr,selectComponentClass:Bt||(dr?$t:Vt),locale:sn,showSizeChanger:Ti})))},kt=_e},14478:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Xe}});var v=h(96512),I=h(92310),O=h.n(I),B=h(10228),G=h(18929),F=h(2738),M=h(59301),he=h(92343),ue=h(36355),te=h(60324),Me=h(92806),we=h(77578),Je=h(3113),Oe=h(67797),Te=h(9763),Ae=h(31724),Re=h(39722),de=h(83116);const pe=Ye=>{const{componentCls:ie,iconCls:lt,antCls:We,zIndexPopup:Pt,colorText:xt,colorWarning:Tt,marginXXS:Et,marginXS:wn,fontSize:qe,fontWeightStrong:ae,colorTextHeading:le}=Ye;return{[ie]:{zIndex:Pt,[`&${We}-popover`]:{fontSize:qe},[`${ie}-message`]:{marginBottom:wn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ie}-message-icon ${lt}`]:{color:Tt,fontSize:qe,lineHeight:1,marginInlineEnd:wn},[`${ie}-title`]:{fontWeight:ae,color:le,"&:only-child":{fontWeight:"normal"}},[`${ie}-description`]:{marginTop:Et,color:xt}},[`${ie}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:wn}}}}};var be=(0,de.Z)("Popconfirm",Ye=>pe(Ye),Ye=>{const{zIndexPopupBase:ie}=Ye;return{zIndexPopup:ie+60}},{resetStyle:!1}),me=function(Ye,ie){var lt={};for(var We in Ye)Object.prototype.hasOwnProperty.call(Ye,We)&&ie.indexOf(We)<0&&(lt[We]=Ye[We]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,We=Object.getOwnPropertySymbols(Ye);Pt<We.length;Pt++)ie.indexOf(We[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,We[Pt])&&(lt[We[Pt]]=Ye[We[Pt]]);return lt};const ke=Ye=>{const{prefixCls:ie,okButtonProps:lt,cancelButtonProps:We,title:Pt,description:xt,cancelText:Tt,okText:Et,okType:wn="primary",icon:qe=M.createElement(v.Z,null),showCancel:ae=!0,close:le,onConfirm:$t,onCancel:Vt,onPopupClick:St}=Ye,{getPrefixCls:un}=M.useContext(ue.E_),[Ft]=(0,Te.Z)("Popconfirm",Ae.Z.Popconfirm),ai=(0,we.Z)(Pt),On=(0,we.Z)(xt);return M.createElement("div",{className:`${ie}-inner-content`,onClick:St},M.createElement("div",{className:`${ie}-message`},qe&&M.createElement("span",{className:`${ie}-message-icon`},qe),M.createElement("div",{className:`${ie}-message-text`},ai&&M.createElement("div",{className:O()(`${ie}-title`)},ai),On&&M.createElement("div",{className:`${ie}-description`},On))),M.createElement("div",{className:`${ie}-buttons`},ae&&M.createElement(Je.ZP,Object.assign({onClick:Vt,size:"small"},We),Tt!=null?Tt:Ft==null?void 0:Ft.cancelText),M.createElement(Me.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Oe.n)(wn)),lt),actionFn:$t,close:le,prefixCls:un("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Et!=null?Et:Ft==null?void 0:Ft.okText)))};var Ne=Ye=>{const{prefixCls:ie,placement:lt,className:We,style:Pt}=Ye,xt=me(Ye,["prefixCls","placement","className","style"]),{getPrefixCls:Tt}=M.useContext(ue.E_),Et=Tt("popconfirm",ie),[wn]=be(Et);return wn(M.createElement(Re.ZP,{placement:lt,className:O()(Et,We),style:Pt,content:M.createElement(ke,Object.assign({prefixCls:Et},xt))}))},Ie=function(Ye,ie){var lt={};for(var We in Ye)Object.prototype.hasOwnProperty.call(Ye,We)&&ie.indexOf(We)<0&&(lt[We]=Ye[We]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,We=Object.getOwnPropertySymbols(Ye);Pt<We.length;Pt++)ie.indexOf(We[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,We[Pt])&&(lt[We[Pt]]=Ye[We[Pt]]);return lt};const Pe=M.forwardRef((Ye,ie)=>{const{prefixCls:lt,placement:We="top",trigger:Pt="click",okType:xt="primary",icon:Tt=M.createElement(v.Z,null),children:Et,overlayClassName:wn,onOpenChange:qe,onVisibleChange:ae}=Ye,le=Ie(Ye,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:$t}=M.useContext(ue.E_),[Vt,St]=(0,G.Z)(!1,{value:Ye.open,defaultValue:Ye.defaultOpen}),un=(P,k)=>{St(P,!0),ae==null||ae(P),qe==null||qe(P,k)},Ft=P=>{un(!1,P)},ai=P=>{var k;return(k=Ye.onConfirm)===null||k===void 0?void 0:k.call(void 0,P)},On=P=>{var k;un(!1,P),(k=Ye.onCancel)===null||k===void 0||k.call(void 0,P)},ni=P=>{P.keyCode===B.Z.ESC&&Vt&&un(!1,P)},Jn=P=>{const{disabled:k=!1}=Ye;k||un(P)},In=$t("popconfirm",lt),Mn=O()(In,wn),[xe]=be(In);return xe(M.createElement(te.Z,Object.assign({},(0,F.Z)(le,["title"]),{trigger:Pt,placement:We,onOpenChange:Jn,open:Vt,ref:ie,overlayClassName:Mn,content:M.createElement(ke,Object.assign({okType:xt,icon:Tt},Ye,{prefixCls:In,close:Ft,onConfirm:ai,onCancel:On})),"data-popover-inject":!0}),(0,he.Tm)(Et,{onKeyDown:P=>{var k,j;M.isValidElement(Et)&&((j=Et==null?void 0:(k=Et.props).onKeyDown)===null||j===void 0||j.call(k,P)),ni(P)}})))});Pe._InternalPanelDoNotUseOrYouWillBeFired=Ne;var Xe=Pe},39722:function(Q,C,h){"use strict";h.d(C,{t5:function(){return te}});var v=h(92310),I=h.n(v),O=h(55477),B=h(59301),G=h(36355),F=h(77578),M=h(17356),he=function(we,Je){var Oe={};for(var Te in we)Object.prototype.hasOwnProperty.call(we,Te)&&Je.indexOf(Te)<0&&(Oe[Te]=we[Te]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Te=Object.getOwnPropertySymbols(we);Ae<Te.length;Ae++)Je.indexOf(Te[Ae])<0&&Object.prototype.propertyIsEnumerable.call(we,Te[Ae])&&(Oe[Te[Ae]]=we[Te[Ae]]);return Oe};const ue=(we,Je,Oe)=>{if(!(!Je&&!Oe))return B.createElement(B.Fragment,null,Je&&B.createElement("div",{className:`${we}-title`},(0,F.Z)(Je)),B.createElement("div",{className:`${we}-inner-content`},(0,F.Z)(Oe)))},te=we=>{const{hashId:Je,prefixCls:Oe,className:Te,style:Ae,placement:Re="top",title:de,content:pe,children:be}=we;return B.createElement("div",{className:I()(Je,Oe,`${Oe}-pure`,`${Oe}-placement-${Re}`,Te),style:Ae},B.createElement("div",{className:`${Oe}-arrow`}),B.createElement(O.G,Object.assign({},we,{className:Je,prefixCls:Oe}),be||ue(Oe,de,pe)))},Me=we=>{const{prefixCls:Je}=we,Oe=he(we,["prefixCls"]),{getPrefixCls:Te}=B.useContext(G.E_),Ae=Te("popover",Je),[Re,de]=(0,M.Z)(Ae);return Re(B.createElement(te,Object.assign({},Oe,{prefixCls:Ae,hashId:de})))};C.ZP=Me},60324:function(Q,C,h){"use strict";var v=h(92310),I=h.n(v),O=h(59301),B=h(77578),G=h(62892),F=h(36355),M=h(6848),he=h(39722),ue=h(17356),te=function(Je,Oe){var Te={};for(var Ae in Je)Object.prototype.hasOwnProperty.call(Je,Ae)&&Oe.indexOf(Ae)<0&&(Te[Ae]=Je[Ae]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ae=Object.getOwnPropertySymbols(Je);Re<Ae.length;Re++)Oe.indexOf(Ae[Re])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ae[Re])&&(Te[Ae[Re]]=Je[Ae[Re]]);return Te};const Me=Je=>{let{title:Oe,content:Te,prefixCls:Ae}=Je;return O.createElement(O.Fragment,null,Oe&&O.createElement("div",{className:`${Ae}-title`},(0,B.Z)(Oe)),O.createElement("div",{className:`${Ae}-inner-content`},(0,B.Z)(Te)))},we=O.forwardRef((Je,Oe)=>{const{prefixCls:Te,title:Ae,content:Re,overlayClassName:de,placement:pe="top",trigger:be="hover",mouseEnterDelay:me=.1,mouseLeaveDelay:ke=.1,overlayStyle:ee={}}=Je,Ne=te(Je,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ie}=O.useContext(F.E_),Pe=Ie("popover",Te),[Xe,Ye]=(0,ue.Z)(Pe),ie=Ie(),lt=I()(de,Ye);return Xe(O.createElement(M.Z,Object.assign({placement:pe,trigger:be,mouseEnterDelay:me,mouseLeaveDelay:ke,overlayStyle:ee},Ne,{prefixCls:Pe,overlayClassName:lt,ref:Oe,overlay:Ae||Re?O.createElement(Me,{prefixCls:Pe,title:Ae,content:Re}):null,transitionName:(0,G.m)(ie,"zoom-big",Ne.transitionName),"data-popover-inject":!0})))});we._InternalPanelDoNotUseOrYouWillBeFired=he.ZP,C.Z=we},17356:function(Q,C,h){"use strict";var v=h(17313),I=h(29878),O=h(19447),B=h(33166),G=h(83116),F=h(37613);const M=te=>{const{componentCls:Me,popoverColor:we,minWidth:Je,fontWeightStrong:Oe,popoverPadding:Te,boxShadowSecondary:Ae,colorTextHeading:Re,borderRadiusLG:de,zIndexPopup:pe,marginXS:be,colorBgElevated:me,popoverBg:ke}=te;return[{[Me]:Object.assign(Object.assign({},(0,v.Wf)(te)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":me,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Me}-content`]:{position:"relative"},[`${Me}-inner`]:{backgroundColor:ke,backgroundClip:"padding-box",borderRadius:de,boxShadow:Ae,padding:Te},[`${Me}-title`]:{minWidth:Je,marginBottom:be,color:Re,fontWeight:Oe},[`${Me}-inner-content`]:{color:we}})},(0,O.ZP)(te,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Me}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow,display:"inline-block",[`${Me}-content`]:{display:"inline-block"}}}]},he=te=>{const{componentCls:Me}=te;return{[Me]:B.i.map(we=>{const Je=te[`${we}6`];return{[`&${Me}-${we}`]:{"--antd-arrow-background-color":Je,[`${Me}-inner`]:{backgroundColor:Je},[`${Me}-arrow`]:{background:"transparent"}}}})}},ue=te=>{const{componentCls:Me,lineWidth:we,lineType:Je,colorSplit:Oe,paddingSM:Te,controlHeight:Ae,fontSize:Re,lineHeight:de,padding:pe}=te,be=Ae-Math.round(Re*de),me=be/2,ke=be/2-we,ee=pe;return{[Me]:{[`${Me}-inner`]:{padding:0},[`${Me}-title`]:{margin:0,padding:`${me}px ${ee}px ${ke}px`,borderBottom:`${we}px ${Je} ${Oe}`},[`${Me}-inner-content`]:{padding:`${Te}px ${ee}px`}}}};C.Z=(0,G.Z)("Popover",te=>{const{colorBgElevated:Me,colorText:we,wireframe:Je}=te,Oe=(0,F.TS)(te,{popoverPadding:12,popoverBg:Me,popoverColor:we});return[M(Oe),he(Oe),Je&&ue(Oe),(0,I._y)(Oe,"zoom-big")]},te=>({width:177,minWidth:177,zIndexPopup:te.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(Q,C,h){"use strict";h.d(C,{Z:function(){return gn}});var v=h(59301),I=h(29679),O=h(40001),B=h(19248),G=h(99267),F=h(92310),M=h.n(F),he=h(2738),ue=h(36355),te=h(92413),Me=h(33708),we=h(37061),Je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Oe=function(){var Ut=(0,v.useRef)([]),tn=(0,v.useRef)(null);return(0,v.useEffect)(function(){var nn=Date.now(),He=!1;Ut.current.forEach(function(Bn){if(Bn){He=!0;var kn=Bn.style;kn.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&nn-tn.current<100&&(kn.transitionDuration="0s, 0s")}}),He&&(tn.current=Date.now())}),Ut.current},Te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ae=function(Ut){var tn=(0,Me.Z)((0,Me.Z)({},Je),Ut),nn=tn.className,He=tn.percent,Bn=tn.prefixCls,kn=tn.strokeColor,Kn=tn.strokeLinecap,Ti=tn.strokeWidth,hi=tn.style,dn=tn.trailColor,sn=tn.trailWidth,gr=tn.transition,dr=(0,we.Z)(tn,Te);delete dr.gapPosition;var qn=Array.isArray(He)?He:[He],Rr=Array.isArray(kn)?kn:[kn],tr=Oe(),U=Ti/2,br=100-Ti/2,fr="M ".concat(Kn==="round"?U:0,",").concat(U,`
|
|
|
L `).concat(Kn==="round"?br:100,",").concat(U),Fr="0 0 100 ".concat(Ti),jr=0;return v.createElement("svg",(0,te.Z)({className:M()("".concat(Bn,"-line"),nn),viewBox:Fr,preserveAspectRatio:"none",style:hi},dr),v.createElement("path",{className:"".concat(Bn,"-line-trail"),d:fr,strokeLinecap:Kn,stroke:dn,strokeWidth:sn||Ti,fillOpacity:"0"}),qn.map(function(so,Ar){var to=1;switch(Kn){case"round":to=1-Ti/100;break;case"square":to=1-Ti/2/100;break;default:to=1;break}var vr={strokeDasharray:"".concat(so*to,"px, 100px"),strokeDashoffset:"-".concat(jr,"px"),transition:gr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ji=Rr[Ar]||Rr[Rr.length-1];return jr+=so,v.createElement("path",{key:Ar,className:"".concat(Bn,"-line-path"),d:fr,strokeLinecap:Kn,stroke:Ji,strokeWidth:Ti,fillOpacity:"0",ref:function(ft){tr[Ar]=ft},style:vr})}))},Re=Ae,de=h(39559),pe=h(33606),be=h(47273),me=0,ke=(0,be.Z)();function ee(){var Qe;return ke?(Qe=me,me+=1):Qe="TEST_OR_SSR",Qe}var Ne=function(Qe){var Ut=v.useState(),tn=(0,pe.Z)(Ut,2),nn=tn[0],He=tn[1];return v.useEffect(function(){He("rc_progress_".concat(ee()))},[]),Qe||nn},Ie=function(Ut){var tn=Ut.bg,nn=Ut.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:tn}},nn)};function Pe(Qe,Ut){return Object.keys(Qe).map(function(tn){var nn=parseFloat(tn),He="".concat(Math.floor(nn*Ut),"%");return"".concat(Qe[tn]," ").concat(He)})}var Xe=v.forwardRef(function(Qe,Ut){var tn=Qe.prefixCls,nn=Qe.color,He=Qe.gradientId,Bn=Qe.radius,kn=Qe.style,Kn=Qe.ptg,Ti=Qe.strokeLinecap,hi=Qe.strokeWidth,dn=Qe.size,sn=Qe.gapDegree,gr=nn&&(0,de.Z)(nn)==="object",dr=gr?"#FFF":void 0,qn=dn/2,Rr=v.createElement("circle",{className:"".concat(tn,"-circle-path"),r:Bn,cx:qn,cy:qn,stroke:dr,strokeLinecap:Ti,strokeWidth:hi,opacity:Kn===0?0:1,style:kn,ref:Ut});if(!gr)return Rr;var tr="".concat(He,"-conic"),U=sn?"".concat(180+sn/2,"deg"):"0deg",br=Pe(nn,(360-sn)/360),fr=Pe(nn,1),Fr="conic-gradient(from ".concat(U,", ").concat(br.join(", "),")"),jr="linear-gradient(to ".concat(sn?"bottom":"top",", ").concat(fr.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:tr},Rr),v.createElement("foreignObject",{x:0,y:0,width:dn,height:dn,mask:"url(#".concat(tr,")")},v.createElement(Ie,{bg:jr},v.createElement(Ie,{bg:Fr}))))}),Ye=Xe,ie=100,lt=function(Ut,tn,nn,He,Bn,kn,Kn,Ti,hi,dn){var sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gr=nn/100*360*((360-kn)/360),dr=kn===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],qn=(100-He)/100*tn;hi==="round"&&He!==100&&(qn+=dn/2,qn>=tn&&(qn=tn-.01));var Rr=ie/2;return{stroke:typeof Ti=="string"?Ti:void 0,strokeDasharray:"".concat(tn,"px ").concat(Ut),strokeDashoffset:qn+sn,transform:"rotate(".concat(Bn+gr+dr,"deg)"),transformOrigin:"".concat(Rr,"px ").concat(Rr,"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}},We=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Pt(Qe){var Ut=Qe!=null?Qe:[];return Array.isArray(Ut)?Ut:[Ut]}var xt=function(Ut){var tn=(0,Me.Z)((0,Me.Z)({},Je),Ut),nn=tn.id,He=tn.prefixCls,Bn=tn.steps,kn=tn.strokeWidth,Kn=tn.trailWidth,Ti=tn.gapDegree,hi=Ti===void 0?0:Ti,dn=tn.gapPosition,sn=tn.trailColor,gr=tn.strokeLinecap,dr=tn.style,qn=tn.className,Rr=tn.strokeColor,tr=tn.percent,U=(0,we.Z)(tn,We),br=ie/2,fr=Ne(nn),Fr="".concat(fr,"-gradient"),jr=br-kn/2,so=Math.PI*2*jr,Ar=hi>0?90+hi/2:-90,to=so*((360-hi)/360),vr=(0,de.Z)(Bn)==="object"?Bn:{count:Bn,space:2},Ji=vr.count,di=vr.space,ft=Pt(tr),Un=Pt(Rr),Wn=Un.find(function(Ke){return Ke&&(0,de.Z)(Ke)==="object"}),vt=Wn&&(0,de.Z)(Wn)==="object",Ve=vt?"butt":gr,vn=lt(so,to,0,100,Ar,hi,dn,sn,Ve,kn),Nn=Oe(),on=function(){var Ht=0;return ft.map(function(Rt,jn){var at=Un[jn]||Un[Un.length-1],hn=lt(so,to,Ht,Rt,Ar,hi,dn,at,Ve,kn);return Ht+=Rt,v.createElement(Ye,{key:jn,color:at,ptg:Rt,radius:jr,prefixCls:He,gradientId:Fr,style:hn,strokeLinecap:Ve,strokeWidth:kn,gapDegree:hi,ref:function(Ge){Nn[jn]=Ge},size:ie})}).reverse()},Ct=function(){var Ht=Math.round(Ji*(ft[0]/100)),Rt=100/Ji,jn=0;return new Array(Ji).fill(null).map(function(at,hn){var yt=hn<=Ht-1?Un[0]:sn,Ge=yt&&(0,de.Z)(yt)==="object"?"url(#".concat(Fr,")"):void 0,L=lt(so,to,jn,Rt,Ar,hi,dn,yt,"butt",kn,di);return jn+=(to-L.strokeDashoffset+di)*100/to,v.createElement("circle",{key:hn,className:"".concat(He,"-circle-path"),r:jr,cx:br,cy:br,stroke:Ge,strokeWidth:kn,opacity:1,style:L,ref:function(Jt){Nn[hn]=Jt}})})};return v.createElement("svg",(0,te.Z)({className:M()("".concat(He,"-circle"),qn),viewBox:"0 0 ".concat(ie," ").concat(ie),style:dr,id:nn,role:"presentation"},U),!Ji&&v.createElement("circle",{className:"".concat(He,"-circle-trail"),r:jr,cx:br,cy:br,stroke:sn,strokeLinecap:Ve,strokeWidth:Kn||kn,style:vn}),Ji?Ct():on())},Tt=xt,Et={Line:Re,Circle:Tt},wn=h(6848),qe=h(93398);function ae(Qe){return!Qe||Qe<0?0:Qe>100?100:Qe}function le(Qe){let{success:Ut,successPercent:tn}=Qe,nn=tn;return Ut&&"progress"in Ut&&(nn=Ut.progress),Ut&&"percent"in Ut&&(nn=Ut.percent),nn}const $t=Qe=>{let{percent:Ut,success:tn,successPercent:nn}=Qe;const He=ae(le({success:tn,successPercent:nn}));return[He,ae(ae(Ut)-He)]},Vt=Qe=>{let{success:Ut={},strokeColor:tn}=Qe;const{strokeColor:nn}=Ut;return[nn||qe.presetPrimaryColors.green,tn||null]},St=(Qe,Ut,tn)=>{var nn,He,Bn,kn;let Kn=-1,Ti=-1;if(Ut==="step"){const hi=tn.steps,dn=tn.strokeWidth;typeof Qe=="string"||typeof Qe=="undefined"?(Kn=Qe==="small"?2:14,Ti=dn!=null?dn:8):typeof Qe=="number"?[Kn,Ti]=[Qe,Qe]:[Kn=14,Ti=8]=Qe,Kn*=hi}else if(Ut==="line"){const hi=tn==null?void 0:tn.strokeWidth;typeof Qe=="string"||typeof Qe=="undefined"?Ti=hi||(Qe==="small"?6:8):typeof Qe=="number"?[Kn,Ti]=[Qe,Qe]:[Kn=-1,Ti=8]=Qe}else(Ut==="circle"||Ut==="dashboard")&&(typeof Qe=="string"||typeof Qe=="undefined"?[Kn,Ti]=Qe==="small"?[60,60]:[120,120]:typeof Qe=="number"?[Kn,Ti]=[Qe,Qe]:(Kn=(He=(nn=Qe[0])!==null&&nn!==void 0?nn:Qe[1])!==null&&He!==void 0?He:120,Ti=(kn=(Bn=Qe[0])!==null&&Bn!==void 0?Bn:Qe[1])!==null&&kn!==void 0?kn:120));return[Kn,Ti]},un=3,Ft=Qe=>un/Qe*100;var On=Qe=>{const{prefixCls:Ut,trailColor:tn=null,strokeLinecap:nn="round",gapPosition:He,gapDegree:Bn,width:kn=120,type:Kn,children:Ti,success:hi,size:dn=kn}=Qe,[sn,gr]=St(dn,"circle");let{strokeWidth:dr}=Qe;dr===void 0&&(dr=Math.max(Ft(sn),6));const qn={width:sn,height:gr,fontSize:sn*.15+6},Rr=v.useMemo(()=>{if(Bn||Bn===0)return Bn;if(Kn==="dashboard")return 75},[Bn,Kn]),tr=He||Kn==="dashboard"&&"bottom"||void 0,U=Object.prototype.toString.call(Qe.strokeColor)==="[object Object]",br=Vt({success:hi,strokeColor:Qe.strokeColor}),fr=M()(`${Ut}-inner`,{[`${Ut}-circle-gradient`]:U}),Fr=v.createElement(Tt,{percent:$t(Qe),strokeWidth:dr,trailWidth:dr,strokeColor:br,strokeLinecap:nn,trailColor:tn,prefixCls:Ut,gapDegree:Rr,gapPosition:tr});return v.createElement("div",{className:fr,style:qn},sn<=20?v.createElement(wn.Z,{title:Ti},v.createElement("span",null,Fr)):v.createElement(v.Fragment,null,Fr,Ti))},ni=function(Qe,Ut){var tn={};for(var nn in Qe)Object.prototype.hasOwnProperty.call(Qe,nn)&&Ut.indexOf(nn)<0&&(tn[nn]=Qe[nn]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,nn=Object.getOwnPropertySymbols(Qe);He<nn.length;He++)Ut.indexOf(nn[He])<0&&Object.prototype.propertyIsEnumerable.call(Qe,nn[He])&&(tn[nn[He]]=Qe[nn[He]]);return tn};const Jn=Qe=>{let Ut=[];return Object.keys(Qe).forEach(tn=>{const nn=parseFloat(tn.replace(/%/g,""));isNaN(nn)||Ut.push({key:nn,value:Qe[tn]})}),Ut=Ut.sort((tn,nn)=>tn.key-nn.key),Ut.map(tn=>{let{key:nn,value:He}=tn;return`${He} ${nn}%`}).join(", ")},In=(Qe,Ut)=>{const{from:tn=qe.presetPrimaryColors.blue,to:nn=qe.presetPrimaryColors.blue,direction:He=Ut==="rtl"?"to left":"to right"}=Qe,Bn=ni(Qe,["from","to","direction"]);if(Object.keys(Bn).length!==0){const kn=Jn(Bn);return{backgroundImage:`linear-gradient(${He}, ${kn})`}}return{backgroundImage:`linear-gradient(${He}, ${tn}, ${nn})`}};var xe=Qe=>{const{prefixCls:Ut,direction:tn,percent:nn,size:He,strokeWidth:Bn,strokeColor:kn,strokeLinecap:Kn="round",children:Ti,trailColor:hi=null,success:dn}=Qe,sn=kn&&typeof kn!="string"?In(kn,tn):{backgroundColor:kn},gr=Kn==="square"||Kn==="butt"?0:void 0,dr={backgroundColor:hi||void 0,borderRadius:gr},qn=He!=null?He:[-1,Bn||(He==="small"?6:8)],[Rr,tr]=St(qn,"line",{strokeWidth:Bn}),U=Object.assign({width:`${ae(nn)}%`,height:tr,borderRadius:gr},sn),br=le(Qe),fr={width:`${ae(br)}%`,height:tr,borderRadius:gr,backgroundColor:dn==null?void 0:dn.strokeColor},Fr={width:Rr<0?"100%":Rr,height:tr};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${Ut}-outer`,style:Fr},v.createElement("div",{className:`${Ut}-inner`,style:dr},v.createElement("div",{className:`${Ut}-bg`,style:U}),br!==void 0?v.createElement("div",{className:`${Ut}-success-bg`,style:fr}):null)),Ti)},k=Qe=>{const{size:Ut,steps:tn,percent:nn=0,strokeWidth:He=8,strokeColor:Bn,trailColor:kn=null,prefixCls:Kn,children:Ti}=Qe,hi=Math.round(tn*(nn/100)),dn=Ut==="small"?2:14,sn=Ut!=null?Ut:[dn,He],[gr,dr]=St(sn,"step",{steps:tn,strokeWidth:He}),qn=gr/tn,Rr=new Array(tn);for(let tr=0;tr<tn;tr++){const U=Array.isArray(Bn)?Bn[tr]:Bn;Rr[tr]=v.createElement("div",{key:tr,className:M()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:tr<=hi-1}),style:{backgroundColor:tr<=hi-1?U:kn,width:qn,height:dr}})}return v.createElement("div",{className:`${Kn}-steps-outer`},Rr,Ti)},j=h(93083),X=h(17313),T=h(83116),_e=h(37613);const kt=Qe=>{const Ut=Qe?"100%":"-100%";return new j.Keyframes(`antProgress${Qe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ut}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ut}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ue=Qe=>{const{componentCls:Ut,iconCls:tn}=Qe;return{[Ut]:Object.assign(Object.assign({},(0,X.Wf)(Qe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Qe.fontSize,marginInlineEnd:Qe.marginXS,marginBottom:Qe.marginXS},[`${Ut}-outer`]:{display:"inline-block",width:"100%"},[`&${Ut}-show-info`]:{[`${Ut}-outer`]:{marginInlineEnd:`calc(-2em - ${Qe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Qe.paddingXS}px)`}},[`${Ut}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Qe.remainingColor,borderRadius:Qe.lineBorderRadius},[`${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:Qe.defaultColor}},[`${Ut}-success-bg, ${Ut}-bg`]:{position:"relative",backgroundColor:Qe.defaultColor,borderRadius:Qe.lineBorderRadius,transition:`all ${Qe.motionDurationSlow} ${Qe.motionEaseInOutCirc}`},[`${Ut}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Qe.colorSuccess},[`${Ut}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Qe.marginXS,color:Qe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[tn]:{fontSize:Qe.fontSize}},[`&${Ut}-status-active`]:{[`${Ut}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Qe.colorBgContainer,borderRadius:Qe.lineBorderRadius,opacity:0,animationName:kt(),animationDuration:Qe.progressActiveMotionDuration,animationTimingFunction:Qe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ut}-rtl${Ut}-status-active`]:{[`${Ut}-bg::before`]:{animationName:kt(!0)}},[`&${Ut}-status-exception`]:{[`${Ut}-bg`]:{backgroundColor:Qe.colorError},[`${Ut}-text`]:{color:Qe.colorError}},[`&${Ut}-status-exception ${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:Qe.colorError}},[`&${Ut}-status-success`]:{[`${Ut}-bg`]:{backgroundColor:Qe.colorSuccess},[`${Ut}-text`]:{color:Qe.colorSuccess}},[`&${Ut}-status-success ${Ut}-inner:not(${Ut}-circle-gradient)`]:{[`${Ut}-circle-path`]:{stroke:Qe.colorSuccess}}})}},Be=Qe=>{const{componentCls:Ut,iconCls:tn}=Qe;return{[Ut]:{[`${Ut}-circle-trail`]:{stroke:Qe.remainingColor},[`&${Ut}-circle ${Ut}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ut}-circle ${Ut}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Qe.circleTextColor,fontSize:Qe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[tn]:{fontSize:`${Qe.fontSize/Qe.fontSizeSM}em`}},[`${Ut}-circle&-status-exception`]:{[`${Ut}-text`]:{color:Qe.colorError}},[`${Ut}-circle&-status-success`]:{[`${Ut}-text`]:{color:Qe.colorSuccess}}},[`${Ut}-inline-circle`]:{lineHeight:1,[`${Ut}-inner`]:{verticalAlign:"bottom"}}}},mt=Qe=>{const{componentCls:Ut}=Qe;return{[Ut]:{[`${Ut}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Qe.progressStepMinWidth,marginInlineEnd:Qe.progressStepMarginInlineEnd,backgroundColor:Qe.remainingColor,transition:`all ${Qe.motionDurationSlow}`,"&-active":{backgroundColor:Qe.defaultColor}}}}}},ct=Qe=>{const{componentCls:Ut,iconCls:tn}=Qe;return{[Ut]:{[`${Ut}-small&-line, ${Ut}-small&-line ${Ut}-text ${tn}`]:{fontSize:Qe.fontSizeSM}}}};var tt=(0,T.Z)("Progress",Qe=>{const Ut=Qe.marginXXS/2,tn=(0,_e.TS)(Qe,{progressStepMarginInlineEnd:Ut,progressStepMinWidth:Ut,progressActiveMotionDuration:"2.4s"});return[Ue(tn),Be(tn),mt(tn),ct(tn)]},Qe=>({circleTextColor:Qe.colorText,defaultColor:Qe.colorInfo,remainingColor:Qe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),It=function(Qe,Ut){var tn={};for(var nn in Qe)Object.prototype.hasOwnProperty.call(Qe,nn)&&Ut.indexOf(nn)<0&&(tn[nn]=Qe[nn]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,nn=Object.getOwnPropertySymbols(Qe);He<nn.length;He++)Ut.indexOf(nn[He])<0&&Object.prototype.propertyIsEnumerable.call(Qe,nn[He])&&(tn[nn[He]]=Qe[nn[He]]);return tn};const an=null,en=["normal","exception","active","success"];var cn=v.forwardRef((Qe,Ut)=>{const{prefixCls:tn,className:nn,rootClassName:He,steps:Bn,strokeColor:kn,percent:Kn=0,size:Ti="default",showInfo:hi=!0,type:dn="line",status:sn,format:gr,style:dr}=Qe,qn=It(Qe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Rr=v.useMemo(()=>{var ft,Un;const Wn=le(Qe);return parseInt(Wn!==void 0?(ft=Wn!=null?Wn:0)===null||ft===void 0?void 0:ft.toString():(Un=Kn!=null?Kn:0)===null||Un===void 0?void 0:Un.toString(),10)},[Kn,Qe.success,Qe.successPercent]),tr=v.useMemo(()=>!en.includes(sn)&&Rr>=100?"success":sn||"normal",[sn,Rr]),{getPrefixCls:U,direction:br,progress:fr}=v.useContext(ue.E_),Fr=U("progress",tn),[jr,so]=tt(Fr),Ar=v.useMemo(()=>{if(!hi)return null;const ft=le(Qe);let Un;const Wn=gr||(Ve=>`${Ve}%`),vt=dn==="line";return gr||tr!=="exception"&&tr!=="success"?Un=Wn(ae(Kn),ae(ft)):tr==="exception"?Un=vt?v.createElement(B.Z,null):v.createElement(G.Z,null):tr==="success"&&(Un=vt?v.createElement(I.Z,null):v.createElement(O.Z,null)),v.createElement("span",{className:`${Fr}-text`,title:typeof Un=="string"?Un:void 0},Un)},[hi,Kn,Rr,tr,dn,Fr,gr]),to=Array.isArray(kn)?kn[0]:kn,vr=typeof kn=="string"||Array.isArray(kn)?kn:void 0;let Ji;dn==="line"?Ji=Bn?v.createElement(k,Object.assign({},Qe,{strokeColor:vr,prefixCls:Fr,steps:Bn}),Ar):v.createElement(xe,Object.assign({},Qe,{strokeColor:to,prefixCls:Fr,direction:br}),Ar):(dn==="circle"||dn==="dashboard")&&(Ji=v.createElement(On,Object.assign({},Qe,{strokeColor:to,prefixCls:Fr,progressStatus:tr}),Ar));const di=M()(Fr,`${Fr}-status-${tr}`,`${Fr}-${dn==="dashboard"&&"circle"||Bn&&"steps"||dn}`,{[`${Fr}-inline-circle`]:dn==="circle"&&St(Ti,"circle")[0]<=20,[`${Fr}-show-info`]:hi,[`${Fr}-${Ti}`]:typeof Ti=="string",[`${Fr}-rtl`]:br==="rtl"},fr==null?void 0:fr.className,nn,He,so);return jr(v.createElement("div",Object.assign({ref:Ut,style:Object.assign(Object.assign({},fr==null?void 0:fr.style),dr),className:di,role:"progressbar","aria-valuenow":Rr},(0,he.Z)(qn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ji))}),gn=cn},57809:function(Q,C,h){"use strict";var v=h(92310),I=h.n(v),O=h(77861),B=h(2738),G=h(59301),F=h(53487),M=h(62892),he=h(19080),ue=h(36355),te=h(1684),Me=h(93891),we=h(19716),Je=h(32441),Oe=h(33234),Te=h(14154),Ae=h(58582),Re=h(84443),de=h(66339),pe=function(Ne,Ie){var Pe={};for(var Xe in Ne)Object.prototype.hasOwnProperty.call(Ne,Xe)&&Ie.indexOf(Xe)<0&&(Pe[Xe]=Ne[Xe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Xe=Object.getOwnPropertySymbols(Ne);Ye<Xe.length;Ye++)Ie.indexOf(Xe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Xe[Ye])&&(Pe[Xe[Ye]]=Ne[Xe[Ye]]);return Pe};const be="SECRET_COMBOBOX_MODE_DO_NOT_USE",me=(Ne,Ie)=>{var Pe,{prefixCls:Xe,bordered:Ye=!0,className:ie,rootClassName:lt,getPopupContainer:We,popupClassName:Pt,dropdownClassName:xt,listHeight:Tt=256,placement:Et,listItemHeight:wn=24,size:qe,disabled:ae,notFoundContent:le,status:$t,builtinPlacements:Vt,dropdownMatchSelectWidth:St,popupMatchSelectWidth:un,direction:Ft,style:ai,allowClear:On}=Ne,ni=pe(Ne,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Jn,getPrefixCls:In,renderEmpty:Mn,direction:xe,virtual:P,popupMatchSelectWidth:k,popupOverflow:j,select:X}=G.useContext(ue.E_),T=In("select",Xe),_e=In(),kt=Ft!=null?Ft:xe,{compactSize:Ue,compactItemClassnames:Be}=(0,Oe.ri)(T,kt),[mt,ct]=(0,Te.Z)(T),tt=G.useMemo(()=>{const{mode:tr}=ni;if(tr!=="combobox")return tr===be?"combobox":tr},[ni.mode]),It=tt==="multiple"||tt==="tags",an=(0,Re.Z)(ni.suffixIcon,ni.showArrow),en=(Pe=un!=null?un:St)!==null&&Pe!==void 0?Pe:k,{status:Bt,hasFeedback:cn,isFormItemInput:gn,feedbackIcon:Qe}=G.useContext(Je.aM),Ut=(0,he.F)(Bt,$t);let tn;le!==void 0?tn=le:tt==="combobox"?tn=null:tn=(Mn==null?void 0:Mn("Select"))||G.createElement(Me.Z,{componentName:"Select"});const{suffixIcon:nn,itemIcon:He,removeIcon:Bn,clearIcon:kn}=(0,de.Z)(Object.assign(Object.assign({},ni),{multiple:It,hasFeedback:cn,feedbackIcon:Qe,showSuffixIcon:an,prefixCls:T,showArrow:ni.showArrow,componentName:"Select"})),Kn=On===!0?{clearIcon:kn}:On,Ti=(0,B.Z)(ni,["suffixIcon","itemIcon"]),hi=I()(Pt||xt,{[`${T}-dropdown-${kt}`]:kt==="rtl"},lt,ct),dn=(0,we.Z)(tr=>{var U;return(U=qe!=null?qe:Ue)!==null&&U!==void 0?U:tr}),sn=G.useContext(te.Z),gr=ae!=null?ae:sn,dr=I()({[`${T}-lg`]:dn==="large",[`${T}-sm`]:dn==="small",[`${T}-rtl`]:kt==="rtl",[`${T}-borderless`]:!Ye,[`${T}-in-form-item`]:gn},(0,he.Z)(T,Ut,cn),Be,X==null?void 0:X.className,ie,lt,ct),qn=G.useMemo(()=>Et!==void 0?Et:kt==="rtl"?"bottomRight":"bottomLeft",[Et,kt]),Rr=(0,Ae.Z)(Vt,j);return mt(G.createElement(O.ZP,Object.assign({ref:Ie,virtual:P,showSearch:X==null?void 0:X.showSearch},Ti,{style:Object.assign(Object.assign({},X==null?void 0:X.style),ai),dropdownMatchSelectWidth:en,builtinPlacements:Rr,transitionName:(0,M.m)(_e,"slide-up",ni.transitionName),listHeight:Tt,listItemHeight:wn,mode:tt,prefixCls:T,placement:qn,direction:kt,suffixIcon:nn,menuItemSelectedIcon:He,removeIcon:Bn,allowClear:Kn,notFoundContent:tn,className:dr,getPopupContainer:We||Jn,dropdownClassName:hi,disabled:gr})))},ke=G.forwardRef(me),ee=(0,F.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=be,ke.Option=O.Wx,ke.OptGroup=O.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=ee,C.default=ke},14154:function(Q,C,h){"use strict";h.d(C,{Z:function(){return ke}});var v=h(17313),I=h(74207),O=h(37613),B=h(83116),G=h(13826),F=h(92899);const M=ee=>{const{optionHeight:Ne,optionFontSize:Ie,optionLineHeight:Pe,optionPadding:Xe}=ee;return{position:"relative",display:"block",minHeight:Ne,padding:Xe,color:ee.colorText,fontWeight:"normal",fontSize:Ie,lineHeight:Pe,boxSizing:"border-box"}};var ue=ee=>{const{antCls:Ne,componentCls:Ie}=ee,Pe=`${Ie}-item`,Xe=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Ye=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,ie=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,lt=`${Ie}-dropdown-placement-`;return[{[`${Ie}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{position:"absolute",top:-9999,zIndex:ee.zIndexPopup,boxSizing:"border-box",padding:ee.paddingXXS,overflow:"hidden",fontSize:ee.fontSize,fontVariant:"initial",backgroundColor:ee.colorBgElevated,borderRadius:ee.borderRadiusLG,outline:"none",boxShadow:ee.boxShadowSecondary,[`
|
|
|
${Xe}${lt}bottomLeft,
|
|
|
${Ye}${lt}bottomLeft
|
|
|
`]:{animationName:G.fJ},[`
|
|
|
${Xe}${lt}topLeft,
|
|
|
${Ye}${lt}topLeft,
|
|
|
${Xe}${lt}topRight,
|
|
|
${Ye}${lt}topRight
|
|
|
`]:{animationName:G.Qt},[`${ie}${lt}bottomLeft`]:{animationName:G.Uw},[`
|
|
|
${ie}${lt}topLeft,
|
|
|
${ie}${lt}topRight
|
|
|
`]:{animationName:G.ly},"&-hidden":{display:"none"},[`${Pe}`]:Object.assign(Object.assign({},M(ee)),{cursor:"pointer",transition:`background ${ee.motionDurationSlow} ease`,borderRadius:ee.borderRadiusSM,"&-group":{color:ee.colorTextDescription,fontSize:ee.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Pe}-option-disabled)`]:{backgroundColor:ee.optionActiveBg},[`&-selected:not(${Pe}-option-disabled)`]:{color:ee.optionSelectedColor,fontWeight:ee.optionSelectedFontWeight,backgroundColor:ee.optionSelectedBg,[`${Pe}-option-state`]:{color:ee.colorPrimary}},"&-disabled":{[`&${Pe}-option-selected`]:{backgroundColor:ee.colorBgContainerDisabled},color:ee.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ee.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,G.oN)(ee,"slide-up"),(0,G.oN)(ee,"slide-down"),(0,F.Fm)(ee,"move-up"),(0,F.Fm)(ee,"move-down")]};const te=2,Me=ee=>{let{controlHeightSM:Ne,controlHeight:Ie,lineWidth:Pe}=ee;const Xe=(Ie-Ne)/2-Pe,Ye=Math.ceil(Xe/2);return[Xe,Ye]};function we(ee,Ne){const{componentCls:Ie,iconCls:Pe}=ee,Xe=`${Ie}-selection-overflow`,Ye=ee.multipleSelectItemHeight,[ie]=Me(ee),lt=Ne?`${Ie}-${Ne}`:"";return{[`${Ie}-multiple${lt}`]:{fontSize:ee.fontSize,[Xe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ie}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ie-te}px ${te*2}px`,borderRadius:ee.borderRadius,[`${Ie}-show-search&`]:{cursor:"text"},[`${Ie}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${te}px 0`,lineHeight:`${Ye}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selector,
|
|
|
&${Ie}-allow-clear ${Ie}-selector
|
|
|
`]:{paddingInlineEnd:ee.fontSizeIcon+ee.controlPaddingHorizontal},[`${Ie}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ye,marginTop:te,marginBottom:te,lineHeight:`${Ye-ee.lineWidth*2}px`,background:ee.multipleItemBg,border:`${ee.lineWidth}px ${ee.lineType} ${ee.multipleItemBorderColor}`,borderRadius:ee.borderRadiusSM,cursor:"default",transition:`font-size ${ee.motionDurationSlow}, line-height ${ee.motionDurationSlow}, height ${ee.motionDurationSlow}`,userSelect:"none",marginInlineEnd:te*2,paddingInlineStart:ee.paddingXS,paddingInlineEnd:ee.paddingXS/2,[`${Ie}-disabled&`]:{color:ee.multipleItemColorDisabled,borderColor:ee.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ee.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,v.Ro)()),{display:"inline-flex",alignItems:"center",color:ee.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Pe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ee.colorIconHover}})},[`${Xe}-item + ${Xe}-item`]:{[`${Ie}-selection-search`]:{marginInlineStart:0}},[`${Ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.inputPaddingHorizontalBase-ie,"\n &-input,\n &-mirror\n ":{height:Ye,fontFamily:ee.fontFamily,lineHeight:`${Ye}px`,transition:`all ${ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ie}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:ee.inputPaddingHorizontalBase,insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}}}}var Oe=ee=>{const{componentCls:Ne}=ee,Ie=(0,O.TS)(ee,{controlHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.controlHeightXS,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),Pe=(0,O.TS)(ee,{fontSize:ee.fontSizeLG,controlHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius}),[,Xe]=Me(ee);return[we(ee),we(Ie,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:ee.controlPaddingHorizontalSM-ee.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:Xe}}},we(Pe,"lg")]};function Te(ee,Ne){const{componentCls:Ie,inputPaddingHorizontalBase:Pe,borderRadius:Xe}=ee,Ye=ee.controlHeight-ee.lineWidth*2,ie=Math.ceil(ee.fontSize*1.25),lt=Ne?`${Ie}-${Ne}`:"";return{[`${Ie}-single${lt}`]:{fontSize:ee.fontSize,[`${Ie}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{display:"flex",borderRadius:Xe,[`${Ie}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Pe,insetInlineEnd:Pe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ie}-selection-item,
|
|
|
${Ie}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ye}px`,transition:`all ${ee.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ye}px`}},[`${Ie}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ie}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ie}-selection-item:after`,`${Ie}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ie}-show-arrow ${Ie}-selection-item,
|
|
|
&${Ie}-show-arrow ${Ie}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ie},[`&${Ie}-open ${Ie}-selection-item`]:{color:ee.colorTextPlaceholder},[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selector`]:{width:"100%",height:ee.controlHeight,padding:`0 ${Pe}px`,[`${Ie}-selection-search-input`]:{height:Ye},"&:after":{lineHeight:`${Ye}px`}}},[`&${Ie}-customize-input`]:{[`${Ie}-selector`]:{"&:after":{display:"none"},[`${Ie}-selection-search`]:{position:"static",width:"100%"},[`${Ie}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Pe}px`,"&:after":{display:"none"}}}}}}}function Ae(ee){const{componentCls:Ne}=ee,Ie=ee.controlPaddingHorizontalSM-ee.lineWidth;return[Te(ee),Te((0,O.TS)(ee,{controlHeight:ee.controlHeightSM,borderRadius:ee.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Ie,insetInlineEnd:Ie},[`${Ne}-selector`]:{padding:`0 ${Ie}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Ie+ee.fontSize*1.5},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ee.fontSize*1.5}}}},Te((0,O.TS)(ee,{controlHeight:ee.singleItemHeightLG,fontSize:ee.fontSizeLG,borderRadius:ee.borderRadiusLG}),"lg")]}const Re=ee=>{const{componentCls:Ne,selectorBg:Ie}=ee;return{position:"relative",backgroundColor:Ie,border:`${ee.lineWidth}px ${ee.lineType} ${ee.colorBorder}`,transition:`all ${ee.motionDurationMid} ${ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:ee.colorTextDisabled,background:ee.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:ee.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},de=function(ee,Ne){let Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Pe,borderHoverColor:Xe,outlineColor:Ye,antCls:ie}=Ne,lt=Ie?{[`${Pe}-selector`]:{borderColor:Xe}}:{};return{[ee]:{[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${ie}-pagination-size-changer)`]:Object.assign(Object.assign({},lt),{[`${Pe}-focused& ${Pe}-selector`]:{borderColor:Xe,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Ye}`,outline:0},[`&:hover ${Pe}-selector`]:{borderColor:Xe}})}}},pe=ee=>{const{componentCls:Ne}=ee;return{[`${Ne}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},be=ee=>{const{componentCls:Ne,inputPaddingHorizontalBase:Ie,iconCls:Pe}=ee;return{[Ne]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},Re(ee)),pe(ee)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},v.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:ee.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ie,height:ee.fontSizeIcon,marginTop:-ee.fontSizeIcon/2,color:ee.colorTextQuaternary,fontSize:ee.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Pe]:{verticalAlign:"top",transition:`transform ${ee.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ie,zIndex:1,display:"inline-block",width:ee.fontSizeIcon,height:ee.fontSizeIcon,marginTop:-ee.fontSizeIcon/2,color:ee.colorTextQuaternary,fontSize:ee.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:ee.clearBg,cursor:"pointer",opacity:0,transition:`color ${ee.motionDurationMid} ease, opacity ${ee.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ee.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Ie+ee.fontSize+ee.paddingXS}}}},me=ee=>{const{componentCls:Ne}=ee;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},be(ee),Ae(ee),Oe(ee),ue(ee),{[`${Ne}-rtl`]:{direction:"rtl"}},de(Ne,(0,O.TS)(ee,{borderHoverColor:ee.colorPrimaryHover,outlineColor:ee.controlOutline})),de(`${Ne}-status-error`,(0,O.TS)(ee,{borderHoverColor:ee.colorErrorHover,outlineColor:ee.colorErrorOutline}),!0),de(`${Ne}-status-warning`,(0,O.TS)(ee,{borderHoverColor:ee.colorWarningHover,outlineColor:ee.colorWarningOutline}),!0),(0,I.c)(ee,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var ke=(0,B.Z)("Select",(ee,Ne)=>{let{rootPrefixCls:Ie}=Ne;const Pe=(0,O.TS)(ee,{rootPrefixCls:Ie,inputPaddingHorizontalBase:ee.paddingSM-1,multipleSelectItemHeight:ee.multipleItemHeight});return[me(Pe)]},ee=>{const{fontSize:Ne,lineHeight:Ie,controlHeight:Pe,controlPaddingHorizontal:Xe,zIndexPopupBase:Ye,colorText:ie,fontWeightStrong:lt,controlItemBgActive:We,controlItemBgHover:Pt,colorBgContainer:xt,colorFillSecondary:Tt,controlHeightLG:Et,controlHeightSM:wn,colorBgContainerDisabled:qe,colorTextDisabled:ae}=ee;return{zIndexPopup:Ye+50,optionSelectedColor:ie,optionSelectedFontWeight:lt,optionSelectedBg:We,optionActiveBg:Pt,optionPadding:`${(Pe-Ne*Ie)/2}px ${Xe}px`,optionFontSize:Ne,optionLineHeight:Ie,optionHeight:Pe,selectorBg:xt,clearBg:xt,singleItemHeightLG:Et,multipleItemBg:Tt,multipleItemBorderColor:"transparent",multipleItemHeight:wn,multipleItemHeightLG:Pe,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:ae,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Q,C,h){"use strict";h.d(C,{Z:function(){return I}});const v=O=>{const G={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:O==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},G),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},G),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},G),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},G),{points:["br","tr"],offset:[0,-4]})}};function I(O,B){return O||v(B)}},84443:function(Q,C,h){"use strict";h.d(C,{Z:function(){return v}});function v(I,O){return O!==void 0?O:I!==null}},66339:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});var v=h(40001),I=h(19248),O=h(99267),B=h(84105),G=h(58617),F=h(47472),M=h(59301);function he(ue){let{suffixIcon:te,clearIcon:Me,menuItemSelectedIcon:we,removeIcon:Je,loading:Oe,multiple:Te,hasFeedback:Ae,prefixCls:Re,showSuffixIcon:de,feedbackIcon:pe,showArrow:be,componentName:me}=ue;const ke=Me!=null?Me:M.createElement(I.Z,null),ee=Xe=>te===null&&!Ae&&!be?null:M.createElement(M.Fragment,null,de!==!1&&Xe,Ae&&pe);let Ne=null;if(te!==void 0)Ne=ee(te);else if(Oe)Ne=ee(M.createElement(G.Z,{spin:!0}));else{const Xe=`${Re}-suffix`;Ne=Ye=>{let{open:ie,showSearch:lt}=Ye;return ee(ie&<?M.createElement(F.Z,{className:Xe}):M.createElement(B.Z,{className:Xe}))}}let Ie=null;we!==void 0?Ie=we:Te?Ie=M.createElement(v.Z,null):Ie=null;let Pe=null;return Je!==void 0?Pe=Je:Pe=M.createElement(O.Z,null),{clearIcon:ke,suffixIcon:Ne,itemIcon:Ie,removeIcon:Pe}}},81327:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Re}});var v=h(59301),I=h(92310),O=h.n(I),B=h(11592),G=h(36355),F=h(33234);const M=v.createContext({latestIndex:0}),he=M.Provider;var te=de=>{let{className:pe,index:be,children:me,split:ke,style:ee}=de;const{latestIndex:Ne}=v.useContext(M);return me==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:pe,style:ee},me),be<Ne&&ke&&v.createElement("span",{className:`${pe}-split`},ke))},Me=h(2856);function we(de){return["small","middle","large"].includes(de)}function Je(de){return de?typeof de=="number"&&!Number.isNaN(de):!1}var Oe=function(de,pe){var be={};for(var me in de)Object.prototype.hasOwnProperty.call(de,me)&&pe.indexOf(me)<0&&(be[me]=de[me]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,me=Object.getOwnPropertySymbols(de);ke<me.length;ke++)pe.indexOf(me[ke])<0&&Object.prototype.propertyIsEnumerable.call(de,me[ke])&&(be[me[ke]]=de[me[ke]]);return be};const Ae=v.forwardRef((de,pe)=>{var be,me;const{getPrefixCls:ke,space:ee,direction:Ne}=v.useContext(G.E_),{size:Ie=(ee==null?void 0:ee.size)||"small",align:Pe,className:Xe,rootClassName:Ye,children:ie,direction:lt="horizontal",prefixCls:We,split:Pt,style:xt,wrap:Tt=!1,classNames:Et,styles:wn}=de,qe=Oe(de,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ae,le]=Array.isArray(Ie)?Ie:[Ie,Ie],$t=we(le),Vt=we(ae),St=Je(le),un=Je(ae),Ft=(0,B.Z)(ie,{keepEmpty:!0}),ai=Pe===void 0&<==="horizontal"?"center":Pe,On=ke("space",We),[ni,Jn]=(0,Me.Z)(On),In=O()(On,ee==null?void 0:ee.className,Jn,`${On}-${lt}`,{[`${On}-rtl`]:Ne==="rtl",[`${On}-align-${ai}`]:ai,[`${On}-gap-row-${le}`]:$t,[`${On}-gap-col-${ae}`]:Vt},Xe,Ye),Mn=O()(`${On}-item`,(be=Et==null?void 0:Et.item)!==null&&be!==void 0?be:(me=ee==null?void 0:ee.classNames)===null||me===void 0?void 0:me.item);let xe=0;const P=Ft.map((X,T)=>{var _e,kt;X!=null&&(xe=T);const Ue=X&&X.key||`${Mn}-${T}`;return v.createElement(te,{className:Mn,key:Ue,index:T,split:Pt,style:(_e=wn==null?void 0:wn.item)!==null&&_e!==void 0?_e:(kt=ee==null?void 0:ee.styles)===null||kt===void 0?void 0:kt.item},X)}),k=v.useMemo(()=>({latestIndex:xe}),[xe]);if(Ft.length===0)return null;const j={};return Tt&&(j.flexWrap="wrap"),!Vt&&un&&(j.columnGap=ae),!$t&&St&&(j.rowGap=le),ni(v.createElement("div",Object.assign({ref:pe,className:In,style:Object.assign(Object.assign(Object.assign({},j),ee==null?void 0:ee.style),xt)},qe),v.createElement(he,{value:k},P)))});Ae.Compact=F.ZP;var Re=Ae},15969:function(Q,C,h){"use strict";h.d(C,{N:function(){return v}});const v=I=>({color:I.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${I.motionDurationSlow}`,"&:focus, &:hover":{color:I.colorLinkHover},"&:active":{color:I.colorLinkActive}})},78673:function(Q,C,h){"use strict";h.d(C,{Z:function(){return lt}});var v=h(58617),I=h(92310),O=h.n(I),B=h(92413),G=h(400),F=h(33606),M=h(37061),he=h(59301),ue=h(18929),te=h(10228),Me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=he.forwardRef(function(We,Pt){var xt,Tt=We.prefixCls,Et=Tt===void 0?"rc-switch":Tt,wn=We.className,qe=We.checked,ae=We.defaultChecked,le=We.disabled,$t=We.loadingIcon,Vt=We.checkedChildren,St=We.unCheckedChildren,un=We.onClick,Ft=We.onChange,ai=We.onKeyDown,On=(0,M.Z)(We,Me),ni=(0,ue.Z)(!1,{value:qe,defaultValue:ae}),Jn=(0,F.Z)(ni,2),In=Jn[0],Mn=Jn[1];function xe(X,T){var _e=In;return le||(_e=X,Mn(_e),Ft==null||Ft(_e,T)),_e}function P(X){X.which===te.Z.LEFT?xe(!1,X):X.which===te.Z.RIGHT&&xe(!0,X),ai==null||ai(X)}function k(X){var T=xe(!In,X);un==null||un(T,X)}var j=O()(Et,wn,(xt={},(0,G.Z)(xt,"".concat(Et,"-checked"),In),(0,G.Z)(xt,"".concat(Et,"-disabled"),le),xt));return he.createElement("button",(0,B.Z)({},On,{type:"button",role:"switch","aria-checked":In,disabled:le,className:j,ref:Pt,onKeyDown:P,onClick:k}),$t,he.createElement("span",{className:"".concat(Et,"-inner")},he.createElement("span",{className:"".concat(Et,"-inner-checked")},Vt),he.createElement("span",{className:"".concat(Et,"-inner-unchecked")},St)))});we.displayName="Switch";var Je=we,Oe=h(14088),Te=h(36355),Ae=h(1684),Re=h(19716),de=h(64993),pe=h(17313),be=h(83116),me=h(37613);const ke=We=>{const{componentCls:Pt,trackHeightSM:xt,trackPadding:Tt,trackMinWidthSM:Et,innerMinMarginSM:wn,innerMaxMarginSM:qe,handleSizeSM:ae}=We,le=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:Et,height:xt,lineHeight:`${xt}px`,[`${Pt}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:wn,[`${le}-checked`]:{marginInlineStart:`calc(-100% + ${ae+Tt*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${ae+Tt*2}px + ${qe*2}px)`},[`${le}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:ae,height:ae},[`${Pt}-loading-icon`]:{top:(ae-We.switchLoadingIconSize)/2,fontSize:We.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:wn,paddingInlineEnd:qe,[`${le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${le}-unchecked`]:{marginInlineStart:`calc(100% - ${ae+Tt*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${ae+Tt*2}px - ${qe*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${ae+Tt}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${le}`]:{[`${le}-unchecked`]:{marginInlineStart:We.marginXXS/2,marginInlineEnd:-We.marginXXS/2}},[`&${Pt}-checked ${le}`]:{[`${le}-checked`]:{marginInlineStart:-We.marginXXS/2,marginInlineEnd:We.marginXXS/2}}}}}}},ee=We=>{const{componentCls:Pt,handleSize:xt}=We;return{[Pt]:{[`${Pt}-loading-icon${We.iconCls}`]:{position:"relative",top:(xt-We.fontSize)/2,color:We.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:We.switchColor}}}},Ne=We=>{const{componentCls:Pt,motion:xt,trackPadding:Tt,handleBg:Et,handleShadow:wn,handleSize:qe}=We,ae=`${Pt}-handle`;return{[Pt]:{[ae]:{position:"absolute",top:Tt,insetInlineStart:Tt,width:qe,height:qe,transition:`all ${We.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Et,borderRadius:qe/2,boxShadow:wn,transition:`all ${We.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${ae}`]:{insetInlineStart:`calc(100% - ${qe+Tt}px)`},[`&:not(${Pt}-disabled):active`]:xt?{[`${ae}::before`]:{insetInlineEnd:We.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${ae}::before`]:{insetInlineEnd:0,insetInlineStart:We.switchHandleActiveInset}}:{}}}},Ie=We=>{const{componentCls:Pt,trackHeight:xt,trackPadding:Tt,innerMinMargin:Et,innerMaxMargin:wn,handleSize:qe}=We,ae=`${Pt}-inner`;return{[Pt]:{[ae]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:wn,paddingInlineEnd:Et,transition:`padding-inline-start ${We.switchDuration} ease-in-out, padding-inline-end ${We.switchDuration} ease-in-out`,[`${ae}-checked, ${ae}-unchecked`]:{display:"block",color:We.colorTextLightSolid,fontSize:We.fontSizeSM,transition:`margin-inline-start ${We.switchDuration} ease-in-out, margin-inline-end ${We.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ae}-checked`]:{marginInlineStart:`calc(-100% + ${qe+Tt*2}px - ${wn*2}px)`,marginInlineEnd:`calc(100% - ${qe+Tt*2}px + ${wn*2}px)`},[`${ae}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${ae}`]:{paddingInlineStart:Et,paddingInlineEnd:wn,[`${ae}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ae}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+Tt*2}px + ${wn*2}px)`,marginInlineEnd:`calc(-100% + ${qe+Tt*2}px - ${wn*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${ae}`]:{[`${ae}-unchecked`]:{marginInlineStart:Tt*2,marginInlineEnd:-Tt*2}},[`&${Pt}-checked ${ae}`]:{[`${ae}-checked`]:{marginInlineStart:-Tt*2,marginInlineEnd:Tt*2}}}}}},Pe=We=>{const{componentCls:Pt,trackHeight:xt,trackMinWidth:Tt}=We;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(We)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Tt,height:xt,lineHeight:`${xt}px`,verticalAlign:"middle",background:We.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${We.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:We.colorTextTertiary}}),(0,pe.Qy)(We)),{[`&${Pt}-checked`]:{background:We.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:We.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:We.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var Xe=(0,be.Z)("Switch",We=>{const Pt=(0,me.TS)(We,{switchDuration:We.motionDurationMid,switchColor:We.colorPrimary,switchDisabledOpacity:We.opacityLoading,switchLoadingIconSize:We.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${We.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pe(Pt),Ie(Pt),Ne(Pt),ee(Pt),ke(Pt)]},We=>{const{fontSize:Pt,lineHeight:xt,controlHeight:Tt,colorWhite:Et}=We,wn=Pt*xt,qe=Tt/2,ae=2,le=wn-ae*2,$t=qe-ae*2;return{trackHeight:wn,trackHeightSM:qe,trackMinWidth:le*2+ae*4,trackMinWidthSM:$t*2+ae*2,trackPadding:ae,handleBg:Et,handleSize:le,handleSizeSM:$t,handleShadow:`0 2px 4px 0 ${new de.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:le/2,innerMaxMargin:le+ae+ae*2,innerMinMarginSM:$t/2,innerMaxMarginSM:$t+ae+ae*2}}),Ye=function(We,Pt){var xt={};for(var Tt in We)Object.prototype.hasOwnProperty.call(We,Tt)&&Pt.indexOf(Tt)<0&&(xt[Tt]=We[Tt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Tt=Object.getOwnPropertySymbols(We);Et<Tt.length;Et++)Pt.indexOf(Tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(We,Tt[Et])&&(xt[Tt[Et]]=We[Tt[Et]]);return xt};const ie=he.forwardRef((We,Pt)=>{const{prefixCls:xt,size:Tt,disabled:Et,loading:wn,className:qe,rootClassName:ae,style:le}=We,$t=Ye(We,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Vt,direction:St,switch:un}=he.useContext(Te.E_),Ft=he.useContext(Ae.Z),ai=(Et!=null?Et:Ft)||wn,On=Vt("switch",xt),ni=he.createElement("div",{className:`${On}-handle`},wn&&he.createElement(v.Z,{className:`${On}-loading-icon`})),[Jn,In]=Xe(On),Mn=(0,Re.Z)(Tt),xe=O()(un==null?void 0:un.className,{[`${On}-small`]:Mn==="small",[`${On}-loading`]:wn,[`${On}-rtl`]:St==="rtl"},qe,ae,In),P=Object.assign(Object.assign({},un==null?void 0:un.style),le);return Jn(he.createElement(Oe.Z,{component:"Switch"},he.createElement(Je,Object.assign({},$t,{prefixCls:On,className:xe,style:P,disabled:ai,ref:Pt,loadingIcon:ni}))))});ie.__ANT_SWITCH=!0;var lt=ie},1710:function(Q,C,h){"use strict";h.d(C,{default:function(){return zu}});var v={},I="rc-table-internal-hook",O=h(33606),B=h(6089),G=h(34280),F=h(13697),M=h(59301),he=h(4676);function ue(Ee){var Le=M.createContext(void 0),ht=function(_t){var Ot=_t.value,ge=_t.children,yn=M.useRef(Ot);yn.current=Ot;var ln=M.useState(function(){return{getValue:function(){return yn.current},listeners:new Set}}),zn=(0,O.Z)(ln,1),$n=zn[0];return(0,G.Z)(function(){(0,he.unstable_batchedUpdates)(function(){$n.listeners.forEach(function(Gn){Gn(Ot)})})},[Ot]),M.createElement(Le.Provider,{value:$n},ge)};return{Context:Le,Provider:ht,defaultValue:Ee}}function te(Ee,Le){var ht=(0,B.Z)(typeof Le=="function"?Le:function(Gn){if(Le===void 0)return Gn;if(!Array.isArray(Le))return Gn[Le];var yi={};return Le.forEach(function(bi){yi[bi]=Gn[bi]}),yi}),bt=M.useContext(Ee==null?void 0:Ee.Context),_t=bt||{},Ot=_t.listeners,ge=_t.getValue,yn=M.useRef();yn.current=ht(bt?ge():Ee==null?void 0:Ee.defaultValue);var ln=M.useState({}),zn=(0,O.Z)(ln,2),$n=zn[1];return(0,G.Z)(function(){if(!bt)return;function Gn(yi){var bi=ht(yi);(0,F.Z)(yn.current,bi,!0)||$n({})}return Ot.add(Gn),function(){Ot.delete(Gn)}},[bt]),yn.current}var Me=h(92413),we=h(8654);function Je(){var Ee=M.createContext(null);function Le(){return M.useContext(Ee)}function ht(_t,Ot){var ge=(0,we.Yr)(_t),yn=function(zn,$n){var Gn=ge?{ref:$n}:{},yi=M.useRef(0),bi=M.useRef(zn),ti=Le();return ti!==null?M.createElement(_t,(0,Me.Z)({},zn,Gn)):((!Ot||Ot(bi.current,zn))&&(yi.current+=1),bi.current=zn,M.createElement(Ee.Provider,{value:yi.current},M.createElement(_t,(0,Me.Z)({},zn,Gn))))};return ge?M.forwardRef(yn):yn}function bt(_t,Ot){var ge=(0,we.Yr)(_t),yn=function(zn,$n){var Gn=ge?{ref:$n}:{};return Le(),M.createElement(_t,(0,Me.Z)({},zn,Gn))};return ge?M.memo(M.forwardRef(yn),Ot):M.memo(yn,Ot)}return{makeImmutable:ht,responseImmutable:bt,useImmutableMark:Le}}var Oe=Je(),Te=Oe.makeImmutable,Ae=Oe.responseImmutable,Re=Oe.useImmutableMark,de=Je(),pe=de.makeImmutable,be=de.responseImmutable,me=de.useImmutableMark,ke=ue(),ee=ke;function Ne(Ee,Le){var ht=M.useRef(0);ht.current+=1;var bt=M.useRef(Ee),_t=[];Object.keys(Ee||{}).map(function(ge){var yn;(Ee==null?void 0:Ee[ge])!==((yn=bt.current)===null||yn===void 0?void 0:yn[ge])&&_t.push(ge)}),bt.current=Ee;var Ot=M.useRef([]);return _t.length&&(Ot.current=_t),M.useDebugValue(ht.current),M.useDebugValue(Ot.current.join(", ")),Le&&console.log("".concat(Le,":"),ht.current,Ot.current),ht.current}var Ie=null,Pe=M.memo(function(){var Ee=Ne();return M.createElement("h1",null,"Render Times: ",Ee)});Pe.displayName="RenderBlock";var Xe=h(39559),Ye=h(33708),ie=h(400),lt=h(92310),We=h.n(lt),Pt=h(80547),xt=h(97938),Tt=h(48736),Et=M.createContext({renderWithProps:!1}),wn=Et,qe="RC_TABLE_KEY";function ae(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function le(Ee){var Le=[],ht={};return Ee.forEach(function(bt){for(var _t=bt||{},Ot=_t.key,ge=_t.dataIndex,yn=Ot||ae(ge).join("-")||qe;ht[yn];)yn="".concat(yn,"_next");ht[yn]=!0,Le.push(yn)}),Le}function $t(Ee){return Ee!=null}function Vt(Ee){return Ee&&(0,Xe.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!M.isValidElement(Ee)}function St(Ee,Le,ht,bt,_t,Ot){var ge=M.useContext(wn),yn=me(),ln=(0,Pt.Z)(function(){if($t(bt))return[bt];var zn=Le==null||Le===""?[]:Array.isArray(Le)?Le:[Le],$n=(0,xt.Z)(Ee,zn),Gn=$n,yi=void 0;if(_t){var bi=_t($n,Ee,ht);Vt(bi)?(Gn=bi.children,yi=bi.props,ge.renderWithProps=!0):Gn=bi}return[Gn,yi]},[yn,Ee,bt,Le,_t,ht],function(zn,$n){if(Ot){var Gn=(0,O.Z)(zn,2),yi=Gn[1],bi=(0,O.Z)($n,2),ti=bi[1];return Ot(ti,yi)}return ge.renderWithProps?!0:!(0,F.Z)(zn,$n,!0)});return ln}function un(Ee,Le,ht,bt){var _t=Ee+Le-1;return Ee<=bt&&_t>=ht}function Ft(Ee,Le){return te(ee,function(ht){var bt=un(Ee,Le||1,ht.hoverStartRow,ht.hoverEndRow);return[bt,ht.onHover]})}var ai=function(Le){var ht=Le.ellipsis,bt=Le.rowType,_t=Le.children,Ot,ge=ht===!0?{showTitle:!0}:ht;return ge&&(ge.showTitle||bt==="header")&&(typeof _t=="string"||typeof _t=="number"?Ot=_t.toString():M.isValidElement(_t)&&typeof _t.props.children=="string"&&(Ot=_t.props.children)),Ot};function On(Ee){var Le,ht,bt,_t,Ot,ge,yn,ln,zn=Ee.component,$n=Ee.children,Gn=Ee.ellipsis,yi=Ee.scope,bi=Ee.prefixCls,ti=Ee.className,ji=Ee.align,ci=Ee.record,Gi=Ee.render,E=Ee.dataIndex,_=Ee.renderIndex,W=Ee.shouldCellUpdate,q=Ee.index,fe=Ee.rowType,Ce=Ee.colSpan,$e=Ee.rowSpan,it=Ee.fixLeft,jt=Ee.fixRight,Lt=Ee.firstFixLeft,dt=Ee.lastFixLeft,Yt=Ee.firstFixRight,qt=Ee.lastFixRight,zt=Ee.appendNode,Si=Ee.additionalProps,li=Si===void 0?{}:Si,lr=Ee.isSticky,Ni="".concat(bi,"-cell"),Mr=te(ee,["supportSticky","allColumnsFixedLeft"]),Zi=Mr.supportSticky,oo=Mr.allColumnsFixedLeft,uo=St(ci,E,_,$n,Gi,W),ii=(0,O.Z)(uo,2),qi=ii[0],Qr=ii[1],qr={},no=typeof it=="number"&&Zi,Mo=typeof jt=="number"&&Zi;no&&(qr.position="sticky",qr.left=it),Mo&&(qr.position="sticky",qr.right=jt);var ir=(Le=(ht=(bt=Qr==null?void 0:Qr.colSpan)!==null&&bt!==void 0?bt:li.colSpan)!==null&&ht!==void 0?ht:Ce)!==null&&Le!==void 0?Le:1,Mi=(_t=(Ot=(ge=Qr==null?void 0:Qr.rowSpan)!==null&&ge!==void 0?ge:li.rowSpan)!==null&&Ot!==void 0?Ot:$e)!==null&&_t!==void 0?_t:1,Yi=Ft(q,Mi),Pi=(0,O.Z)(Yi,2),Zr=Pi[0],Xi=Pi[1],Br=function(ua){var za;ci&&Xi(q,q+Mi-1),li==null||(za=li.onMouseEnter)===null||za===void 0||za.call(li,ua)},co=function(ua){var za;ci&&Xi(-1,-1),li==null||(za=li.onMouseLeave)===null||za===void 0||za.call(li,ua)};if(ir===0||Mi===0)return null;var rn=(yn=li.title)!==null&&yn!==void 0?yn:ai({rowType:fe,ellipsis:Gn,children:qi}),va=We()(Ni,ti,(ln={},(0,ie.Z)(ln,"".concat(Ni,"-fix-left"),no&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-left-first"),Lt&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-left-last"),dt&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-left-all"),dt&&oo&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-right"),Mo&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-right-first"),Yt&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-fix-right-last"),qt&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-ellipsis"),Gn),(0,ie.Z)(ln,"".concat(Ni,"-with-append"),zt),(0,ie.Z)(ln,"".concat(Ni,"-fix-sticky"),(no||Mo)&&lr&&Zi),(0,ie.Z)(ln,"".concat(Ni,"-row-hover"),!Qr&&Zr),ln),li.className,Qr==null?void 0:Qr.className),ya={};ji&&(ya.textAlign=ji);var En=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},qr),li.style),ya),Qr==null?void 0:Qr.style),go=qi;return(0,Xe.Z)(go)==="object"&&!Array.isArray(go)&&!M.isValidElement(go)&&(go=null),Gn&&(dt||Yt)&&(go=M.createElement("span",{className:"".concat(Ni,"-content")},go)),M.createElement(zn,(0,Me.Z)({},Qr,li,{className:va,style:En,title:rn,scope:yi,onMouseEnter:Br,onMouseLeave:co,colSpan:ir!==1?ir:null,rowSpan:Mi!==1?Mi:null}),zt,go)}var ni=M.memo(On);function Jn(Ee,Le,ht,bt,_t,Ot){var ge=ht[Ee]||{},yn=ht[Le]||{},ln,zn;ge.fixed==="left"?ln=bt.left[_t==="rtl"?Le:Ee]:yn.fixed==="right"&&(zn=bt.right[_t==="rtl"?Ee:Le]);var $n=!1,Gn=!1,yi=!1,bi=!1,ti=ht[Le+1],ji=ht[Ee-1],ci=!(Ot!=null&&Ot.children);if(_t==="rtl"){if(ln!==void 0){var Gi=ji&&ji.fixed==="left";bi=!Gi&&ci}else if(zn!==void 0){var E=ti&&ti.fixed==="right";yi=!E&&ci}}else if(ln!==void 0){var _=ti&&ti.fixed==="left";$n=!_&&ci}else if(zn!==void 0){var W=ji&&ji.fixed==="right";Gn=!W&&ci}return{fixLeft:ln,fixRight:zn,lastFixLeft:$n,firstFixRight:Gn,lastFixRight:yi,firstFixLeft:bi,isSticky:bt.isSticky}}var In=M.createContext({}),Mn=In;function xe(Ee){var Le=Ee.className,ht=Ee.index,bt=Ee.children,_t=Ee.colSpan,Ot=_t===void 0?1:_t,ge=Ee.rowSpan,yn=Ee.align,ln=te(ee,["prefixCls","direction"]),zn=ln.prefixCls,$n=ln.direction,Gn=M.useContext(Mn),yi=Gn.scrollColumnIndex,bi=Gn.stickyOffsets,ti=Gn.flattenColumns,ji=Gn.columns,ci=ht+Ot-1,Gi=ci+1===yi?Ot+1:Ot,E=Jn(ht,ht+Gi-1,ti,bi,$n,ji==null?void 0:ji[ht]);return M.createElement(ni,(0,Me.Z)({className:Le,index:ht,component:"td",prefixCls:zn,record:null,dataIndex:null,align:yn,colSpan:Gi,rowSpan:ge,render:function(){return bt}},E))}var P=h(37061),k=["children"];function j(Ee){var Le=Ee.children,ht=(0,P.Z)(Ee,k);return M.createElement("tr",ht,Le)}function X(Ee){var Le=Ee.children;return Le}X.Row=j,X.Cell=xe;var T=X;function _e(Ee){var Le=Ee.children,ht=Ee.stickyOffsets,bt=Ee.flattenColumns,_t=Ee.columns,Ot=te(ee,"prefixCls"),ge=bt.length-1,yn=bt[ge],ln=M.useMemo(function(){return{stickyOffsets:ht,flattenColumns:bt,scrollColumnIndex:yn!=null&&yn.scrollbar?ge:null,columns:_t}},[yn,bt,ge,ht,_t]);return M.createElement(Mn.Provider,{value:ln},M.createElement("tfoot",{className:"".concat(Ot,"-summary")},Le))}var kt=be(_e),Ue=T,Be=h(70425),mt=h(29301),ct=h(29194),tt=h(24514),It=h(75152),an=h(26112);function en(Ee,Le,ht,bt,_t,Ot,ge){Ee.push({record:Le,indent:ht,index:ge});var yn=Ot(Le),ln=_t==null?void 0:_t.has(yn);if(Le&&Array.isArray(Le[bt])&&ln)for(var zn=0;zn<Le[bt].length;zn+=1)en(Ee,Le[bt][zn],ht+1,bt,_t,Ot,zn)}function Bt(Ee,Le,ht,bt){var _t=M.useMemo(function(){if(ht!=null&&ht.size){for(var Ot=[],ge=0;ge<(Ee==null?void 0:Ee.length);ge+=1){var yn=Ee[ge];en(Ot,yn,0,Le,ht,bt,ge)}return Ot}return Ee==null?void 0:Ee.map(function(ln,zn){return{record:ln,indent:0,index:zn}})},[Ee,Le,ht,bt]);return _t}function cn(Ee){var Le=Ee.prefixCls,ht=Ee.children,bt=Ee.component,_t=Ee.cellComponent,Ot=Ee.className,ge=Ee.expanded,yn=Ee.colSpan,ln=Ee.isEmpty,zn=te(ee,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),$n=zn.scrollbarSize,Gn=zn.fixHeader,yi=zn.fixColumn,bi=zn.componentWidth,ti=zn.horizonScroll,ji=ht;return(ln?ti&&bi:yi)&&(ji=M.createElement("div",{style:{width:bi-(Gn?$n:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Le,"-expanded-row-fixed")},ji)),M.createElement(bt,{className:Ot,style:{display:ge?null:"none"}},M.createElement(ni,{component:_t,prefixCls:Le,colSpan:yn},ji))}var gn=cn;function Qe(Ee,Le,ht,bt){var _t=te(ee,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ot=_t.flattenColumns,ge=_t.expandableType,yn=_t.expandedKeys,ln=_t.childrenColumnName,zn=_t.onTriggerExpand,$n=_t.rowExpandable,Gn=_t.onRow,yi=_t.expandRowByClick,bi=_t.rowClassName,ti=ge==="nest",ji=ge==="row"&&(!$n||$n(Ee)),ci=ji||ti,Gi=yn&&yn.has(Le),E=ln&&Ee&&Ee[ln],_=(0,Be.useEvent)(zn),W=Gn==null?void 0:Gn(Ee,ht),q=W==null?void 0:W.onClick,fe=function(jt){yi&&ci&&zn(Ee,jt);for(var Lt=arguments.length,dt=new Array(Lt>1?Lt-1:0),Yt=1;Yt<Lt;Yt++)dt[Yt-1]=arguments[Yt];q==null||q.apply(void 0,[jt].concat(dt))},Ce;typeof bi=="string"?Ce=bi:typeof bi=="function"&&(Ce=bi(Ee,ht,bt));var $e=le(Ot);return(0,Ye.Z)((0,Ye.Z)({},_t),{},{columnsKey:$e,nestExpandable:ti,expanded:Gi,hasNestChildren:E,record:Ee,onTriggerExpand:_,rowSupportExpand:ji,expandable:ci,rowProps:(0,Ye.Z)((0,Ye.Z)({},W),{},{className:We()(Ce,W==null?void 0:W.className),onClick:fe})})}function Ut(Ee,Le,ht,bt,_t){var Ot=Ee.record,ge=Ee.prefixCls,yn=Ee.columnsKey,ln=Ee.fixedInfoList,zn=Ee.expandIconColumnIndex,$n=Ee.nestExpandable,Gn=Ee.indentSize,yi=Ee.expandIcon,bi=Ee.expanded,ti=Ee.hasNestChildren,ji=Ee.onTriggerExpand,ci=yn[ht],Gi=ln[ht],E;ht===(zn||0)&&$n&&(E=M.createElement(M.Fragment,null,M.createElement("span",{style:{paddingLeft:"".concat(Gn*bt,"px")},className:"".concat(ge,"-row-indent indent-level-").concat(bt)}),yi({prefixCls:ge,expanded:bi,expandable:ti,record:Ot,onExpand:ji})));var _;return Le.onCell&&(_=Le.onCell(Ot,_t)),{key:ci,fixedInfo:Gi,appendCellNode:E,additionalCellProps:_||{}}}function tn(Ee){var Le=Ee.className,ht=Ee.style,bt=Ee.record,_t=Ee.index,Ot=Ee.renderIndex,ge=Ee.rowKey,yn=Ee.indent,ln=yn===void 0?0:yn,zn=Ee.rowComponent,$n=Ee.cellComponent,Gn=Ee.scopeCellComponent,yi=Qe(bt,ge,_t,ln),bi=yi.prefixCls,ti=yi.flattenColumns,ji=yi.expandedRowClassName,ci=yi.expandedRowRender,Gi=yi.rowProps,E=yi.expanded,_=yi.rowSupportExpand,W=M.useState(!1),q=(0,O.Z)(W,2),fe=q[0],Ce=q[1];M.useEffect(function(){E&&Ce(!0)},[E]);var $e=M.createElement(zn,(0,Me.Z)({},Gi,{"data-row-key":ge,className:We()(Le,"".concat(bi,"-row"),"".concat(bi,"-row-level-").concat(ln),Gi==null?void 0:Gi.className),style:(0,Ye.Z)((0,Ye.Z)({},ht),Gi==null?void 0:Gi.style)}),ti.map(function(dt,Yt){var qt=dt.render,zt=dt.dataIndex,Si=dt.className,li=Ut(yi,dt,Yt,ln,_t),lr=li.key,Ni=li.fixedInfo,Mr=li.appendCellNode,Zi=li.additionalCellProps;return M.createElement(ni,(0,Me.Z)({className:Si,ellipsis:dt.ellipsis,align:dt.align,scope:dt.rowScope,component:dt.rowScope?Gn:$n,prefixCls:bi,key:lr,record:bt,index:_t,renderIndex:Ot,dataIndex:zt,render:qt,shouldCellUpdate:dt.shouldCellUpdate},Ni,{appendNode:Mr,additionalProps:Zi}))})),it;if(_&&(fe||E)){var jt=ci(bt,_t,ln+1,E),Lt=ji&&ji(bt,_t,ln);it=M.createElement(gn,{expanded:E,className:We()("".concat(bi,"-expanded-row"),"".concat(bi,"-expanded-row-level-").concat(ln+1),Lt),prefixCls:bi,component:zn,cellComponent:$n,colSpan:ti.length,isEmpty:!1},jt)}return M.createElement(M.Fragment,null,$e,it)}tn.displayName="BodyRow";var nn=be(tn);function He(Ee){var Le=Ee.columnKey,ht=Ee.onColumnResize,bt=M.useRef();return M.useEffect(function(){bt.current&&ht(Le,bt.current.offsetWidth)},[]),M.createElement(mt.Z,{data:Le},M.createElement("td",{ref:bt,style:{padding:0,border:0,height:0}},M.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Bn(Ee){var Le=Ee.prefixCls,ht=Ee.columnsKey,bt=Ee.onColumnResize;return M.createElement("tr",{"aria-hidden":"true",className:"".concat(Le,"-measure-row"),style:{height:0,fontSize:0}},M.createElement(mt.Z.Collection,{onBatchResize:function(Ot){Ot.forEach(function(ge){var yn=ge.data,ln=ge.size;bt(yn,ln.offsetWidth)})}},ht.map(function(_t){return M.createElement(He,{key:_t,columnKey:_t,onColumnResize:bt})})))}function kn(Ee){var Le=Ee.data,ht=Ee.measureColumnWidth,bt=te(ee,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),_t=bt.prefixCls,Ot=bt.getComponent,ge=bt.onColumnResize,yn=bt.flattenColumns,ln=bt.getRowKey,zn=bt.expandedKeys,$n=bt.childrenColumnName,Gn=bt.emptyNode,yi=Bt(Le,$n,zn,ln),bi=M.useRef({renderWithProps:!1}),ti=Ot(["body","wrapper"],"tbody"),ji=Ot(["body","row"],"tr"),ci=Ot(["body","cell"],"td"),Gi=Ot(["body","cell"],"th"),E;Le.length?E=yi.map(function(W,q){var fe=W.record,Ce=W.indent,$e=W.index,it=ln(fe,q);return M.createElement(nn,{key:it,rowKey:it,record:fe,index:q,renderIndex:$e,rowComponent:ji,cellComponent:ci,scopeCellComponent:Gi,getRowKey:ln,indent:Ce})}):E=M.createElement(gn,{expanded:!0,className:"".concat(_t,"-placeholder"),prefixCls:_t,component:ji,cellComponent:ci,colSpan:yn.length,isEmpty:!0},Gn);var _=le(yn);return M.createElement(wn.Provider,{value:bi.current},M.createElement(ti,{className:"".concat(_t,"-tbody")},ht&&M.createElement(Bn,{prefixCls:_t,columnsKey:_,onColumnResize:ge}),E))}kn.displayName="Body";var Kn=be(kn),Ti=["expandable"],hi="RC_TABLE_INTERNAL_COL_DEFINE";function dn(Ee){var Le=Ee.expandable,ht=(0,P.Z)(Ee,Ti),bt;return"expandable"in Ee?bt=(0,Ye.Z)((0,Ye.Z)({},ht),Le):bt=ht,bt.showExpandColumn===!1&&(bt.expandIconColumnIndex=-1),bt}var sn=["columnType"];function gr(Ee){for(var Le=Ee.colWidths,ht=Ee.columns,bt=Ee.columCount,_t=[],Ot=bt||ht.length,ge=!1,yn=Ot-1;yn>=0;yn-=1){var ln=Le[yn],zn=ht&&ht[yn],$n=zn&&zn[hi];if(ln||$n||ge){var Gn=$n||{},yi=Gn.columnType,bi=(0,P.Z)(Gn,sn);_t.unshift(M.createElement("col",(0,Me.Z)({key:yn,style:{width:ln}},bi))),ge=!0}}return M.createElement("colgroup",null,_t)}var dr=gr,qn=h(26407),Rr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function tr(Ee,Le){return(0,M.useMemo)(function(){for(var ht=[],bt=0;bt<Le;bt+=1){var _t=Ee[bt];if(_t!==void 0)ht[bt]=_t;else return null}return ht},[Ee.join("_"),Le])}var U=M.forwardRef(function(Ee,Le){var ht=Ee.className,bt=Ee.noData,_t=Ee.columns,Ot=Ee.flattenColumns,ge=Ee.colWidths,yn=Ee.columCount,ln=Ee.stickyOffsets,zn=Ee.direction,$n=Ee.fixHeader,Gn=Ee.stickyTopOffset,yi=Ee.stickyBottomOffset,bi=Ee.stickyClassName,ti=Ee.onScroll,ji=Ee.maxContentScroll,ci=Ee.children,Gi=(0,P.Z)(Ee,Rr),E=te(ee,["prefixCls","scrollbarSize","isSticky"]),_=E.prefixCls,W=E.scrollbarSize,q=E.isSticky,fe=q&&!$n?0:W,Ce=M.useRef(null),$e=M.useCallback(function(Si){(0,we.mH)(Le,Si),(0,we.mH)(Ce,Si)},[]);M.useEffect(function(){var Si;function li(lr){var Ni=lr,Mr=Ni.currentTarget,Zi=Ni.deltaX;Zi&&(ti({currentTarget:Mr,scrollLeft:Mr.scrollLeft+Zi}),lr.preventDefault())}return(Si=Ce.current)===null||Si===void 0||Si.addEventListener("wheel",li),function(){var lr;(lr=Ce.current)===null||lr===void 0||lr.removeEventListener("wheel",li)}},[]);var it=M.useMemo(function(){return Ot.every(function(Si){return Si.width})},[Ot]),jt=Ot[Ot.length-1],Lt={fixed:jt?jt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},dt=(0,M.useMemo)(function(){return fe?[].concat((0,qn.Z)(_t),[Lt]):_t},[fe,_t]),Yt=(0,M.useMemo)(function(){return fe?[].concat((0,qn.Z)(Ot),[Lt]):Ot},[fe,Ot]),qt=(0,M.useMemo)(function(){var Si=ln.right,li=ln.left;return(0,Ye.Z)((0,Ye.Z)({},ln),{},{left:zn==="rtl"?[].concat((0,qn.Z)(li.map(function(lr){return lr+fe})),[0]):li,right:zn==="rtl"?Si:[].concat((0,qn.Z)(Si.map(function(lr){return lr+fe})),[0]),isSticky:q})},[fe,ln,q]),zt=tr(ge,yn);return M.createElement("div",{style:(0,Ye.Z)({overflow:"hidden"},q?{top:Gn,bottom:yi}:{}),ref:$e,className:We()(ht,(0,ie.Z)({},bi,!!bi))},M.createElement("table",{style:{tableLayout:"fixed",visibility:bt||zt?null:"hidden"}},(!bt||!ji||it)&&M.createElement(dr,{colWidths:zt?[].concat((0,qn.Z)(zt),[fe]):[],columCount:yn+1,columns:Yt}),ci((0,Ye.Z)((0,Ye.Z)({},Gi),{},{stickyOffsets:qt,columns:dt,flattenColumns:Yt}))))});U.displayName="FixedHolder";var br=M.memo(U);function fr(Ee){var Le=Ee.cells,ht=Ee.stickyOffsets,bt=Ee.flattenColumns,_t=Ee.rowComponent,Ot=Ee.cellComponent,ge=Ee.tdCellComponent,yn=Ee.onHeaderRow,ln=Ee.index,zn=te(ee,["prefixCls","direction"]),$n=zn.prefixCls,Gn=zn.direction,yi;yn&&(yi=yn(Le.map(function(ti){return ti.column}),ln));var bi=le(Le.map(function(ti){return ti.column}));return M.createElement(_t,yi,Le.map(function(ti,ji){var ci=ti.column,Gi=Jn(ti.colStart,ti.colEnd,bt,ht,Gn,ci),E;return ci&&ci.onHeaderCell&&(E=ti.column.onHeaderCell(ci)),M.createElement(ni,(0,Me.Z)({},ti,{scope:ci.title?ti.colSpan>1?"colgroup":"col":null,ellipsis:ci.ellipsis,align:ci.align,component:ci.title?Ot:ge,prefixCls:$n,key:bi[ji]},Gi,{additionalProps:E,rowType:"header"}))}))}fr.displayName="HeaderRow";var Fr=fr;function jr(Ee){var Le=[];function ht(ge,yn){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Le[ln]=Le[ln]||[];var zn=yn,$n=ge.filter(Boolean).map(function(Gn){var yi={key:Gn.key,className:Gn.className||"",children:Gn.title,column:Gn,colStart:zn},bi=1,ti=Gn.children;return ti&&ti.length>0&&(bi=ht(ti,zn,ln+1).reduce(function(ji,ci){return ji+ci},0),yi.hasSubColumns=!0),"colSpan"in Gn&&(bi=Gn.colSpan),"rowSpan"in Gn&&(yi.rowSpan=Gn.rowSpan),yi.colSpan=bi,yi.colEnd=yi.colStart+bi-1,Le[ln].push(yi),zn+=bi,bi});return $n}ht(Ee,0);for(var bt=Le.length,_t=function(yn){Le[yn].forEach(function(ln){!("rowSpan"in ln)&&!ln.hasSubColumns&&(ln.rowSpan=bt-yn)})},Ot=0;Ot<bt;Ot+=1)_t(Ot);return Le}function so(Ee){var Le=Ee.stickyOffsets,ht=Ee.columns,bt=Ee.flattenColumns,_t=Ee.onHeaderRow,Ot=te(ee,["prefixCls","getComponent"]),ge=Ot.prefixCls,yn=Ot.getComponent,ln=M.useMemo(function(){return jr(ht)},[ht]),zn=yn(["header","wrapper"],"thead"),$n=yn(["header","row"],"tr"),Gn=yn(["header","cell"],"th"),yi=yn(["header","cell"],"td");return M.createElement(zn,{className:"".concat(ge,"-thead")},ln.map(function(bi,ti){var ji=M.createElement(Fr,{key:ti,flattenColumns:bt,cells:bi,stickyOffsets:Le,rowComponent:$n,cellComponent:Gn,tdCellComponent:yi,onHeaderRow:_t,index:ti});return ji}))}var Ar=be(so),to=h(11592);function vr(Ee){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Le=="number"?Le:Le.endsWith("%")?Ee*parseFloat(Le)/100:null}function Ji(Ee,Le){return M.useMemo(function(){if(Le&&Le>0){var ht=0,bt=0;Ee.forEach(function(zn){var $n=vr(Le,zn.width);$n?ht+=$n:bt+=1});var _t=Le-ht,Ot=bt,ge=_t/bt,yn=0,ln=Ee.map(function(zn){var $n=(0,Ye.Z)({},zn),Gn=vr(Le,$n.width);if(Gn)$n.width=Gn;else{var yi=Math.floor(ge);$n.width=Ot===1?_t:yi,_t-=yi,Ot-=1}return yn+=$n.width,$n});return[ln,yn]}return[Ee,Le]},[Ee,Le])}var di=["children"],ft=["fixed"];function Un(Ee){return(0,to.Z)(Ee).filter(function(Le){return M.isValidElement(Le)}).map(function(Le){var ht=Le.key,bt=Le.props,_t=bt.children,Ot=(0,P.Z)(bt,di),ge=(0,Ye.Z)({key:ht},Ot);return _t&&(ge.children=Un(_t)),ge})}function Wn(Ee){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(ht){return ht&&(0,Xe.Z)(ht)==="object"}).reduce(function(ht,bt,_t){var Ot=bt.fixed,ge=Ot===!0?"left":Ot,yn="".concat(Le,"-").concat(_t),ln=bt.children;return ln&&ln.length>0?[].concat((0,qn.Z)(ht),(0,qn.Z)(Wn(ln,yn).map(function(zn){return(0,Ye.Z)({fixed:ge},zn)}))):[].concat((0,qn.Z)(ht),[(0,Ye.Z)((0,Ye.Z)({key:yn},bt),{},{fixed:ge})])},[])}function vt(Ee){for(var Le=!0,ht=0;ht<Ee.length;ht+=1){var bt=Ee[ht];if(Le&&bt.fixed!=="left")Le=!1;else if(!Le&&bt.fixed==="left"){warning(!1,"Index ".concat(ht-1," of `columns` missing `fixed='left'` prop."));break}}for(var _t=!0,Ot=Ee.length-1;Ot>=0;Ot-=1){var ge=Ee[Ot];if(_t&&ge.fixed!=="right")_t=!1;else if(!_t&&ge.fixed==="right"){warning(!1,"Index ".concat(Ot+1," of `columns` missing `fixed='right'` prop."));break}}}function Ve(Ee){return Ee.map(function(Le){var ht=Le.fixed,bt=(0,P.Z)(Le,ft),_t=ht;return ht==="left"?_t="right":ht==="right"&&(_t="left"),(0,Ye.Z)({fixed:_t},bt)})}function vn(Ee,Le){var ht=Ee.prefixCls,bt=Ee.columns,_t=Ee.children,Ot=Ee.expandable,ge=Ee.expandedKeys,yn=Ee.columnTitle,ln=Ee.getRowKey,zn=Ee.onTriggerExpand,$n=Ee.expandIcon,Gn=Ee.rowExpandable,yi=Ee.expandIconColumnIndex,bi=Ee.direction,ti=Ee.expandRowByClick,ji=Ee.columnWidth,ci=Ee.fixed,Gi=Ee.scrollWidth,E=M.useMemo(function(){return bt||Un(_t)},[bt,_t]),_=M.useMemo(function(){if(Ot){var jt,Lt=E.slice();if(!Lt.includes(v)){var dt=yi||0;dt>=0&&Lt.splice(dt,0,v)}var Yt=Lt.indexOf(v);Lt=Lt.filter(function(li,lr){return li!==v||lr===Yt});var qt=E[Yt],zt;(ci==="left"||ci)&&!yi?zt="left":(ci==="right"||ci)&&yi===E.length?zt="right":zt=qt?qt.fixed:null;var Si=(jt={},(0,ie.Z)(jt,hi,{className:"".concat(ht,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ie.Z)(jt,"title",yn),(0,ie.Z)(jt,"fixed",zt),(0,ie.Z)(jt,"className","".concat(ht,"-row-expand-icon-cell")),(0,ie.Z)(jt,"width",ji),(0,ie.Z)(jt,"render",function(lr,Ni,Mr){var Zi=ln(Ni,Mr),oo=ge.has(Zi),uo=Gn?Gn(Ni):!0,ii=$n({prefixCls:ht,expanded:oo,expandable:uo,record:Ni,onExpand:zn});return ti?M.createElement("span",{onClick:function(Qr){return Qr.stopPropagation()}},ii):ii}),jt);return Lt.map(function(li){return li===v?Si:li})}return E.filter(function(li){return li!==v})},[Ot,E,ln,ge,$n,bi]),W=M.useMemo(function(){var jt=_;return Le&&(jt=Le(jt)),jt.length||(jt=[{render:function(){return null}}]),jt},[Le,_,bi]),q=M.useMemo(function(){return bi==="rtl"?Ve(Wn(W)):Wn(W)},[W,bi,Gi]),fe=Ji(q,Gi),Ce=(0,O.Z)(fe,2),$e=Ce[0],it=Ce[1];return[W,$e,it]}var Nn=vn;function on(Ee){var Le,ht=Ee.prefixCls,bt=Ee.record,_t=Ee.onExpand,Ot=Ee.expanded,ge=Ee.expandable,yn="".concat(ht,"-row-expand-icon");if(!ge)return M.createElement("span",{className:We()(yn,"".concat(ht,"-row-spaced"))});var ln=function($n){_t(bt,$n),$n.stopPropagation()};return M.createElement("span",{className:We()(yn,(Le={},(0,ie.Z)(Le,"".concat(ht,"-row-expanded"),Ot),(0,ie.Z)(Le,"".concat(ht,"-row-collapsed"),!Ot),Le)),onClick:ln})}function Ct(Ee,Le,ht){var bt=[];function _t(Ot){(Ot||[]).forEach(function(ge,yn){bt.push(Le(ge,yn)),_t(ge[ht])})}return _t(Ee),bt}function Ke(Ee,Le,ht){var bt=dn(Ee),_t=bt.expandIcon,Ot=bt.expandedRowKeys,ge=bt.defaultExpandedRowKeys,yn=bt.defaultExpandAllRows,ln=bt.expandedRowRender,zn=bt.onExpand,$n=bt.onExpandedRowsChange,Gn=bt.childrenColumnName,yi=_t||on,bi=Gn||"children",ti=M.useMemo(function(){return ln?"row":Ee.expandable&&Ee.internalHooks===I&&Ee.expandable.__PARENT_RENDER_ICON__||Le.some(function(q){return q&&(0,Xe.Z)(q)==="object"&&q[bi]})?"nest":!1},[!!ln,Le]),ji=M.useState(function(){return ge||(yn?Ct(Le,ht,bi):[])}),ci=(0,O.Z)(ji,2),Gi=ci[0],E=ci[1],_=M.useMemo(function(){return new Set(Ot||Gi||[])},[Ot,Gi]),W=M.useCallback(function(q){var fe=ht(q,Le.indexOf(q)),Ce,$e=_.has(fe);$e?(_.delete(fe),Ce=(0,qn.Z)(_)):Ce=[].concat((0,qn.Z)(_),[fe]),E(Ce),zn&&zn(!$e,q),$n&&$n(Ce)},[ht,_,Le,zn,$n]);return[bt,ti,_,yi,bi,W]}function Ht(Ee,Le,ht,bt){var _t=Ee.map(function(Ot,ge){return Jn(ge,ge,Ee,Le,ht,bt==null?void 0:bt[ge])});return(0,Pt.Z)(function(){return _t},[_t],function(Ot,ge){return!(0,F.Z)(Ot,ge)})}function Rt(Ee){var Le=(0,M.useRef)(Ee),ht=(0,M.useState)({}),bt=(0,O.Z)(ht,2),_t=bt[1],Ot=(0,M.useRef)(null),ge=(0,M.useRef)([]);function yn(ln){ge.current.push(ln);var zn=Promise.resolve();Ot.current=zn,zn.then(function(){if(Ot.current===zn){var $n=ge.current,Gn=Le.current;ge.current=[],$n.forEach(function(yi){Le.current=yi(Le.current)}),Ot.current=null,Gn!==Le.current&&_t({})}})}return(0,M.useEffect)(function(){return function(){Ot.current=null}},[]),[Le.current,yn]}function jn(Ee){var Le=(0,M.useRef)(Ee||null),ht=(0,M.useRef)();function bt(){window.clearTimeout(ht.current)}function _t(ge){Le.current=ge,bt(),ht.current=window.setTimeout(function(){Le.current=null,ht.current=void 0},100)}function Ot(){return Le.current}return(0,M.useEffect)(function(){return bt},[]),[_t,Ot]}function at(){var Ee=M.useState(-1),Le=(0,O.Z)(Ee,2),ht=Le[0],bt=Le[1],_t=M.useState(-1),Ot=(0,O.Z)(_t,2),ge=Ot[0],yn=Ot[1],ln=M.useCallback(function(zn,$n){bt(zn),yn($n)},[]);return[ht,ge,ln]}var hn=h(47273),yt=(0,hn.Z)()?window:null;function Ge(Ee,Le){var ht=(0,Xe.Z)(Ee)==="object"?Ee:{},bt=ht.offsetHeader,_t=bt===void 0?0:bt,Ot=ht.offsetSummary,ge=Ot===void 0?0:Ot,yn=ht.offsetScroll,ln=yn===void 0?0:yn,zn=ht.getContainer,$n=zn===void 0?function(){return yt}:zn,Gn=$n()||yt;return M.useMemo(function(){var yi=!!Ee;return{isSticky:yi,stickyClassName:yi?"".concat(Le,"-sticky-holder"):"",offsetHeader:_t,offsetSummary:ge,offsetScroll:ln,container:Gn}},[ln,_t,ge,Le,Gn])}function L(Ee,Le,ht){var bt=(0,M.useMemo)(function(){for(var _t=[],Ot=[],ge=0,yn=0,ln=0;ln<Le;ln+=1)if(ht==="rtl"){Ot[ln]=yn,yn+=Ee[ln]||0;var zn=Le-ln-1;_t[zn]=ge,ge+=Ee[zn]||0}else{_t[ln]=ge,ge+=Ee[ln]||0;var $n=Le-ln-1;Ot[$n]=yn,yn+=Ee[$n]||0}return{left:_t,right:Ot}},[Ee,Le,ht]);return bt}var Dt=L;function Jt(Ee){var Le=Ee.className,ht=Ee.children;return M.createElement("div",{className:Le},ht)}var gt=Jt,fn=h(8224),Cn=h(55468),ui=function(Le,ht){var bt,_t,Ot=Le.scrollBodyRef,ge=Le.onScroll,yn=Le.offsetScroll,ln=Le.container,zn=te(ee,"prefixCls"),$n=((bt=Ot.current)===null||bt===void 0?void 0:bt.scrollWidth)||0,Gn=((_t=Ot.current)===null||_t===void 0?void 0:_t.clientWidth)||0,yi=$n&&Gn*(Gn/$n),bi=M.useRef(),ti=Rt({scrollLeft:0,isHiddenScrollBar:!1}),ji=(0,O.Z)(ti,2),ci=ji[0],Gi=ji[1],E=M.useRef({delta:0,x:0}),_=M.useState(!1),W=(0,O.Z)(_,2),q=W[0],fe=W[1],Ce=function(){fe(!1)},$e=function(Yt){Yt.persist(),E.current.delta=Yt.pageX-ci.scrollLeft,E.current.x=0,fe(!0),Yt.preventDefault()},it=function(Yt){var qt,zt=Yt||((qt=window)===null||qt===void 0?void 0:qt.event),Si=zt.buttons;if(!q||Si===0){q&&fe(!1);return}var li=E.current.x+Yt.pageX-E.current.x-E.current.delta;li<=0&&(li=0),li+yi>=Gn&&(li=Gn-yi),ge({scrollLeft:li/Gn*($n+2)}),E.current.x=Yt.pageX},jt=function(){if(Ot.current){var Yt=(0,Cn.os)(Ot.current).top,qt=Yt+Ot.current.offsetHeight,zt=ln===window?document.documentElement.scrollTop+window.innerHeight:(0,Cn.os)(ln).top+ln.clientHeight;qt-(0,It.Z)()<=zt||Yt>=zt-yn?Gi(function(Si){return(0,Ye.Z)((0,Ye.Z)({},Si),{},{isHiddenScrollBar:!0})}):Gi(function(Si){return(0,Ye.Z)((0,Ye.Z)({},Si),{},{isHiddenScrollBar:!1})})}},Lt=function(Yt){Gi(function(qt){return(0,Ye.Z)((0,Ye.Z)({},qt),{},{scrollLeft:Yt/$n*Gn||0})})};return M.useImperativeHandle(ht,function(){return{setScrollLeft:Lt}}),M.useEffect(function(){var dt=(0,fn.Z)(document.body,"mouseup",Ce,!1),Yt=(0,fn.Z)(document.body,"mousemove",it,!1);return jt(),function(){dt.remove(),Yt.remove()}},[yi,q]),M.useEffect(function(){var dt=(0,fn.Z)(ln,"scroll",jt,!1),Yt=(0,fn.Z)(window,"resize",jt,!1);return function(){dt.remove(),Yt.remove()}},[ln]),M.useEffect(function(){ci.isHiddenScrollBar||Gi(function(dt){var Yt=Ot.current;return Yt?(0,Ye.Z)((0,Ye.Z)({},dt),{},{scrollLeft:Yt.scrollLeft/Yt.scrollWidth*Yt.clientWidth}):dt})},[ci.isHiddenScrollBar]),$n<=Gn||!yi||ci.isHiddenScrollBar?null:M.createElement("div",{style:{height:(0,It.Z)(),width:Gn,bottom:yn},className:"".concat(zn,"-sticky-scroll")},M.createElement("div",{onMouseDown:$e,ref:bi,className:We()("".concat(zn,"-sticky-scroll-bar"),(0,ie.Z)({},"".concat(zn,"-sticky-scroll-bar-active"),q)),style:{width:"".concat(yi,"px"),transform:"translate3d(".concat(ci.scrollLeft,"px, 0, 0)")}}))},Ln=M.forwardRef(ui);function rt(Ee){return null}var Oi=rt;function Qi(Ee){return null}var Kt=Qi,zi="rc-table",J=[],re={};function Hn(){return"No Data"}function Fe(Ee){var Le,ht=(0,Ye.Z)({rowKey:"key",prefixCls:zi,emptyText:Hn},Ee),bt=ht.prefixCls,_t=ht.className,Ot=ht.rowClassName,ge=ht.style,yn=ht.data,ln=ht.rowKey,zn=ht.scroll,$n=ht.tableLayout,Gn=ht.direction,yi=ht.title,bi=ht.footer,ti=ht.summary,ji=ht.caption,ci=ht.id,Gi=ht.showHeader,E=ht.components,_=ht.emptyText,W=ht.onRow,q=ht.onHeaderRow,fe=ht.internalHooks,Ce=ht.transformColumns,$e=ht.internalRefs,it=ht.tailor,jt=ht.sticky,Lt=yn||J,dt=!!Lt.length,Yt=fe===I,qt=M.useCallback(function(ea,xa){return(0,xt.Z)(E,ea)||xa},[E]),zt=M.useMemo(function(){return typeof ln=="function"?ln:function(ea){var xa=ea&&ea[ln];return xa}},[ln]),Si=qt(["body"]),li=at(),lr=(0,O.Z)(li,3),Ni=lr[0],Mr=lr[1],Zi=lr[2],oo=Ke(ht,Lt,zt),uo=(0,O.Z)(oo,6),ii=uo[0],qi=uo[1],Qr=uo[2],qr=uo[3],no=uo[4],Mo=uo[5],ir=zn==null?void 0:zn.x,Mi=M.useState(0),Yi=(0,O.Z)(Mi,2),Pi=Yi[0],Zr=Yi[1],Xi=Nn((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},ht),ii),{},{expandable:!!ii.expandedRowRender,columnTitle:ii.columnTitle,expandedKeys:Qr,getRowKey:zt,onTriggerExpand:Mo,expandIcon:qr,expandIconColumnIndex:ii.expandIconColumnIndex,direction:Gn,scrollWidth:Yt&&it&&typeof ir=="number"?ir:null}),Yt?Ce:null),Br=(0,O.Z)(Xi,3),co=Br[0],rn=Br[1],va=Br[2],ya=va!=null?va:ir,En=M.useMemo(function(){return{columns:co,flattenColumns:rn}},[co,rn]),go=M.useRef(),_a=M.useRef(),ua=M.useRef(),za=M.useRef(),$a=M.useRef(),Do=M.useState(!1),No=(0,O.Z)(Do,2),Oo=No[0],ra=No[1],ja=M.useState(!1),d=(0,O.Z)(ja,2),g=d[0],K=d[1],nt=Rt(new Map),mn=(0,O.Z)(nt,2),Yn=mn[0],Ci=mn[1],wr=le(rn),zr=wr.map(function(ea){return Yn.get(ea)}),Yr=M.useMemo(function(){return zr},[zr.join("_")]),Ra=Dt(Yr,rn.length,Gn),ba=zn&&$t(zn.y),ri=zn&&$t(ya)||!!ii.fixed,rr=ri&&rn.some(function(ea){var xa=ea.fixed;return xa}),xo=M.useRef(),Lo=Ge(jt,bt),oa=Lo.isSticky,ws=Lo.offsetHeader,ys=Lo.offsetSummary,wo=Lo.offsetScroll,ca=Lo.stickyClassName,Ga=Lo.container,N=M.useMemo(function(){return ti==null?void 0:ti(Lt)},[ti,Lt]),m=(ba||oa)&&M.isValidElement(N)&&N.type===T&&N.props.fixed,S,D,Z;ba&&(D={overflowY:"scroll",maxHeight:zn.y}),ri&&(S={overflowX:"auto"},ba||(D={overflowY:"hidden"}),Z={width:ya===!0?"auto":ya,minWidth:"100%"});var oe=M.useCallback(function(ea,xa){(0,ct.Z)(go.current)&&Ci(function(Hs){if(Hs.get(ea)!==xa){var qs=new Map(Hs);return qs.set(ea,xa),qs}return Hs})},[]),Y=jn(null),ut=(0,O.Z)(Y,2),pt=ut[0],bn=ut[1];function _n(ea,xa){xa&&(typeof xa=="function"?xa(ea):xa.scrollLeft!==ea&&(xa.scrollLeft=ea,xa.scrollLeft!==ea&&setTimeout(function(){xa.scrollLeft=ea},0)))}var Qn=(0,B.Z)(function(ea){var xa=ea.currentTarget,Hs=ea.scrollLeft,qs=Gn==="rtl",el=typeof Hs=="number"?Hs:xa.scrollLeft,Cc=xa||re;if(!bn()||bn()===Cc){var ku;pt(Cc),_n(el,_a.current),_n(el,ua.current),_n(el,$a.current),_n(el,(ku=xo.current)===null||ku===void 0?void 0:ku.setScrollLeft)}var Xc=xa||_a.current;if(Xc){var mu=Xc.scrollWidth,tc=Xc.clientWidth;if(mu===tc){ra(!1),K(!1);return}qs?(ra(-el<mu-tc),K(-el>0)):(ra(el>0),K(el<mu-tc))}}),ki=function(){ri&&ua.current?Qn({currentTarget:ua.current}):(ra(!1),K(!1))},Ii=function(xa){var Hs=xa.width;Hs!==Pi&&(ki(),Zr(go.current?go.current.offsetWidth:Hs))},$i=M.useRef(!1);M.useEffect(function(){$i.current&&ki()},[ri,yn,co.length]),M.useEffect(function(){$i.current=!0},[]);var Nr=M.useState(0),Ur=(0,O.Z)(Nr,2),Hr=Ur[0],Ao=Ur[1],Go=M.useState(!0),Da=(0,O.Z)(Go,2),na=Da[0],Ko=Da[1];M.useEffect(function(){(!it||!Yt)&&(ua.current instanceof Element?Ao((0,It.o)(ua.current).width):Ao((0,It.o)(za.current).width)),Ko((0,tt.G)("position","sticky"))},[]),M.useEffect(function(){Yt&&$e&&($e.body.current=ua.current)});var pa=M.useCallback(function(ea){return M.createElement(M.Fragment,null,M.createElement(Ar,ea),m==="top"&&M.createElement(kt,ea,N))},[m,N]),hs=M.useCallback(function(ea){return M.createElement(kt,ea,N)},[N]),ha=qt(["table"],"table"),bl=M.useMemo(function(){return $n||(rr?ya==="max-content"?"auto":"fixed":ba||oa||rn.some(function(ea){var xa=ea.ellipsis;return xa})?"fixed":"auto")},[ba,rr,rn,$n,oa]),Us,ds={colWidths:Yr,columCount:rn.length,stickyOffsets:Ra,onHeaderRow:q,fixHeader:ba,scroll:zn},Is=M.useMemo(function(){return dt?null:typeof _=="function"?_():_},[dt,_]),ul=M.createElement(Kn,{data:Lt,measureColumnWidth:ba||ri||oa}),Kl=M.createElement(dr,{colWidths:rn.map(function(ea){var xa=ea.width;return xa}),columns:rn}),_s=ji!=null?M.createElement("caption",{className:"".concat(bt,"-caption")},ji):void 0,Au=(0,an.Z)(ht,{data:!0}),ec=(0,an.Z)(ht,{aria:!0});if(ba||oa){var Pc;typeof Si=="function"?(Pc=Si(Lt,{scrollbarSize:Hr,ref:ua,onScroll:Qn}),ds.colWidths=rn.map(function(ea,xa){var Hs=ea.width,qs=xa===rn.length-1?Hs-Hr:Hs;return typeof qs=="number"&&!Number.isNaN(qs)?qs:0})):Pc=M.createElement("div",{style:(0,Ye.Z)((0,Ye.Z)({},S),D),onScroll:Qn,ref:ua,className:We()("".concat(bt,"-body"))},M.createElement(ha,(0,Me.Z)({style:(0,Ye.Z)((0,Ye.Z)({},Z),{},{tableLayout:bl})},ec),_s,Kl,ul,!m&&N&&M.createElement(kt,{stickyOffsets:Ra,flattenColumns:rn,columns:co},N)));var Fl=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({noData:!Lt.length,maxContentScroll:ri&&ya==="max-content"},ds),En),{},{direction:Gn,stickyClassName:ca,onScroll:Qn});Us=M.createElement(M.Fragment,null,Gi!==!1&&M.createElement(br,(0,Me.Z)({},Fl,{stickyTopOffset:ws,className:"".concat(bt,"-header"),ref:_a}),pa),Pc,m&&m!=="top"&&M.createElement(br,(0,Me.Z)({},Fl,{stickyBottomOffset:ys,className:"".concat(bt,"-summary"),ref:$a}),hs),oa&&M.createElement(Ln,{ref:xo,offsetScroll:wo,scrollBodyRef:ua,onScroll:Qn,container:Ga}))}else Us=M.createElement("div",{style:(0,Ye.Z)((0,Ye.Z)({},S),D),className:We()("".concat(bt,"-content")),onScroll:Qn,ref:ua},M.createElement(ha,(0,Me.Z)({style:(0,Ye.Z)((0,Ye.Z)({},Z),{},{tableLayout:bl})},ec),_s,Kl,Gi!==!1&&M.createElement(Ar,(0,Me.Z)({},ds,En)),ul,N&&M.createElement(kt,{stickyOffsets:Ra,flattenColumns:rn,columns:co},N)));var bs=M.createElement("div",(0,Me.Z)({className:We()(bt,_t,(Le={},(0,ie.Z)(Le,"".concat(bt,"-rtl"),Gn==="rtl"),(0,ie.Z)(Le,"".concat(bt,"-ping-left"),Oo),(0,ie.Z)(Le,"".concat(bt,"-ping-right"),g),(0,ie.Z)(Le,"".concat(bt,"-layout-fixed"),$n==="fixed"),(0,ie.Z)(Le,"".concat(bt,"-fixed-header"),ba),(0,ie.Z)(Le,"".concat(bt,"-fixed-column"),rr),(0,ie.Z)(Le,"".concat(bt,"-scroll-horizontal"),ri),(0,ie.Z)(Le,"".concat(bt,"-has-fix-left"),rn[0]&&rn[0].fixed),(0,ie.Z)(Le,"".concat(bt,"-has-fix-right"),rn[rn.length-1]&&rn[rn.length-1].fixed==="right"),Le)),style:ge,id:ci,ref:go},Au),yi&&M.createElement(gt,{className:"".concat(bt,"-title")},yi(Lt)),M.createElement("div",{ref:za,className:"".concat(bt,"-container")},Us),bi&&M.createElement(gt,{className:"".concat(bt,"-footer")},bi(Lt)));ri&&(bs=M.createElement(mt.Z,{onResize:Ii},bs));var Bl=Ht(rn,Ra,Gn,co),Qa=M.useMemo(function(){return{scrollX:ya,prefixCls:bt,getComponent:qt,scrollbarSize:Hr,direction:Gn,fixedInfoList:Bl,isSticky:oa,supportSticky:na,componentWidth:Pi,fixHeader:ba,fixColumn:rr,horizonScroll:ri,tableLayout:bl,rowClassName:Ot,expandedRowClassName:ii.expandedRowClassName,expandIcon:qr,expandableType:qi,expandRowByClick:ii.expandRowByClick,expandedRowRender:ii.expandedRowRender,onTriggerExpand:Mo,expandIconColumnIndex:ii.expandIconColumnIndex,indentSize:ii.indentSize,allColumnsFixedLeft:rn.every(function(ea){return ea.fixed==="left"}),emptyNode:Is,columns:co,flattenColumns:rn,onColumnResize:oe,hoverStartRow:Ni,hoverEndRow:Mr,onHover:Zi,rowExpandable:ii.rowExpandable,onRow:W,getRowKey:zt,expandedKeys:Qr,childrenColumnName:no}},[ya,bt,qt,Hr,Gn,Bl,oa,na,Pi,ba,rr,ri,bl,Ot,ii.expandedRowClassName,qr,qi,ii.expandRowByClick,ii.expandedRowRender,Mo,ii.expandIconColumnIndex,ii.indentSize,Is,co,rn,oe,Ni,Mr,Zi,ii.rowExpandable,W,zt,Qr,no]);return M.createElement(ee.Provider,{value:Qa},bs)}function wt(Ee){return pe(Fe,Ee)}var gi=wt();gi.EXPAND_COLUMN=v,gi.INTERNAL_HOOKS=I,gi.Column=Oi,gi.ColumnGroup=Kt,gi.Summary=Ue;var Rn=gi,_i=h(57149),Xt=ue(null),Ei=ue(null);function Zt(Ee,Le,ht){var bt=Le||1;return ht[Ee+bt]-(ht[Ee]||0)}function Bi(Ee){var Le=Ee.rowInfo,ht=Ee.column,bt=Ee.colIndex,_t=Ee.indent,Ot=Ee.index,ge=Ee.renderIndex,yn=Ee.record,ln=Ee.style,zn=Ee.className,$n=Ee.inverse,Gn=Ee.getHeight,yi=ht.render,bi=ht.dataIndex,ti=ht.className,ji=ht.width,ci=te(Ei,["columnsOffset"]),Gi=ci.columnsOffset,E=Ut(Le,ht,bt,_t,Ot),_=E.key,W=E.fixedInfo,q=E.appendCellNode,fe=E.additionalCellProps,Ce=fe.style,$e=fe.colSpan,it=$e===void 0?1:$e,jt=fe.rowSpan,Lt=jt===void 0?1:jt,dt=bt-1,Yt=Zt(dt,it,Gi),qt=it>1?ji-Yt:0,zt=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},Ce),ln),{},{flex:"0 0 ".concat(Yt,"px"),width:"".concat(Yt,"px"),marginRight:qt,pointerEvents:"auto"}),Si=M.useMemo(function(){return $n?Lt<=1:it===0||Lt===0||Lt>1},[Lt,it,$n]);Si?zt.visibility="hidden":$n&&(zt.height=Gn==null?void 0:Gn(Lt));var li=Si?function(){return null}:yi,lr={};return(Lt===0||it===0)&&(lr.rowSpan=1,lr.colSpan=1),M.createElement(ni,(0,Me.Z)({className:We()(ti,zn),ellipsis:ht.ellipsis,align:ht.align,scope:ht.rowScope,component:"div",prefixCls:Le.prefixCls,key:_,record:yn,index:Ot,renderIndex:ge,dataIndex:bi,render:li,shouldCellUpdate:ht.shouldCellUpdate},W,{appendNode:q,additionalProps:(0,Ye.Z)((0,Ye.Z)({},fe),{},{style:zt},lr)}))}var Gr=Bi,At=["data","index","className","rowKey","style","extra","getHeight"],eo=M.forwardRef(function(Ee,Le){var ht=Ee.data,bt=Ee.index,_t=Ee.className,Ot=Ee.rowKey,ge=Ee.style,yn=Ee.extra,ln=Ee.getHeight,zn=(0,P.Z)(Ee,At),$n=ht.record,Gn=ht.indent,yi=ht.index,bi=te(ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ti=bi.scrollX,ji=bi.flattenColumns,ci=bi.prefixCls,Gi=bi.fixColumn,E=bi.componentWidth,_=Qe($n,Ot,bt,Gn),W=_.rowSupportExpand,q=_.expanded,fe=_.rowProps,Ce=_.expandedRowRender,$e=_.expandedRowClassName,it;if(W&&q){var jt=Ce($n,bt,Gn+1,q),Lt=$e==null?void 0:$e($n,bt,Gn),dt={};Gi&&(dt={style:(0,ie.Z)({},"--virtual-width","".concat(E,"px"))});var Yt="".concat(ci,"-expanded-row-cell");it=M.createElement("div",{className:We()("".concat(ci,"-expanded-row"),"".concat(ci,"-expanded-row-level-").concat(Gn+1),Lt)},M.createElement(ni,{component:"div",prefixCls:ci,className:We()(Yt,(0,ie.Z)({},"".concat(Yt,"-fixed"),Gi)),additionalProps:dt},jt))}var qt=(0,Ye.Z)((0,Ye.Z)({},ge),{},{width:ti});yn&&(qt.position="absolute",qt.pointerEvents="none");var zt=M.createElement("div",(0,Me.Z)({},fe,zn,{ref:W?null:Le,className:We()(_t,"".concat(ci,"-row"),fe==null?void 0:fe.className,(0,ie.Z)({},"".concat(ci,"-row-extra"),yn)),style:(0,Ye.Z)((0,Ye.Z)({},qt),fe==null?void 0:fe.style)}),ji.map(function(Si,li){return M.createElement(Gr,{key:li,rowInfo:_,column:Si,colIndex:li,indent:Gn,index:bt,renderIndex:yi,record:$n,inverse:yn,getHeight:ln})}));return W?M.createElement("div",{ref:Le},zt,it):zt}),Qt=be(eo),Li=Qt,wi=M.forwardRef(function(Ee,Le){var ht=Ee.data,bt=Ee.onScroll,_t=te(ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ot=_t.flattenColumns,ge=_t.onColumnResize,yn=_t.getRowKey,ln=_t.expandedKeys,zn=_t.prefixCls,$n=_t.childrenColumnName,Gn=_t.emptyNode,yi=_t.scrollX,bi=te(Xt),ti=bi.scrollY,ji=bi.listItemHeight,ci=M.useRef(),Gi=Bt(ht,$n,ln,yn),E=M.useMemo(function(){var it=0;return Ot.map(function(jt){var Lt=jt.width,dt=jt.key;return it+=Lt,[dt,Lt,it]})},[Ot]),_=M.useMemo(function(){return E.map(function(it){return it[2]})},[E]);M.useEffect(function(){E.forEach(function(it){var jt=(0,O.Z)(it,2),Lt=jt[0],dt=jt[1];ge(Lt,dt)})},[E]),M.useImperativeHandle(Le,function(){var it={};return Object.defineProperty(it,"scrollLeft",{get:function(){var Lt;return((Lt=ci.current)===null||Lt===void 0?void 0:Lt.getScrollInfo().x)||0},set:function(Lt){var dt;(dt=ci.current)===null||dt===void 0||dt.scrollTo({left:Lt})}}),it});var W=function(jt,Lt){var dt,Yt=(dt=Gi[Lt])===null||dt===void 0?void 0:dt.record,qt=jt.onCell;if(qt){var zt,Si=qt(Yt,Lt);return(zt=Si==null?void 0:Si.rowSpan)!==null&&zt!==void 0?zt:1}return 1},q=function(jt){var Lt=jt.start,dt=jt.end,Yt=jt.getSize,qt=jt.offsetY;if(dt<0)return null;for(var zt=Ot.filter(function(ir){return W(ir,Lt)===0}),Si=Lt,li=function(Mi){if(zt=zt.filter(function(Yi){return W(Yi,Mi)===0}),!zt.length)return Si=Mi,"break"},lr=Lt;lr>=0;lr-=1){var Ni=li(lr);if(Ni==="break")break}for(var Mr=Ot.filter(function(ir){return W(ir,dt)!==1}),Zi=dt,oo=function(Mi){if(Mr=Mr.filter(function(Yi){return W(Yi,Mi)!==1}),!Mr.length)return Zi=Math.max(Mi-1,dt),"break"},uo=dt;uo<Gi.length;uo+=1){var ii=oo(uo);if(ii==="break")break}for(var qi=[],Qr=function(Mi){var Yi=Gi[Mi];if(!Yi)return"continue";Ot.some(function(Pi){return W(Pi,Mi)>1})&&qi.push(Mi)},qr=Si;qr<=Zi;qr+=1)var no=Qr(qr);var Mo=qi.map(function(ir){var Mi=Gi[ir],Yi=yn(Mi.record,ir),Pi=function(Br){var co=ir+Br-1,rn=yn(Gi[co].record,co),va=Yt(Yi,rn);return va.bottom-va.top},Zr=Yt(Yi);return M.createElement(Li,{key:ir,data:Mi,rowKey:Yi,index:ir,style:{top:-qt+Zr.top},extra:!0,getHeight:Pi})});return Mo},fe=M.useMemo(function(){return{columnsOffset:_}},[_]),Ce="".concat(zn,"-tbody"),$e;return Gi.length?$e=M.createElement(_i.Z,{fullHeight:!1,ref:ci,className:We()(Ce,"".concat(Ce,"-virtual")),height:ti,itemHeight:ji||24,data:Gi,itemKey:function(jt){return yn(jt.record)},scrollWidth:yi,onVirtualScroll:function(jt){var Lt=jt.x;bt({scrollLeft:Lt})},extraRender:q},function(it,jt,Lt){var dt=yn(it.record,jt);return M.createElement(Li,(0,Me.Z)({data:it,rowKey:dt,index:jt},Lt))}):$e=M.createElement("div",{className:We()("".concat(zn,"-placeholder"))},M.createElement(ni,{component:"div",prefixCls:zn},Gn)),M.createElement(Ei.Provider,{value:fe},$e)}),pr=be(wi),ar=pr,Zn=function(Le,ht){var bt=ht.ref,_t=ht.onScroll;return M.createElement(ar,{ref:bt,data:Le,onScroll:_t})},ce=100;function mr(Ee){var Le=Ee.columns,ht=Ee.scroll,bt=Ee.prefixCls,_t=bt===void 0?zi:bt,Ot=Ee.className,ge=Ee.listItemHeight,yn=ht||{},ln=yn.x,zn=yn.y;typeof ln!="number"&&(ln=((Le||[]).length+1)*ce),typeof zn!="number"&&(zn=500);var $n=M.useMemo(function(){return{scrollY:zn,listItemHeight:ge}},[zn,ge]);return M.createElement(Xt.Provider,{value:$n},M.createElement(Rn,(0,Me.Z)({},Ee,{className:We()(Ot,"".concat(_t,"-virtual")),scroll:(0,Ye.Z)((0,Ye.Z)({},ht),{},{x:ln}),components:{body:Zn},columns:Le,internalHooks:I,tailor:!0})))}function Er(Ee){return pe(mr,Ee)}var cr=Er(),Wr=null;function Wi(Ee){return null}var Kr=Wi;function Ri(Ee){return null}var Ui=Ri,Di=h(2738),Cr=h(68031),Tr=h(36355),io=h(93891),bo=h(19716),mi=h(8628),Sa=h(31724),Wo=h(58421),Jo=h(71418),Ta=h(88088);function Ya(Ee){return function(ht){let{prefixCls:bt,onExpand:_t,record:Ot,expanded:ge,expandable:yn}=ht;const ln=`${bt}-row-expand-icon`;return M.createElement("button",{type:"button",onClick:zn=>{_t(Ot,zn),zn.stopPropagation()},className:We()(ln,{[`${ln}-spaced`]:!yn,[`${ln}-expanded`]:yn&&ge,[`${ln}-collapsed`]:yn&&!ge}),"aria-label":ge?Ee.collapse:Ee.expand,"aria-expanded":ge})}}var ns=Ya;function Na(Ee,Le){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:Le}function cs(Ee,Le){return Le?`${Le}-${Ee}`:`${Ee}`}function Za(Ee,Le){return typeof Ee=="function"?Ee(Le):Ee}function jo(Ee,Le){const ht=Za(Ee,Le);return Object.prototype.toString.call(ht)==="[object Object]"?"":ht}var Wt={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"},Ba=Wt,eu=h(7657),ol=function(Le,ht){return M.createElement(eu.Z,(0,Me.Z)({},Le,{ref:ht,icon:Ba}))},po=M.forwardRef(ol),ko=po,yo=h(56762);function Mt(Ee){const Le=M.useRef(Ee),ht=(0,yo.Z)();return[()=>Le.current,bt=>{Le.current=bt,ht()}]}var Dr=h(3113),mo=h(24905),Ea=h(38854),xr=h(64165),Sn=h(20834),ur=h(40875),vi=h(5112),Vo=h(17574),ma=h(47472),is=h(92832);function Rs(Ee){let{value:Le,onChange:ht,filterSearch:bt,tablePrefixCls:_t,locale:Ot}=Ee;return bt?M.createElement("div",{className:`${_t}-filter-dropdown-search`},M.createElement(is.default,{prefix:M.createElement(ma.Z,null),placeholder:Ot.filterSearchPlaceholder,onChange:ht,value:Le,htmlSize:1,className:`${_t}-filter-dropdown-search-input`})):null}var Ns=Rs,si=h(10228);const Hi=Ee=>{const{keyCode:Le}=Ee;Le===si.Z.ENTER&&Ee.stopPropagation()};var As=M.forwardRef((Ee,Le)=>M.createElement("div",{className:Ee.className,onClick:ht=>ht.stopPropagation(),onKeyDown:Hi,ref:Le},Ee.children));function Yo(Ee){let Le=[];return(Ee||[]).forEach(ht=>{let{value:bt,children:_t}=ht;Le.push(bt),_t&&(Le=[].concat((0,qn.Z)(Le),(0,qn.Z)(Yo(_t))))}),Le}function rs(Ee){return Ee.some(Le=>{let{children:ht}=Le;return ht})}function Lr(Ee,Le){return typeof Le=="string"||typeof Le=="number"?Le==null?void 0:Le.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function al(Ee){let{filters:Le,prefixCls:ht,filteredKeys:bt,filterMultiple:_t,searchValue:Ot,filterSearch:ge}=Ee;return Le.map((yn,ln)=>{const zn=String(yn.value);if(yn.children)return{key:zn||ln,label:yn.text,popupClassName:`${ht}-dropdown-submenu`,children:al({filters:yn.children,prefixCls:ht,filteredKeys:bt,filterMultiple:_t,searchValue:Ot,filterSearch:ge})};const $n=_t?mo.default:vi.ZP,Gn={key:yn.value!==void 0?zn:ln,label:M.createElement(M.Fragment,null,M.createElement($n,{checked:bt.includes(zn)}),M.createElement("span",null,yn.text))};return Ot.trim()?typeof ge=="function"?ge(Ot,yn)?Gn:null:Lr(Ot,yn.text)?Gn:null:Gn})}function Ds(Ee){var Le,ht;const{tablePrefixCls:bt,prefixCls:_t,column:Ot,dropdownPrefixCls:ge,columnKey:yn,filterMultiple:ln,filterMode:zn="menu",filterSearch:$n=!1,filterState:Gn,triggerFilter:yi,locale:bi,children:ti,getPopupContainer:ji}=Ee,{filterDropdownOpen:ci,onFilterDropdownOpenChange:Gi,filterResetToDefaultFilteredValue:E,defaultFilteredValue:_,filterDropdownVisible:W,onFilterDropdownVisibleChange:q}=Ot,[fe,Ce]=M.useState(!1),$e=!!(Gn&&(!((Le=Gn.filteredKeys)===null||Le===void 0)&&Le.length||Gn.forceFiltered)),it=Xi=>{Ce(Xi),Gi==null||Gi(Xi),q==null||q(Xi)},jt=(ht=ci!=null?ci:W)!==null&&ht!==void 0?ht:fe,Lt=Gn==null?void 0:Gn.filteredKeys,[dt,Yt]=Mt(Lt||[]),qt=Xi=>{let{selectedKeys:Br}=Xi;Yt(Br)},zt=(Xi,Br)=>{let{node:co,checked:rn}=Br;qt(ln?{selectedKeys:Xi}:{selectedKeys:rn&&co.key?[co.key]:[]})};M.useEffect(()=>{fe&&qt({selectedKeys:Lt||[]})},[Lt]);const[Si,li]=M.useState([]),lr=Xi=>{li(Xi)},[Ni,Mr]=M.useState(""),Zi=Xi=>{const{value:Br}=Xi.target;Mr(Br)};M.useEffect(()=>{fe||Mr("")},[fe]);const oo=Xi=>{const Br=Xi&&Xi.length?Xi:null;if(Br===null&&(!Gn||!Gn.filteredKeys)||(0,F.Z)(Br,Gn==null?void 0:Gn.filteredKeys,!0))return null;yi({column:Ot,key:yn,filteredKeys:Br})},uo=()=>{it(!1),oo(dt())},ii=function(){let{confirm:Xi,closeDropdown:Br}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Xi&&oo([]),Br&&it(!1),Mr(""),Yt(E?(_||[]).map(co=>String(co)):[])},qi=function(){let{closeDropdown:Xi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Xi&&it(!1),oo(dt())},Qr=Xi=>{Xi&&Lt!==void 0&&Yt(Lt||[]),it(Xi),!Xi&&!Ot.filterDropdown&&uo()},qr=We()({[`${ge}-menu-without-submenu`]:!rs(Ot.filters||[])}),no=Xi=>{if(Xi.target.checked){const Br=Yo(Ot==null?void 0:Ot.filters).map(co=>String(co));Yt(Br)}else Yt([])},Mo=Xi=>{let{filters:Br}=Xi;return(Br||[]).map((co,rn)=>{const va=String(co.value),ya={title:co.text,key:co.value!==void 0?va:rn};return co.children&&(ya.children=Mo({filters:co.children})),ya})},ir=Xi=>{var Br;return Object.assign(Object.assign({},Xi),{text:Xi.title,value:Xi.key,children:((Br=Xi.children)===null||Br===void 0?void 0:Br.map(co=>ir(co)))||[]})};let Mi;if(typeof Ot.filterDropdown=="function")Mi=Ot.filterDropdown({prefixCls:`${ge}-custom`,setSelectedKeys:Xi=>qt({selectedKeys:Xi}),selectedKeys:dt(),confirm:qi,clearFilters:ii,filters:Ot.filters,visible:jt,close:()=>{it(!1)}});else if(Ot.filterDropdown)Mi=Ot.filterDropdown;else{const Xi=dt()||[],Br=()=>(Ot.filters||[]).length===0?M.createElement(xr.Z,{image:xr.Z.PRESENTED_IMAGE_SIMPLE,description:bi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):zn==="tree"?M.createElement(M.Fragment,null,M.createElement(Ns,{filterSearch:$n,value:Ni,onChange:Zi,tablePrefixCls:bt,locale:bi}),M.createElement("div",{className:`${bt}-filter-dropdown-tree`},ln?M.createElement(mo.default,{checked:Xi.length===Yo(Ot.filters).length,indeterminate:Xi.length>0&&Xi.length<Yo(Ot.filters).length,className:`${bt}-filter-dropdown-checkall`,onChange:no},bi.filterCheckall):null,M.createElement(Vo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ln,checkStrictly:!ln,className:`${ge}-menu`,onCheck:zt,checkedKeys:Xi,selectedKeys:Xi,showIcon:!1,treeData:Mo({filters:Ot.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ni.trim()?rn=>typeof $n=="function"?$n(Ni,ir(rn)):Lr(Ni,rn.title):void 0}))):M.createElement(M.Fragment,null,M.createElement(Ns,{filterSearch:$n,value:Ni,onChange:Zi,tablePrefixCls:bt,locale:bi}),M.createElement(Sn.default,{selectable:!0,multiple:ln,prefixCls:`${ge}-menu`,className:qr,onSelect:qt,onDeselect:qt,selectedKeys:Xi,getPopupContainer:ji,openKeys:Si,onOpenChange:lr,items:al({filters:Ot.filters||[],filterSearch:$n,prefixCls:_t,filteredKeys:dt(),filterMultiple:ln,searchValue:Ni})})),co=()=>E?(0,F.Z)((_||[]).map(rn=>String(rn)),Xi,!0):Xi.length===0;Mi=M.createElement(M.Fragment,null,Br(),M.createElement("div",{className:`${_t}-dropdown-btns`},M.createElement(Dr.ZP,{type:"link",size:"small",disabled:co(),onClick:()=>ii()},bi.filterReset),M.createElement(Dr.ZP,{type:"primary",size:"small",onClick:uo},bi.filterConfirm)))}Ot.filterDropdown&&(Mi=M.createElement(ur.J,{selectable:void 0},Mi));const Yi=()=>M.createElement(As,{className:`${_t}-dropdown`},Mi);let Pi;typeof Ot.filterIcon=="function"?Pi=Ot.filterIcon($e):Ot.filterIcon?Pi=Ot.filterIcon:Pi=M.createElement(ko,null);const{direction:Zr}=M.useContext(Tr.E_);return M.createElement("div",{className:`${_t}-column`},M.createElement("span",{className:`${bt}-column-title`},ti),M.createElement(Ea.Z,{dropdownRender:Yi,trigger:["click"],open:jt,onOpenChange:Qr,getPopupContainer:ji,placement:Zr==="rtl"?"bottomLeft":"bottomRight"},M.createElement("span",{role:"button",tabIndex:-1,className:We()(`${_t}-trigger`,{active:$e}),onClick:Xi=>{Xi.stopPropagation()}},Pi)))}var Ps=Ds;function Ho(Ee,Le,ht){let bt=[];return(Ee||[]).forEach((_t,Ot)=>{var ge;const yn=cs(Ot,ht);if(_t.filters||"filterDropdown"in _t||"onFilter"in _t)if("filteredValue"in _t){let ln=_t.filteredValue;"filterDropdown"in _t||(ln=(ge=ln==null?void 0:ln.map(String))!==null&&ge!==void 0?ge:ln),bt.push({column:_t,key:Na(_t,yn),filteredKeys:ln,forceFiltered:_t.filtered})}else bt.push({column:_t,key:Na(_t,yn),filteredKeys:Le&&_t.defaultFilteredValue?_t.defaultFilteredValue:void 0,forceFiltered:_t.filtered});"children"in _t&&(bt=[].concat((0,qn.Z)(bt),(0,qn.Z)(Ho(_t.children,Le,yn))))}),bt}function os(Ee,Le,ht,bt,_t,Ot,ge,yn){return ht.map((ln,zn)=>{const $n=cs(zn,yn),{filterMultiple:Gn=!0,filterMode:yi,filterSearch:bi}=ln;let ti=ln;if(ti.filters||ti.filterDropdown){const ji=Na(ti,$n),ci=bt.find(Gi=>{let{key:E}=Gi;return ji===E});ti=Object.assign(Object.assign({},ti),{title:Gi=>M.createElement(Ps,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:Le,column:ti,columnKey:ji,filterState:ci,filterMultiple:Gn,filterMode:yi,filterSearch:bi,triggerFilter:Ot,locale:_t,getPopupContainer:ge},Za(ln.title,Gi))})}return"children"in ti&&(ti=Object.assign(Object.assign({},ti),{children:os(Ee,Le,ti.children,bt,_t,Ot,ge,$n)})),ti})}function Ol(Ee){const Le={};return Ee.forEach(ht=>{let{key:bt,filteredKeys:_t,column:Ot}=ht;const{filters:ge,filterDropdown:yn}=Ot;if(yn)Le[bt]=_t||null;else if(Array.isArray(_t)){const ln=Yo(ge);Le[bt]=ln.filter(zn=>_t.includes(String(zn)))}else Le[bt]=null}),Le}function Xa(Ee,Le){return Le.reduce((ht,bt)=>{const{column:{onFilter:_t,filters:Ot},filteredKeys:ge}=bt;return _t&&ge&&ge.length?ht.filter(yn=>ge.some(ln=>{const zn=Yo(Ot),$n=zn.findIndex(yi=>String(yi)===String(ln)),Gn=$n!==-1?zn[$n]:ln;return _t(Gn,yn)})):ht},Ee)}const Oa=Ee=>Ee.flatMap(Le=>"children"in Le?[Le].concat((0,qn.Z)(Oa(Le.children||[]))):[Le]);function ml(Ee){let{prefixCls:Le,dropdownPrefixCls:ht,mergedColumns:bt,onFilterChange:_t,getPopupContainer:Ot,locale:ge}=Ee;const yn=M.useMemo(()=>Oa(bt||[]),[bt]),[ln,zn]=M.useState(()=>Ho(yn,!0)),$n=M.useMemo(()=>{const ti=Ho(yn,!1);if(ti.length===0)return ti;let ji=!0,ci=!0;if(ti.forEach(Gi=>{let{filteredKeys:E}=Gi;E!==void 0?ji=!1:ci=!1}),ji){const Gi=(yn||[]).map((E,_)=>Na(E,cs(_)));return ln.filter(E=>{let{key:_}=E;return Gi.includes(_)}).map(E=>{const _=yn[Gi.findIndex(W=>W===E.key)];return Object.assign(Object.assign({},E),{column:Object.assign(Object.assign({},E.column),_),forceFiltered:_.filtered})})}return ti},[yn,ln]),Gn=M.useMemo(()=>Ol($n),[$n]),yi=ti=>{const ji=$n.filter(ci=>{let{key:Gi}=ci;return Gi!==ti.key});ji.push(ti),zn(ji),_t(Ol(ji),ji)};return[ti=>os(Le,ht,ti,$n,ge,yi,Ot),$n,Gn]}var Xo=ml;function js(Ee,Le,ht){const bt=M.useRef({});function _t(Ot){if(!bt.current||bt.current.data!==Ee||bt.current.childrenColumnName!==Le||bt.current.getRowKey!==ht){let yn=function(ln){ln.forEach((zn,$n)=>{const Gn=ht(zn,$n);ge.set(Gn,zn),zn&&typeof zn=="object"&&Le in zn&&yn(zn[Le]||[])})};const ge=new Map;yn(Ee),bt.current={data:Ee,childrenColumnName:Le,kvMap:ge,getRowKey:ht}}return bt.current.kvMap.get(Ot)}return[_t]}var wu=h(50371),Ll=function(Ee,Le){var ht={};for(var bt in Ee)Object.prototype.hasOwnProperty.call(Ee,bt)&&Le.indexOf(bt)<0&&(ht[bt]=Ee[bt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,bt=Object.getOwnPropertySymbols(Ee);_t<bt.length;_t++)Le.indexOf(bt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Ee,bt[_t])&&(ht[bt[_t]]=Ee[bt[_t]]);return ht};const as=10;function Fa(Ee,Le){const ht={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(Le&&typeof Le=="object"?Le:{}).forEach(_t=>{const Ot=Ee[_t];typeof Ot!="function"&&(ht[_t]=Ot)}),ht}function Gs(Ee,Le,ht){const bt=ht&&typeof ht=="object"?ht:{},{total:_t=0}=bt,Ot=Ll(bt,["total"]),[ge,yn]=(0,M.useState)(()=>({current:"defaultCurrent"in Ot?Ot.defaultCurrent:1,pageSize:"defaultPageSize"in Ot?Ot.defaultPageSize:as})),ln=(0,wu.Z)(ge,Ot,{total:_t>0?_t:Ee}),zn=Math.ceil((_t||Ee)/ln.pageSize);ln.current>zn&&(ln.current=zn||1);const $n=(yi,bi)=>{yn({current:yi!=null?yi:1,pageSize:bi||ln.pageSize})},Gn=(yi,bi)=>{var ti;ht&&((ti=ht.onChange)===null||ti===void 0||ti.call(ht,yi,bi)),$n(yi,bi),Le(yi,bi||(ln==null?void 0:ln.pageSize))};return ht===!1?[{},()=>{}]:[Object.assign(Object.assign({},ln),{onChange:Gn}),$n]}var Ki=Gs,ks=h(84105),Rl=h(35654),Vr=h(90782),Co=h(71430),fa=h(18929);const aa={},ro="SELECT_ALL",sa="SELECT_INVERT",ga="SELECT_NONE",La=[],Aa=(Ee,Le)=>{let ht=[];return(Le||[]).forEach(bt=>{ht.push(bt),bt&&typeof bt=="object"&&Ee in bt&&(ht=[].concat((0,qn.Z)(ht),(0,qn.Z)(Aa(Ee,bt[Ee]))))}),ht};var Ys=(Ee,Le)=>{const{preserveSelectedRowKeys:ht,selectedRowKeys:bt,defaultSelectedRowKeys:_t,getCheckboxProps:Ot,onChange:ge,onSelect:yn,onSelectAll:ln,onSelectInvert:zn,onSelectNone:$n,onSelectMultiple:Gn,columnWidth:yi,type:bi,selections:ti,fixed:ji,renderCell:ci,hideSelectAll:Gi,checkStrictly:E=!0}=Le||{},{prefixCls:_,data:W,pageData:q,getRecordByKey:fe,getRowKey:Ce,expandType:$e,childrenColumnName:it,locale:jt,getPopupContainer:Lt}=Ee,[dt,Yt]=(0,fa.Z)(bt||_t||La,{value:bt}),qt=M.useRef(new Map),zt=(0,M.useCallback)(ir=>{if(ht){const Mi=new Map;ir.forEach(Yi=>{let Pi=fe(Yi);!Pi&&qt.current.has(Yi)&&(Pi=qt.current.get(Yi)),Mi.set(Yi,Pi)}),qt.current=Mi}},[fe,ht]);M.useEffect(()=>{zt(dt)},[dt]);const{keyEntities:Si}=(0,M.useMemo)(()=>{if(E)return{keyEntities:null};let ir=W;if(ht){const Mi=new Set(W.map((Pi,Zr)=>Ce(Pi,Zr))),Yi=Array.from(qt.current).reduce((Pi,Zr)=>{let[Xi,Br]=Zr;return Mi.has(Xi)?Pi:Pi.concat(Br)},[]);ir=[].concat((0,qn.Z)(ir),(0,qn.Z)(Yi))}return(0,Co.I8)(ir,{externalGetKey:Ce,childrenPropName:it})},[W,Ce,E,it,ht]),li=(0,M.useMemo)(()=>Aa(it,q),[it,q]),lr=(0,M.useMemo)(()=>{const ir=new Map;return li.forEach((Mi,Yi)=>{const Pi=Ce(Mi,Yi),Zr=(Ot?Ot(Mi):null)||{};ir.set(Pi,Zr)}),ir},[li,Ce,Ot]),Ni=(0,M.useCallback)(ir=>{var Mi;return!!(!((Mi=lr.get(Ce(ir)))===null||Mi===void 0)&&Mi.disabled)},[lr,Ce]),[Mr,Zi]=(0,M.useMemo)(()=>{if(E)return[dt||[],[]];const{checkedKeys:ir,halfCheckedKeys:Mi}=(0,Vr.S)(dt,!0,Si,Ni);return[ir||[],Mi]},[dt,E,Si,Ni]),oo=(0,M.useMemo)(()=>{const ir=bi==="radio"?Mr.slice(0,1):Mr;return new Set(ir)},[Mr,bi]),uo=(0,M.useMemo)(()=>bi==="radio"?new Set:new Set(Zi),[Zi,bi]),[ii,qi]=(0,M.useState)(null);M.useEffect(()=>{Le||Yt(La)},[!!Le]);const Qr=(0,M.useCallback)((ir,Mi)=>{let Yi,Pi;zt(ir),ht?(Yi=ir,Pi=ir.map(Zr=>qt.current.get(Zr))):(Yi=[],Pi=[],ir.forEach(Zr=>{const Xi=fe(Zr);Xi!==void 0&&(Yi.push(Zr),Pi.push(Xi))})),Yt(Yi),ge==null||ge(Yi,Pi,{type:Mi})},[Yt,fe,ge,ht]),qr=(0,M.useCallback)((ir,Mi,Yi,Pi)=>{if(yn){const Zr=Yi.map(Xi=>fe(Xi));yn(fe(ir),Mi,Zr,Pi)}Qr(Yi,"single")},[yn,fe,Qr]),no=(0,M.useMemo)(()=>!ti||Gi?null:(ti===!0?[ro,sa,ga]:ti).map(Mi=>Mi===ro?{key:"all",text:jt.selectionAll,onSelect(){Qr(W.map((Yi,Pi)=>Ce(Yi,Pi)).filter(Yi=>{const Pi=lr.get(Yi);return!(Pi!=null&&Pi.disabled)||oo.has(Yi)}),"all")}}:Mi===sa?{key:"invert",text:jt.selectInvert,onSelect(){const Yi=new Set(oo);q.forEach((Zr,Xi)=>{const Br=Ce(Zr,Xi),co=lr.get(Br);co!=null&&co.disabled||(Yi.has(Br)?Yi.delete(Br):Yi.add(Br))});const Pi=Array.from(Yi);zn&&zn(Pi),Qr(Pi,"invert")}}:Mi===ga?{key:"none",text:jt.selectNone,onSelect(){$n==null||$n(),Qr(Array.from(oo).filter(Yi=>{const Pi=lr.get(Yi);return Pi==null?void 0:Pi.disabled}),"none")}}:Mi).map(Mi=>Object.assign(Object.assign({},Mi),{onSelect:function(){for(var Yi,Pi,Zr=arguments.length,Xi=new Array(Zr),Br=0;Br<Zr;Br++)Xi[Br]=arguments[Br];(Pi=Mi.onSelect)===null||Pi===void 0||(Yi=Pi).call.apply(Yi,[Mi].concat(Xi)),qi(null)}})),[ti,oo,q,Ce,zn,Qr]);return[(0,M.useCallback)(ir=>{var Mi;if(!Le)return ir.filter(Do=>Do!==aa);let Yi=(0,qn.Z)(ir);const Pi=new Set(oo),Zr=li.map(Ce).filter(Do=>!lr.get(Do).disabled),Xi=Zr.every(Do=>Pi.has(Do)),Br=Zr.some(Do=>Pi.has(Do)),co=()=>{const Do=[];Xi?Zr.forEach(Oo=>{Pi.delete(Oo),Do.push(Oo)}):Zr.forEach(Oo=>{Pi.has(Oo)||(Pi.add(Oo),Do.push(Oo))});const No=Array.from(Pi);ln==null||ln(!Xi,No.map(Oo=>fe(Oo)),Do.map(Oo=>fe(Oo))),Qr(No,"all"),qi(null)};let rn;if(bi!=="radio"){let Do;if(no){const d={getPopupContainer:Lt,items:no.map((g,K)=>{const{key:nt,text:mn,onSelect:Yn}=g;return{key:nt!=null?nt:K,onClick:()=>{Yn==null||Yn(Zr)},label:mn}})};Do=M.createElement("div",{className:`${_}-selection-extra`},M.createElement(Ea.Z,{menu:d,getPopupContainer:Lt},M.createElement("span",null,M.createElement(ks.Z,null))))}const No=li.map((d,g)=>{const K=Ce(d,g),nt=lr.get(K)||{};return Object.assign({checked:Pi.has(K)},nt)}).filter(d=>{let{disabled:g}=d;return g}),Oo=!!No.length&&No.length===li.length,ra=Oo&&No.every(d=>{let{checked:g}=d;return g}),ja=Oo&&No.some(d=>{let{checked:g}=d;return g});rn=!Gi&&M.createElement("div",{className:`${_}-selection`},M.createElement(mo.default,{checked:Oo?ra:!!li.length&&Xi,indeterminate:Oo?!ra&&ja:!Xi&&Br,onChange:co,disabled:li.length===0||Oo,"aria-label":Do?"Custom selection":"Select all",skipGroup:!0}),Do)}let va;bi==="radio"?va=(Do,No,Oo)=>{const ra=Ce(No,Oo),ja=Pi.has(ra);return{node:M.createElement(vi.ZP,Object.assign({},lr.get(ra),{checked:ja,onClick:d=>d.stopPropagation(),onChange:d=>{Pi.has(ra)||qr(ra,!0,[ra],d.nativeEvent)}})),checked:ja}}:va=(Do,No,Oo)=>{var ra;const ja=Ce(No,Oo),d=Pi.has(ja),g=uo.has(ja),K=lr.get(ja);let nt;return $e==="nest"?nt=g:nt=(ra=K==null?void 0:K.indeterminate)!==null&&ra!==void 0?ra:g,{node:M.createElement(mo.default,Object.assign({},K,{indeterminate:nt,checked:d,skipGroup:!0,onClick:mn=>mn.stopPropagation(),onChange:mn=>{let{nativeEvent:Yn}=mn;const{shiftKey:Ci}=Yn;let wr=-1,zr=-1;if(Ci&&E){const Yr=new Set([ii,ja]);Zr.some((Ra,ba)=>{if(Yr.has(Ra))if(wr===-1)wr=ba;else return zr=ba,!0;return!1})}if(zr!==-1&&wr!==zr&&E){const Yr=Zr.slice(wr,zr+1),Ra=[];d?Yr.forEach(ri=>{Pi.has(ri)&&(Ra.push(ri),Pi.delete(ri))}):Yr.forEach(ri=>{Pi.has(ri)||(Ra.push(ri),Pi.add(ri))});const ba=Array.from(Pi);Gn==null||Gn(!d,ba.map(ri=>fe(ri)),Ra.map(ri=>fe(ri))),Qr(ba,"multiple")}else{const Yr=Mr;if(E){const Ra=d?(0,Rl._5)(Yr,ja):(0,Rl.L0)(Yr,ja);qr(ja,!d,Ra,Yn)}else{const Ra=(0,Vr.S)([].concat((0,qn.Z)(Yr),[ja]),!0,Si,Ni),{checkedKeys:ba,halfCheckedKeys:ri}=Ra;let rr=ba;if(d){const xo=new Set(ba);xo.delete(ja),rr=(0,Vr.S)(Array.from(xo),{checked:!1,halfCheckedKeys:ri},Si,Ni).checkedKeys}qr(ja,!d,rr,Yn)}}qi(d?null:ja)}})),checked:d}};const ya=(Do,No,Oo)=>{const{node:ra,checked:ja}=va(Do,No,Oo);return ci?ci(ja,No,Oo,ra):ra};if(!Yi.includes(aa))if(Yi.findIndex(Do=>{var No;return((No=Do[hi])===null||No===void 0?void 0:No.columnType)==="EXPAND_COLUMN"})===0){const[Do,...No]=Yi;Yi=[Do,aa].concat((0,qn.Z)(No))}else Yi=[aa].concat((0,qn.Z)(Yi));const En=Yi.indexOf(aa);Yi=Yi.filter((Do,No)=>Do!==aa||No===En);const go=Yi[En-1],_a=Yi[En+1];let ua=ji;ua===void 0&&((_a==null?void 0:_a.fixed)!==void 0?ua=_a.fixed:(go==null?void 0:go.fixed)!==void 0&&(ua=go.fixed)),ua&&go&&((Mi=go[hi])===null||Mi===void 0?void 0:Mi.columnType)==="EXPAND_COLUMN"&&go.fixed===void 0&&(go.fixed=ua);const za=We()(`${_}-selection-col`,{[`${_}-selection-col-with-dropdown`]:ti&&bi==="checkbox"}),$a={fixed:ua,width:yi,className:`${_}-selection-column`,title:Le.columnTitle||rn,render:ya,onCell:Le.onCell,[hi]:{className:za}};return Yi.map(Do=>Do===aa?$a:Do)},[Ce,li,Le,Mr,oo,uo,yi,no,$e,ii,lr,Gn,qr,Ni]),oo]},ka=h(89489),hc=h(59477),Zu=h(6848);const uu="ascend",sr="descend";function Ws(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function et(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function Pn(Ee,Le){return Le?Ee[Ee.indexOf(Le)+1]:Ee[0]}function Cu(Ee,Le,ht){let bt=[];function _t(Ot,ge){bt.push({column:Ot,key:Na(Ot,ge),multiplePriority:Ws(Ot),sortOrder:Ot.sortOrder})}return(Ee||[]).forEach((Ot,ge)=>{const yn=cs(ge,ht);Ot.children?("sortOrder"in Ot&&_t(Ot,yn),bt=[].concat((0,qn.Z)(bt),(0,qn.Z)(Cu(Ot.children,Le,yn)))):Ot.sorter&&("sortOrder"in Ot?_t(Ot,yn):Le&&Ot.defaultSortOrder&&bt.push({column:Ot,key:Na(Ot,yn),multiplePriority:Ws(Ot),sortOrder:Ot.defaultSortOrder}))}),bt}function Yu(Ee,Le,ht,bt,_t,Ot,ge,yn){return(Le||[]).map((ln,zn)=>{const $n=cs(zn,yn);let Gn=ln;if(Gn.sorter){const yi=Gn.sortDirections||_t,bi=Gn.showSorterTooltip===void 0?ge:Gn.showSorterTooltip,ti=Na(Gn,$n),ji=ht.find($e=>{let{key:it}=$e;return it===ti}),ci=ji?ji.sortOrder:null,Gi=Pn(yi,ci);let E;if(ln.sortIcon)E=ln.sortIcon({sortOrder:ci});else{const $e=yi.includes(uu)&&M.createElement(hc.Z,{className:We()(`${Ee}-column-sorter-up`,{active:ci===uu})}),it=yi.includes(sr)&&M.createElement(ka.Z,{className:We()(`${Ee}-column-sorter-down`,{active:ci===sr})});E=M.createElement("span",{className:We()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!($e&&it)})},M.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},$e,it))}const{cancelSort:_,triggerAsc:W,triggerDesc:q}=Ot||{};let fe=_;Gi===sr?fe=q:Gi===uu&&(fe=W);const Ce=typeof bi=="object"?bi:{title:fe};Gn=Object.assign(Object.assign({},Gn),{className:We()(Gn.className,{[`${Ee}-column-sort`]:ci}),title:$e=>{const it=M.createElement("div",{className:`${Ee}-column-sorters`},M.createElement("span",{className:`${Ee}-column-title`},Za(ln.title,$e)),E);return bi?M.createElement(Zu.Z,Object.assign({},Ce),it):it},onHeaderCell:$e=>{const it=ln.onHeaderCell&&ln.onHeaderCell($e)||{},jt=it.onClick,Lt=it.onKeyDown;it.onClick=qt=>{bt({column:ln,key:ti,sortOrder:Gi,multiplePriority:Ws(ln)}),jt==null||jt(qt)},it.onKeyDown=qt=>{qt.keyCode===si.Z.ENTER&&(bt({column:ln,key:ti,sortOrder:Gi,multiplePriority:Ws(ln)}),Lt==null||Lt(qt))};const dt=jo(ln.title,{}),Yt=dt==null?void 0:dt.toString();return ci?it["aria-sort"]=ci==="ascend"?"ascending":"descending":it["aria-label"]=Yt||"",it.className=We()(it.className,`${Ee}-column-has-sorters`),it.tabIndex=0,ln.ellipsis&&(it.title=(dt!=null?dt:"").toString()),it}})}return"children"in Gn&&(Gn=Object.assign(Object.assign({},Gn),{children:Yu(Ee,Gn.children,ht,bt,_t,Ot,ge,$n)})),Gn})}function Dl(Ee){const{column:Le,sortOrder:ht}=Ee;return{column:Le,order:ht,field:Le.dataIndex,columnKey:Le.key}}function Pl(Ee){const Le=Ee.filter(ht=>{let{sortOrder:bt}=ht;return bt}).map(Dl);return Le.length===0&&Ee.length?Object.assign(Object.assign({},Dl(Ee[Ee.length-1])),{column:void 0}):Le.length<=1?Le[0]||{}:Le}function gl(Ee,Le,ht){const bt=Le.slice().sort((ge,yn)=>yn.multiplePriority-ge.multiplePriority),_t=Ee.slice(),Ot=bt.filter(ge=>{let{column:{sorter:yn},sortOrder:ln}=ge;return et(yn)&&ln});return Ot.length?_t.sort((ge,yn)=>{for(let ln=0;ln<Ot.length;ln+=1){const zn=Ot[ln],{column:{sorter:$n},sortOrder:Gn}=zn,yi=et($n);if(yi&&Gn){const bi=yi(ge,yn,Gn);if(bi!==0)return Gn===uu?bi:-bi}}return 0}).map(ge=>{const yn=ge[ht];return yn?Object.assign(Object.assign({},ge),{[ht]:gl(yn,Le,ht)}):ge}):_t}function Xu(Ee){let{prefixCls:Le,mergedColumns:ht,onSorterChange:bt,sortDirections:_t,tableLocale:Ot,showSorterTooltip:ge}=Ee;const[yn,ln]=M.useState(Cu(ht,!0)),zn=M.useMemo(()=>{let ti=!0;const ji=Cu(ht,!1);if(!ji.length)return yn;const ci=[];function Gi(_){ti?ci.push(_):ci.push(Object.assign(Object.assign({},_),{sortOrder:null}))}let E=null;return ji.forEach(_=>{E===null?(Gi(_),_.sortOrder&&(_.multiplePriority===!1?ti=!1:E=!0)):(E&&_.multiplePriority!==!1||(ti=!1),Gi(_))}),ci},[ht,yn]),$n=M.useMemo(()=>{const ti=zn.map(ji=>{let{column:ci,sortOrder:Gi}=ji;return{column:ci,order:Gi}});return{sortColumns:ti,sortColumn:ti[0]&&ti[0].column,sortOrder:ti[0]&&ti[0].order}},[zn]);function Gn(ti){let ji;ti.multiplePriority===!1||!zn.length||zn[0].multiplePriority===!1?ji=[ti]:ji=[].concat((0,qn.Z)(zn.filter(ci=>{let{key:Gi}=ci;return Gi!==ti.key})),[ti]),ln(ji),bt(Pl(ji),ji)}return[ti=>Yu(Le,ti,zn,Gn,_t,Ot,ge),zn,$n,()=>Pl(zn)]}function cu(Ee,Le){return Ee.map(ht=>{const bt=Object.assign({},ht);return bt.title=Za(ht.title,Le),"children"in bt&&(bt.children=cu(bt.children,Le)),bt})}function Ia(Ee){return[M.useCallback(ht=>cu(ht,Ee),[Ee])]}var Or=wt((Ee,Le)=>{const{_renderTimes:ht}=Ee,{_renderTimes:bt}=Le;return ht!==bt}),Fs=Er((Ee,Le)=>{const{_renderTimes:ht}=Ee,{_renderTimes:bt}=Le;return ht!==bt}),gs=h(64993),So=h(17313),lo=h(83116),Ha=h(37613),la=Ee=>{const{componentCls:Le}=Ee,ht=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,bt=(_t,Ot,ge)=>({[`&${Le}-${_t}`]:{[`> ${Le}-container`]:{[`> ${Le}-content, > ${Le}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Le}-expanded-row-fixed`]:{margin:`-${Ot}px -${ge+Ee.lineWidth}px`}}}}}});return{[`${Le}-wrapper`]:{[`${Le}${Le}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Le}-title`]:{border:ht,borderBottom:0},[`> ${Le}-container`]:{borderInlineStart:ht,borderTop:ht,[`
|
|
|
> ${Le}-content,
|
|
|
> ${Le}-header,
|
|
|
> ${Le}-body,
|
|
|
> ${Le}-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:ht},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ht},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Le}-cell-fix-right-first::after`]:{borderInlineEnd:ht}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Le}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:ht,content:'""'}}}}}},[`&${Le}-scroll-horizontal`]:{[`> ${Le}-container > ${Le}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Le}-expanded-row,
|
|
|
> tr${Le}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},bt("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),bt("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${Le}-footer`]:{border:ht,borderTop:0}}),[`${Le}-cell`]:{[`${Le}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${Le}-bordered ${Le}-cell-scrollbar`]:{borderInlineEnd:ht}}}},ss=Ee=>{const{componentCls:Le}=Ee;return{[`${Le}-wrapper`]:{[`${Le}-cell-ellipsis`]:Object.assign(Object.assign({},So.vS),{wordBreak:"keep-all",[`
|
|
|
&${Le}-cell-fix-left-last,
|
|
|
&${Le}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Le}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Le}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Bo=Ee=>{const{componentCls:Le}=Ee;return{[`${Le}-wrapper`]:{[`${Le}-tbody > tr${Le}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Es=h(15969),qo=Ee=>{const{componentCls:Le,antCls:ht,controlInteractiveSize:bt,motionDurationSlow:_t,lineWidth:Ot,paddingXS:ge,lineType:yn,tableBorderColor:ln,tableExpandIconBg:zn,tableExpandColumnWidth:$n,borderRadius:Gn,fontSize:yi,fontSizeSM:bi,lineHeight:ti,tablePaddingVertical:ji,tablePaddingHorizontal:ci,tableExpandedRowBg:Gi,paddingXXS:E}=Ee,_=bt/2-Ot,W=_*2+Ot*3,q=`${Ot}px ${yn} ${ln}`,fe=E-Ot;return{[`${Le}-wrapper`]:{[`${Le}-expand-icon-col`]:{width:$n},[`${Le}-row-expand-icon-cell`]:{textAlign:"center",[`${Le}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Le}-row-indent`]:{height:1,float:"left"},[`${Le}-row-expand-icon`]:Object.assign(Object.assign({},(0,Es.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:W,height:W,padding:0,color:"inherit",lineHeight:`${W}px`,background:zn,border:q,borderRadius:Gn,transform:`scale(${bt/W})`,transition:`all ${_t}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${_t} ease-out`,content:'""'},"&::before":{top:_,insetInlineEnd:fe,insetInlineStart:fe,height:Ot},"&::after":{top:fe,bottom:fe,insetInlineStart:_,width:Ot,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"}}),[`${Le}-row-indent + ${Le}-row-expand-icon`]:{marginTop:(yi*ti-Ot*3)/2-Math.ceil((bi*1.4-Ot*3)/2),marginInlineEnd:ge},[`tr${Le}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Gi}},[`${ht}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Le}-expanded-row-fixed`]:{position:"relative",margin:`-${ji}px -${ci}px`,padding:`${ji}px ${ci}px`}}}},wa=Ee=>{const{componentCls:Le,antCls:ht,iconCls:bt,tableFilterDropdownWidth:_t,tableFilterDropdownSearchWidth:Ot,paddingXXS:ge,paddingXS:yn,colorText:ln,lineWidth:zn,lineType:$n,tableBorderColor:Gn,tableHeaderIconColor:yi,fontSizeSM:bi,tablePaddingHorizontal:ti,borderRadius:ji,motionDurationSlow:ci,colorTextDescription:Gi,colorPrimary:E,tableHeaderFilterActiveBg:_,colorTextDisabled:W,tableFilterDropdownBg:q,tableFilterDropdownHeight:fe,controlItemBgHover:Ce,controlItemBgActive:$e,boxShadowSecondary:it,filterDropdownMenuBg:jt}=Ee,Lt=`${ht}-dropdown`,dt=`${Le}-filter-dropdown`,Yt=`${ht}-tree`,qt=`${zn}px ${$n} ${Gn}`;return[{[`${Le}-wrapper`]:{[`${Le}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Le}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ge,marginInline:`${ge}px ${-ti/2}px`,padding:`0 ${ge}px`,color:yi,fontSize:bi,borderRadius:ji,cursor:"pointer",transition:`all ${ci}`,"&:hover":{color:Gi,background:_},"&.active":{color:E}}}},{[`${ht}-dropdown`]:{[dt]:Object.assign(Object.assign({},(0,So.Wf)(Ee)),{minWidth:_t,backgroundColor:q,borderRadius:ji,boxShadow:it,overflow:"hidden",[`${Lt}-menu`]:{maxHeight:fe,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:jt,"&:empty::after":{display:"block",padding:`${yn}px 0`,color:W,fontSize:bi,textAlign:"center",content:'"Not Found"'}},[`${dt}-tree`]:{paddingBlock:`${yn}px 0`,paddingInline:yn,[Yt]:{padding:0},[`${Yt}-treenode ${Yt}-node-content-wrapper:hover`]:{backgroundColor:Ce},[`${Yt}-treenode-checkbox-checked ${Yt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$e}}},[`${dt}-search`]:{padding:yn,borderBottom:qt,"&-input":{input:{minWidth:Ot},[bt]:{color:W}}},[`${dt}-checkall`]:{width:"100%",marginBottom:ge,marginInlineStart:ge},[`${dt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${yn-zn}px ${yn}px`,overflow:"hidden",borderTop:qt}})}},{[`${ht}-dropdown ${dt}, ${dt}-submenu`]:{[`${ht}-checkbox-wrapper + span`]:{paddingInlineStart:yn,color:ln},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},du=Ee=>{const{componentCls:Le,lineWidth:ht,colorSplit:bt,motionDurationSlow:_t,zIndexTableFixed:Ot,tableBg:ge,zIndexTableSticky:yn}=Ee,ln=bt;return{[`${Le}-wrapper`]:{[`
|
|
|
${Le}-cell-fix-left,
|
|
|
${Le}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ot,background:ge},[`
|
|
|
${Le}-cell-fix-left-first::after,
|
|
|
${Le}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-ht,width:30,transform:"translateX(100%)",transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},[`${Le}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Le}-cell-fix-right-first::after,
|
|
|
${Le}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-ht,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},[`${Le}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:yn+1,width:30,transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Le}-ping-left`]:{[`&:not(${Le}-has-fix-left) ${Le}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ln}`}},[`
|
|
|
${Le}-cell-fix-left-first::after,
|
|
|
${Le}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`${Le}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Le}-ping-right`]:{[`&:not(${Le}-has-fix-right) ${Le}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ln}`}},[`
|
|
|
${Le}-cell-fix-right-first::after,
|
|
|
${Le}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`}}}}},sl=Ee=>{const{componentCls:Le,antCls:ht}=Ee;return{[`${Le}-wrapper`]:{[`${Le}-pagination${ht}-pagination`]:{margin:`${Ee.margin}px 0`},[`${Le}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Qu=Ee=>{const{componentCls:Le,tableRadius:ht}=Ee;return{[`${Le}-wrapper`]:{[Le]:{[`${Le}-title, ${Le}-header`]:{borderRadius:`${ht}px ${ht}px 0 0`},[`${Le}-title + ${Le}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Le}-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:ht,borderStartEndRadius:ht,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ht},"> *:last-child":{borderStartEndRadius:ht}}},"&-footer":{borderRadius:`0 0 ${ht}px ${ht}px`}}}}},qu=Ee=>{const{componentCls:Le}=Ee;return{[`${Le}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Le}-pagination-left`]:{justifyContent:"flex-end"},[`${Le}-pagination-right`]:{justifyContent:"flex-start"},[`${Le}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Le}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Le}-row-indent`]:{float:"right"}}}}},_u=Ee=>{const{componentCls:Le,antCls:ht,iconCls:bt,fontSizeIcon:_t,padding:Ot,paddingXS:ge,tableHeaderIconColor:yn,tableHeaderIconColorHover:ln,tableSelectionColumnWidth:zn}=Ee;return{[`${Le}-wrapper`]:{[`${Le}-selection-col`]:{width:zn,[`&${Le}-selection-col-with-dropdown`]:{width:zn+_t+Ot/4}},[`${Le}-bordered ${Le}-selection-col`]:{width:zn+ge*2,[`&${Le}-selection-col-with-dropdown`]:{width:zn+_t+Ot/4+ge*2}},[`
|
|
|
table tr th${Le}-selection-column,
|
|
|
table tr td${Le}-selection-column
|
|
|
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${ht}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Le}-selection-column${Le}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${Le}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Le}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Le}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[bt]:{color:yn,fontSize:_t,verticalAlign:"baseline","&:hover":{color:ln}}}}}},Qs=Ee=>{const{componentCls:Le}=Ee,ht=(bt,_t,Ot,ge)=>({[`${Le}${Le}-${bt}`]:{fontSize:ge,[`
|
|
|
${Le}-title,
|
|
|
${Le}-footer,
|
|
|
${Le}-cell,
|
|
|
${Le}-thead > tr > th,
|
|
|
${Le}-tbody > tr > th,
|
|
|
${Le}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${_t}px ${Ot}px`},[`${Le}-filter-trigger`]:{marginInlineEnd:`-${Ot/2}px`},[`${Le}-expanded-row-fixed`]:{margin:`-${_t}px -${Ot}px`},[`${Le}-tbody`]:{[`${Le}-wrapper:only-child ${Le}`]:{marginBlock:`-${_t}px`,marginInline:`${Ee.tableExpandColumnWidth-Ot}px -${Ot}px`}},[`${Le}-selection-column`]:{paddingInlineStart:`${Ot/4}px`}}});return{[`${Le}-wrapper`]:Object.assign(Object.assign({},ht("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),ht("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},Bs=Ee=>{const{componentCls:Le,marginXXS:ht,fontSizeIcon:bt,tableHeaderIconColor:_t,tableHeaderIconColorHover:Ot}=Ee;return{[`${Le}-wrapper`]:{[`${Le}-thead th${Le}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
|
|
|
&${Le}-cell-fix-left:hover,
|
|
|
&${Le}-cell-fix-right:hover
|
|
|
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${Le}-thead th${Le}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Le}-column-sort`]:{background:Ee.tableBodySortBg},[`${Le}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Le}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Le}-column-sorter`]:{marginInlineStart:ht,color:_t,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:bt,"&.active":{color:Ee.colorPrimary}},[`${Le}-column-sorter-up + ${Le}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Le}-column-sorters:hover ${Le}-column-sorter`]:{color:Ot}}}},tu=Ee=>{const{componentCls:Le,opacityLoading:ht,tableScrollThumbBg:bt,tableScrollThumbBgHover:_t,tableScrollThumbSize:Ot,tableScrollBg:ge,zIndexTableSticky:yn,stickyScrollBarBorderRadius:ln}=Ee,zn=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${Le}-wrapper`]:{[`${Le}-sticky`]:{"&-holder":{position:"sticky",zIndex:yn,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ot}px !important`,zIndex:yn,display:"flex",alignItems:"center",background:ge,borderTop:zn,opacity:ht,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ot,backgroundColor:bt,borderRadius:ln,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:_t}}}}}}},yl=Ee=>{const{componentCls:Le,lineWidth:ht,tableBorderColor:bt}=Ee,_t=`${ht}px ${Ee.lineType} ${bt}`;return{[`${Le}-wrapper`]:{[`${Le}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:_t}}},[`div${Le}-summary`]:{boxShadow:`0 -${ht}px 0 ${bt}`}}}},Wl=Ee=>{const{componentCls:Le}=Ee,ht=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,bt=`${Le}-expanded-row-cell`;return{[`${Le}-wrapper`]:{[`${Le}-tbody-virtual`]:{[`${Le}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Le}-cell`]:{borderBottom:ht},[`${Le}-expanded-row`]:{[`${bt}${bt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Le}-bordered`]:{[`${Le}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ht,position:"absolute"},[`${Le}-cell`]:{borderInlineEnd:ht,[`&${Le}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:ht}}}}}}};const Zs=Ee=>{const{componentCls:Le,fontWeightStrong:ht,tablePaddingVertical:bt,tablePaddingHorizontal:_t,lineWidth:Ot,lineType:ge,tableBorderColor:yn,tableFontSize:ln,tableBg:zn,tableRadius:$n,tableHeaderTextColor:Gn,motionDurationMid:yi,tableHeaderBg:bi,tableHeaderCellSplitColor:ti,tableRowHoverBg:ji,tableSelectedRowBg:ci,tableSelectedRowHoverBg:Gi,tableFooterTextColor:E,tableFooterBg:_,paddingContentVerticalLG:W}=Ee,q=`${Ot}px ${ge} ${yn}`;return{[`${Le}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,So.dF)()),{[Le]:Object.assign(Object.assign({},(0,So.Wf)(Ee)),{fontSize:ln,background:zn,borderRadius:`${$n}px ${$n}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${$n}px ${$n}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Le}-cell,
|
|
|
${Le}-thead > tr > th,
|
|
|
${Le}-tbody > tr > th,
|
|
|
${Le}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${W}px ${_t}px`,overflowWrap:"break-word"},[`${Le}-title`]:{padding:`${bt}px ${_t}px`},[`${Le}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Gn,fontWeight:ht,textAlign:"start",background:bi,borderBottom:q,transition:`background ${yi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Le}-selection-column):not(${Le}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ti,transform:"translateY(-50%)",transition:`background-color ${yi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Le}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${yi}, border-color ${yi}`,borderBottom:q,[`
|
|
|
> ${Le}-wrapper:only-child,
|
|
|
> ${Le}-expanded-row-fixed > ${Le}-wrapper:only-child
|
|
|
`]:{[Le]:{marginBlock:`-${bt}px`,marginInline:`${Ee.tableExpandColumnWidth-_t}px -${_t}px`,[`${Le}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Gn,fontWeight:ht,textAlign:"start",background:bi,borderBottom:q,transition:`background ${yi} ease`},[`
|
|
|
&${Le}-row:hover > th,
|
|
|
&${Le}-row:hover > td,
|
|
|
> th${Le}-cell-row-hover,
|
|
|
> td${Le}-cell-row-hover
|
|
|
`]:{background:ji},[`&${Le}-row-selected`]:{"> th, > td":{background:ci},"&:hover > th, &:hover > td":{background:Gi}}}},[`${Le}-footer`]:{padding:`${bt}px ${_t}px`,color:E,background:_}})}};var fu=(0,lo.Z)("Table",Ee=>{const{colorTextHeading:Le,colorSplit:ht,colorIcon:bt,colorIconHover:_t,opacityLoading:Ot,colorBgContainer:ge,controlInteractiveSize:yn,headerBg:ln,headerColor:zn,headerSortActiveBg:$n,headerSortHoverBg:Gn,bodySortBg:yi,rowHoverBg:bi,rowSelectedBg:ti,rowSelectedHoverBg:ji,rowExpandedBg:ci,cellPaddingBlock:Gi,cellPaddingInline:E,cellPaddingBlockMD:_,cellPaddingInlineMD:W,cellPaddingBlockSM:q,cellPaddingInlineSM:fe,borderColor:Ce,footerBg:$e,footerColor:it,headerBorderRadius:jt,cellFontSize:Lt,cellFontSizeMD:dt,cellFontSizeSM:Yt,headerSplitColor:qt,fixedHeaderSortActiveBg:zt,headerFilterHoverBg:Si,filterDropdownBg:li,expandIconBg:lr,selectionColumnWidth:Ni,stickyScrollBarBg:Mr}=Ee,Zi=new gs.C(bt),oo=new gs.C(_t),uo=2,ii=(0,Ha.TS)(Ee,{tableFontSize:Lt,tableBg:ge,tableRadius:jt,tablePaddingVertical:Gi,tablePaddingHorizontal:E,tablePaddingVerticalMiddle:_,tablePaddingHorizontalMiddle:W,tablePaddingVerticalSmall:q,tablePaddingHorizontalSmall:fe,tableBorderColor:Ce,tableHeaderTextColor:zn,tableHeaderBg:ln,tableFooterTextColor:it,tableFooterBg:$e,tableHeaderCellSplitColor:qt,tableHeaderSortBg:$n,tableHeaderSortHoverBg:Gn,tableHeaderIconColor:Zi.clone().setAlpha(Zi.getAlpha()*Ot).toRgbString(),tableHeaderIconColorHover:oo.clone().setAlpha(oo.getAlpha()*Ot).toRgbString(),tableBodySortBg:yi,tableFixedHeaderSortActiveBg:zt,tableHeaderFilterActiveBg:Si,tableFilterDropdownBg:li,tableRowHoverBg:bi,tableSelectedRowBg:ti,tableSelectedRowHoverBg:ji,zIndexTableFixed:uo,zIndexTableSticky:uo+1,tableFontSizeMiddle:dt,tableFontSizeSmall:Yt,tableSelectionColumnWidth:Ni,tableExpandIconBg:lr,tableExpandColumnWidth:yn+2*Ee.padding,tableExpandedRowBg:ci,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Mr,tableScrollThumbBgHover:Le,tableScrollBg:ht});return[Zs(ii),sl(ii),yl(ii),Bs(ii),wa(ii),la(ii),Qu(ii),qo(ii),yl(ii),Bo(ii),_u(ii),du(ii),tu(ii),ss(ii),Qs(ii),qu(ii),Wl(ii)]},Ee=>{const{colorFillAlter:Le,colorBgContainer:ht,colorTextHeading:bt,colorFillSecondary:_t,colorFillContent:Ot,controlItemBgActive:ge,controlItemBgActiveHover:yn,padding:ln,paddingSM:zn,paddingXS:$n,colorBorderSecondary:Gn,borderRadiusLG:yi,fontSize:bi,controlHeight:ti,colorTextPlaceholder:ji}=Ee,ci=new gs.C(_t).onBackground(ht).toHexShortString(),Gi=new gs.C(Ot).onBackground(ht).toHexShortString(),E=new gs.C(Le).onBackground(ht).toHexShortString();return{headerBg:E,headerColor:bt,headerSortActiveBg:ci,headerSortHoverBg:Gi,bodySortBg:E,rowHoverBg:E,rowSelectedBg:ge,rowSelectedHoverBg:yn,rowExpandedBg:Le,cellPaddingBlock:ln,cellPaddingInline:ln,cellPaddingBlockMD:zn,cellPaddingInlineMD:$n,cellPaddingBlockSM:$n,cellPaddingInlineSM:$n,borderColor:Gn,headerBorderRadius:yi,footerBg:E,footerColor:bt,cellFontSize:bi,cellFontSizeMD:bi,cellFontSizeSM:bi,headerSplitColor:Gn,fixedHeaderSortActiveBg:ci,headerFilterHoverBg:Ot,filterDropdownMenuBg:ht,filterDropdownBg:ht,expandIconBg:ht,selectionColumnWidth:ti,stickyScrollBarBg:ji,stickyScrollBarBorderRadius:100}});const pu=[],Tu=(Ee,Le)=>{const{prefixCls:ht,className:bt,rootClassName:_t,style:Ot,size:ge,bordered:yn,dropdownPrefixCls:ln,dataSource:zn,pagination:$n,rowSelection:Gn,rowKey:yi="key",rowClassName:bi,columns:ti,children:ji,childrenColumnName:ci,onChange:Gi,getPopupContainer:E,loading:_,expandIcon:W,expandable:q,expandedRowRender:fe,expandIconColumnIndex:Ce,indentSize:$e,scroll:it,sortDirections:jt,locale:Lt,showSorterTooltip:dt=!0,virtual:Yt}=Ee,qt=M.useMemo(()=>ti||Un(ji),[ti,ji]),zt=M.useMemo(()=>qt.some(wo=>wo.responsive),[qt]),Si=(0,mi.Z)(zt),li=M.useMemo(()=>{const wo=new Set(Object.keys(Si).filter(ca=>Si[ca]));return qt.filter(ca=>!ca.responsive||ca.responsive.some(Ga=>wo.has(Ga)))},[qt,Si]),lr=(0,Di.Z)(Ee,["className","style","columns"]),{locale:Ni=Sa.Z,direction:Mr,table:Zi,renderEmpty:oo,getPrefixCls:uo,getPopupContainer:ii}=M.useContext(Tr.E_),qi=(0,bo.Z)(ge),Qr=Object.assign(Object.assign({},Ni.Table),Lt),qr=zn||pu,no=uo("table",ht),Mo=uo("dropdown",ln),ir=Object.assign({childrenColumnName:ci,expandIconColumnIndex:Ce},q),{childrenColumnName:Mi="children"}=ir,Yi=M.useMemo(()=>qr.some(wo=>wo==null?void 0:wo[Mi])?"nest":fe||q&&q.expandedRowRender?"row":null,[qr]),Pi={body:M.useRef()},Zr=M.useMemo(()=>typeof yi=="function"?yi:wo=>wo==null?void 0:wo[yi],[yi]),[Xi]=js(qr,Mi,Zr),Br={},co=function(wo,ca){let Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var N,m,S;const D=Object.assign(Object.assign({},Br),wo);Ga&&((N=Br.resetPagination)===null||N===void 0||N.call(Br),!((m=D.pagination)===null||m===void 0)&&m.current&&(D.pagination.current=1),$n&&$n.onChange&&$n.onChange(1,(S=D.pagination)===null||S===void 0?void 0:S.pageSize)),it&&it.scrollToFirstRowOnChange!==!1&&Pi.body.current&&(0,Cr.Z)(0,{getContainer:()=>Pi.body.current}),Gi==null||Gi(D.pagination,D.filters,D.sorter,{currentDataSource:Xa(gl(qr,D.sorterStates,Mi),D.filterStates),action:ca})},rn=(wo,ca)=>{co({sorter:wo,sorterStates:ca},"sort",!1)},[va,ya,En,go]=Xu({prefixCls:no,mergedColumns:li,onSorterChange:rn,sortDirections:jt||["ascend","descend"],tableLocale:Qr,showSorterTooltip:dt}),_a=M.useMemo(()=>gl(qr,ya,Mi),[qr,ya]);Br.sorter=go(),Br.sorterStates=ya;const ua=(wo,ca)=>{co({filters:wo,filterStates:ca},"filter",!0)},[za,$a,Do]=Xo({prefixCls:no,locale:Qr,dropdownPrefixCls:Mo,mergedColumns:li,onFilterChange:ua,getPopupContainer:E||ii}),No=Xa(_a,$a);Br.filters=Do,Br.filterStates=$a;const Oo=M.useMemo(()=>{const wo={};return Object.keys(Do).forEach(ca=>{Do[ca]!==null&&(wo[ca]=Do[ca])}),Object.assign(Object.assign({},En),{filters:wo})},[En,Do]),[ra]=Ia(Oo),ja=(wo,ca)=>{co({pagination:Object.assign(Object.assign({},Br.pagination),{current:wo,pageSize:ca})},"paginate")},[d,g]=Ki(No.length,ja,$n);Br.pagination=$n===!1?{}:Fa(d,$n),Br.resetPagination=g;const K=M.useMemo(()=>{if($n===!1||!d.pageSize)return No;const{current:wo=1,total:ca,pageSize:Ga=as}=d;return No.length<ca?No.length>Ga?No.slice((wo-1)*Ga,wo*Ga):No:No.slice((wo-1)*Ga,wo*Ga)},[!!$n,No,d&&d.current,d&&d.pageSize,d&&d.total]),[nt,mn]=Ys({prefixCls:no,data:No,pageData:K,getRowKey:Zr,getRecordByKey:Xi,expandType:Yi,childrenColumnName:Mi,locale:Qr,getPopupContainer:E||ii},Gn),Yn=(wo,ca,Ga)=>{let N;return typeof bi=="function"?N=We()(bi(wo,ca,Ga)):N=We()(bi),We()({[`${no}-row-selected`]:mn.has(Zr(wo,ca))},N)};ir.__PARENT_RENDER_ICON__=ir.expandIcon,ir.expandIcon=ir.expandIcon||W||ns(Qr),Yi==="nest"&&ir.expandIconColumnIndex===void 0?ir.expandIconColumnIndex=Gn?1:0:ir.expandIconColumnIndex>0&&Gn&&(ir.expandIconColumnIndex-=1),typeof ir.indentSize!="number"&&(ir.indentSize=typeof $e=="number"?$e:15);const Ci=M.useCallback(wo=>ra(nt(za(va(wo)))),[va,za,nt]);let wr,zr;if($n!==!1&&(d!=null&&d.total)){let wo;d.size?wo=d.size:wo=qi==="small"||qi==="middle"?"small":void 0;const ca=m=>M.createElement(Wo.Z,Object.assign({},d,{className:We()(`${no}-pagination ${no}-pagination-${m}`,d.className),size:wo})),Ga=Mr==="rtl"?"left":"right",{position:N}=d;if(N!==null&&Array.isArray(N)){const m=N.find(Z=>Z.includes("top")),S=N.find(Z=>Z.includes("bottom")),D=N.every(Z=>`${Z}`=="none");!m&&!S&&!D&&(zr=ca(Ga)),m&&(wr=ca(m.toLowerCase().replace("top",""))),S&&(zr=ca(S.toLowerCase().replace("bottom","")))}else zr=ca(Ga)}let Yr;typeof _=="boolean"?Yr={spinning:_}:typeof _=="object"&&(Yr=Object.assign({spinning:!0},_));const[Ra,ba]=fu(no),[,ri]=(0,Ta.Z)(),rr=We()(`${no}-wrapper`,Zi==null?void 0:Zi.className,{[`${no}-wrapper-rtl`]:Mr==="rtl"},bt,_t,ba),xo=Object.assign(Object.assign({},Zi==null?void 0:Zi.style),Ot),Lo=Lt&&Lt.emptyText||(oo==null?void 0:oo("Table"))||M.createElement(io.Z,{componentName:"Table"}),oa=Yt?Fs:Or,ws={},ys=M.useMemo(()=>{const{fontSize:wo,lineHeight:ca,padding:Ga,paddingXS:N,paddingSM:m}=ri,S=Math.floor(wo*ca);switch(qi){case"large":return Ga*2+S;case"small":return N*2+S;default:return m*2+S}},[ri,qi]);return Yt&&(ws.listItemHeight=ys),Ra(M.createElement("div",{ref:Le,className:rr,style:xo},M.createElement(Jo.Z,Object.assign({spinning:!1},Yr),wr,M.createElement(oa,Object.assign({},ws,lr,{columns:li,direction:Mr,expandable:ir,prefixCls:no,className:We()({[`${no}-middle`]:qi==="middle",[`${no}-small`]:qi==="small",[`${no}-bordered`]:yn,[`${no}-empty`]:qr.length===0}),data:K,rowKey:Zr,rowClassName:Yn,emptyText:Lo,internalHooks:I,internalRefs:Pi,transformColumns:Ci})),zr)))};var Nu=M.forwardRef(Tu);const ll=(Ee,Le)=>{const ht=M.useRef(0);return ht.current+=1,M.createElement(Nu,Object.assign({},Ee,{ref:Le,_renderTimes:ht.current}))},vs=M.forwardRef(ll);vs.SELECTION_COLUMN=aa,vs.EXPAND_COLUMN=v,vs.SELECTION_ALL=ro,vs.SELECTION_INVERT=sa,vs.SELECTION_NONE=ga,vs.Column=Kr,vs.ColumnGroup=Ui,vs.Summary=Ue;var Vl=vs,zu=Vl},17574:function(Q,C,h){"use strict";h.d(C,{default:function(){return qe}});var v=h(23130),I=h(26407),O=h(52671),B=h(8657),G=h(92413),F=h(59301),M={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"},he=M,ue=h(7657),te=function(le,$t){return F.createElement(ue.Z,(0,G.Z)({},le,{ref:$t,icon:he}))},Me=F.forwardRef(te),we=Me,Je=h(92310),Oe=h.n(Je),Te=h(35654),Ae=h(71430),Re=h(36355),de=h(56082),pe=h(62892),be=h(20648);const me=4;function ke(ae){const{dropPosition:le,dropLevelOffset:$t,prefixCls:Vt,indent:St,direction:un="ltr"}=ae,Ft=un==="ltr"?"left":"right",ai=un==="ltr"?"right":"left",On={[Ft]:-$t*St+me,[ai]:0};switch(le){case-1:On.top=-3;break;case 1:On.bottom=-3;break;default:On.bottom=-3,On[Ft]=St+me;break}return F.createElement("div",{style:On,className:`${Vt}-drop-indicator`})}var ee=h(71997),Ie=F.forwardRef((ae,le)=>{const{getPrefixCls:$t,direction:Vt,virtual:St,tree:un}=F.useContext(Re.E_),{prefixCls:Ft,className:ai,showIcon:On=!1,showLine:ni,switcherIcon:Jn,blockNode:In=!1,children:Mn,checkable:xe=!1,selectable:P=!0,draggable:k,motion:j,style:X}=ae,T=$t("tree",Ft),_e=$t(),kt=j!=null?j:Object.assign(Object.assign({},(0,pe.Z)(_e)),{motionAppear:!1}),Ue=Object.assign(Object.assign({},ae),{checkable:xe,selectable:P,showIcon:On,motion:kt,blockNode:In,showLine:!!ni,dropIndicatorRender:ke}),[Be,mt]=(0,be.ZP)(T),ct=F.useMemo(()=>{if(!k)return!1;let It={};switch(typeof k){case"function":It.nodeDraggable=k;break;case"object":It=Object.assign({},k);break;default:break}return It.icon!==!1&&(It.icon=It.icon||F.createElement(de.Z,null)),It},[k]),tt=It=>F.createElement(ee.Z,{prefixCls:T,switcherIcon:Jn,treeNodeProps:It,showLine:ni});return Be(F.createElement(v.Z,Object.assign({itemHeight:20,ref:le,virtual:St},Ue,{style:Object.assign(Object.assign({},un==null?void 0:un.style),X),prefixCls:T,className:Oe()({[`${T}-icon-hide`]:!On,[`${T}-block-node`]:In,[`${T}-unselectable`]:!P,[`${T}-rtl`]:Vt==="rtl"},un==null?void 0:un.className,ai,mt),direction:Vt,checkable:xe&&F.createElement("span",{className:`${T}-checkbox-inner`}),selectable:P,switcherIcon:tt,draggable:ct}),Mn))}),Pe;(function(ae){ae[ae.None=0]="None",ae[ae.Start=1]="Start",ae[ae.End=2]="End"})(Pe||(Pe={}));function Xe(ae,le){function $t(Vt){const{key:St,children:un}=Vt;le(St,Vt)!==!1&&Xe(un||[],le)}ae.forEach($t)}function Ye(ae){let{treeData:le,expandedKeys:$t,startKey:Vt,endKey:St}=ae;const un=[];let Ft=Pe.None;if(Vt&&Vt===St)return[Vt];if(!Vt||!St)return[];function ai(On){return On===Vt||On===St}return Xe(le,On=>{if(Ft===Pe.End)return!1;if(ai(On)){if(un.push(On),Ft===Pe.None)Ft=Pe.Start;else if(Ft===Pe.Start)return Ft=Pe.End,!1}else Ft===Pe.Start&&un.push(On);return $t.includes(On)}),un}function ie(ae,le){const $t=(0,I.Z)(le),Vt=[];return Xe(ae,(St,un)=>{const Ft=$t.indexOf(St);return Ft!==-1&&(Vt.push(un),$t.splice(Ft,1)),!!$t.length}),Vt}var lt=function(ae,le){var $t={};for(var Vt in ae)Object.prototype.hasOwnProperty.call(ae,Vt)&&le.indexOf(Vt)<0&&($t[Vt]=ae[Vt]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Vt=Object.getOwnPropertySymbols(ae);St<Vt.length;St++)le.indexOf(Vt[St])<0&&Object.prototype.propertyIsEnumerable.call(ae,Vt[St])&&($t[Vt[St]]=ae[Vt[St]]);return $t};function We(ae){const{isLeaf:le,expanded:$t}=ae;return le?F.createElement(O.Z,null):$t?F.createElement(B.Z,null):F.createElement(we,null)}function Pt(ae){let{treeData:le,children:$t}=ae;return le||(0,Ae.zn)($t)}const xt=(ae,le)=>{var{defaultExpandAll:$t,defaultExpandParent:Vt,defaultExpandedKeys:St}=ae,un=lt(ae,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ft=F.useRef(),ai=F.useRef(),On=()=>{const{keyEntities:ct}=(0,Ae.I8)(Pt(un));let tt;return $t?tt=Object.keys(ct):Vt?tt=(0,Te.r7)(un.expandedKeys||St||[],ct):tt=un.expandedKeys||St,tt},[ni,Jn]=F.useState(un.selectedKeys||un.defaultSelectedKeys||[]),[In,Mn]=F.useState(()=>On());F.useEffect(()=>{"selectedKeys"in un&&Jn(un.selectedKeys)},[un.selectedKeys]),F.useEffect(()=>{"expandedKeys"in un&&Mn(un.expandedKeys)},[un.expandedKeys]);const xe=(ct,tt)=>{var It;return"expandedKeys"in un||Mn(ct),(It=un.onExpand)===null||It===void 0?void 0:It.call(un,ct,tt)},P=(ct,tt)=>{var It;const{multiple:an}=un,{node:en,nativeEvent:Bt}=tt,{key:cn=""}=en,gn=Pt(un),Qe=Object.assign(Object.assign({},tt),{selected:!0}),Ut=(Bt==null?void 0:Bt.ctrlKey)||(Bt==null?void 0:Bt.metaKey),tn=Bt==null?void 0:Bt.shiftKey;let nn;an&&Ut?(nn=ct,Ft.current=cn,ai.current=nn,Qe.selectedNodes=ie(gn,nn)):an&&tn?(nn=Array.from(new Set([].concat((0,I.Z)(ai.current||[]),(0,I.Z)(Ye({treeData:gn,expandedKeys:In,startKey:cn,endKey:Ft.current}))))),Qe.selectedNodes=ie(gn,nn)):(nn=[cn],Ft.current=cn,ai.current=nn,Qe.selectedNodes=ie(gn,nn)),(It=un.onSelect)===null||It===void 0||It.call(un,nn,Qe),"selectedKeys"in un||Jn(nn)},{getPrefixCls:k,direction:j}=F.useContext(Re.E_),{prefixCls:X,className:T,showIcon:_e=!0,expandAction:kt="click"}=un,Ue=lt(un,["prefixCls","className","showIcon","expandAction"]),Be=k("tree",X),mt=Oe()(`${Be}-directory`,{[`${Be}-directory-rtl`]:j==="rtl"},T);return F.createElement(Ie,Object.assign({icon:We,ref:le,blockNode:!0},Ue,{showIcon:_e,expandAction:kt,prefixCls:Be,className:mt,expandedKeys:In,selectedKeys:ni,onSelect:P,onExpand:xe}))};var Et=F.forwardRef(xt);const wn=Ie;wn.DirectoryTree=Et,wn.TreeNode=v.O;var qe=wn},20648:function(Q,C,h){"use strict";h.d(C,{TM:function(){return Je},Yk:function(){return we}});var v=h(93083),I=h(98447),O=h(17313),B=h(8378),G=h(37613),F=h(83116);const M=new v.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),he=(Oe,Te)=>({[`.${Oe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Te.motionDurationSlow}`}}}),ue=(Oe,Te)=>({[`.${Oe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Te.lineWidthBold}px solid ${Te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),te=(Oe,Te)=>{const{treeCls:Ae,treeNodeCls:Re,treeNodePadding:de,titleHeight:pe,nodeSelectedBg:be,nodeHoverBg:me}=Te,ke=Te.paddingXS;return{[Ae]:Object.assign(Object.assign({},(0,O.Wf)(Te)),{background:Te.colorBgContainer,borderRadius:Te.borderRadius,transition:`background-color ${Te.motionDurationSlow}`,[`&${Ae}-rtl`]:{[`${Ae}-switcher`]:{"&_close":{[`${Ae}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ae}-active-focused)`]:Object.assign({},(0,O.oN)(Te)),[`${Ae}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ae}-block-node`]:{[`${Ae}-list-holder-inner`]:{alignItems:"stretch",[`${Ae}-node-content-wrapper`]:{flex:"auto"},[`${Re}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:de,insetInlineStart:0,border:`1px solid ${Te.colorPrimary}`,opacity:0,animationName:M,animationDuration:Te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Re}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${de}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ae}-node-content-wrapper`]:{color:Te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ae}-node-content-wrapper`]:Object.assign({},(0,O.oN)(Te)),[`&:not(${Re}-disabled).filter-node ${Ae}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ae}-draggable-icon`]:{flexShrink:0,width:pe,lineHeight:`${pe}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Te.motionDurationSlow}`,[`${Re}:hover &`]:{opacity:.45}},[`&${Re}-disabled`]:{[`${Ae}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ae}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:pe}},[`${Ae}-draggable-icon`]:{visibility:"hidden"},[`${Ae}-switcher`]:Object.assign(Object.assign({},he(Oe,Te)),{position:"relative",flex:"none",alignSelf:"stretch",width:pe,margin:0,lineHeight:`${pe}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ae}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Te.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:pe/2,bottom:-de,marginInlineStart:-1,borderInlineEnd:`1px solid ${Te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:pe/2*.8,height:pe/2,borderBottom:`1px solid ${Te.colorBorder}`,content:'""'}}}),[`${Ae}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${Ae}-node-content-wrapper, ${Ae}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:pe,margin:0,padding:`0 ${Te.paddingXS/2}px`,color:"inherit",lineHeight:`${pe}px`,background:"transparent",borderRadius:Te.borderRadius,cursor:"pointer",transition:`all ${Te.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:me},[`&${Ae}-node-selected`]:{backgroundColor:be},[`${Ae}-iconEle`]:{display:"inline-block",width:pe,height:pe,lineHeight:`${pe}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ae}-unselectable ${Ae}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ae}-node-content-wrapper`]:Object.assign({lineHeight:`${pe}px`,userSelect:"none"},ue(Oe,Te)),[`${Re}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Te.colorPrimary}`}},"&-show-line":{[`${Ae}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:pe/2,bottom:-de,borderInlineEnd:`1px solid ${Te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ae}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Re}-leaf-last`]:{[`${Ae}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${pe/2}px !important`}}}}})}},Me=Oe=>{const{treeCls:Te,treeNodeCls:Ae,treeNodePadding:Re,directoryNodeSelectedBg:de,directoryNodeSelectedColor:pe}=Oe;return{[`${Te}${Te}-directory`]:{[Ae]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Re,insetInlineStart:0,transition:`background-color ${Oe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Oe.controlItemBgHover}},"> *":{zIndex:1},[`${Te}-switcher`]:{transition:`color ${Oe.motionDurationMid}`},[`${Te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Te}-node-selected`]:{color:pe,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:de},[`${Te}-switcher`]:{color:pe},[`${Te}-node-content-wrapper`]:{color:pe,background:"transparent"}}}}}},we=(Oe,Te)=>{const Ae=`.${Oe}`,Re=`${Ae}-treenode`,de=Te.paddingXS/2,pe=(0,G.TS)(Te,{treeCls:Ae,treeNodeCls:Re,treeNodePadding:de});return[te(Oe,pe),Me(pe)]},Je=Oe=>{const{controlHeightSM:Te}=Oe;return{titleHeight:Te,nodeHoverBg:Oe.controlItemBgHover,nodeSelectedBg:Oe.controlItemBgActive}};C.ZP=(0,F.Z)("Tree",(Oe,Te)=>{let{prefixCls:Ae}=Te;return[{[Oe.componentCls]:(0,I.C2)(`${Ae}-checkbox`,Oe)},we(Ae,Oe),(0,B.Z)(Oe)]},Oe=>{const{colorTextLightSolid:Te,colorPrimary:Ae}=Oe;return Object.assign(Object.assign({},Je(Oe)),{directoryNodeSelectedColor:Te,directoryNodeSelectedBg:Ae})})},71997:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Re}});var v=h(92413),I=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,G=h(7657),F=function(pe,be){return I.createElement(G.Z,(0,v.Z)({},pe,{ref:be,icon:B}))},M=I.forwardRef(F),he=M,ue=h(52671),te=h(58617),Me=h(15075),we=h(43531),Je=h(92310),Oe=h.n(Je),Te=h(92343),Re=de=>{const{prefixCls:pe,switcherIcon:be,treeNodeProps:me,showLine:ke}=de,{isLeaf:ee,expanded:Ne,loading:Ie}=me;if(Ie)return I.createElement(te.Z,{className:`${pe}-switcher-loading-icon`});let Pe;if(ke&&typeof ke=="object"&&(Pe=ke.showLeafIcon),ee){if(!ke)return null;if(typeof Pe!="boolean"&&Pe){const ie=typeof Pe=="function"?Pe(me):Pe,lt=`${pe}-switcher-line-custom-icon`;return(0,Te.l$)(ie)?(0,Te.Tm)(ie,{className:Oe()(ie.props.className||"",lt)}):ie}return Pe?I.createElement(ue.Z,{className:`${pe}-switcher-line-icon`}):I.createElement("span",{className:`${pe}-switcher-leaf-line`})}const Xe=`${pe}-switcher-icon`,Ye=typeof be=="function"?be(me):be;return(0,Te.l$)(Ye)?(0,Te.Tm)(Ye,{className:Oe()(Ye.props.className||"",Xe)}):Ye!==void 0?Ye:ke?Ne?I.createElement(Me.Z,{className:`${pe}-switcher-line-icon`}):I.createElement(we.Z,{className:`${pe}-switcher-line-icon`}):I.createElement(he,{className:Xe})}},54580:function(Q,C,h){"use strict";h.d(C,{default:function(){return hn}});var v=h(59301),I=h(26407),O=h(92310),B=h.n(O),G=h(92413),F=h(6909),M=h(4771),he=h(9427),ue=h(25440),te=h(400),Me=h(37061),we=h(85195),Je=h(39559),Oe=h(20569),Te=h(26112);function Ae(yt,Ge){var L="cannot ".concat(yt.method," ").concat(yt.action," ").concat(Ge.status,"'"),Dt=new Error(L);return Dt.status=Ge.status,Dt.method=yt.method,Dt.url=yt.action,Dt}function Re(yt){var Ge=yt.responseText||yt.response;if(!Ge)return Ge;try{return JSON.parse(Ge)}catch(L){return Ge}}function de(yt){var Ge=new XMLHttpRequest;yt.onProgress&&Ge.upload&&(Ge.upload.onprogress=function(gt){gt.total>0&&(gt.percent=gt.loaded/gt.total*100),yt.onProgress(gt)});var L=new FormData;yt.data&&Object.keys(yt.data).forEach(function(Jt){var gt=yt.data[Jt];if(Array.isArray(gt)){gt.forEach(function(fn){L.append("".concat(Jt,"[]"),fn)});return}L.append(Jt,gt)}),yt.file instanceof Blob?L.append(yt.filename,yt.file,yt.file.name):L.append(yt.filename,yt.file),Ge.onerror=function(gt){yt.onError(gt)},Ge.onload=function(){return Ge.status<200||Ge.status>=300?yt.onError(Ae(yt,Ge),Re(Ge)):yt.onSuccess(Re(Ge),Ge)},Ge.open(yt.method,yt.action,!0),yt.withCredentials&&"withCredentials"in Ge&&(Ge.withCredentials=!0);var Dt=yt.headers||{};return Dt["X-Requested-With"]!==null&&Ge.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Dt).forEach(function(Jt){Dt[Jt]!==null&&Ge.setRequestHeader(Jt,Dt[Jt])}),Ge.send(L),{abort:function(){Ge.abort()}}}var pe=+new Date,be=0;function me(){return"rc-upload-".concat(pe,"-").concat(++be)}var ke=h(48736),ee=function(yt,Ge){if(yt&&Ge){var L=Array.isArray(Ge)?Ge:Ge.split(","),Dt=yt.name||"",Jt=yt.type||"",gt=Jt.replace(/\/.*$/,"");return L.some(function(fn){var Cn=fn.trim();if(/^\*(\/\*)?$/.test(fn))return!0;if(Cn.charAt(0)==="."){var ui=Dt.toLowerCase(),Ln=Cn.toLowerCase(),rt=[Ln];return(Ln===".jpg"||Ln===".jpeg")&&(rt=[".jpg",".jpeg"]),rt.some(function(Oi){return ui.endsWith(Oi)})}return/\/\*$/.test(Cn)?gt===Cn.replace(/\/.*$/,""):Jt===Cn?!0:/^\w+$/.test(Cn)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Cn,"'.Skip for check.")),!0):!1})}return!0};function Ne(yt,Ge){var L=yt.createReader(),Dt=[];function Jt(){L.readEntries(function(gt){var fn=Array.prototype.slice.apply(gt);Dt=Dt.concat(fn);var Cn=!fn.length;Cn?Ge(Dt):Jt()})}Jt()}var Ie=function(Ge,L,Dt){var Jt=function gt(fn,Cn){fn&&(fn.path=Cn||"",fn.isFile?fn.file(function(ui){Dt(ui)&&(fn.fullPath&&!ui.webkitRelativePath&&(Object.defineProperties(ui,{webkitRelativePath:{writable:!0}}),ui.webkitRelativePath=fn.fullPath.replace(/^\//,""),Object.defineProperties(ui,{webkitRelativePath:{writable:!1}})),L([ui]))}):fn.isDirectory&&Ne(fn,function(ui){ui.forEach(function(Ln){gt(Ln,"".concat(Cn).concat(fn.name,"/"))})}))};Ge.forEach(function(gt){Jt(gt.webkitGetAsEntry())})},Pe=Ie,Xe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ye=function(yt){(0,he.Z)(L,yt);var Ge=(0,ue.Z)(L);function L(){var Dt;(0,F.Z)(this,L);for(var Jt=arguments.length,gt=new Array(Jt),fn=0;fn<Jt;fn++)gt[fn]=arguments[fn];return Dt=Ge.call.apply(Ge,[this].concat(gt)),Dt.state={uid:me()},Dt.reqs={},Dt.fileInput=void 0,Dt._isMounted=void 0,Dt.onChange=function(Cn){var ui=Dt.props,Ln=ui.accept,rt=ui.directory,Oi=Cn.target.files,Qi=(0,I.Z)(Oi).filter(function(Kt){return!rt||ee(Kt,Ln)});Dt.uploadFiles(Qi),Dt.reset()},Dt.onClick=function(Cn){var ui=Dt.fileInput;if(ui){var Ln=Cn.target,rt=Dt.props.onClick;if(Ln&&Ln.tagName==="BUTTON"){var Oi=ui.parentNode;Oi.focus(),Ln.blur()}ui.click(),rt&&rt(Cn)}},Dt.onKeyDown=function(Cn){Cn.key==="Enter"&&Dt.onClick(Cn)},Dt.onFileDrop=function(Cn){var ui=Dt.props.multiple;if(Cn.preventDefault(),Cn.type!=="dragover")if(Dt.props.directory)Pe(Array.prototype.slice.call(Cn.dataTransfer.items),Dt.uploadFiles,function(rt){return ee(rt,Dt.props.accept)});else{var Ln=(0,I.Z)(Cn.dataTransfer.files).filter(function(rt){return ee(rt,Dt.props.accept)});ui===!1&&(Ln=Ln.slice(0,1)),Dt.uploadFiles(Ln)}},Dt.uploadFiles=function(Cn){var ui=(0,I.Z)(Cn),Ln=ui.map(function(rt){return rt.uid=me(),Dt.processFile(rt,ui)});Promise.all(Ln).then(function(rt){var Oi=Dt.props.onBatchStart;Oi==null||Oi(rt.map(function(Qi){var Kt=Qi.origin,zi=Qi.parsedFile;return{file:Kt,parsedFile:zi}})),rt.filter(function(Qi){return Qi.parsedFile!==null}).forEach(function(Qi){Dt.post(Qi)})})},Dt.processFile=function(){var Cn=(0,Oe.Z)((0,we.Z)().mark(function ui(Ln,rt){var Oi,Qi,Kt,zi,J,re,Hn,Fe,wt;return(0,we.Z)().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(Oi=Dt.props.beforeUpload,Qi=Ln,!Oi){Rn.next=14;break}return Rn.prev=3,Rn.next=6,Oi(Ln,rt);case 6:Qi=Rn.sent,Rn.next=12;break;case 9:Rn.prev=9,Rn.t0=Rn.catch(3),Qi=!1;case 12:if(Qi!==!1){Rn.next=14;break}return Rn.abrupt("return",{origin:Ln,parsedFile:null,action:null,data:null});case 14:if(Kt=Dt.props.action,typeof Kt!="function"){Rn.next=21;break}return Rn.next=18,Kt(Ln);case 18:zi=Rn.sent,Rn.next=22;break;case 21:zi=Kt;case 22:if(J=Dt.props.data,typeof J!="function"){Rn.next=29;break}return Rn.next=26,J(Ln);case 26:re=Rn.sent,Rn.next=30;break;case 29:re=J;case 30:return Hn=((0,Je.Z)(Qi)==="object"||typeof Qi=="string")&&Qi?Qi:Ln,Hn instanceof File?Fe=Hn:Fe=new File([Hn],Ln.name,{type:Ln.type}),wt=Fe,wt.uid=Ln.uid,Rn.abrupt("return",{origin:Ln,data:re,parsedFile:wt,action:zi});case 35:case"end":return Rn.stop()}},ui,null,[[3,9]])}));return function(ui,Ln){return Cn.apply(this,arguments)}}(),Dt.saveFileInput=function(Cn){Dt.fileInput=Cn},Dt}return(0,M.Z)(L,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Jt){var gt=this,fn=Jt.data,Cn=Jt.origin,ui=Jt.action,Ln=Jt.parsedFile;if(this._isMounted){var rt=this.props,Oi=rt.onStart,Qi=rt.customRequest,Kt=rt.name,zi=rt.headers,J=rt.withCredentials,re=rt.method,Hn=Cn.uid,Fe=Qi||de,wt={action:ui,filename:Kt,data:fn,file:Ln,headers:zi,withCredentials:J,method:re||"post",onProgress:function(Rn){var _i=gt.props.onProgress;_i==null||_i(Rn,Ln)},onSuccess:function(Rn,_i){var Xt=gt.props.onSuccess;Xt==null||Xt(Rn,Ln,_i),delete gt.reqs[Hn]},onError:function(Rn,_i){var Xt=gt.props.onError;Xt==null||Xt(Rn,_i,Ln),delete gt.reqs[Hn]}};Oi(Cn),this.reqs[Hn]=Fe(wt)}}},{key:"reset",value:function(){this.setState({uid:me()})}},{key:"abort",value:function(Jt){var gt=this.reqs;if(Jt){var fn=Jt.uid?Jt.uid:Jt;gt[fn]&>[fn].abort&>[fn].abort(),delete gt[fn]}else Object.keys(gt).forEach(function(Cn){gt[Cn]&>[Cn].abort&>[Cn].abort(),delete gt[Cn]})}},{key:"render",value:function(){var Jt=this.props,gt=Jt.component,fn=Jt.prefixCls,Cn=Jt.className,ui=Jt.disabled,Ln=Jt.id,rt=Jt.style,Oi=Jt.multiple,Qi=Jt.accept,Kt=Jt.capture,zi=Jt.children,J=Jt.directory,re=Jt.openFileDialogOnClick,Hn=Jt.onMouseEnter,Fe=Jt.onMouseLeave,wt=(0,Me.Z)(Jt,Xe),gi=B()((0,te.Z)((0,te.Z)((0,te.Z)({},fn,!0),"".concat(fn,"-disabled"),ui),Cn,Cn)),Rn=J?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_i=ui?{}:{onClick:re?this.onClick:function(){},onKeyDown:re?this.onKeyDown:function(){},onMouseEnter:Hn,onMouseLeave:Fe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(gt,(0,G.Z)({},_i,{className:gi,role:"button",style:rt}),v.createElement("input",(0,G.Z)({},(0,Te.Z)(wt,{aria:!0,data:!0}),{id:Ln,disabled:ui,type:"file",ref:this.saveFileInput,onClick:function(Ei){return Ei.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Qi},Rn,{multiple:Oi,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),zi)}}]),L}(v.Component),ie=Ye;function lt(){}var We=function(yt){(0,he.Z)(L,yt);var Ge=(0,ue.Z)(L);function L(){var Dt;(0,F.Z)(this,L);for(var Jt=arguments.length,gt=new Array(Jt),fn=0;fn<Jt;fn++)gt[fn]=arguments[fn];return Dt=Ge.call.apply(Ge,[this].concat(gt)),Dt.uploader=void 0,Dt.saveUploader=function(Cn){Dt.uploader=Cn},Dt}return(0,M.Z)(L,[{key:"abort",value:function(Jt){this.uploader.abort(Jt)}},{key:"render",value:function(){return v.createElement(ie,(0,G.Z)({},this.props,{ref:this.saveUploader}))}}]),L}(v.Component);We.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:lt,onError:lt,onSuccess:lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Pt=We,xt=Pt,Tt=h(18929),Et=h(4676),wn=h(36355),qe=h(1684),ae=h(9763),le=h(31724),$t={icon:function(Ge,L){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:L}},{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:Ge}}]}},name:"file",theme:"twotone"},Vt=$t,St=h(7657),un=function(Ge,L){return v.createElement(St.Z,(0,G.Z)({},Ge,{ref:L,icon:Vt}))},Ft=v.forwardRef(un),ai=Ft,On=h(58617),ni={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"},Jn=ni,In=function(Ge,L){return v.createElement(St.Z,(0,G.Z)({},Ge,{ref:L,icon:Jn}))},Mn=v.forwardRef(In),xe=Mn,P={icon:function(Ge,L){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:Ge}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:L}},{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:L}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:L}},{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:Ge}}]}},name:"picture",theme:"twotone"},k=P,j=function(Ge,L){return v.createElement(St.Z,(0,G.Z)({},Ge,{ref:L,icon:k}))},X=v.forwardRef(j),T=X,_e=h(77900),kt=h(56762),Ue=h(62892),Be=h(92343),mt=h(3113);function ct(yt){return Object.assign(Object.assign({},yt),{lastModified:yt.lastModified,lastModifiedDate:yt.lastModifiedDate,name:yt.name,size:yt.size,type:yt.type,uid:yt.uid,percent:0,originFileObj:yt})}function tt(yt,Ge){const L=(0,I.Z)(Ge),Dt=L.findIndex(Jt=>{let{uid:gt}=Jt;return gt===yt.uid});return Dt===-1?L.push(yt):L[Dt]=yt,L}function It(yt,Ge){const L=yt.uid!==void 0?"uid":"name";return Ge.filter(Dt=>Dt[L]===yt[L])[0]}function an(yt,Ge){const L=yt.uid!==void 0?"uid":"name",Dt=Ge.filter(Jt=>Jt[L]!==yt[L]);return Dt.length===Ge.length?null:Dt}const en=function(){const Ge=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Dt=Ge[Ge.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Dt)||[""])[0]},Bt=yt=>yt.indexOf("image/")===0,cn=yt=>{if(yt.type&&!yt.thumbUrl)return Bt(yt.type);const Ge=yt.thumbUrl||yt.url||"",L=en(Ge);return/^data:image\//.test(Ge)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(L)?!0:!(/^data:/.test(Ge)||L)},gn=200;function Qe(yt){return new Promise(Ge=>{if(!yt.type||!Bt(yt.type)){Ge("");return}const L=document.createElement("canvas");L.width=gn,L.height=gn,L.style.cssText=`position: fixed; left: 0; top: 0; width: ${gn}px; height: ${gn}px; z-index: 9999; display: none;`,document.body.appendChild(L);const Dt=L.getContext("2d"),Jt=new Image;if(Jt.onload=()=>{const{width:gt,height:fn}=Jt;let Cn=gn,ui=gn,Ln=0,rt=0;gt>fn?(ui=fn*(gn/gt),rt=-(ui-Cn)/2):(Cn=gt*(gn/fn),Ln=-(Cn-ui)/2),Dt.drawImage(Jt,Ln,rt,Cn,ui);const Oi=L.toDataURL();document.body.removeChild(L),window.URL.revokeObjectURL(Jt.src),Ge(Oi)},Jt.crossOrigin="anonymous",yt.type.startsWith("image/svg+xml")){const gt=new FileReader;gt.onload=()=>{gt.result&&(Jt.src=gt.result)},gt.readAsDataURL(yt)}else if(yt.type.startsWith("image/gif")){const gt=new FileReader;gt.onload=()=>{gt.result&&Ge(gt.result)},gt.readAsDataURL(yt)}else Jt.src=window.URL.createObjectURL(yt)})}var Ut=h(26227),tn=h(41464),nn=h(15277),He=h(93948),Bn=h(6848),Kn=v.forwardRef((yt,Ge)=>{let{prefixCls:L,className:Dt,style:Jt,locale:gt,listType:fn,file:Cn,items:ui,progress:Ln,iconRender:rt,actionIconRender:Oi,itemRender:Qi,isImgUrl:Kt,showPreviewIcon:zi,showRemoveIcon:J,showDownloadIcon:re,previewIcon:Hn,removeIcon:Fe,downloadIcon:wt,onPreview:gi,onDownload:Rn,onClose:_i}=yt;var Xt,Ei;const{status:Zt}=Cn,[Bi,Gr]=v.useState(Zt);v.useEffect(()=>{Zt!=="removed"&&Gr(Zt)},[Zt]);const[At,eo]=v.useState(!1);v.useEffect(()=>{const Tr=setTimeout(()=>{eo(!0)},300);return()=>{clearTimeout(Tr)}},[]);const Qt=rt(Cn);let Li=v.createElement("div",{className:`${L}-icon`},Qt);if(fn==="picture"||fn==="picture-card"||fn==="picture-circle")if(Bi==="uploading"||!Cn.thumbUrl&&!Cn.url){const Tr=B()(`${L}-list-item-thumbnail`,{[`${L}-list-item-file`]:Bi!=="uploading"});Li=v.createElement("div",{className:Tr},Qt)}else{const Tr=Kt!=null&&Kt(Cn)?v.createElement("img",{src:Cn.thumbUrl||Cn.url,alt:Cn.name,className:`${L}-list-item-image`,crossOrigin:Cn.crossOrigin}):Qt,io=B()(`${L}-list-item-thumbnail`,{[`${L}-list-item-file`]:Kt&&!Kt(Cn)});Li=v.createElement("a",{className:io,onClick:bo=>gi(Cn,bo),href:Cn.url||Cn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Tr)}const wi=B()(`${L}-list-item`,`${L}-list-item-${Bi}`),pr=typeof Cn.linkProps=="string"?JSON.parse(Cn.linkProps):Cn.linkProps,ar=J?Oi((typeof Fe=="function"?Fe(Cn):Fe)||v.createElement(Ut.Z,null),()=>_i(Cn),L,gt.removeFile):null,Zn=re&&Bi==="done"?Oi((typeof wt=="function"?wt(Cn):wt)||v.createElement(tn.Z,null),()=>Rn(Cn),L,gt.downloadFile):null,ce=fn!=="picture-card"&&fn!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:B()(`${L}-list-item-actions`,{picture:fn==="picture"})},Zn,ar),mr=B()(`${L}-list-item-name`),Er=Cn.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:mr,title:Cn.name},pr,{href:Cn.url,onClick:Tr=>gi(Cn,Tr)}),Cn.name),ce]:[v.createElement("span",{key:"view",className:mr,onClick:Tr=>gi(Cn,Tr),title:Cn.name},Cn.name),ce],cr={pointerEvents:"none",opacity:.5},Wr=zi?v.createElement("a",{href:Cn.url||Cn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Cn.url||Cn.thumbUrl?void 0:cr,onClick:Tr=>gi(Cn,Tr),title:gt.previewFile},typeof Hn=="function"?Hn(Cn):Hn||v.createElement(nn.Z,null)):null,Wi=(fn==="picture-card"||fn==="picture-circle")&&Bi!=="uploading"&&v.createElement("span",{className:`${L}-list-item-actions`},Wr,Bi==="done"&&Zn,ar),{getPrefixCls:Kr}=v.useContext(wn.E_),Ri=Kr(),Ui=v.createElement("div",{className:wi},Li,Er,Wi,At&&v.createElement(_e.default,{motionName:`${Ri}-fade`,visible:Bi==="uploading",motionDeadline:2e3},Tr=>{let{className:io}=Tr;const bo="percent"in Cn?v.createElement(He.Z,Object.assign({},Ln,{type:"line",percent:Cn.percent,"aria-label":Cn["aria-label"],"aria-labelledby":Cn["aria-labelledby"]})):null;return v.createElement("div",{className:B()(`${L}-list-item-progress`,io)},bo)})),Di=Cn.response&&typeof Cn.response=="string"?Cn.response:((Xt=Cn.error)===null||Xt===void 0?void 0:Xt.statusText)||((Ei=Cn.error)===null||Ei===void 0?void 0:Ei.message)||gt.uploadError,Cr=Bi==="error"?v.createElement(Bn.Z,{title:Di,getPopupContainer:Tr=>Tr.parentNode},Ui):Ui;return v.createElement("div",{className:B()(`${L}-list-item-container`,Dt),style:Jt,ref:Ge},Qi?Qi(Cr,Cn,ui,{download:Rn.bind(null,Cn),preview:gi.bind(null,Cn),remove:_i.bind(null,Cn)}):Cr)});const Ti=(yt,Ge)=>{const{listType:L="text",previewFile:Dt=Qe,onPreview:Jt,onDownload:gt,onRemove:fn,locale:Cn,iconRender:ui,isImageUrl:Ln=cn,prefixCls:rt,items:Oi=[],showPreviewIcon:Qi=!0,showRemoveIcon:Kt=!0,showDownloadIcon:zi=!1,removeIcon:J,previewIcon:re,downloadIcon:Hn,progress:Fe={size:[-1,2],showInfo:!1},appendAction:wt,appendActionVisible:gi=!0,itemRender:Rn,disabled:_i}=yt,Xt=(0,kt.Z)(),[Ei,Zt]=v.useState(!1);v.useEffect(()=>{L!=="picture"&&L!=="picture-card"&&L!=="picture-circle"||(Oi||[]).forEach(cr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(cr.originFileObj instanceof File||cr.originFileObj instanceof Blob)||cr.thumbUrl!==void 0||(cr.thumbUrl="",Dt&&Dt(cr.originFileObj).then(Wr=>{cr.thumbUrl=Wr||"",Xt()}))})},[L,Oi,Dt]),v.useEffect(()=>{Zt(!0)},[]);const Bi=(cr,Wr)=>{if(Jt)return Wr==null||Wr.preventDefault(),Jt(cr)},Gr=cr=>{typeof gt=="function"?gt(cr):cr.url&&window.open(cr.url)},At=cr=>{fn==null||fn(cr)},eo=cr=>{if(ui)return ui(cr,L);const Wr=cr.status==="uploading",Wi=Ln&&Ln(cr)?v.createElement(T,null):v.createElement(ai,null);let Kr=Wr?v.createElement(On.Z,null):v.createElement(xe,null);return L==="picture"?Kr=Wr?v.createElement(On.Z,null):Wi:(L==="picture-card"||L==="picture-circle")&&(Kr=Wr?Cn.uploading:Wi),Kr},Qt=(cr,Wr,Wi,Kr)=>{const Ri={type:"text",size:"small",title:Kr,onClick:Ui=>{Wr(),(0,Be.l$)(cr)&&cr.props.onClick&&cr.props.onClick(Ui)},className:`${Wi}-list-item-action`,disabled:_i};if((0,Be.l$)(cr)){const Ui=(0,Be.Tm)(cr,Object.assign(Object.assign({},cr.props),{onClick:()=>{}}));return v.createElement(mt.ZP,Object.assign({},Ri,{icon:Ui}))}return v.createElement(mt.ZP,Object.assign({},Ri),v.createElement("span",null,cr))};v.useImperativeHandle(Ge,()=>({handlePreview:Bi,handleDownload:Gr}));const{getPrefixCls:Li}=v.useContext(wn.E_),wi=Li("upload",rt),pr=Li(),ar=B()(`${wi}-list`,`${wi}-list-${L}`),Zn=(0,I.Z)(Oi.map(cr=>({key:cr.uid,file:cr})));let mr={motionDeadline:2e3,motionName:`${wi}-${L==="picture-card"||L==="picture-circle"?"animate-inline":"animate"}`,keys:Zn,motionAppear:Ei};const Er=v.useMemo(()=>{const cr=Object.assign({},(0,Ue.Z)(pr));return delete cr.onAppearEnd,delete cr.onEnterEnd,delete cr.onLeaveEnd,cr},[pr]);return L!=="picture-card"&&L!=="picture-circle"&&(mr=Object.assign(Object.assign({},Er),mr)),v.createElement("div",{className:ar},v.createElement(_e.CSSMotionList,Object.assign({},mr,{component:!1}),cr=>{let{key:Wr,file:Wi,className:Kr,style:Ri}=cr;return v.createElement(Kn,{key:Wr,locale:Cn,prefixCls:wi,className:Kr,style:Ri,file:Wi,items:Oi,progress:Fe,listType:L,isImgUrl:Ln,showPreviewIcon:Qi,showRemoveIcon:Kt,showDownloadIcon:zi,removeIcon:J,previewIcon:re,downloadIcon:Hn,iconRender:eo,actionIconRender:Qt,itemRender:Rn,onPreview:Bi,onDownload:Gr,onClose:At})}),wt&&v.createElement(_e.default,Object.assign({},mr,{visible:gi,forceRender:!0}),cr=>{let{className:Wr,style:Wi}=cr;return(0,Be.Tm)(wt,Kr=>({className:B()(Kr.className,Wr),style:Object.assign(Object.assign(Object.assign({},Wi),{pointerEvents:Wr?"none":void 0}),Kr.style)}))}))};var dn=v.forwardRef(Ti),sn=h(17313),gr=h(8378),dr=h(83116),qn=h(37613),tr=yt=>{const{componentCls:Ge,iconCls:L}=yt;return{[`${Ge}-wrapper`]:{[`${Ge}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[Ge]:{padding:`${yt.padding}px 0`},[`${Ge}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ge}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ge}-disabled):hover`]:{borderColor:yt.colorPrimaryHover},[`p${Ge}-drag-icon`]:{marginBottom:yt.margin,[L]:{color:yt.colorPrimary,fontSize:yt.uploadThumbnailSize}},[`p${Ge}-text`]:{margin:`0 0 ${yt.marginXXS}px`,color:yt.colorTextHeading,fontSize:yt.fontSizeLG},[`p${Ge}-hint`]:{color:yt.colorTextDescription,fontSize:yt.fontSize},[`&${Ge}-disabled`]:{cursor:"not-allowed",[`p${Ge}-drag-icon ${L},
|
|
|
p${Ge}-text,
|
|
|
p${Ge}-hint
|
|
|
`]:{color:yt.colorTextDisabled}}}}}},br=yt=>{const{componentCls:Ge,antCls:L,iconCls:Dt,fontSize:Jt,lineHeight:gt}=yt,fn=`${Ge}-list-item`,Cn=`${fn}-actions`,ui=`${fn}-action`,Ln=Math.round(Jt*gt);return{[`${Ge}-wrapper`]:{[`${Ge}-list`]:Object.assign(Object.assign({},(0,sn.dF)()),{lineHeight:yt.lineHeight,[fn]:{position:"relative",height:yt.lineHeight*Jt,marginTop:yt.marginXS,fontSize:Jt,display:"flex",alignItems:"center",transition:`background-color ${yt.motionDurationSlow}`,"&:hover":{backgroundColor:yt.controlItemBgHover},[`${fn}-name`]:Object.assign(Object.assign({},sn.vS),{padding:`0 ${yt.paddingXS}px`,lineHeight:gt,flex:"auto",transition:`all ${yt.motionDurationSlow}`}),[Cn]:{[ui]:{opacity:0},[`${ui}${L}-btn-sm`]:{height:Ln,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${ui}:focus-visible,
|
|
|
&.picture ${ui}
|
|
|
`]:{opacity:1},[Dt]:{color:yt.actionsColor,transition:`all ${yt.motionDurationSlow}`},[`&:hover ${Dt}`]:{color:yt.colorText}},[`${Ge}-icon ${Dt}`]:{color:yt.colorTextDescription,fontSize:Jt},[`${fn}-progress`]:{position:"absolute",bottom:-yt.uploadProgressOffset,width:"100%",paddingInlineStart:Jt+yt.paddingXS,fontSize:Jt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${fn}:hover ${ui}`]:{opacity:1,color:yt.colorText},[`${fn}-error`]:{color:yt.colorError,[`${fn}-name, ${Ge}-icon ${Dt}`]:{color:yt.colorError},[Cn]:{[`${Dt}, ${Dt}:hover`]:{color:yt.colorError},[ui]:{opacity:1}}},[`${Ge}-list-item-container`]:{transition:`opacity ${yt.motionDurationSlow}, height ${yt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fr=h(93083),Fr=h(1950);const jr=new fr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),so=new fr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var to=yt=>{const{componentCls:Ge}=yt,L=`${Ge}-animate-inline`;return[{[`${Ge}-wrapper`]:{[`${L}-appear, ${L}-enter, ${L}-leave`]:{animationDuration:yt.motionDurationSlow,animationTimingFunction:yt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${L}-appear, ${L}-enter`]:{animationName:jr},[`${L}-leave`]:{animationName:so}}},{[`${Ge}-wrapper`]:(0,Fr.J$)(yt)},jr,so]},vr=h(93398),Ji=h(64993);const di=yt=>{const{componentCls:Ge,iconCls:L,uploadThumbnailSize:Dt,uploadProgressOffset:Jt}=yt,gt=`${Ge}-list`,fn=`${gt}-item`;return{[`${Ge}-wrapper`]:{[`
|
|
|
${gt}${gt}-picture,
|
|
|
${gt}${gt}-picture-card,
|
|
|
${gt}${gt}-picture-circle
|
|
|
`]:{[fn]:{position:"relative",height:Dt+yt.lineWidth*2+yt.paddingXS*2,padding:yt.paddingXS,border:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,"&:hover":{background:"transparent"},[`${fn}-thumbnail`]:Object.assign(Object.assign({},sn.vS),{width:Dt,height:Dt,lineHeight:`${Dt+yt.paddingSM}px`,textAlign:"center",flex:"none",[L]:{fontSize:yt.fontSizeHeading2,color:yt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${fn}-progress`]:{bottom:Jt,width:`calc(100% - ${yt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Dt+yt.paddingXS}},[`${fn}-error`]:{borderColor:yt.colorError,[`${fn}-thumbnail ${L}`]:{[`svg path[fill='${vr.blue[0]}']`]:{fill:yt.colorErrorBg},[`svg path[fill='${vr.blue.primary}']`]:{fill:yt.colorError}}},[`${fn}-uploading`]:{borderStyle:"dashed",[`${fn}-name`]:{marginBottom:Jt}}},[`${gt}${gt}-picture-circle ${fn}`]:{[`&, &::before, ${fn}-thumbnail`]:{borderRadius:"50%"}}}}},ft=yt=>{const{componentCls:Ge,iconCls:L,fontSizeLG:Dt,colorTextLightSolid:Jt}=yt,gt=`${Ge}-list`,fn=`${gt}-item`,Cn=yt.uploadPicCardSize;return{[`
|
|
|
${Ge}-wrapper${Ge}-picture-card-wrapper,
|
|
|
${Ge}-wrapper${Ge}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,sn.dF)()),{display:"inline-block",width:"100%",[`${Ge}${Ge}-select`]:{width:Cn,height:Cn,marginInlineEnd:yt.marginXS,marginBottom:yt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[`> ${Ge}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ge}-disabled):hover`]:{borderColor:yt.colorPrimary}},[`${gt}${gt}-picture-card, ${gt}${gt}-picture-circle`]:{[`${gt}-item-container`]:{display:"inline-block",width:Cn,height:Cn,marginBlock:`0 ${yt.marginXS}px`,marginInline:`0 ${yt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[fn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${yt.paddingXS*2}px)`,height:`calc(100% - ${yt.paddingXS*2}px)`,backgroundColor:yt.colorBgMask,opacity:0,transition:`all ${yt.motionDurationSlow}`,content:'" "'}},[`${fn}:hover`]:{[`&::before, ${fn}-actions`]:{opacity:1}},[`${fn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yt.motionDurationSlow}`,[`${L}-eye, ${L}-download, ${L}-delete`]:{zIndex:10,width:Dt,margin:`0 ${yt.marginXXS}px`,fontSize:Dt,cursor:"pointer",transition:`all ${yt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${fn}-actions, ${fn}-actions:hover`]:{[`${L}-eye, ${L}-download, ${L}-delete`]:{color:new Ji.C(Jt).setAlpha(.65).toRgbString(),"&:hover":{color:Jt}}},[`${fn}-thumbnail, ${fn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${fn}-name`]:{display:"none",textAlign:"center"},[`${fn}-file + ${fn}-name`]:{position:"absolute",bottom:yt.margin,display:"block",width:`calc(100% - ${yt.paddingXS*2}px)`},[`${fn}-uploading`]:{[`&${fn}`]:{backgroundColor:yt.colorFillAlter},[`&::before, ${L}-eye, ${L}-download, ${L}-delete`]:{display:"none"}},[`${fn}-progress`]:{bottom:yt.marginXL,width:`calc(100% - ${yt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ge}-wrapper${Ge}-picture-circle-wrapper`]:{[`${Ge}${Ge}-select`]:{borderRadius:"50%"}}}};var Wn=yt=>{const{componentCls:Ge}=yt;return{[`${Ge}-rtl`]:{direction:"rtl"}}};const vt=yt=>{const{componentCls:Ge,colorTextDisabled:L}=yt;return{[`${Ge}-wrapper`]:Object.assign(Object.assign({},(0,sn.Wf)(yt)),{[Ge]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ge}-select`]:{display:"inline-block"},[`${Ge}-disabled`]:{color:L,cursor:"not-allowed"}})}};var Ve=(0,dr.Z)("Upload",yt=>{const{fontSizeHeading3:Ge,fontSize:L,lineHeight:Dt,lineWidth:Jt,controlHeightLG:gt}=yt,fn=Math.round(L*Dt),Cn=(0,qn.TS)(yt,{uploadThumbnailSize:Ge*2,uploadProgressOffset:fn/2+Jt,uploadPicCardSize:gt*2.55});return[vt(Cn),tr(Cn),di(Cn),ft(Cn),br(Cn),to(Cn),Wn(Cn),(0,gr.Z)(Cn)]},yt=>({actionsColor:yt.colorTextDescription})),vn=function(yt,Ge,L,Dt){function Jt(gt){return gt instanceof L?gt:new L(function(fn){fn(gt)})}return new(L||(L=Promise))(function(gt,fn){function Cn(rt){try{Ln(Dt.next(rt))}catch(Oi){fn(Oi)}}function ui(rt){try{Ln(Dt.throw(rt))}catch(Oi){fn(Oi)}}function Ln(rt){rt.done?gt(rt.value):Jt(rt.value).then(Cn,ui)}Ln((Dt=Dt.apply(yt,Ge||[])).next())})};const Nn=`__LIST_IGNORE_${Date.now()}__`,on=(yt,Ge)=>{const{fileList:L,defaultFileList:Dt,onRemove:Jt,showUploadList:gt=!0,listType:fn="text",onPreview:Cn,onDownload:ui,onChange:Ln,onDrop:rt,previewFile:Oi,disabled:Qi,locale:Kt,iconRender:zi,isImageUrl:J,progress:re,prefixCls:Hn,className:Fe,type:wt="select",children:gi,style:Rn,itemRender:_i,maxCount:Xt,data:Ei={},multiple:Zt=!1,action:Bi="",accept:Gr="",supportServerRender:At=!0,rootClassName:eo}=yt,Qt=v.useContext(qe.Z),Li=Qi!=null?Qi:Qt,[wi,pr]=(0,Tt.Z)(Dt||[],{value:L,postState:po=>po!=null?po:[]}),[ar,Zn]=v.useState("drop"),ce=v.useRef(null);v.useMemo(()=>{const po=Date.now();(L||[]).forEach((ko,yo)=>{!ko.uid&&!Object.isFrozen(ko)&&(ko.uid=`__AUTO__${po}_${yo}__`)})},[L]);const mr=(po,ko,yo)=>{let Mt=(0,I.Z)(ko),Dr=!1;Xt===1?Mt=Mt.slice(-1):Xt&&(Dr=Mt.length>Xt,Mt=Mt.slice(0,Xt)),(0,Et.flushSync)(()=>{pr(Mt)});const mo={file:po,fileList:Mt};yo&&(mo.event=yo),(!Dr||Mt.some(Ea=>Ea.uid===po.uid))&&(0,Et.flushSync)(()=>{Ln==null||Ln(mo)})},Er=(po,ko)=>vn(void 0,void 0,void 0,function*(){const{beforeUpload:yo,transformFile:Mt}=yt;let Dr=po;if(yo){const mo=yield yo(po,ko);if(mo===!1)return!1;if(delete po[Nn],mo===Nn)return Object.defineProperty(po,Nn,{value:!0,configurable:!0}),!1;typeof mo=="object"&&mo&&(Dr=mo)}return Mt&&(Dr=yield Mt(Dr)),Dr}),cr=po=>{const ko=po.filter(Dr=>!Dr.file[Nn]);if(!ko.length)return;const yo=ko.map(Dr=>ct(Dr.file));let Mt=(0,I.Z)(wi);yo.forEach(Dr=>{Mt=tt(Dr,Mt)}),yo.forEach((Dr,mo)=>{let Ea=Dr;if(ko[mo].parsedFile)Dr.status="uploading";else{const{originFileObj:xr}=Dr;let Sn;try{Sn=new File([xr],xr.name,{type:xr.type})}catch(ur){Sn=new Blob([xr],{type:xr.type}),Sn.name=xr.name,Sn.lastModifiedDate=new Date,Sn.lastModified=new Date().getTime()}Sn.uid=Dr.uid,Ea=Sn}mr(Ea,Mt)})},Wr=(po,ko,yo)=>{try{typeof po=="string"&&(po=JSON.parse(po))}catch(mo){}if(!It(ko,wi))return;const Mt=ct(ko);Mt.status="done",Mt.percent=100,Mt.response=po,Mt.xhr=yo;const Dr=tt(Mt,wi);mr(Mt,Dr)},Wi=(po,ko)=>{if(!It(ko,wi))return;const yo=ct(ko);yo.status="uploading",yo.percent=po.percent;const Mt=tt(yo,wi);mr(yo,Mt,po)},Kr=(po,ko,yo)=>{if(!It(yo,wi))return;const Mt=ct(yo);Mt.error=po,Mt.response=ko,Mt.status="error";const Dr=tt(Mt,wi);mr(Mt,Dr)},Ri=po=>{let ko;Promise.resolve(typeof Jt=="function"?Jt(po):Jt).then(yo=>{var Mt;if(yo===!1)return;const Dr=an(po,wi);Dr&&(ko=Object.assign(Object.assign({},po),{status:"removed"}),wi==null||wi.forEach(mo=>{const Ea=ko.uid!==void 0?"uid":"name";mo[Ea]===ko[Ea]&&!Object.isFrozen(mo)&&(mo.status="removed")}),(Mt=ce.current)===null||Mt===void 0||Mt.abort(ko),mr(ko,Dr))})},Ui=po=>{Zn(po.type),po.type==="drop"&&(rt==null||rt(po))};v.useImperativeHandle(Ge,()=>({onBatchStart:cr,onSuccess:Wr,onProgress:Wi,onError:Kr,fileList:wi,upload:ce.current}));const{getPrefixCls:Di,direction:Cr,upload:Tr}=v.useContext(wn.E_),io=Di("upload",Hn),bo=Object.assign(Object.assign({onBatchStart:cr,onError:Kr,onProgress:Wi,onSuccess:Wr},yt),{data:Ei,multiple:Zt,action:Bi,accept:Gr,supportServerRender:At,prefixCls:io,disabled:Li,beforeUpload:Er,onChange:void 0});delete bo.className,delete bo.style,(!gi||Li)&&delete bo.id;const[mi,Sa]=Ve(io),[Wo]=(0,ae.Z)("Upload",le.Z.Upload),{showRemoveIcon:Jo,showPreviewIcon:Ta,showDownloadIcon:Ya,removeIcon:ns,previewIcon:Na,downloadIcon:cs}=typeof gt=="boolean"?{}:gt,Za=(po,ko)=>gt?v.createElement(dn,{prefixCls:io,listType:fn,items:wi,previewFile:Oi,onPreview:Cn,onDownload:ui,onRemove:Ri,showRemoveIcon:!Li&&Jo,showPreviewIcon:Ta,showDownloadIcon:Ya,removeIcon:ns,previewIcon:Na,downloadIcon:cs,iconRender:zi,locale:Object.assign(Object.assign({},Wo),Kt),isImageUrl:J,progress:re,appendAction:po,appendActionVisible:ko,itemRender:_i,disabled:Li}):po,jo=B()(`${io}-wrapper`,Fe,eo,Sa,Tr==null?void 0:Tr.className,{[`${io}-rtl`]:Cr==="rtl",[`${io}-picture-card-wrapper`]:fn==="picture-card",[`${io}-picture-circle-wrapper`]:fn==="picture-circle"}),Wt=Object.assign(Object.assign({},Tr==null?void 0:Tr.style),Rn);if(wt==="drag"){const po=B()(Sa,io,`${io}-drag`,{[`${io}-drag-uploading`]:wi.some(ko=>ko.status==="uploading"),[`${io}-drag-hover`]:ar==="dragover",[`${io}-disabled`]:Li,[`${io}-rtl`]:Cr==="rtl"});return mi(v.createElement("span",{className:jo},v.createElement("div",{className:po,style:Wt,onDrop:Ui,onDragOver:Ui,onDragLeave:Ui},v.createElement(xt,Object.assign({},bo,{ref:ce,className:`${io}-btn`}),v.createElement("div",{className:`${io}-drag-container`},gi))),Za()))}const Ba=B()(io,`${io}-select`,{[`${io}-disabled`]:Li}),ol=(po=>v.createElement("div",{className:Ba,style:po},v.createElement(xt,Object.assign({},bo,{ref:ce}))))(gi?void 0:{display:"none"});return mi(fn==="picture-card"||fn==="picture-circle"?v.createElement("span",{className:jo},Za(ol,!!gi)):v.createElement("span",{className:jo},ol,Za()))};var Ke=v.forwardRef(on),Ht=function(yt,Ge){var L={};for(var Dt in yt)Object.prototype.hasOwnProperty.call(yt,Dt)&&Ge.indexOf(Dt)<0&&(L[Dt]=yt[Dt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Dt=Object.getOwnPropertySymbols(yt);Jt<Dt.length;Jt++)Ge.indexOf(Dt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(yt,Dt[Jt])&&(L[Dt[Jt]]=yt[Dt[Jt]]);return L},jn=v.forwardRef((yt,Ge)=>{var{style:L,height:Dt}=yt,Jt=Ht(yt,["style","height"]);return v.createElement(Ke,Object.assign({ref:Ge},Jt,{type:"drag",style:Object.assign(Object.assign({},L),{height:Dt})}))});const at=Ke;at.Dragger=jn,at.LIST_IGNORE=Nn;var hn=at},99498:function(Q,C,h){(function(v){v(h(89780))})(function(v){v.defineOption("placeholder","",function(he,ue,te){var Me=te&&te!=v.Init;if(ue&&!Me)he.on("blur",G),he.on("change",F),he.on("swapDoc",F),v.on(he.getInputField(),"compositionupdate",he.state.placeholderCompose=function(){B(he)}),F(he);else if(!ue&&Me){he.off("blur",G),he.off("change",F),he.off("swapDoc",F),v.off(he.getInputField(),"compositionupdate",he.state.placeholderCompose),I(he);var we=he.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}ue&&!he.hasFocus()&&G(he)});function I(he){he.state.placeholder&&(he.state.placeholder.parentNode.removeChild(he.state.placeholder),he.state.placeholder=null)}function O(he){I(he);var ue=he.state.placeholder=document.createElement("pre");ue.style.cssText="height: 0; overflow: visible",ue.style.direction=he.getOption("direction"),ue.className="CodeMirror-placeholder CodeMirror-line-like";var te=he.getOption("placeholder");typeof te=="string"&&(te=document.createTextNode(te)),ue.appendChild(te),he.display.lineSpace.insertBefore(ue,he.display.lineSpace.firstChild)}function B(he){setTimeout(function(){var ue=!1,te=he.getInputField();te.nodeName=="TEXTAREA"?ue=!te.value:he.lineCount()==1&&(ue=!/[^\u200b]/.test(te.querySelector(".CodeMirror-line").textContent)),ue?O(he):I(he)},20)}function G(he){M(he)&&O(he)}function F(he){var ue=he.getWrapperElement(),te=M(he);ue.className=ue.className.replace(" CodeMirror-empty","")+(te?" CodeMirror-empty":""),te?O(he):I(he)}function M(he){return he.lineCount()===1&&he.getLine(0)===""}})},25717:function(Q,C,h){(function(v){v(h(89780))})(function(v){var I={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=v.Pos;v.defineOption("autoCloseBrackets",!1,function(Te,Ae,Re){Re&&Re!=v.Init&&(Te.removeKeyMap(G),Te.state.closeBrackets=null),Ae&&(F(B(Ae,"pairs")),Te.state.closeBrackets=Ae,Te.addKeyMap(G))});function B(Te,Ae){return Ae=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[Ae]!=null?Te[Ae]:I[Ae]}var G={Backspace:ue,Enter:te};function F(Te){for(var Ae=0;Ae<Te.length;Ae++){var Re=Te.charAt(Ae),de="'"+Re+"'";G[de]||(G[de]=M(Re))}}F(I.pairs+"`");function M(Te){return function(Ae){return we(Ae,Te)}}function he(Te){var Ae=Te.state.closeBrackets;if(!Ae||Ae.override)return Ae;var Re=Te.getModeAt(Te.getCursor());return Re.closeBrackets||Ae}function ue(Te){var Ae=he(Te);if(!Ae||Te.getOption("disableInput"))return v.Pass;for(var Re=B(Ae,"pairs"),de=Te.listSelections(),pe=0;pe<de.length;pe++){if(!de[pe].empty())return v.Pass;var be=Je(Te,de[pe].head);if(!be||Re.indexOf(be)%2!=0)return v.Pass}for(var pe=de.length-1;pe>=0;pe--){var me=de[pe].head;Te.replaceRange("",O(me.line,me.ch-1),O(me.line,me.ch+1),"+delete")}}function te(Te){var Ae=he(Te),Re=Ae&&B(Ae,"explode");if(!Re||Te.getOption("disableInput"))return v.Pass;for(var de=Te.listSelections(),pe=0;pe<de.length;pe++){if(!de[pe].empty())return v.Pass;var be=Je(Te,de[pe].head);if(!be||Re.indexOf(be)%2!=0)return v.Pass}Te.operation(function(){var me=Te.lineSeparator()||`
|
|
|
`;Te.replaceSelection(me+me,null),Te.execCommand("goCharLeft"),de=Te.listSelections();for(var ke=0;ke<de.length;ke++){var ee=de[ke].head.line;Te.indentLine(ee,null,!0),Te.indentLine(ee+1,null,!0)}})}function Me(Te){var Ae=v.cmpPos(Te.anchor,Te.head)>0;return{anchor:new O(Te.anchor.line,Te.anchor.ch+(Ae?-1:1)),head:new O(Te.head.line,Te.head.ch+(Ae?1:-1))}}function we(Te,Ae){var Re=he(Te);if(!Re||Te.getOption("disableInput"))return v.Pass;var de=B(Re,"pairs"),pe=de.indexOf(Ae);if(pe==-1)return v.Pass;for(var be=B(Re,"closeBefore"),me=B(Re,"triples"),ke=de.charAt(pe+1)==Ae,ee=Te.listSelections(),Ne=pe%2==0,Ie,Pe=0;Pe<ee.length;Pe++){var Xe=ee[Pe],Ye=Xe.head,ie,lt=Te.getRange(Ye,O(Ye.line,Ye.ch+1));if(Ne&&!Xe.empty())ie="surround";else if((ke||!Ne)&<==Ae)ke&&Oe(Te,Ye)?ie="both":me.indexOf(Ae)>=0&&Te.getRange(Ye,O(Ye.line,Ye.ch+3))==Ae+Ae+Ae?ie="skipThree":ie="skip";else if(ke&&Ye.ch>1&&me.indexOf(Ae)>=0&&Te.getRange(O(Ye.line,Ye.ch-2),Ye)==Ae+Ae){if(Ye.ch>2&&/\bstring/.test(Te.getTokenTypeAt(O(Ye.line,Ye.ch-2))))return v.Pass;ie="addFour"}else if(ke){var We=Ye.ch==0?" ":Te.getRange(O(Ye.line,Ye.ch-1),Ye);if(!v.isWordChar(lt)&&We!=Ae&&!v.isWordChar(We))ie="both";else return v.Pass}else if(Ne&&(lt.length===0||/\s/.test(lt)||be.indexOf(lt)>-1))ie="both";else return v.Pass;if(!Ie)Ie=ie;else if(Ie!=ie)return v.Pass}var Pt=pe%2?de.charAt(pe-1):Ae,xt=pe%2?Ae:de.charAt(pe+1);Te.operation(function(){if(Ie=="skip")Te.execCommand("goCharRight");else if(Ie=="skipThree")for(var Tt=0;Tt<3;Tt++)Te.execCommand("goCharRight");else if(Ie=="surround"){for(var Et=Te.getSelections(),Tt=0;Tt<Et.length;Tt++)Et[Tt]=Pt+Et[Tt]+xt;Te.replaceSelections(Et,"around"),Et=Te.listSelections().slice();for(var Tt=0;Tt<Et.length;Tt++)Et[Tt]=Me(Et[Tt]);Te.setSelections(Et)}else Ie=="both"?(Te.replaceSelection(Pt+xt,null),Te.triggerElectric(Pt+xt),Te.execCommand("goCharLeft")):Ie=="addFour"&&(Te.replaceSelection(Pt+Pt+Pt+Pt,"before"),Te.execCommand("goCharRight"))})}function Je(Te,Ae){var Re=Te.getRange(O(Ae.line,Ae.ch-1),O(Ae.line,Ae.ch+1));return Re.length==2?Re:null}function Oe(Te,Ae){var Re=Te.getTokenAt(O(Ae.line,Ae.ch+1));return/\bstring/.test(Re.type)&&Re.start==Ae.ch&&(Ae.ch==0||!/\bstring/.test(Te.getTokenTypeAt(Ae)))}})},6313:function(Q,C,h){(function(v){v(h(89780),h(32855))})(function(v){v.defineOption("autoCloseTags",!1,function(ue,te,Me){if(Me!=v.Init&&Me&&ue.removeKeyMap("autoCloseTags"),!!te){var we={name:"autoCloseTags"};(typeof te!="object"||te.whenClosing!==!1)&&(we["'/'"]=function(Je){return F(Je)}),(typeof te!="object"||te.whenOpening!==!1)&&(we["'>'"]=function(Je){return B(Je)}),ue.addKeyMap(we)}});var I=["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(ue){if(ue.getOption("disableInput"))return v.Pass;for(var te=ue.listSelections(),Me=[],we=ue.getOption("autoCloseTags"),Je=0;Je<te.length;Je++){if(!te[Je].empty())return v.Pass;var Oe=te[Je].head,Te=ue.getTokenAt(Oe),Ae=v.innerMode(ue.getMode(),Te.state),Re=Ae.state,de=Ae.mode.xmlCurrentTag&&Ae.mode.xmlCurrentTag(Re),pe=de&&de.name;if(!pe)return v.Pass;var be=Ae.mode.configuration=="html",me=typeof we=="object"&&we.dontCloseTags||be&&I,ke=typeof we=="object"&&we.indentTags||be&&O;Te.end>Oe.ch&&(pe=pe.slice(0,pe.length-Te.end+Oe.ch));var ee=pe.toLowerCase();if(!pe||Te.type=="string"&&(Te.end!=Oe.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&de.close||Te.string.indexOf("/")==Oe.ch-Te.start-1||me&&M(me,ee)>-1||he(ue,Ae.mode.xmlCurrentContext&&Ae.mode.xmlCurrentContext(Re)||[],pe,Oe,!0))return v.Pass;var Ne=typeof we=="object"&&we.emptyTags;if(Ne&&M(Ne,pe)>-1){Me[Je]={text:"/>",newPos:v.Pos(Oe.line,Oe.ch+2)};continue}var Ie=ke&&M(ke,ee)>-1;Me[Je]={indent:Ie,text:">"+(Ie?`
|
|
|
|
|
|
`:"")+"</"+pe+">",newPos:Ie?v.Pos(Oe.line+1,0):v.Pos(Oe.line,Oe.ch+1)}}for(var Pe=typeof we=="object"&&we.dontIndentOnAutoClose,Je=te.length-1;Je>=0;Je--){var Xe=Me[Je];ue.replaceRange(Xe.text,te[Je].head,te[Je].anchor,"+insert");var Ye=ue.listSelections().slice(0);Ye[Je]={head:Xe.newPos,anchor:Xe.newPos},ue.setSelections(Ye),!Pe&&Xe.indent&&(ue.indentLine(Xe.newPos.line,null,!0),ue.indentLine(Xe.newPos.line+1,null,!0))}}function G(ue,te){for(var Me=ue.listSelections(),we=[],Je=te?"/":"</",Oe=ue.getOption("autoCloseTags"),Te=typeof Oe=="object"&&Oe.dontIndentOnSlash,Ae=0;Ae<Me.length;Ae++){if(!Me[Ae].empty())return v.Pass;var Re=Me[Ae].head,de=ue.getTokenAt(Re),pe=v.innerMode(ue.getMode(),de.state),be=pe.state;if(te&&(de.type=="string"||de.string.charAt(0)!="<"||de.start!=Re.ch-1))return v.Pass;var me,ke=pe.mode.name!="xml"&&ue.getMode().name=="htmlmixed";if(ke&&pe.mode.name=="javascript")me=Je+"script";else if(ke&&pe.mode.name=="css")me=Je+"style";else{var ee=pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(be);if(!ee||ee.length&&he(ue,ee,ee[ee.length-1],Re))return v.Pass;me=Je+ee[ee.length-1]}ue.getLine(Re.line).charAt(de.end)!=">"&&(me+=">"),we[Ae]=me}if(ue.replaceSelections(we),Me=ue.listSelections(),!Te)for(var Ae=0;Ae<Me.length;Ae++)(Ae==Me.length-1||Me[Ae].head.line<Me[Ae+1].head.line)&&ue.indentLine(Me[Ae].head.line)}function F(ue){return ue.getOption("disableInput")?v.Pass:G(ue,!0)}v.commands.closeTag=function(ue){return G(ue)};function M(ue,te){if(ue.indexOf)return ue.indexOf(te);for(var Me=0,we=ue.length;Me<we;++Me)if(ue[Me]==te)return Me;return-1}function he(ue,te,Me,we,Je){if(!v.scanForClosingTag)return!1;var Oe=Math.min(ue.lastLine()+1,we.line+500),Te=v.scanForClosingTag(ue,we,null,Oe);if(!Te||Te.tag!=Me)return!1;for(var Ae=Je?1:0,Re=te.length-1;Re>=0&&te[Re]==Me;Re--)++Ae;we=Te.to;for(var Re=1;Re<Ae;Re++){var de=v.scanForClosingTag(ue,we,null,Oe);if(!de||de.tag!=Me)return!1;we=de.to}return!0}})},32855:function(Q,C,h){(function(v){v(h(89780))})(function(v){"use strict";var I=v.Pos;function O(Re,de){return Re.line-de.line||Re.ch-de.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",G=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F=new RegExp("<(/?)(["+B+"]["+G+"]*)","g");function M(Re,de,pe,be){this.line=de,this.ch=pe,this.cm=Re,this.text=Re.getLine(de),this.min=be?Math.max(be.from,Re.firstLine()):Re.firstLine(),this.max=be?Math.min(be.to-1,Re.lastLine()):Re.lastLine()}function he(Re,de){var pe=Re.cm.getTokenTypeAt(I(Re.line,de));return pe&&/\btag\b/.test(pe)}function ue(Re){if(!(Re.line>=Re.max))return Re.ch=0,Re.text=Re.cm.getLine(++Re.line),!0}function te(Re){if(!(Re.line<=Re.min))return Re.text=Re.cm.getLine(--Re.line),Re.ch=Re.text.length,!0}function Me(Re){for(;;){var de=Re.text.indexOf(">",Re.ch);if(de==-1){if(ue(Re))continue;return}if(!he(Re,de+1)){Re.ch=de+1;continue}var pe=Re.text.lastIndexOf("/",de),be=pe>-1&&!/\S/.test(Re.text.slice(pe+1,de));return Re.ch=de+1,be?"selfClose":"regular"}}function we(Re){for(;;){var de=Re.ch?Re.text.lastIndexOf("<",Re.ch-1):-1;if(de==-1){if(te(Re))continue;return}if(!he(Re,de+1)){Re.ch=de;continue}F.lastIndex=de,Re.ch=de;var pe=F.exec(Re.text);if(pe&&pe.index==de)return pe}}function Je(Re){for(;;){F.lastIndex=Re.ch;var de=F.exec(Re.text);if(!de){if(ue(Re))continue;return}if(!he(Re,de.index+1)){Re.ch=de.index+1;continue}return Re.ch=de.index+de[0].length,de}}function Oe(Re){for(;;){var de=Re.ch?Re.text.lastIndexOf(">",Re.ch-1):-1;if(de==-1){if(te(Re))continue;return}if(!he(Re,de+1)){Re.ch=de;continue}var pe=Re.text.lastIndexOf("/",de),be=pe>-1&&!/\S/.test(Re.text.slice(pe+1,de));return Re.ch=de+1,be?"selfClose":"regular"}}function Te(Re,de){for(var pe=[];;){var be=Je(Re),me,ke=Re.line,ee=Re.ch-(be?be[0].length:0);if(!be||!(me=Me(Re)))return;if(me!="selfClose")if(be[1]){for(var Ne=pe.length-1;Ne>=0;--Ne)if(pe[Ne]==be[2]){pe.length=Ne;break}if(Ne<0&&(!de||de==be[2]))return{tag:be[2],from:I(ke,ee),to:I(Re.line,Re.ch)}}else pe.push(be[2])}}function Ae(Re,de){for(var pe=[];;){var be=Oe(Re);if(!be)return;if(be=="selfClose"){we(Re);continue}var me=Re.line,ke=Re.ch,ee=we(Re);if(!ee)return;if(ee[1])pe.push(ee[2]);else{for(var Ne=pe.length-1;Ne>=0;--Ne)if(pe[Ne]==ee[2]){pe.length=Ne;break}if(Ne<0&&(!de||de==ee[2]))return{tag:ee[2],from:I(Re.line,Re.ch),to:I(me,ke)}}}}v.registerHelper("fold","xml",function(Re,de){for(var pe=new M(Re,de.line,0);;){var be=Je(pe);if(!be||pe.line!=de.line)return;var me=Me(pe);if(!me)return;if(!be[1]&&me!="selfClose"){var ke=I(pe.line,pe.ch),ee=Te(pe,be[2]);return ee&&O(ee.from,ke)>0?{from:ke,to:ee.from}:null}}}),v.findMatchingTag=function(Re,de,pe){var be=new M(Re,de.line,de.ch,pe);if(!(be.text.indexOf(">")==-1&&be.text.indexOf("<")==-1)){var me=Me(be),ke=me&&I(be.line,be.ch),ee=me&&we(be);if(!(!me||!ee||O(be,de)>0)){var Ne={from:I(be.line,be.ch),to:ke,tag:ee[2]};return me=="selfClose"?{open:Ne,close:null,at:"open"}:ee[1]?{open:Ae(be,ee[2]),close:Ne,at:"close"}:(be=new M(Re,ke.line,ke.ch,pe),{open:Ne,close:Te(be,ee[2]),at:"open"})}}},v.findEnclosingTag=function(Re,de,pe,be){for(var me=new M(Re,de.line,de.ch,pe);;){var ke=Ae(me,be);if(!ke)break;var ee=new M(Re,de.line,de.ch,pe),Ne=Te(ee,ke.tag);if(Ne)return{open:ke,close:Ne}}},v.scanForClosingTag=function(Re,de,pe,be){var me=new M(Re,de.line,de.ch,be?{from:0,to:be}:null);return Te(me,pe)}})},89780:function(Q){(function(C,h){Q.exports=h()})(this,function(){"use strict";var C=navigator.userAgent,h=navigator.platform,v=/gecko\/\d/i.test(C),I=/MSIE \d/.test(C),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(C),B=/Edge\/(\d+)/.exec(C),G=I||O||B,F=G&&(I?document.documentMode||6:+(B||O)[1]),M=!B&&/WebKit\//.test(C),he=M&&/Qt\/\d+\.\d+/.test(C),ue=!B&&/Chrome\//.test(C),te=/Opera\//.test(C),Me=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(C),Je=/PhantomJS/.test(C),Oe=!B&&/AppleWebKit/.test(C)&&/Mobile\/\w+/.test(C),Te=/Android/.test(C),Ae=Oe||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(C),Re=Oe||/Mac/.test(h),de=/\bCrOS\b/.test(C),pe=/win/i.test(h),be=te&&C.match(/Version\/(\d*\.\d*)/);be&&(be=Number(be[1])),be&&be>=15&&(te=!1,M=!0);var me=Re&&(he||te&&(be==null||be<12.11)),ke=v||G&&F>=9;function ee(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Ne=function(s,c){var b=s.className,y=ee(c).exec(b);if(y){var w=b.slice(y.index+y[0].length);s.className=b.slice(0,y.index)+(w?y[1]+w:"")}};function Ie(s){for(var c=s.childNodes.length;c>0;--c)s.removeChild(s.firstChild);return s}function Pe(s,c){return Ie(s).appendChild(c)}function Xe(s,c,b,y){var w=document.createElement(s);if(b&&(w.className=b),y&&(w.style.cssText=y),typeof c=="string")w.appendChild(document.createTextNode(c));else if(c)for(var H=0;H<c.length;++H)w.appendChild(c[H]);return w}function Ye(s,c,b,y){var w=Xe(s,c,b,y);return w.setAttribute("role","presentation"),w}var ie;document.createRange?ie=function(s,c,b,y){var w=document.createRange();return w.setEnd(y||s,b),w.setStart(s,c),w}:ie=function(s,c,b){var y=document.body.createTextRange();try{y.moveToElementText(s.parentNode)}catch(w){return y}return y.collapse(!0),y.moveEnd("character",b),y.moveStart("character",c),y};function lt(s,c){if(c.nodeType==3&&(c=c.parentNode),s.contains)return s.contains(c);do if(c.nodeType==11&&(c=c.host),c==s)return!0;while(c=c.parentNode)}function We(){var s;try{s=document.activeElement}catch(c){s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Pt(s,c){var b=s.className;ee(c).test(b)||(s.className+=(b?" ":"")+c)}function xt(s,c){for(var b=s.split(" "),y=0;y<b.length;y++)b[y]&&!ee(b[y]).test(c)&&(c+=" "+b[y]);return c}var Tt=function(s){s.select()};Oe?Tt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:G&&(Tt=function(s){try{s.select()}catch(c){}});function Et(s){var c=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,c)}}function wn(s,c,b){c||(c={});for(var y in s)s.hasOwnProperty(y)&&(b!==!1||!c.hasOwnProperty(y))&&(c[y]=s[y]);return c}function qe(s,c,b,y,w){c==null&&(c=s.search(/[^\s\u00a0]/),c==-1&&(c=s.length));for(var H=y||0,ne=w||0;;){var Se=s.indexOf(" ",H);if(Se<0||Se>=c)return ne+(c-H);ne+=Se-H,ne+=b-ne%b,H=Se+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};ae.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},ae.prototype.set=function(s,c){this.f=c;var b=+new Date+s;(!this.id||b<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=b)};function le(s,c){for(var b=0;b<s.length;++b)if(s[b]==c)return b;return-1}var $t=50,Vt={toString:function(){return"CodeMirror.Pass"}},St={scroll:!1},un={origin:"*mouse"},Ft={origin:"+move"};function ai(s,c,b){for(var y=0,w=0;;){var H=s.indexOf(" ",y);H==-1&&(H=s.length);var ne=H-y;if(H==s.length||w+ne>=c)return y+Math.min(ne,c-w);if(w+=H-y,w+=b-w%b,y=H+1,w>=c)return y}}var On=[""];function ni(s){for(;On.length<=s;)On.push(Jn(On)+" ");return On[s]}function Jn(s){return s[s.length-1]}function In(s,c){for(var b=[],y=0;y<s.length;y++)b[y]=c(s[y],y);return b}function Mn(s,c,b){for(var y=0,w=b(c);y<s.length&&b(s[y])<=w;)y++;s.splice(y,0,c)}function xe(){}function P(s,c){var b;return Object.create?b=Object.create(s):(xe.prototype=s,b=new xe),c&&wn(c,b),b}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function j(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||k.test(s))}function X(s,c){return c?c.source.indexOf("\\w")>-1&&j(s)?!0:c.test(s):j(s)}function T(s){for(var c in s)if(s.hasOwnProperty(c)&&s[c])return!1;return!0}var _e=/[\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 kt(s){return s.charCodeAt(0)>=768&&_e.test(s)}function Ue(s,c,b){for(;(b<0?c>0:c<s.length)&&kt(s.charAt(c));)c+=b;return c}function Be(s,c,b){for(var y=c>b?-1:1;;){if(c==b)return c;var w=(c+b)/2,H=y<0?Math.ceil(w):Math.floor(w);if(H==c)return s(H)?c:b;s(H)?b=H:c=H+y}}function mt(s,c,b,y){if(!s)return y(c,b,"ltr",0);for(var w=!1,H=0;H<s.length;++H){var ne=s[H];(ne.from<b&&ne.to>c||c==b&&ne.to==c)&&(y(Math.max(ne.from,c),Math.min(ne.to,b),ne.level==1?"rtl":"ltr",H),w=!0)}w||y(c,b,"ltr")}var ct=null;function tt(s,c,b){var y;ct=null;for(var w=0;w<s.length;++w){var H=s[w];if(H.from<c&&H.to>c)return w;H.to==c&&(H.from!=H.to&&b=="before"?y=w:ct=w),H.from==c&&(H.from!=H.to&&b!="before"?y=w:ct=w)}return y!=null?y:ct}var It=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(Ze){return Ze<=247?s.charAt(Ze):1424<=Ze&&Ze<=1524?"R":1536<=Ze&&Ze<=1785?c.charAt(Ze-1536):1774<=Ze&&Ze<=2220?"r":8192<=Ze&&Ze<=8203?"w":Ze==8204?"b":"L"}var y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,H=/[LRr]/,ne=/[Lb1n]/,Se=/[1n]/;function ve(Ze,Gt,st){this.level=Ze,this.from=Gt,this.to=st}return function(Ze,Gt){var st=Gt=="ltr"?"L":"R";if(Ze.length==0||Gt=="ltr"&&!y.test(Ze))return!1;for(var Tn=Ze.length,xn=[],fi=0;fi<Tn;++fi)xn.push(b(Ze.charCodeAt(fi)));for(var xi=0,Fi=st;xi<Tn;++xi){var or=xn[xi];or=="m"?xn[xi]=Fi:Fi=or}for(var Pr=0,Sr=st;Pr<Tn;++Pr){var $r=xn[Pr];$r=="1"&&Sr=="r"?xn[Pr]="n":H.test($r)&&(Sr=$r,$r=="r"&&(xn[Pr]="R"))}for(var vo=1,yr=xn[0];vo<Tn-1;++vo){var $o=xn[vo];$o=="+"&&yr=="1"&&xn[vo+1]=="1"?xn[vo]="1":$o==","&&yr==xn[vo+1]&&(yr=="1"||yr=="n")&&(xn[vo]=yr),yr=$o}for(var fs=0;fs<Tn;++fs){var hl=xn[fs];if(hl==",")xn[fs]="N";else if(hl=="%"){var Cs=void 0;for(Cs=fs+1;Cs<Tn&&xn[Cs]=="%";++Cs);for(var vu=fs&&xn[fs-1]=="!"||Cs<Tn&&xn[Cs]=="1"?"1":"N",Zl=fs;Zl<Cs;++Zl)xn[Zl]=vu;fs=Cs-1}}for(var nl=0,Iu=st;nl<Tn;++nl){var _l=xn[nl];Iu=="L"&&_l=="1"?xn[nl]="L":H.test(_l)&&(Iu=_l)}for(var il=0;il<Tn;++il)if(w.test(xn[il])){var Ma=void 0;for(Ma=il+1;Ma<Tn&&w.test(xn[Ma]);++Ma);for(var Ms=(il?xn[il-1]:st)=="L",xl=(Ma<Tn?xn[Ma]:st)=="L",zl=Ms==xl?Ms?"L":"R":st,fc=il;fc<Ma;++fc)xn[fc]=zl;il=Ma-1}for(var Ts=[],nc,zs=0;zs<Tn;)if(ne.test(xn[zs])){var zd=zs;for(++zs;zs<Tn&&ne.test(xn[zs]);++zs);Ts.push(new ve(0,zd,zs))}else{var Uu=zs,Mu=Ts.length,yu=Gt=="rtl"?1:0;for(++zs;zs<Tn&&xn[zs]!="L";++zs);for(var qa=Uu;qa<zs;)if(Se.test(xn[qa])){Uu<qa&&(Ts.splice(Mu,0,new ve(1,Uu,qa)),Mu+=yu);var Sl=qa;for(++qa;qa<zs&&Se.test(xn[qa]);++qa);Ts.splice(Mu,0,new ve(2,Sl,qa)),Mu+=yu,Uu=qa}else++qa;Uu<zs&&Ts.splice(Mu,0,new ve(1,Uu,zs))}return Gt=="ltr"&&(Ts[0].level==1&&(nc=Ze.match(/^\s+/))&&(Ts[0].from=nc[0].length,Ts.unshift(new ve(0,0,nc[0].length))),Jn(Ts).level==1&&(nc=Ze.match(/\s+$/))&&(Jn(Ts).to-=nc[0].length,Ts.push(new ve(0,Tn-nc[0].length,Tn)))),Gt=="rtl"?Ts.reverse():Ts}}();function an(s,c){var b=s.order;return b==null&&(b=s.order=It(s.text,c)),b}var en=[],Bt=function(s,c,b){if(s.addEventListener)s.addEventListener(c,b,!1);else if(s.attachEvent)s.attachEvent("on"+c,b);else{var y=s._handlers||(s._handlers={});y[c]=(y[c]||en).concat(b)}};function cn(s,c){return s._handlers&&s._handlers[c]||en}function gn(s,c,b){if(s.removeEventListener)s.removeEventListener(c,b,!1);else if(s.detachEvent)s.detachEvent("on"+c,b);else{var y=s._handlers,w=y&&y[c];if(w){var H=le(w,b);H>-1&&(y[c]=w.slice(0,H).concat(w.slice(H+1)))}}}function Qe(s,c){var b=cn(s,c);if(b.length)for(var y=Array.prototype.slice.call(arguments,2),w=0;w<b.length;++w)b[w].apply(null,y)}function Ut(s,c,b){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),Qe(s,b||c.type,s,c),Kn(c)||c.codemirrorIgnore}function tn(s){var c=s._handlers&&s._handlers.cursorActivity;if(c)for(var b=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),y=0;y<c.length;++y)le(b,c[y])==-1&&b.push(c[y])}function nn(s,c){return cn(s,c).length>0}function He(s){s.prototype.on=function(c,b){Bt(this,c,b)},s.prototype.off=function(c,b){gn(this,c,b)}}function Bn(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function kn(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Kn(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Ti(s){Bn(s),kn(s)}function hi(s){return s.target||s.srcElement}function dn(s){var c=s.which;return c==null&&(s.button&1?c=1:s.button&2?c=3:s.button&4&&(c=2)),Re&&s.ctrlKey&&c==1&&(c=3),c}var sn=function(){if(G&&F<9)return!1;var s=Xe("div");return"draggable"in s||"dragDrop"in s}(),gr;function dr(s){if(gr==null){var c=Xe("span","\u200B");Pe(s,Xe("span",[c,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(gr=c.offsetWidth<=1&&c.offsetHeight>2&&!(G&&F<8))}var b=gr?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var qn;function Rr(s){if(qn!=null)return qn;var c=Pe(s,document.createTextNode("A\u062EA")),b=ie(c,0,1).getBoundingClientRect(),y=ie(c,1,2).getBoundingClientRect();return Ie(s),!b||b.left==b.right?!1:qn=y.right-b.right<3}var tr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(s){for(var c=0,b=[],y=s.length;c<=y;){var w=s.indexOf(`
|
|
|
`,c);w==-1&&(w=s.length);var H=s.slice(c,s.charAt(w-1)=="\r"?w-1:w),ne=H.indexOf("\r");ne!=-1?(b.push(H.slice(0,ne)),c+=ne+1):(b.push(H),c=w+1)}return b}:function(s){return s.split(/\r\n?|\n/)},U=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch(c){return!1}}:function(s){var c;try{c=s.ownerDocument.selection.createRange()}catch(b){}return!c||c.parentElement()!=s?!1:c.compareEndPoints("StartToEnd",c)!=0},br=function(){var s=Xe("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),fr=null;function Fr(s){if(fr!=null)return fr;var c=Pe(s,Xe("span","x")),b=c.getBoundingClientRect(),y=ie(c,0,1).getBoundingClientRect();return fr=Math.abs(b.left-y.left)>1}var jr={},so={};function Ar(s,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),jr[s]=c}function to(s,c){so[s]=c}function vr(s){if(typeof s=="string"&&so.hasOwnProperty(s))s=so[s];else if(s&&typeof s.name=="string"&&so.hasOwnProperty(s.name)){var c=so[s.name];typeof c=="string"&&(c={name:c}),s=P(c,s),s.name=c.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return vr("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return vr("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function Ji(s,c){c=vr(c);var b=jr[c.name];if(!b)return Ji(s,"text/plain");var y=b(s,c);if(di.hasOwnProperty(c.name)){var w=di[c.name];for(var H in w)w.hasOwnProperty(H)&&(y.hasOwnProperty(H)&&(y["_"+H]=y[H]),y[H]=w[H])}if(y.name=c.name,c.helperType&&(y.helperType=c.helperType),c.modeProps)for(var ne in c.modeProps)y[ne]=c.modeProps[ne];return y}var di={};function ft(s,c){var b=di.hasOwnProperty(s)?di[s]:di[s]={};wn(c,b)}function Un(s,c){if(c===!0)return c;if(s.copyState)return s.copyState(c);var b={};for(var y in c){var w=c[y];w instanceof Array&&(w=w.concat([])),b[y]=w}return b}function Wn(s,c){for(var b;s.innerMode&&(b=s.innerMode(c),!(!b||b.mode==s));)c=b.state,s=b.mode;return b||{mode:s,state:c}}function vt(s,c,b){return s.startState?s.startState(c,b):!0}var Ve=function(s,c,b){this.pos=this.start=0,this.string=s,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};Ve.prototype.eol=function(){return this.pos>=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ve.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ve.prototype.eat=function(s){var c=this.string.charAt(this.pos),b;if(typeof s=="string"?b=c==s:b=c&&(s.test?s.test(c):s(c)),b)return++this.pos,c},Ve.prototype.eatWhile=function(s){for(var c=this.pos;this.eat(s););return this.pos>c},Ve.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(s){var c=this.string.indexOf(s,this.pos);if(c>-1)return this.pos=c,!0},Ve.prototype.backUp=function(s){this.pos-=s},Ve.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.match=function(s,c,b){if(typeof s=="string"){var y=function(ne){return b?ne.toLowerCase():ne},w=this.string.substr(this.pos,s.length);if(y(w)==y(s))return c!==!1&&(this.pos+=s.length),!0}else{var H=this.string.slice(this.pos).match(s);return H&&H.index>0?null:(H&&c!==!1&&(this.pos+=H[0].length),H)}},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(s,c){this.lineStart+=s;try{return c()}finally{this.lineStart-=s}},Ve.prototype.lookAhead=function(s){var c=this.lineOracle;return c&&c.lookAhead(s)},Ve.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function vn(s,c){if(c-=s.first,c<0||c>=s.size)throw new Error("There is no line "+(c+s.first)+" in the document.");for(var b=s;!b.lines;)for(var y=0;;++y){var w=b.children[y],H=w.chunkSize();if(c<H){b=w;break}c-=H}return b.lines[c]}function Nn(s,c,b){var y=[],w=c.line;return s.iter(c.line,b.line+1,function(H){var ne=H.text;w==b.line&&(ne=ne.slice(0,b.ch)),w==c.line&&(ne=ne.slice(c.ch)),y.push(ne),++w}),y}function on(s,c,b){var y=[];return s.iter(c,b,function(w){y.push(w.text)}),y}function Ct(s,c){var b=c-s.height;if(b)for(var y=s;y;y=y.parent)y.height+=b}function Ke(s){if(s.parent==null)return null;for(var c=s.parent,b=le(c.lines,s),y=c.parent;y;c=y,y=y.parent)for(var w=0;y.children[w]!=c;++w)b+=y.children[w].chunkSize();return b+c.first}function Ht(s,c){var b=s.first;e:do{for(var y=0;y<s.children.length;++y){var w=s.children[y],H=w.height;if(c<H){s=w;continue e}c-=H,b+=w.chunkSize()}return b}while(!s.lines);for(var ne=0;ne<s.lines.length;++ne){var Se=s.lines[ne],ve=Se.height;if(c<ve)break;c-=ve}return b+ne}function Rt(s,c){return c>=s.first&&c<s.first+s.size}function jn(s,c){return String(s.lineNumberFormatter(c+s.firstLineNumber))}function at(s,c,b){if(b===void 0&&(b=null),!(this instanceof at))return new at(s,c,b);this.line=s,this.ch=c,this.sticky=b}function hn(s,c){return s.line-c.line||s.ch-c.ch}function yt(s,c){return s.sticky==c.sticky&&hn(s,c)==0}function Ge(s){return at(s.line,s.ch)}function L(s,c){return hn(s,c)<0?c:s}function Dt(s,c){return hn(s,c)<0?s:c}function Jt(s,c){return Math.max(s.first,Math.min(c,s.first+s.size-1))}function gt(s,c){if(c.line<s.first)return at(s.first,0);var b=s.first+s.size-1;return c.line>b?at(b,vn(s,b).text.length):fn(c,vn(s,c.line).text.length)}function fn(s,c){var b=s.ch;return b==null||b>c?at(s.line,c):b<0?at(s.line,0):s}function Cn(s,c){for(var b=[],y=0;y<c.length;y++)b[y]=gt(s,c[y]);return b}var ui=function(s,c){this.state=s,this.lookAhead=c},Ln=function(s,c,b,y){this.state=c,this.doc=s,this.line=b,this.maxLookAhead=y||0,this.baseTokens=null,this.baseTokenPos=1};Ln.prototype.lookAhead=function(s){var c=this.doc.getLine(this.line+s);return c!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),c},Ln.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ln.fromSaved=function(s,c,b){return c instanceof ui?new Ln(s,Un(s.mode,c.state),b,c.lookAhead):new Ln(s,Un(s.mode,c),b)},Ln.prototype.save=function(s){var c=s!==!1?Un(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ui(c,this.maxLookAhead):c};function rt(s,c,b,y){var w=[s.state.modeGen],H={};wt(s,c.text,s.doc.mode,b,function(Ze,Gt){return w.push(Ze,Gt)},H,y);for(var ne=b.state,Se=function(Ze){b.baseTokens=w;var Gt=s.state.overlays[Ze],st=1,Tn=0;b.state=!0,wt(s,c.text,Gt.mode,b,function(xn,fi){for(var xi=st;Tn<xn;){var Fi=w[st];Fi>xn&&w.splice(st,1,xn,w[st+1],Fi),st+=2,Tn=Math.min(xn,Fi)}if(fi)if(Gt.opaque)w.splice(xi,st-xi,xn,"overlay "+fi),st=xi+2;else for(;xi<st;xi+=2){var or=w[xi+1];w[xi+1]=(or?or+" ":"")+"overlay "+fi}},H),b.state=ne,b.baseTokens=null,b.baseTokenPos=1},ve=0;ve<s.state.overlays.length;++ve)Se(ve);return{styles:w,classes:H.bgClass||H.textClass?H:null}}function Oi(s,c,b){if(!c.styles||c.styles[0]!=s.state.modeGen){var y=Qi(s,Ke(c)),w=c.text.length>s.options.maxHighlightLength&&Un(s.doc.mode,y.state),H=rt(s,c,y);w&&(y.state=w),c.stateAfter=y.save(!w),c.styles=H.styles,H.classes?c.styleClasses=H.classes:c.styleClasses&&(c.styleClasses=null),b===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return c.styles}function Qi(s,c,b){var y=s.doc,w=s.display;if(!y.mode.startState)return new Ln(y,!0,c);var H=gi(s,c,b),ne=H>y.first&&vn(y,H-1).stateAfter,Se=ne?Ln.fromSaved(y,ne,H):new Ln(y,vt(y.mode),H);return y.iter(H,c,function(ve){Kt(s,ve.text,Se);var Ze=Se.line;ve.stateAfter=Ze==c-1||Ze%5==0||Ze>=w.viewFrom&&Ze<w.viewTo?Se.save():null,Se.nextLine()}),b&&(y.modeFrontier=Se.line),Se}function Kt(s,c,b,y){var w=s.doc.mode,H=new Ve(c,s.options.tabSize,b);for(H.start=H.pos=y||0,c==""&&zi(w,b.state);!H.eol();)J(w,H,b.state),H.start=H.pos}function zi(s,c){if(s.blankLine)return s.blankLine(c);if(s.innerMode){var b=Wn(s,c);if(b.mode.blankLine)return b.mode.blankLine(b.state)}}function J(s,c,b,y){for(var w=0;w<10;w++){y&&(y[0]=Wn(s,b).mode);var H=s.token(c,b);if(c.pos>c.start)return H}throw new Error("Mode "+s.name+" failed to advance stream.")}var re=function(s,c,b){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=c||null,this.state=b};function Hn(s,c,b,y){var w=s.doc,H=w.mode,ne;c=gt(w,c);var Se=vn(w,c.line),ve=Qi(s,c.line,b),Ze=new Ve(Se.text,s.options.tabSize,ve),Gt;for(y&&(Gt=[]);(y||Ze.pos<c.ch)&&!Ze.eol();)Ze.start=Ze.pos,ne=J(H,Ze,ve.state),y&&Gt.push(new re(Ze,ne,Un(w.mode,ve.state)));return y?Gt:new re(Ze,ne,ve.state)}function Fe(s,c){if(s)for(;;){var b=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!b)break;s=s.slice(0,b.index)+s.slice(b.index+b[0].length);var y=b[1]?"bgClass":"textClass";c[y]==null?c[y]=b[2]:new RegExp("(?:^|\\s)"+b[2]+"(?:$|\\s)").test(c[y])||(c[y]+=" "+b[2])}return s}function wt(s,c,b,y,w,H,ne){var Se=b.flattenSpans;Se==null&&(Se=s.options.flattenSpans);var ve=0,Ze=null,Gt=new Ve(c,s.options.tabSize,y),st,Tn=s.options.addModeClass&&[null];for(c==""&&Fe(zi(b,y.state),H);!Gt.eol();){if(Gt.pos>s.options.maxHighlightLength?(Se=!1,ne&&Kt(s,c,y,Gt.pos),Gt.pos=c.length,st=null):st=Fe(J(b,Gt,y.state,Tn),H),Tn){var xn=Tn[0].name;xn&&(st="m-"+(st?xn+" "+st:xn))}if(!Se||Ze!=st){for(;ve<Gt.start;)ve=Math.min(Gt.start,ve+5e3),w(ve,Ze);Ze=st}Gt.start=Gt.pos}for(;ve<Gt.pos;){var fi=Math.min(Gt.pos,ve+5e3);w(fi,Ze),ve=fi}}function gi(s,c,b){for(var y,w,H=s.doc,ne=b?-1:c-(s.doc.mode.innerMode?1e3:100),Se=c;Se>ne;--Se){if(Se<=H.first)return H.first;var ve=vn(H,Se-1),Ze=ve.stateAfter;if(Ze&&(!b||Se+(Ze instanceof ui?Ze.lookAhead:0)<=H.modeFrontier))return Se;var Gt=qe(ve.text,null,s.options.tabSize);(w==null||y>Gt)&&(w=Se-1,y=Gt)}return w}function Rn(s,c){if(s.modeFrontier=Math.min(s.modeFrontier,c),!(s.highlightFrontier<c-10)){for(var b=s.first,y=c-1;y>b;y--){var w=vn(s,y).stateAfter;if(w&&(!(w instanceof ui)||y+w.lookAhead<c)){b=y+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,b)}}var _i=!1,Xt=!1;function Ei(){_i=!0}function Zt(){Xt=!0}function Bi(s,c,b){this.marker=s,this.from=c,this.to=b}function Gr(s,c){if(s)for(var b=0;b<s.length;++b){var y=s[b];if(y.marker==c)return y}}function At(s,c){for(var b,y=0;y<s.length;++y)s[y]!=c&&(b||(b=[])).push(s[y]);return b}function eo(s,c){s.markedSpans=s.markedSpans?s.markedSpans.concat([c]):[c],c.marker.attachLine(s)}function Qt(s,c,b){var y;if(s)for(var w=0;w<s.length;++w){var H=s[w],ne=H.marker,Se=H.from==null||(ne.inclusiveLeft?H.from<=c:H.from<c);if(Se||H.from==c&&ne.type=="bookmark"&&(!b||!H.marker.insertLeft)){var ve=H.to==null||(ne.inclusiveRight?H.to>=c:H.to>c);(y||(y=[])).push(new Bi(ne,H.from,ve?null:H.to))}}return y}function Li(s,c,b){var y;if(s)for(var w=0;w<s.length;++w){var H=s[w],ne=H.marker,Se=H.to==null||(ne.inclusiveRight?H.to>=c:H.to>c);if(Se||H.from==c&&ne.type=="bookmark"&&(!b||H.marker.insertLeft)){var ve=H.from==null||(ne.inclusiveLeft?H.from<=c:H.from<c);(y||(y=[])).push(new Bi(ne,ve?null:H.from-c,H.to==null?null:H.to-c))}}return y}function wi(s,c){if(c.full)return null;var b=Rt(s,c.from.line)&&vn(s,c.from.line).markedSpans,y=Rt(s,c.to.line)&&vn(s,c.to.line).markedSpans;if(!b&&!y)return null;var w=c.from.ch,H=c.to.ch,ne=hn(c.from,c.to)==0,Se=Qt(b,w,ne),ve=Li(y,H,ne),Ze=c.text.length==1,Gt=Jn(c.text).length+(Ze?w:0);if(Se)for(var st=0;st<Se.length;++st){var Tn=Se[st];if(Tn.to==null){var xn=Gr(ve,Tn.marker);xn?Ze&&(Tn.to=xn.to==null?null:xn.to+Gt):Tn.to=w}}if(ve)for(var fi=0;fi<ve.length;++fi){var xi=ve[fi];if(xi.to!=null&&(xi.to+=Gt),xi.from==null){var Fi=Gr(Se,xi.marker);Fi||(xi.from=Gt,Ze&&(Se||(Se=[])).push(xi))}else xi.from+=Gt,Ze&&(Se||(Se=[])).push(xi)}Se&&(Se=pr(Se)),ve&&ve!=Se&&(ve=pr(ve));var or=[Se];if(!Ze){var Pr=c.text.length-2,Sr;if(Pr>0&&Se)for(var $r=0;$r<Se.length;++$r)Se[$r].to==null&&(Sr||(Sr=[])).push(new Bi(Se[$r].marker,null,null));for(var vo=0;vo<Pr;++vo)or.push(Sr);or.push(ve)}return or}function pr(s){for(var c=0;c<s.length;++c){var b=s[c];b.from!=null&&b.from==b.to&&b.marker.clearWhenEmpty!==!1&&s.splice(c--,1)}return s.length?s:null}function ar(s,c,b){var y=null;if(s.iter(c.line,b.line+1,function(xn){if(xn.markedSpans)for(var fi=0;fi<xn.markedSpans.length;++fi){var xi=xn.markedSpans[fi].marker;xi.readOnly&&(!y||le(y,xi)==-1)&&(y||(y=[])).push(xi)}}),!y)return null;for(var w=[{from:c,to:b}],H=0;H<y.length;++H)for(var ne=y[H],Se=ne.find(0),ve=0;ve<w.length;++ve){var Ze=w[ve];if(!(hn(Ze.to,Se.from)<0||hn(Ze.from,Se.to)>0)){var Gt=[ve,1],st=hn(Ze.from,Se.from),Tn=hn(Ze.to,Se.to);(st<0||!ne.inclusiveLeft&&!st)&&Gt.push({from:Ze.from,to:Se.from}),(Tn>0||!ne.inclusiveRight&&!Tn)&&Gt.push({from:Se.to,to:Ze.to}),w.splice.apply(w,Gt),ve+=Gt.length-3}}return w}function Zn(s){var c=s.markedSpans;if(c){for(var b=0;b<c.length;++b)c[b].marker.detachLine(s);s.markedSpans=null}}function ce(s,c){if(c){for(var b=0;b<c.length;++b)c[b].marker.attachLine(s);s.markedSpans=c}}function mr(s){return s.inclusiveLeft?-1:0}function Er(s){return s.inclusiveRight?1:0}function cr(s,c){var b=s.lines.length-c.lines.length;if(b!=0)return b;var y=s.find(),w=c.find(),H=hn(y.from,w.from)||mr(s)-mr(c);if(H)return-H;var ne=hn(y.to,w.to)||Er(s)-Er(c);return ne||c.id-s.id}function Wr(s,c){var b=Xt&&s.markedSpans,y;if(b)for(var w=void 0,H=0;H<b.length;++H)w=b[H],w.marker.collapsed&&(c?w.from:w.to)==null&&(!y||cr(y,w.marker)<0)&&(y=w.marker);return y}function Wi(s){return Wr(s,!0)}function Kr(s){return Wr(s,!1)}function Ri(s,c){var b=Xt&&s.markedSpans,y;if(b)for(var w=0;w<b.length;++w){var H=b[w];H.marker.collapsed&&(H.from==null||H.from<c)&&(H.to==null||H.to>c)&&(!y||cr(y,H.marker)<0)&&(y=H.marker)}return y}function Ui(s,c,b,y,w){var H=vn(s,c),ne=Xt&&H.markedSpans;if(ne)for(var Se=0;Se<ne.length;++Se){var ve=ne[Se];if(ve.marker.collapsed){var Ze=ve.marker.find(0),Gt=hn(Ze.from,b)||mr(ve.marker)-mr(w),st=hn(Ze.to,y)||Er(ve.marker)-Er(w);if(!(Gt>=0&&st<=0||Gt<=0&&st>=0)&&(Gt<=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?hn(Ze.to,b)>=0:hn(Ze.to,b)>0)||Gt>=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?hn(Ze.from,y)<=0:hn(Ze.from,y)<0)))return!0}}}function Di(s){for(var c;c=Wi(s);)s=c.find(-1,!0).line;return s}function Cr(s){for(var c;c=Kr(s);)s=c.find(1,!0).line;return s}function Tr(s){for(var c,b;c=Kr(s);)s=c.find(1,!0).line,(b||(b=[])).push(s);return b}function io(s,c){var b=vn(s,c),y=Di(b);return b==y?c:Ke(y)}function bo(s,c){if(c>s.lastLine())return c;var b=vn(s,c),y;if(!mi(s,b))return c;for(;y=Kr(b);)b=y.find(1,!0).line;return Ke(b)+1}function mi(s,c){var b=Xt&&c.markedSpans;if(b){for(var y=void 0,w=0;w<b.length;++w)if(y=b[w],!!y.marker.collapsed){if(y.from==null)return!0;if(!y.marker.widgetNode&&y.from==0&&y.marker.inclusiveLeft&&Sa(s,c,y))return!0}}}function Sa(s,c,b){if(b.to==null){var y=b.marker.find(1,!0);return Sa(s,y.line,Gr(y.line.markedSpans,b.marker))}if(b.marker.inclusiveRight&&b.to==c.text.length)return!0;for(var w=void 0,H=0;H<c.markedSpans.length;++H)if(w=c.markedSpans[H],w.marker.collapsed&&!w.marker.widgetNode&&w.from==b.to&&(w.to==null||w.to!=b.from)&&(w.marker.inclusiveLeft||b.marker.inclusiveRight)&&Sa(s,c,w))return!0}function Wo(s){s=Di(s);for(var c=0,b=s.parent,y=0;y<b.lines.length;++y){var w=b.lines[y];if(w==s)break;c+=w.height}for(var H=b.parent;H;b=H,H=b.parent)for(var ne=0;ne<H.children.length;++ne){var Se=H.children[ne];if(Se==b)break;c+=Se.height}return c}function Jo(s){if(s.height==0)return 0;for(var c=s.text.length,b,y=s;b=Wi(y);){var w=b.find(0,!0);y=w.from.line,c+=w.from.ch-w.to.ch}for(y=s;b=Kr(y);){var H=b.find(0,!0);c-=y.text.length-H.from.ch,y=H.to.line,c+=y.text.length-H.to.ch}return c}function Ta(s){var c=s.display,b=s.doc;c.maxLine=vn(b,b.first),c.maxLineLength=Jo(c.maxLine),c.maxLineChanged=!0,b.iter(function(y){var w=Jo(y);w>c.maxLineLength&&(c.maxLineLength=w,c.maxLine=y)})}var Ya=function(s,c,b){this.text=s,ce(this,c),this.height=b?b(this):1};Ya.prototype.lineNo=function(){return Ke(this)},He(Ya);function ns(s,c,b,y){s.text=c,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Zn(s),ce(s,b);var w=y?y(s):1;w!=s.height&&Ct(s,w)}function Na(s){s.parent=null,Zn(s)}var cs={},Za={};function jo(s,c){if(!s||/^\s*$/.test(s))return null;var b=c.addModeClass?Za:cs;return b[s]||(b[s]=s.replace(/\S+/g,"cm-$&"))}function Wt(s,c){var b=Ye("span",null,null,M?"padding-right: .1px":null),y={pre:Ye("pre",[b],"CodeMirror-line"),content:b,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};c.measure={};for(var w=0;w<=(c.rest?c.rest.length:0);w++){var H=w?c.rest[w-1]:c.line,ne=void 0;y.pos=0,y.addToken=eu,Rr(s.display.measure)&&(ne=an(H,s.doc.direction))&&(y.addToken=po(y.addToken,ne)),y.map=[];var Se=c!=s.display.externalMeasured&&Ke(H);yo(H,y,Oi(s,H,Se)),H.styleClasses&&(H.styleClasses.bgClass&&(y.bgClass=xt(H.styleClasses.bgClass,y.bgClass||"")),H.styleClasses.textClass&&(y.textClass=xt(H.styleClasses.textClass,y.textClass||""))),y.map.length==0&&y.map.push(0,0,y.content.appendChild(dr(s.display.measure))),w==0?(c.measure.map=y.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(y.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(M){var ve=y.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(y.content.className="cm-tab-wrap-hack")}return Qe(s,"renderLine",s,c.line,y.pre),y.pre.className&&(y.textClass=xt(y.pre.className,y.textClass||"")),y}function Ba(s){var c=Xe("span","\u2022","cm-invalidchar");return c.title="\\u"+s.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function eu(s,c,b,y,w,H,ne){if(c){var Se=s.splitSpaces?ol(c,s.trailingSpace):c,ve=s.cm.state.specialChars,Ze=!1,Gt;if(!ve.test(c))s.col+=c.length,Gt=document.createTextNode(Se),s.map.push(s.pos,s.pos+c.length,Gt),G&&F<9&&(Ze=!0),s.pos+=c.length;else{Gt=document.createDocumentFragment();for(var st=0;;){ve.lastIndex=st;var Tn=ve.exec(c),xn=Tn?Tn.index-st:c.length-st;if(xn){var fi=document.createTextNode(Se.slice(st,st+xn));G&&F<9?Gt.appendChild(Xe("span",[fi])):Gt.appendChild(fi),s.map.push(s.pos,s.pos+xn,fi),s.col+=xn,s.pos+=xn}if(!Tn)break;st+=xn+1;var xi=void 0;if(Tn[0]==" "){var Fi=s.cm.options.tabSize,or=Fi-s.col%Fi;xi=Gt.appendChild(Xe("span",ni(or),"cm-tab")),xi.setAttribute("role","presentation"),xi.setAttribute("cm-text"," "),s.col+=or}else Tn[0]=="\r"||Tn[0]==`
|
|
|
`?(xi=Gt.appendChild(Xe("span",Tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xi.setAttribute("cm-text",Tn[0]),s.col+=1):(xi=s.cm.options.specialCharPlaceholder(Tn[0]),xi.setAttribute("cm-text",Tn[0]),G&&F<9?Gt.appendChild(Xe("span",[xi])):Gt.appendChild(xi),s.col+=1);s.map.push(s.pos,s.pos+1,xi),s.pos++}}if(s.trailingSpace=Se.charCodeAt(c.length-1)==32,b||y||w||Ze||H||ne){var Pr=b||"";y&&(Pr+=y),w&&(Pr+=w);var Sr=Xe("span",[Gt],Pr,H);if(ne)for(var $r in ne)ne.hasOwnProperty($r)&&$r!="style"&&$r!="class"&&Sr.setAttribute($r,ne[$r]);return s.content.appendChild(Sr)}s.content.appendChild(Gt)}}function ol(s,c){if(s.length>1&&!/ /.test(s))return s;for(var b=c,y="",w=0;w<s.length;w++){var H=s.charAt(w);H==" "&&b&&(w==s.length-1||s.charCodeAt(w+1)==32)&&(H="\xA0"),y+=H,b=H==" "}return y}function po(s,c){return function(b,y,w,H,ne,Se,ve){w=w?w+" cm-force-border":"cm-force-border";for(var Ze=b.pos,Gt=Ze+y.length;;){for(var st=void 0,Tn=0;Tn<c.length&&(st=c[Tn],!(st.to>Ze&&st.from<=Ze));Tn++);if(st.to>=Gt)return s(b,y,w,H,ne,Se,ve);s(b,y.slice(0,st.to-Ze),w,H,null,Se,ve),H=null,y=y.slice(st.to-Ze),Ze=st.to}}}function ko(s,c,b,y){var w=!y&&b.widgetNode;w&&s.map.push(s.pos,s.pos+c,w),!y&&s.cm.display.input.needsContentAttribute&&(w||(w=s.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",b.id)),w&&(s.cm.display.input.setUneditable(w),s.content.appendChild(w)),s.pos+=c,s.trailingSpace=!1}function yo(s,c,b){var y=s.markedSpans,w=s.text,H=0;if(!y){for(var ne=1;ne<b.length;ne+=2)c.addToken(c,w.slice(H,H=b[ne]),jo(b[ne+1],c.cm.options));return}for(var Se=w.length,ve=0,Ze=1,Gt="",st,Tn,xn=0,fi,xi,Fi,or,Pr;;){if(xn==ve){fi=xi=Fi=Tn="",Pr=null,or=null,xn=1/0;for(var Sr=[],$r=void 0,vo=0;vo<y.length;++vo){var yr=y[vo],$o=yr.marker;if($o.type=="bookmark"&&yr.from==ve&&$o.widgetNode)Sr.push($o);else if(yr.from<=ve&&(yr.to==null||yr.to>ve||$o.collapsed&&yr.to==ve&&yr.from==ve)){if(yr.to!=null&&yr.to!=ve&&xn>yr.to&&(xn=yr.to,xi=""),$o.className&&(fi+=" "+$o.className),$o.css&&(Tn=(Tn?Tn+";":"")+$o.css),$o.startStyle&&yr.from==ve&&(Fi+=" "+$o.startStyle),$o.endStyle&&yr.to==xn&&($r||($r=[])).push($o.endStyle,yr.to),$o.title&&((Pr||(Pr={})).title=$o.title),$o.attributes)for(var fs in $o.attributes)(Pr||(Pr={}))[fs]=$o.attributes[fs];$o.collapsed&&(!or||cr(or.marker,$o)<0)&&(or=yr)}else yr.from>ve&&xn>yr.from&&(xn=yr.from)}if($r)for(var hl=0;hl<$r.length;hl+=2)$r[hl+1]==xn&&(xi+=" "+$r[hl]);if(!or||or.from==ve)for(var Cs=0;Cs<Sr.length;++Cs)ko(c,0,Sr[Cs]);if(or&&(or.from||0)==ve){if(ko(c,(or.to==null?Se+1:or.to)-ve,or.marker,or.from==null),or.to==null)return;or.to==ve&&(or=!1)}}if(ve>=Se)break;for(var vu=Math.min(Se,xn);;){if(Gt){var Zl=ve+Gt.length;if(!or){var nl=Zl>vu?Gt.slice(0,vu-ve):Gt;c.addToken(c,nl,st?st+fi:fi,Fi,ve+nl.length==xn?xi:"",Tn,Pr)}if(Zl>=vu){Gt=Gt.slice(vu-ve),ve=vu;break}ve=Zl,Fi=""}Gt=w.slice(H,H=b[Ze++]),st=jo(b[Ze++],c.cm.options)}}}function Mt(s,c,b){this.line=c,this.rest=Tr(c),this.size=this.rest?Ke(Jn(this.rest))-b+1:1,this.node=this.text=null,this.hidden=mi(s,c)}function Dr(s,c,b){for(var y=[],w,H=c;H<b;H=w){var ne=new Mt(s.doc,vn(s.doc,H),H);w=H+ne.size,y.push(ne)}return y}var mo=null;function Ea(s){mo?mo.ops.push(s):s.ownsGroup=mo={ops:[s],delayedCallbacks:[]}}function xr(s){var c=s.delayedCallbacks,b=0;do{for(;b<c.length;b++)c[b].call(null);for(var y=0;y<s.ops.length;y++){var w=s.ops[y];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(b<c.length)}function Sn(s,c){var b=s.ownsGroup;if(b)try{xr(b)}finally{mo=null,c(b)}}var ur=null;function vi(s,c){var b=cn(s,c);if(b.length){var y=Array.prototype.slice.call(arguments,2),w;mo?w=mo.delayedCallbacks:ur?w=ur:(w=ur=[],setTimeout(Vo,0));for(var H=function(Se){w.push(function(){return b[Se].apply(null,y)})},ne=0;ne<b.length;++ne)H(ne)}}function Vo(){var s=ur;ur=null;for(var c=0;c<s.length;++c)s[c]()}function ma(s,c,b,y){for(var w=0;w<c.changes.length;w++){var H=c.changes[w];H=="text"?si(s,c):H=="gutter"?ta(s,c,b,y):H=="class"?Hi(s,c):H=="widget"&&As(s,c,y)}c.changes=null}function is(s){return s.node==s.text&&(s.node=Xe("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),G&&F<8&&(s.node.style.zIndex=2)),s.node}function Rs(s,c){var b=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),c.background)b?c.background.className=b:(c.background.parentNode.removeChild(c.background),c.background=null);else if(b){var y=is(c);c.background=y.insertBefore(Xe("div",null,b),y.firstChild),s.display.input.setUneditable(c.background)}}function Ns(s,c){var b=s.display.externalMeasured;return b&&b.line==c.line?(s.display.externalMeasured=null,c.measure=b.measure,b.built):Wt(s,c)}function si(s,c){var b=c.text.className,y=Ns(s,c);c.text==c.node&&(c.node=y.pre),c.text.parentNode.replaceChild(y.pre,c.text),c.text=y.pre,y.bgClass!=c.bgClass||y.textClass!=c.textClass?(c.bgClass=y.bgClass,c.textClass=y.textClass,Hi(s,c)):b&&(c.text.className=b)}function Hi(s,c){Rs(s,c),c.line.wrapClass?is(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var b=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=b||""}function ta(s,c,b,y){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 w=is(c);c.gutterBackground=Xe("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(s.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px; width: "+y.gutterTotalWidth+"px"),s.display.input.setUneditable(c.gutterBackground),w.insertBefore(c.gutterBackground,c.text)}var H=c.line.gutterMarkers;if(s.options.lineNumbers||H){var ne=is(c),Se=c.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px");if(s.display.input.setUneditable(Se),ne.insertBefore(Se,c.text),c.line.gutterClass&&(Se.className+=" "+c.line.gutterClass),s.options.lineNumbers&&(!H||!H["CodeMirror-linenumbers"])&&(c.lineNumber=Se.appendChild(Xe("div",jn(s.options,b),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+y.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),H)for(var ve=0;ve<s.display.gutterSpecs.length;++ve){var Ze=s.display.gutterSpecs[ve].className,Gt=H.hasOwnProperty(Ze)&&H[Ze];Gt&&Se.appendChild(Xe("div",[Gt],"CodeMirror-gutter-elt","left: "+y.gutterLeft[Ze]+"px; width: "+y.gutterWidth[Ze]+"px"))}}}function As(s,c,b){c.alignable&&(c.alignable=null);for(var y=ee("CodeMirror-linewidget"),w=c.node.firstChild,H=void 0;w;w=H)H=w.nextSibling,y.test(w.className)&&c.node.removeChild(w);rs(s,c,b)}function Yo(s,c,b,y){var w=Ns(s,c);return c.text=c.node=w.pre,w.bgClass&&(c.bgClass=w.bgClass),w.textClass&&(c.textClass=w.textClass),Hi(s,c),ta(s,c,b,y),rs(s,c,y),c.node}function rs(s,c,b){if(Lr(s,c.line,c,b,!0),c.rest)for(var y=0;y<c.rest.length;y++)Lr(s,c.rest[y],c,b,!1)}function Lr(s,c,b,y,w){if(c.widgets)for(var H=is(b),ne=0,Se=c.widgets;ne<Se.length;++ne){var ve=Se[ne],Ze=Xe("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||Ze.setAttribute("cm-ignore-events","true"),al(ve,Ze,b,y),s.display.input.setUneditable(Ze),w&&ve.above?H.insertBefore(Ze,b.gutter||b.text):H.appendChild(Ze),vi(ve,"redraw")}}function al(s,c,b,y){if(s.noHScroll){(b.alignable||(b.alignable=[])).push(c);var w=y.wrapperWidth;c.style.left=y.fixedPos+"px",s.coverGutter||(w-=y.gutterTotalWidth,c.style.paddingLeft=y.gutterTotalWidth+"px"),c.style.width=w+"px"}s.coverGutter&&(c.style.zIndex=5,c.style.position="relative",s.noHScroll||(c.style.marginLeft=-y.gutterTotalWidth+"px"))}function Ds(s){if(s.height!=null)return s.height;var c=s.doc.cm;if(!c)return 0;if(!lt(document.body,s.node)){var b="position: relative;";s.coverGutter&&(b+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),s.noHScroll&&(b+="width: "+c.display.wrapper.clientWidth+"px;"),Pe(c.display.measure,Xe("div",[s.node],null,b))}return s.height=s.node.parentNode.offsetHeight}function Ps(s,c){for(var b=hi(c);b!=s.wrapper;b=b.parentNode)if(!b||b.nodeType==1&&b.getAttribute("cm-ignore-events")=="true"||b.parentNode==s.sizer&&b!=s.mover)return!0}function Ho(s){return s.lineSpace.offsetTop}function os(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function Ol(s){if(s.cachedPaddingH)return s.cachedPaddingH;var c=Pe(s.measure,Xe("pre","x","CodeMirror-line-like")),b=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,y={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};return!isNaN(y.left)&&!isNaN(y.right)&&(s.cachedPaddingH=y),y}function Xa(s){return $t-s.display.nativeBarWidth}function Oa(s){return s.display.scroller.clientWidth-Xa(s)-s.display.barWidth}function ml(s){return s.display.scroller.clientHeight-Xa(s)-s.display.barHeight}function Xo(s,c,b){var y=s.options.lineWrapping,w=y&&Oa(s);if(!c.measure.heights||y&&c.measure.width!=w){var H=c.measure.heights=[];if(y){c.measure.width=w;for(var ne=c.text.firstChild.getClientRects(),Se=0;Se<ne.length-1;Se++){var ve=ne[Se],Ze=ne[Se+1];Math.abs(ve.bottom-Ze.bottom)>2&&H.push((ve.bottom+Ze.top)/2-b.top)}}H.push(b.bottom-b.top)}}function js(s,c,b){if(s.line==c)return{map:s.measure.map,cache:s.measure.cache};for(var y=0;y<s.rest.length;y++)if(s.rest[y]==c)return{map:s.measure.maps[y],cache:s.measure.caches[y]};for(var w=0;w<s.rest.length;w++)if(Ke(s.rest[w])>b)return{map:s.measure.maps[w],cache:s.measure.caches[w],before:!0}}function wu(s,c){c=Di(c);var b=Ke(c),y=s.display.externalMeasured=new Mt(s.doc,c,b);y.lineN=b;var w=y.built=Wt(s,y);return y.text=w.pre,Pe(s.display.lineMeasure,w.pre),y}function Ll(s,c,b,y){return Gs(s,Fa(s,c),b,y)}function as(s,c){if(c>=s.display.viewFrom&&c<s.display.viewTo)return s.display.view[gs(s,c)];var b=s.display.externalMeasured;if(b&&c>=b.lineN&&c<b.lineN+b.size)return b}function Fa(s,c){var b=Ke(c),y=as(s,b);y&&!y.text?y=null:y&&y.changes&&(ma(s,y,b,Xu(s)),s.curOp.forceUpdate=!0),y||(y=wu(s,c));var w=js(y,c,b);return{line:c,view:y,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function Gs(s,c,b,y,w){c.before&&(b=-1);var H=b+(y||""),ne;return c.cache.hasOwnProperty(H)?ne=c.cache[H]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Xo(s,c.view,c.rect),c.hasHeights=!0),ne=Vr(s,c,b,y),ne.bogus||(c.cache[H]=ne)),{left:ne.left,right:ne.right,top:w?ne.rtop:ne.top,bottom:w?ne.rbottom:ne.bottom}}var Ki={left:0,right:0,top:0,bottom:0};function ks(s,c,b){for(var y,w,H,ne,Se,ve,Ze=0;Ze<s.length;Ze+=3)if(Se=s[Ze],ve=s[Ze+1],c<Se?(w=0,H=1,ne="left"):c<ve?(w=c-Se,H=w+1):(Ze==s.length-3||c==ve&&s[Ze+3]>c)&&(H=ve-Se,w=H-1,c>=ve&&(ne="right")),w!=null){if(y=s[Ze+2],Se==ve&&b==(y.insertLeft?"left":"right")&&(ne=b),b=="left"&&w==0)for(;Ze&&s[Ze-2]==s[Ze-3]&&s[Ze-1].insertLeft;)y=s[(Ze-=3)+2],ne="left";if(b=="right"&&w==ve-Se)for(;Ze<s.length-3&&s[Ze+3]==s[Ze+4]&&!s[Ze+5].insertLeft;)y=s[(Ze+=3)+2],ne="right";break}return{node:y,start:w,end:H,collapse:ne,coverStart:Se,coverEnd:ve}}function Rl(s,c){var b=Ki;if(c=="left")for(var y=0;y<s.length&&(b=s[y]).left==b.right;y++);else for(var w=s.length-1;w>=0&&(b=s[w]).left==b.right;w--);return b}function Vr(s,c,b,y){var w=ks(c.map,b,y),H=w.node,ne=w.start,Se=w.end,ve=w.collapse,Ze;if(H.nodeType==3){for(var Gt=0;Gt<4;Gt++){for(;ne&&kt(c.line.text.charAt(w.coverStart+ne));)--ne;for(;w.coverStart+Se<w.coverEnd&&kt(c.line.text.charAt(w.coverStart+Se));)++Se;if(G&&F<9&&ne==0&&Se==w.coverEnd-w.coverStart?Ze=H.parentNode.getBoundingClientRect():Ze=Rl(ie(H,ne,Se).getClientRects(),y),Ze.left||Ze.right||ne==0)break;Se=ne,ne=ne-1,ve="right"}G&&F<11&&(Ze=Co(s.display.measure,Ze))}else{ne>0&&(ve=y="right");var st;s.options.lineWrapping&&(st=H.getClientRects()).length>1?Ze=st[y=="right"?st.length-1:0]:Ze=H.getBoundingClientRect()}if(G&&F<9&&!ne&&(!Ze||!Ze.left&&!Ze.right)){var Tn=H.parentNode.getClientRects()[0];Tn?Ze={left:Tn.left,right:Tn.left+gl(s.display),top:Tn.top,bottom:Tn.bottom}:Ze=Ki}for(var xn=Ze.top-c.rect.top,fi=Ze.bottom-c.rect.top,xi=(xn+fi)/2,Fi=c.view.measure.heights,or=0;or<Fi.length-1&&!(xi<Fi[or]);or++);var Pr=or?Fi[or-1]:0,Sr=Fi[or],$r={left:(ve=="right"?Ze.right:Ze.left)-c.rect.left,right:(ve=="left"?Ze.left:Ze.right)-c.rect.left,top:Pr,bottom:Sr};return!Ze.left&&!Ze.right&&($r.bogus=!0),s.options.singleCursorHeightPerLine||($r.rtop=xn,$r.rbottom=fi),$r}function Co(s,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fr(s))return c;var b=screen.logicalXDPI/screen.deviceXDPI,y=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*b,right:c.right*b,top:c.top*y,bottom:c.bottom*y}}function fa(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var c=0;c<s.rest.length;c++)s.measure.caches[c]={}}function aa(s){s.display.externalMeasure=null,Ie(s.display.lineMeasure);for(var c=0;c<s.display.view.length;c++)fa(s.display.view[c])}function ro(s){aa(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function sa(){return ue&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ga(){return ue&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function La(s){var c=0;if(s.widgets)for(var b=0;b<s.widgets.length;++b)s.widgets[b].above&&(c+=Ds(s.widgets[b]));return c}function Aa(s,c,b,y,w){if(!w){var H=La(c);b.top+=H,b.bottom+=H}if(y=="line")return b;y||(y="local");var ne=Wo(c);if(y=="local"?ne+=Ho(s.display):ne-=s.display.viewOffset,y=="page"||y=="window"){var Se=s.display.lineSpace.getBoundingClientRect();ne+=Se.top+(y=="window"?0:ga());var ve=Se.left+(y=="window"?0:sa());b.left+=ve,b.right+=ve}return b.top+=ne,b.bottom+=ne,b}function Gl(s,c,b){if(b=="div")return c;var y=c.left,w=c.top;if(b=="page")y-=sa(),w-=ga();else if(b=="local"||!b){var H=s.display.sizer.getBoundingClientRect();y+=H.left,w+=H.top}var ne=s.display.lineSpace.getBoundingClientRect();return{left:y-ne.left,top:w-ne.top}}function Ys(s,c,b,y,w){return y||(y=vn(s.doc,c.line)),Aa(s,y,Ll(s,y,c.ch,w),b)}function ka(s,c,b,y,w,H){y=y||vn(s.doc,c.line),w||(w=Fa(s,y));function ne(fi,xi){var Fi=Gs(s,w,fi,xi?"right":"left",H);return xi?Fi.left=Fi.right:Fi.right=Fi.left,Aa(s,y,Fi,b)}var Se=an(y,s.doc.direction),ve=c.ch,Ze=c.sticky;if(ve>=y.text.length?(ve=y.text.length,Ze="before"):ve<=0&&(ve=0,Ze="after"),!Se)return ne(Ze=="before"?ve-1:ve,Ze=="before");function Gt(fi,xi,Fi){var or=Se[xi],Pr=or.level==1;return ne(Fi?fi-1:fi,Pr!=Fi)}var st=tt(Se,ve,Ze),Tn=ct,xn=Gt(ve,st,Ze=="before");return Tn!=null&&(xn.other=Gt(ve,Tn,Ze!="before")),xn}function hc(s,c){var b=0;c=gt(s.doc,c),s.options.lineWrapping||(b=gl(s.display)*c.ch);var y=vn(s.doc,c.line),w=Wo(y)+Ho(s.display);return{left:b,right:b,top:w,bottom:w+y.height}}function Zu(s,c,b,y,w){var H=at(s,c,b);return H.xRel=w,y&&(H.outside=y),H}function uu(s,c,b){var y=s.doc;if(b+=s.display.viewOffset,b<0)return Zu(y.first,0,null,-1,-1);var w=Ht(y,b),H=y.first+y.size-1;if(w>H)return Zu(y.first+y.size-1,vn(y,H).text.length,null,1,1);c<0&&(c=0);for(var ne=vn(y,w);;){var Se=Pn(s,ne,w,c,b),ve=Ri(ne,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!ve)return Se;var Ze=ve.find(1);if(Ze.line==w)return Ze;ne=vn(y,w=Ze.line)}}function sr(s,c,b,y){y-=La(c);var w=c.text.length,H=Be(function(ne){return Gs(s,b,ne-1).bottom<=y},w,0);return w=Be(function(ne){return Gs(s,b,ne).top>y},H,w),{begin:H,end:w}}function Ws(s,c,b,y){b||(b=Fa(s,c));var w=Aa(s,c,Gs(s,b,y),"line").top;return sr(s,c,b,w)}function et(s,c,b,y){return s.bottom<=b?!1:s.top>b?!0:(y?s.left:s.right)>c}function Pn(s,c,b,y,w){w-=Wo(c);var H=Fa(s,c),ne=La(c),Se=0,ve=c.text.length,Ze=!0,Gt=an(c,s.doc.direction);if(Gt){var st=(s.options.lineWrapping?Yu:Cu)(s,c,b,H,Gt,y,w);Ze=st.level!=1,Se=Ze?st.from:st.to-1,ve=Ze?st.to:st.from-1}var Tn=null,xn=null,fi=Be(function(vo){var yr=Gs(s,H,vo);return yr.top+=ne,yr.bottom+=ne,et(yr,y,w,!1)?(yr.top<=w&&yr.left<=y&&(Tn=vo,xn=yr),!0):!1},Se,ve),xi,Fi,or=!1;if(xn){var Pr=y-xn.left<xn.right-y,Sr=Pr==Ze;fi=Tn+(Sr?0:1),Fi=Sr?"after":"before",xi=Pr?xn.left:xn.right}else{!Ze&&(fi==ve||fi==Se)&&fi++,Fi=fi==0?"after":fi==c.text.length?"before":Gs(s,H,fi-(Ze?1:0)).bottom+ne<=w==Ze?"after":"before";var $r=ka(s,at(b,fi,Fi),"line",c,H);xi=$r.left,or=w<$r.top?-1:w>=$r.bottom?1:0}return fi=Ue(c.text,fi,1),Zu(b,fi,Fi,or,y-xi)}function Cu(s,c,b,y,w,H,ne){var Se=Be(function(st){var Tn=w[st],xn=Tn.level!=1;return et(ka(s,at(b,xn?Tn.to:Tn.from,xn?"before":"after"),"line",c,y),H,ne,!0)},0,w.length-1),ve=w[Se];if(Se>0){var Ze=ve.level!=1,Gt=ka(s,at(b,Ze?ve.from:ve.to,Ze?"after":"before"),"line",c,y);et(Gt,H,ne,!0)&&Gt.top>ne&&(ve=w[Se-1])}return ve}function Yu(s,c,b,y,w,H,ne){var Se=sr(s,c,y,ne),ve=Se.begin,Ze=Se.end;/\s/.test(c.text.charAt(Ze-1))&&Ze--;for(var Gt=null,st=null,Tn=0;Tn<w.length;Tn++){var xn=w[Tn];if(!(xn.from>=Ze||xn.to<=ve)){var fi=xn.level!=1,xi=Gs(s,y,fi?Math.min(Ze,xn.to)-1:Math.max(ve,xn.from)).right,Fi=xi<H?H-xi+1e9:xi-H;(!Gt||st>Fi)&&(Gt=xn,st=Fi)}}return Gt||(Gt=w[w.length-1]),Gt.from<ve&&(Gt={from:ve,to:Gt.to,level:Gt.level}),Gt.to>Ze&&(Gt={from:Gt.from,to:Ze,level:Gt.level}),Gt}var Dl;function Pl(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Dl==null){Dl=Xe("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Dl.appendChild(document.createTextNode("x")),Dl.appendChild(Xe("br"));Dl.appendChild(document.createTextNode("x"))}Pe(s.measure,Dl);var b=Dl.offsetHeight/50;return b>3&&(s.cachedTextHeight=b),Ie(s.measure),b||1}function gl(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var c=Xe("span","xxxxxxxxxx"),b=Xe("pre",[c],"CodeMirror-line-like");Pe(s.measure,b);var y=c.getBoundingClientRect(),w=(y.right-y.left)/10;return w>2&&(s.cachedCharWidth=w),w||10}function Xu(s){for(var c=s.display,b={},y={},w=c.gutters.clientLeft,H=c.gutters.firstChild,ne=0;H;H=H.nextSibling,++ne){var Se=s.display.gutterSpecs[ne].className;b[Se]=H.offsetLeft+H.clientLeft+w,y[Se]=H.clientWidth}return{fixedPos:cu(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:b,gutterWidth:y,wrapperWidth:c.wrapper.clientWidth}}function cu(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function Ia(s){var c=Pl(s.display),b=s.options.lineWrapping,y=b&&Math.max(5,s.display.scroller.clientWidth/gl(s.display)-3);return function(w){if(mi(s.doc,w))return 0;var H=0;if(w.widgets)for(var ne=0;ne<w.widgets.length;ne++)w.widgets[ne].height&&(H+=w.widgets[ne].height);return b?H+(Math.ceil(w.text.length/y)||1)*c:H+c}}function Or(s){var c=s.doc,b=Ia(s);c.iter(function(y){var w=b(y);w!=y.height&&Ct(y,w)})}function Fs(s,c,b,y){var w=s.display;if(!b&&hi(c).getAttribute("cm-not-content")=="true")return null;var H,ne,Se=w.lineSpace.getBoundingClientRect();try{H=c.clientX-Se.left,ne=c.clientY-Se.top}catch(st){return null}var ve=uu(s,H,ne),Ze;if(y&&ve.xRel>0&&(Ze=vn(s.doc,ve.line).text).length==ve.ch){var Gt=qe(Ze,Ze.length,s.options.tabSize)-Ze.length;ve=at(ve.line,Math.max(0,Math.round((H-Ol(s.display).left)/gl(s.display))-Gt))}return ve}function gs(s,c){if(c>=s.display.viewTo||(c-=s.display.viewFrom,c<0))return null;for(var b=s.display.view,y=0;y<b.length;y++)if(c-=b[y].size,c<0)return y}function So(s,c,b,y){c==null&&(c=s.doc.first),b==null&&(b=s.doc.first+s.doc.size),y||(y=0);var w=s.display;if(y&&b<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>c)&&(w.updateLineNumbers=c),s.curOp.viewChanged=!0,c>=w.viewTo)Xt&&io(s.doc,c)<w.viewTo&&Ha(s);else if(b<=w.viewFrom)Xt&&bo(s.doc,b+y)>w.viewFrom?Ha(s):(w.viewFrom+=y,w.viewTo+=y);else if(c<=w.viewFrom&&b>=w.viewTo)Ha(s);else if(c<=w.viewFrom){var H=Vs(s,b,b+y,1);H?(w.view=w.view.slice(H.index),w.viewFrom=H.lineN,w.viewTo+=y):Ha(s)}else if(b>=w.viewTo){var ne=Vs(s,c,c,-1);ne?(w.view=w.view.slice(0,ne.index),w.viewTo=ne.lineN):Ha(s)}else{var Se=Vs(s,c,c,-1),ve=Vs(s,b,b+y,1);Se&&ve?(w.view=w.view.slice(0,Se.index).concat(Dr(s,Se.lineN,ve.lineN)).concat(w.view.slice(ve.index)),w.viewTo+=y):Ha(s)}var Ze=w.externalMeasured;Ze&&(b<Ze.lineN?Ze.lineN+=y:c<Ze.lineN+Ze.size&&(w.externalMeasured=null))}function lo(s,c,b){s.curOp.viewChanged=!0;var y=s.display,w=s.display.externalMeasured;if(w&&c>=w.lineN&&c<w.lineN+w.size&&(y.externalMeasured=null),!(c<y.viewFrom||c>=y.viewTo)){var H=y.view[gs(s,c)];if(H.node!=null){var ne=H.changes||(H.changes=[]);le(ne,b)==-1&&ne.push(b)}}}function Ha(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function Vs(s,c,b,y){var w=gs(s,c),H,ne=s.display.view;if(!Xt||b==s.doc.first+s.doc.size)return{index:w,lineN:b};for(var Se=s.display.viewFrom,ve=0;ve<w;ve++)Se+=ne[ve].size;if(Se!=c){if(y>0){if(w==ne.length-1)return null;H=Se+ne[w].size-c,w++}else H=Se-c;c+=H,b+=H}for(;io(s.doc,b)!=b;){if(w==(y<0?0:ne.length-1))return null;b+=y*ne[w-(y<0?1:0)].size,w+=y}return{index:w,lineN:b}}function la(s,c,b){var y=s.display,w=y.view;w.length==0||c>=y.viewTo||b<=y.viewFrom?(y.view=Dr(s,c,b),y.viewFrom=c):(y.viewFrom>c?y.view=Dr(s,c,y.viewFrom).concat(y.view):y.viewFrom<c&&(y.view=y.view.slice(gs(s,c))),y.viewFrom=c,y.viewTo<b?y.view=y.view.concat(Dr(s,y.viewTo,b)):y.viewTo>b&&(y.view=y.view.slice(0,gs(s,b)))),y.viewTo=b}function Ks(s){for(var c=s.display.view,b=0,y=0;y<c.length;y++){var w=c[y];!w.hidden&&(!w.node||w.changes)&&++b}return b}function ss(s){s.display.input.showSelection(s.display.input.prepareSelection())}function hu(s,c){c===void 0&&(c=!0);for(var b=s.doc,y={},w=y.cursors=document.createDocumentFragment(),H=y.selection=document.createDocumentFragment(),ne=0;ne<b.sel.ranges.length;ne++)if(!(!c&&ne==b.sel.primIndex)){var Se=b.sel.ranges[ne];if(!(Se.from().line>=s.display.viewTo||Se.to().line<s.display.viewFrom)){var ve=Se.empty();(ve||s.options.showCursorWhenSelecting)&&Bo(s,Se.head,w),ve||Eo(s,Se,H)}}return y}function Bo(s,c,b){var y=ka(s,c,"div",null,null,!s.options.singleCursorHeightPerLine),w=b.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(w.style.left=y.left+"px",w.style.top=y.top+"px",w.style.height=Math.max(0,y.bottom-y.top)*s.options.cursorHeight+"px",y.other){var H=b.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=y.other.left+"px",H.style.top=y.other.top+"px",H.style.height=(y.other.bottom-y.other.top)*.85+"px"}}function Es(s,c){return s.top-c.top||s.left-c.left}function Eo(s,c,b){var y=s.display,w=s.doc,H=document.createDocumentFragment(),ne=Ol(s.display),Se=ne.left,ve=Math.max(y.sizerWidth,Oa(s)-y.sizer.offsetLeft)-ne.right,Ze=w.direction=="ltr";function Gt(Sr,$r,vo,yr){$r<0&&($r=0),$r=Math.round($r),yr=Math.round(yr),H.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+Sr+`px;
|
|
|
top: `+$r+"px; width: "+(vo==null?ve-Sr:vo)+`px;
|
|
|
height: `+(yr-$r)+"px"))}function st(Sr,$r,vo){var yr=vn(w,Sr),$o=yr.text.length,fs,hl;function Cs(nl,Iu){return Ys(s,at(Sr,nl),"div",yr,Iu)}function vu(nl,Iu,_l){var il=Ws(s,yr,null,nl),Ma=Iu=="ltr"==(_l=="after")?"left":"right",Ms=_l=="after"?il.begin:il.end-(/\s/.test(yr.text.charAt(il.end-1))?2:1);return Cs(Ms,Ma)[Ma]}var Zl=an(yr,w.direction);return mt(Zl,$r||0,vo==null?$o:vo,function(nl,Iu,_l,il){var Ma=_l=="ltr",Ms=Cs(nl,Ma?"left":"right"),xl=Cs(Iu-1,Ma?"right":"left"),zl=$r==null&&nl==0,fc=vo==null&&Iu==$o,Ts=il==0,nc=!Zl||il==Zl.length-1;if(xl.top-Ms.top<=3){var zs=(Ze?zl:fc)&&Ts,zd=(Ze?fc:zl)&&nc,Uu=zs?Se:(Ma?Ms:xl).left,Mu=zd?ve:(Ma?xl:Ms).right;Gt(Uu,Ms.top,Mu-Uu,Ms.bottom)}else{var yu,qa,Sl,Fc;Ma?(yu=Ze&&zl&&Ts?Se:Ms.left,qa=Ze?ve:vu(nl,_l,"before"),Sl=Ze?Se:vu(Iu,_l,"after"),Fc=Ze&&fc&&nc?ve:xl.right):(yu=Ze?vu(nl,_l,"before"):Se,qa=!Ze&&zl&&Ts?ve:Ms.right,Sl=!Ze&&fc&&nc?Se:xl.left,Fc=Ze?vu(Iu,_l,"after"):ve),Gt(yu,Ms.top,qa-yu,Ms.bottom),Ms.bottom<xl.top&&Gt(Se,Ms.bottom,null,xl.top),Gt(Sl,xl.top,Fc-Sl,xl.bottom)}(!fs||Es(Ms,fs)<0)&&(fs=Ms),Es(xl,fs)<0&&(fs=xl),(!hl||Es(Ms,hl)<0)&&(hl=Ms),Es(xl,hl)<0&&(hl=xl)}),{start:fs,end:hl}}var Tn=c.from(),xn=c.to();if(Tn.line==xn.line)st(Tn.line,Tn.ch,xn.ch);else{var fi=vn(w,Tn.line),xi=vn(w,xn.line),Fi=Di(fi)==Di(xi),or=st(Tn.line,Tn.ch,Fi?fi.text.length+1:null).end,Pr=st(xn.line,Fi?0:null,xn.ch).start;Fi&&(or.top<Pr.top-2?(Gt(or.right,or.top,null,or.bottom),Gt(Se,Pr.top,Pr.left,Pr.bottom)):Gt(or.right,or.top,Pr.left-or.right,or.bottom)),or.bottom<Pr.top&&Gt(Se,or.bottom,null,Pr.top)}b.appendChild(H)}function qo(s){if(s.state.focused){var c=s.display;clearInterval(c.blinker);var b=!0;c.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?c.blinker=setInterval(function(){s.hasFocus()||du(s),c.cursorDiv.style.visibility=(b=!b)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function ia(s){s.state.focused||(s.display.input.focus(),_o(s))}function wa(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,du(s))},100)}function _o(s,c){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(Qe(s,"focus",s,c),s.state.focused=!0,Pt(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),M&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),qo(s))}function du(s,c){s.state.delayingBlurEvent||(s.state.focused&&(Qe(s,"blur",s,c),s.state.focused=!1,Ne(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function Ir(s){for(var c=s.display,b=c.lineDiv.offsetTop,y=0;y<c.view.length;y++){var w=c.view[y],H=s.options.lineWrapping,ne=void 0,Se=0;if(!w.hidden){if(G&&F<8){var ve=w.node.offsetTop+w.node.offsetHeight;ne=ve-b,b=ve}else{var Ze=w.node.getBoundingClientRect();ne=Ze.bottom-Ze.top,!H&&w.text.firstChild&&(Se=w.text.firstChild.getBoundingClientRect().right-Ze.left-1)}var Gt=w.line.height-ne;if((Gt>.005||Gt<-.005)&&(Ct(w.line,ne),sl(w.line),w.rest))for(var st=0;st<w.rest.length;st++)sl(w.rest[st]);if(Se>s.display.sizerWidth){var Tn=Math.ceil(Se/gl(s.display));Tn>s.display.maxLineLength&&(s.display.maxLineLength=Tn,s.display.maxLine=w.line,s.display.maxLineChanged=!0)}}}}function sl(s){if(s.widgets)for(var c=0;c<s.widgets.length;++c){var b=s.widgets[c],y=b.node.parentNode;y&&(b.height=y.offsetHeight)}}function To(s,c,b){var y=b&&b.top!=null?Math.max(0,b.top):s.scroller.scrollTop;y=Math.floor(y-Ho(s));var w=b&&b.bottom!=null?b.bottom:y+s.wrapper.clientHeight,H=Ht(c,y),ne=Ht(c,w);if(b&&b.ensure){var Se=b.ensure.from.line,ve=b.ensure.to.line;Se<H?(H=Se,ne=Ht(c,Wo(vn(c,Se))+s.wrapper.clientHeight)):Math.min(ve,c.lastLine())>=ne&&(H=Ht(c,Wo(vn(c,ve))-s.wrapper.clientHeight),ne=ve)}return{from:H,to:Math.max(ne,H+1)}}function Qu(s,c){if(!Ut(s,"scrollCursorIntoView")){var b=s.display,y=b.sizer.getBoundingClientRect(),w=null;if(c.top+y.top<0?w=!0:c.bottom+y.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!Je){var H=Xe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(c.top-b.viewOffset-Ho(s.display))+`px;
|
|
|
height: `+(c.bottom-c.top+Xa(s)+b.barHeight)+`px;
|
|
|
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");s.display.lineSpace.appendChild(H),H.scrollIntoView(w),s.display.lineSpace.removeChild(H)}}}function Ju(s,c,b,y){y==null&&(y=0);var w;!s.options.lineWrapping&&c==b&&(c=c.ch?at(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,b=c.sticky=="before"?at(c.line,c.ch+1,"before"):c);for(var H=0;H<5;H++){var ne=!1,Se=ka(s,c),ve=!b||b==c?Se:ka(s,b);w={left:Math.min(Se.left,ve.left),top:Math.min(Se.top,ve.top)-y,right:Math.max(Se.left,ve.left),bottom:Math.max(Se.bottom,ve.bottom)+y};var Ze=wc(s,w),Gt=s.doc.scrollTop,st=s.doc.scrollLeft;if(Ze.scrollTop!=null&&(tu(s,Ze.scrollTop),Math.abs(s.doc.scrollTop-Gt)>1&&(ne=!0)),Ze.scrollLeft!=null&&(yl(s,Ze.scrollLeft),Math.abs(s.doc.scrollLeft-st)>1&&(ne=!0)),!ne)break}return w}function qu(s,c){var b=wc(s,c);b.scrollTop!=null&&tu(s,b.scrollTop),b.scrollLeft!=null&&yl(s,b.scrollLeft)}function wc(s,c){var b=s.display,y=Pl(s.display);c.top<0&&(c.top=0);var w=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:b.scroller.scrollTop,H=ml(s),ne={};c.bottom-c.top>H&&(c.bottom=c.top+H);var Se=s.doc.height+os(b),ve=c.top<y,Ze=c.bottom>Se-y;if(c.top<w)ne.scrollTop=ve?0:c.top;else if(c.bottom>w+H){var Gt=Math.min(c.top,(Ze?Se:c.bottom)-H);Gt!=w&&(ne.scrollTop=Gt)}var st=s.options.fixedGutter?0:b.gutters.offsetWidth,Tn=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:b.scroller.scrollLeft-st,xn=Oa(s)-b.gutters.offsetWidth,fi=c.right-c.left>xn;return fi&&(c.right=c.left+xn),c.left<10?ne.scrollLeft=0:c.left<Tn?ne.scrollLeft=Math.max(0,c.left+st-(fi?0:10)):c.right>xn+Tn-3&&(ne.scrollLeft=c.right+(fi?0:10)-xn),ne}function _u(s,c){c!=null&&(Bs(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+c)}function Xs(s){Bs(s);var c=s.getCursor();s.curOp.scrollToPos={from:c,to:c,margin:s.options.cursorScrollMargin}}function Qs(s,c,b){(c!=null||b!=null)&&Bs(s),c!=null&&(s.curOp.scrollLeft=c),b!=null&&(s.curOp.scrollTop=b)}function Io(s,c){Bs(s),s.curOp.scrollToPos=c}function Bs(s){var c=s.curOp.scrollToPos;if(c){s.curOp.scrollToPos=null;var b=hc(s,c.from),y=hc(s,c.to);dc(s,b,y,c.margin)}}function dc(s,c,b,y){var w=wc(s,{left:Math.min(c.left,b.left),top:Math.min(c.top,b.top)-y,right:Math.max(c.right,b.right),bottom:Math.max(c.bottom,b.bottom)+y});Qs(s,w.scrollLeft,w.scrollTop)}function tu(s,c){Math.abs(s.doc.scrollTop-c)<2||(v||Gi(s,{top:c}),vl(s,c,!0),v&&Gi(s),zn(s,100))}function vl(s,c,b){c=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,c)),!(s.display.scroller.scrollTop==c&&!b)&&(s.doc.scrollTop=c,s.display.scrollbars.setScrollTop(c),s.display.scroller.scrollTop!=c&&(s.display.scroller.scrollTop=c))}function yl(s,c,b,y){c=Math.max(0,Math.min(c,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((b?c==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-c)<2)&&!y)&&(s.doc.scrollLeft=c,q(s),s.display.scroller.scrollLeft!=c&&(s.display.scroller.scrollLeft=c),s.display.scrollbars.setScrollLeft(c))}function Js(s){var c=s.display,b=c.gutters.offsetWidth,y=Math.round(s.doc.height+os(s.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:s.options.fixedGutter?b:0,docHeight:y,scrollHeight:y+Xa(s)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:b}}var Wl=function(s,c,b){this.cm=b;var y=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");y.tabIndex=w.tabIndex=-1,s(y),s(w),Bt(y,"scroll",function(){y.clientHeight&&c(y.scrollTop,"vertical")}),Bt(w,"scroll",function(){w.clientWidth&&c(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wl.prototype.update=function(s){var c=s.scrollWidth>s.clientWidth+1,b=s.scrollHeight>s.clientHeight+1,y=s.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=c?y+"px":"0";var w=s.viewHeight-(c?y:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+w)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=b?y+"px":"0",this.horiz.style.left=s.barLeft+"px";var H=s.viewWidth-s.barLeft-(b?y:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(y==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?y:0,bottom:c?y:0}},Wl.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wl.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wl.prototype.zeroWidthHack=function(){var s=Re&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ae,this.disableVert=new ae},Wl.prototype.enableZeroWidthBar=function(s,c,b){s.style.pointerEvents="auto";function y(){var w=s.getBoundingClientRect(),H=b=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);H!=s?s.style.pointerEvents="none":c.set(1e3,y)}c.set(1e3,y)},Wl.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var Zs=function(){};Zs.prototype.update=function(){return{bottom:0,right:0}},Zs.prototype.setScrollLeft=function(){},Zs.prototype.setScrollTop=function(){},Zs.prototype.clear=function(){};function fu(s,c){c||(c=Js(s));var b=s.display.barWidth,y=s.display.barHeight;pu(s,c);for(var w=0;w<4&&b!=s.display.barWidth||y!=s.display.barHeight;w++)b!=s.display.barWidth&&s.options.lineWrapping&&Ir(s),pu(s,Js(s)),b=s.display.barWidth,y=s.display.barHeight}function pu(s,c){var b=s.display,y=b.scrollbars.update(c);b.sizer.style.paddingRight=(b.barWidth=y.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=y.bottom)+"px",b.heightForcer.style.borderBottom=y.bottom+"px solid transparent",y.right&&y.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=y.bottom+"px",b.scrollbarFiller.style.width=y.right+"px"):b.scrollbarFiller.style.display="",y.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=y.bottom+"px",b.gutterFiller.style.width=c.gutterWidth+"px"):b.gutterFiller.style.display=""}var Tu={native:Wl,null:Zs};function Nu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Ne(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new Tu[s.options.scrollbarStyle](function(c){s.display.wrapper.insertBefore(c,s.display.scrollbarFiller),Bt(c,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,b){b=="horizontal"?yl(s,c):tu(s,c)},s),s.display.scrollbars.addClass&&Pt(s.display.wrapper,s.display.scrollbars.addClass)}var ll=0;function vs(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.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:++ll},Ea(s.curOp)}function Vl(s){var c=s.curOp;c&&Sn(c,function(b){for(var y=0;y<b.ops.length;y++)b.ops[y].cm.curOp=null;zu(b)})}function zu(s){for(var c=s.ops,b=0;b<c.length;b++)Ee(c[b]);for(var y=0;y<c.length;y++)Le(c[y]);for(var w=0;w<c.length;w++)ht(c[w]);for(var H=0;H<c.length;H++)bt(c[H]);for(var ne=0;ne<c.length;ne++)_t(c[ne])}function Ee(s){var c=s.cm,b=c.display;yi(c),s.updateMaxLine&&Ta(c),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<b.viewFrom||s.scrollToPos.to.line>=b.viewTo)||b.maxLineChanged&&c.options.lineWrapping,s.update=s.mustUpdate&&new Gn(c,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Le(s){s.updatedDisplay=s.mustUpdate&&ji(s.cm,s.update)}function ht(s){var c=s.cm,b=c.display;s.updatedDisplay&&Ir(c),s.barMeasure=Js(c),b.maxLineChanged&&!c.options.lineWrapping&&(s.adjustWidthTo=Ll(c,b.maxLine,b.maxLine.text.length).left+3,c.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+s.adjustWidthTo+Xa(c)+c.display.barWidth),s.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+s.adjustWidthTo-Oa(c))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=b.input.prepareSelection())}function bt(s){var c=s.cm;s.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<c.doc.scrollLeft&&yl(c,Math.min(c.display.scroller.scrollLeft,s.maxScrollLeft),!0),c.display.maxLineChanged=!1);var b=s.focus&&s.focus==We();s.preparedSelection&&c.display.input.showSelection(s.preparedSelection,b),(s.updatedDisplay||s.startHeight!=c.doc.height)&&fu(c,s.barMeasure),s.updatedDisplay&&W(c,s.barMeasure),s.selectionChanged&&qo(c),c.state.focused&&s.updateInput&&c.display.input.reset(s.typing),b&&ia(s.cm)}function _t(s){var c=s.cm,b=c.display,y=c.doc;if(s.updatedDisplay&&ci(c,s.update),b.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(b.wheelStartX=b.wheelStartY=null),s.scrollTop!=null&&vl(c,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&yl(c,s.scrollLeft,!0,!0),s.scrollToPos){var w=Ju(c,gt(y,s.scrollToPos.from),gt(y,s.scrollToPos.to),s.scrollToPos.margin);Qu(c,w)}var H=s.maybeHiddenMarkers,ne=s.maybeUnhiddenMarkers;if(H)for(var Se=0;Se<H.length;++Se)H[Se].lines.length||Qe(H[Se],"hide");if(ne)for(var ve=0;ve<ne.length;++ve)ne[ve].lines.length&&Qe(ne[ve],"unhide");b.wrapper.offsetHeight&&(y.scrollTop=c.display.scroller.scrollTop),s.changeObjs&&Qe(c,"changes",c,s.changeObjs),s.update&&s.update.finish()}function Ot(s,c){if(s.curOp)return c();vs(s);try{return c()}finally{Vl(s)}}function ge(s,c){return function(){if(s.curOp)return c.apply(s,arguments);vs(s);try{return c.apply(s,arguments)}finally{Vl(s)}}}function yn(s){return function(){if(this.curOp)return s.apply(this,arguments);vs(this);try{return s.apply(this,arguments)}finally{Vl(this)}}}function ln(s){return function(){var c=this.cm;if(!c||c.curOp)return s.apply(this,arguments);vs(c);try{return s.apply(this,arguments)}finally{Vl(c)}}}function zn(s,c){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(c,Et($n,s))}function $n(s){var c=s.doc;if(!(c.highlightFrontier>=s.display.viewTo)){var b=+new Date+s.options.workTime,y=Qi(s,c.highlightFrontier),w=[];c.iter(y.line,Math.min(c.first+c.size,s.display.viewTo+500),function(H){if(y.line>=s.display.viewFrom){var ne=H.styles,Se=H.text.length>s.options.maxHighlightLength?Un(c.mode,y.state):null,ve=rt(s,H,y,!0);Se&&(y.state=Se),H.styles=ve.styles;var Ze=H.styleClasses,Gt=ve.classes;Gt?H.styleClasses=Gt:Ze&&(H.styleClasses=null);for(var st=!ne||ne.length!=H.styles.length||Ze!=Gt&&(!Ze||!Gt||Ze.bgClass!=Gt.bgClass||Ze.textClass!=Gt.textClass),Tn=0;!st&&Tn<ne.length;++Tn)st=ne[Tn]!=H.styles[Tn];st&&w.push(y.line),H.stateAfter=y.save(),y.nextLine()}else H.text.length<=s.options.maxHighlightLength&&Kt(s,H.text,y),H.stateAfter=y.line%5==0?y.save():null,y.nextLine();if(+new Date>b)return zn(s,s.options.workDelay),!0}),c.highlightFrontier=y.line,c.modeFrontier=Math.max(c.modeFrontier,y.line),w.length&&Ot(s,function(){for(var H=0;H<w.length;H++)lo(s,w[H],"text")})}}var Gn=function(s,c,b){var y=s.display;this.viewport=c,this.visible=To(y,s.doc,c),this.editorIsHidden=!y.wrapper.offsetWidth,this.wrapperHeight=y.wrapper.clientHeight,this.wrapperWidth=y.wrapper.clientWidth,this.oldDisplayWidth=Oa(s),this.force=b,this.dims=Xu(s),this.events=[]};Gn.prototype.signal=function(s,c){nn(s,c)&&this.events.push(arguments)},Gn.prototype.finish=function(){for(var s=0;s<this.events.length;s++)Qe.apply(null,this.events[s])};function yi(s){var c=s.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=Xa(s)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=Xa(s)+"px",c.scrollbarsClipped=!0)}function bi(s){if(s.hasFocus())return null;var c=We();if(!c||!lt(s.display.lineDiv,c))return null;var b={activeElt:c};if(window.getSelection){var y=window.getSelection();y.anchorNode&&y.extend&<(s.display.lineDiv,y.anchorNode)&&(b.anchorNode=y.anchorNode,b.anchorOffset=y.anchorOffset,b.focusNode=y.focusNode,b.focusOffset=y.focusOffset)}return b}function ti(s){if(!(!s||!s.activeElt||s.activeElt==We())&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&<(document.body,s.anchorNode)&<(document.body,s.focusNode))){var c=window.getSelection(),b=document.createRange();b.setEnd(s.anchorNode,s.anchorOffset),b.collapse(!1),c.removeAllRanges(),c.addRange(b),c.extend(s.focusNode,s.focusOffset)}}function ji(s,c){var b=s.display,y=s.doc;if(c.editorIsHidden)return Ha(s),!1;if(!c.force&&c.visible.from>=b.viewFrom&&c.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&Ks(s)==0)return!1;fe(s)&&(Ha(s),c.dims=Xu(s));var w=y.first+y.size,H=Math.max(c.visible.from-s.options.viewportMargin,y.first),ne=Math.min(w,c.visible.to+s.options.viewportMargin);b.viewFrom<H&&H-b.viewFrom<20&&(H=Math.max(y.first,b.viewFrom)),b.viewTo>ne&&b.viewTo-ne<20&&(ne=Math.min(w,b.viewTo)),Xt&&(H=io(s.doc,H),ne=bo(s.doc,ne));var Se=H!=b.viewFrom||ne!=b.viewTo||b.lastWrapHeight!=c.wrapperHeight||b.lastWrapWidth!=c.wrapperWidth;la(s,H,ne),b.viewOffset=Wo(vn(s.doc,b.viewFrom)),s.display.mover.style.top=b.viewOffset+"px";var ve=Ks(s);if(!Se&&ve==0&&!c.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var Ze=bi(s);return ve>4&&(b.lineDiv.style.display="none"),E(s,b.updateLineNumbers,c.dims),ve>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,ti(Ze),Ie(b.cursorDiv),Ie(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,Se&&(b.lastWrapHeight=c.wrapperHeight,b.lastWrapWidth=c.wrapperWidth,zn(s,400)),b.updateLineNumbers=null,!0}function ci(s,c){for(var b=c.viewport,y=!0;;y=!1){if(!y||!s.options.lineWrapping||c.oldDisplayWidth==Oa(s)){if(b&&b.top!=null&&(b={top:Math.min(s.doc.height+os(s.display)-ml(s),b.top)}),c.visible=To(s.display,s.doc,b),c.visible.from>=s.display.viewFrom&&c.visible.to<=s.display.viewTo)break}else y&&(c.visible=To(s.display,s.doc,b));if(!ji(s,c))break;Ir(s);var w=Js(s);ss(s),fu(s,w),W(s,w),c.force=!1}c.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(c.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function Gi(s,c){var b=new Gn(s,c);if(ji(s,b)){Ir(s),ci(s,b);var y=Js(s);ss(s),fu(s,y),W(s,y),b.finish()}}function E(s,c,b){var y=s.display,w=s.options.lineNumbers,H=y.lineDiv,ne=H.firstChild;function Se(fi){var xi=fi.nextSibling;return M&&Re&&s.display.currentWheelTarget==fi?fi.style.display="none":fi.parentNode.removeChild(fi),xi}for(var ve=y.view,Ze=y.viewFrom,Gt=0;Gt<ve.length;Gt++){var st=ve[Gt];if(!st.hidden)if(!st.node||st.node.parentNode!=H){var Tn=Yo(s,st,Ze,b);H.insertBefore(Tn,ne)}else{for(;ne!=st.node;)ne=Se(ne);var xn=w&&c!=null&&c<=Ze&&st.lineNumber;st.changes&&(le(st.changes,"gutter")>-1&&(xn=!1),ma(s,st,Ze,b)),xn&&(Ie(st.lineNumber),st.lineNumber.appendChild(document.createTextNode(jn(s.options,Ze)))),ne=st.node.nextSibling}Ze+=st.size}for(;ne;)ne=Se(ne)}function _(s){var c=s.gutters.offsetWidth;s.sizer.style.marginLeft=c+"px"}function W(s,c){s.display.sizer.style.minHeight=c.docHeight+"px",s.display.heightForcer.style.top=c.docHeight+"px",s.display.gutters.style.height=c.docHeight+s.display.barHeight+Xa(s)+"px"}function q(s){var c=s.display,b=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!s.options.fixedGutter))){for(var y=cu(c)-c.scroller.scrollLeft+s.doc.scrollLeft,w=c.gutters.offsetWidth,H=y+"px",ne=0;ne<b.length;ne++)if(!b[ne].hidden){s.options.fixedGutter&&(b[ne].gutter&&(b[ne].gutter.style.left=H),b[ne].gutterBackground&&(b[ne].gutterBackground.style.left=H));var Se=b[ne].alignable;if(Se)for(var ve=0;ve<Se.length;ve++)Se[ve].style.left=H}s.options.fixedGutter&&(c.gutters.style.left=y+w+"px")}}function fe(s){if(!s.options.lineNumbers)return!1;var c=s.doc,b=jn(s.options,c.first+c.size-1),y=s.display;if(b.length!=y.lineNumChars){var w=y.measure.appendChild(Xe("div",[Xe("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),H=w.firstChild.offsetWidth,ne=w.offsetWidth-H;return y.lineGutter.style.width="",y.lineNumInnerWidth=Math.max(H,y.lineGutter.offsetWidth-ne)+1,y.lineNumWidth=y.lineNumInnerWidth+ne,y.lineNumChars=y.lineNumInnerWidth?b.length:-1,y.lineGutter.style.width=y.lineNumWidth+"px",_(s.display),!0}return!1}function Ce(s,c){for(var b=[],y=!1,w=0;w<s.length;w++){var H=s[w],ne=null;if(typeof H!="string"&&(ne=H.style,H=H.className),H=="CodeMirror-linenumbers")if(c)y=!0;else continue;b.push({className:H,style:ne})}return c&&!y&&b.push({className:"CodeMirror-linenumbers",style:null}),b}function $e(s){var c=s.gutters,b=s.gutterSpecs;Ie(c),s.lineGutter=null;for(var y=0;y<b.length;++y){var w=b[y],H=w.className,ne=w.style,Se=c.appendChild(Xe("div",null,"CodeMirror-gutter "+H));ne&&(Se.style.cssText=ne),H=="CodeMirror-linenumbers"&&(s.lineGutter=Se,Se.style.width=(s.lineNumWidth||1)+"px")}c.style.display=b.length?"":"none",_(s)}function it(s){$e(s.display),So(s),q(s)}function jt(s,c,b,y){var w=this;this.input=b,w.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=Ye("div",null,"CodeMirror-code"),w.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=Xe("div",null,"CodeMirror-cursors"),w.measure=Xe("div",null,"CodeMirror-measure"),w.lineMeasure=Xe("div",null,"CodeMirror-measure"),w.lineSpace=Ye("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var H=Ye("div",[w.lineSpace],"CodeMirror-lines");w.mover=Xe("div",[H],null,"position: relative"),w.sizer=Xe("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=Xe("div",null,null,"position: absolute; height: "+$t+"px; width: 1px;"),w.gutters=Xe("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=Xe("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=Xe("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),G&&F<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!M&&!(v&&Ae)&&(w.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(w.wrapper):s(w.wrapper)),w.viewFrom=w.viewTo=c.first,w.reportedViewFrom=w.reportedViewTo=c.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=Ce(y.gutters,y.lineNumbers),$e(w),b.init(w)}var Lt=0,dt=null;G?dt=-.53:v?dt=15:ue?dt=-.7:Me&&(dt=-1/3);function Yt(s){var c=s.wheelDeltaX,b=s.wheelDeltaY;return c==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(c=s.detail),b==null&&s.detail&&s.axis==s.VERTICAL_AXIS?b=s.detail:b==null&&(b=s.wheelDelta),{x:c,y:b}}function qt(s){var c=Yt(s);return c.x*=dt,c.y*=dt,c}function zt(s,c){var b=Yt(c),y=b.x,w=b.y,H=s.display,ne=H.scroller,Se=ne.scrollWidth>ne.clientWidth,ve=ne.scrollHeight>ne.clientHeight;if(y&&Se||w&&ve){if(w&&Re&&M){e:for(var Ze=c.target,Gt=H.view;Ze!=ne;Ze=Ze.parentNode)for(var st=0;st<Gt.length;st++)if(Gt[st].node==Ze){s.display.currentWheelTarget=Ze;break e}}if(y&&!v&&!te&&dt!=null){w&&ve&&tu(s,Math.max(0,ne.scrollTop+w*dt)),yl(s,Math.max(0,ne.scrollLeft+y*dt)),(!w||w&&ve)&&Bn(c),H.wheelStartX=null;return}if(w&&dt!=null){var Tn=w*dt,xn=s.doc.scrollTop,fi=xn+H.wrapper.clientHeight;Tn<0?xn=Math.max(0,xn+Tn-50):fi=Math.min(s.doc.height,fi+Tn+50),Gi(s,{top:xn,bottom:fi})}Lt<20&&(H.wheelStartX==null?(H.wheelStartX=ne.scrollLeft,H.wheelStartY=ne.scrollTop,H.wheelDX=y,H.wheelDY=w,setTimeout(function(){if(H.wheelStartX!=null){var xi=ne.scrollLeft-H.wheelStartX,Fi=ne.scrollTop-H.wheelStartY,or=Fi&&H.wheelDY&&Fi/H.wheelDY||xi&&H.wheelDX&&xi/H.wheelDX;H.wheelStartX=H.wheelStartY=null,or&&(dt=(dt*Lt+or)/(Lt+1),++Lt)}},200)):(H.wheelDX+=y,H.wheelDY+=w))}}var Si=function(s,c){this.ranges=s,this.primIndex=c};Si.prototype.primary=function(){return this.ranges[this.primIndex]},Si.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var b=this.ranges[c],y=s.ranges[c];if(!yt(b.anchor,y.anchor)||!yt(b.head,y.head))return!1}return!0},Si.prototype.deepCopy=function(){for(var s=[],c=0;c<this.ranges.length;c++)s[c]=new li(Ge(this.ranges[c].anchor),Ge(this.ranges[c].head));return new Si(s,this.primIndex)},Si.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Si.prototype.contains=function(s,c){c||(c=s);for(var b=0;b<this.ranges.length;b++){var y=this.ranges[b];if(hn(c,y.from())>=0&&hn(s,y.to())<=0)return b}return-1};var li=function(s,c){this.anchor=s,this.head=c};li.prototype.from=function(){return Dt(this.anchor,this.head)},li.prototype.to=function(){return L(this.anchor,this.head)},li.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function lr(s,c,b){var y=s&&s.options.selectionsMayTouch,w=c[b];c.sort(function(Tn,xn){return hn(Tn.from(),xn.from())}),b=le(c,w);for(var H=1;H<c.length;H++){var ne=c[H],Se=c[H-1],ve=hn(Se.to(),ne.from());if(y&&!ne.empty()?ve>0:ve>=0){var Ze=Dt(Se.from(),ne.from()),Gt=L(Se.to(),ne.to()),st=Se.empty()?ne.from()==ne.head:Se.from()==Se.head;H<=b&&--b,c.splice(--H,2,new li(st?Gt:Ze,st?Ze:Gt))}}return new Si(c,b)}function Ni(s,c){return new Si([new li(s,c||s)],0)}function Mr(s){return s.text?at(s.from.line+s.text.length-1,Jn(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function Zi(s,c){if(hn(s,c.from)<0)return s;if(hn(s,c.to)<=0)return Mr(c);var b=s.line+c.text.length-(c.to.line-c.from.line)-1,y=s.ch;return s.line==c.to.line&&(y+=Mr(c).ch-c.to.ch),at(b,y)}function oo(s,c){for(var b=[],y=0;y<s.sel.ranges.length;y++){var w=s.sel.ranges[y];b.push(new li(Zi(w.anchor,c),Zi(w.head,c)))}return lr(s.cm,b,s.sel.primIndex)}function uo(s,c,b){return s.line==c.line?at(b.line,s.ch-c.ch+b.ch):at(b.line+(s.line-c.line),s.ch)}function ii(s,c,b){for(var y=[],w=at(s.first,0),H=w,ne=0;ne<c.length;ne++){var Se=c[ne],ve=uo(Se.from,w,H),Ze=uo(Mr(Se),w,H);if(w=Se.to,H=Ze,b=="around"){var Gt=s.sel.ranges[ne],st=hn(Gt.head,Gt.anchor)<0;y[ne]=new li(st?Ze:ve,st?ve:Ze)}else y[ne]=new li(ve,ve)}return new Si(y,s.sel.primIndex)}function qi(s){s.doc.mode=Ji(s.options,s.doc.modeOption),Qr(s)}function Qr(s){s.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,zn(s,100),s.state.modeGen++,s.curOp&&So(s)}function qr(s,c){return c.from.ch==0&&c.to.ch==0&&Jn(c.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function no(s,c,b,y){function w(Pr){return b?b[Pr]:null}function H(Pr,Sr,$r){ns(Pr,Sr,$r,y),vi(Pr,"change",Pr,c)}function ne(Pr,Sr){for(var $r=[],vo=Pr;vo<Sr;++vo)$r.push(new Ya(Ze[vo],w(vo),y));return $r}var Se=c.from,ve=c.to,Ze=c.text,Gt=vn(s,Se.line),st=vn(s,ve.line),Tn=Jn(Ze),xn=w(Ze.length-1),fi=ve.line-Se.line;if(c.full)s.insert(0,ne(0,Ze.length)),s.remove(Ze.length,s.size-Ze.length);else if(qr(s,c)){var xi=ne(0,Ze.length-1);H(st,st.text,xn),fi&&s.remove(Se.line,fi),xi.length&&s.insert(Se.line,xi)}else if(Gt==st)if(Ze.length==1)H(Gt,Gt.text.slice(0,Se.ch)+Tn+Gt.text.slice(ve.ch),xn);else{var Fi=ne(1,Ze.length-1);Fi.push(new Ya(Tn+Gt.text.slice(ve.ch),xn,y)),H(Gt,Gt.text.slice(0,Se.ch)+Ze[0],w(0)),s.insert(Se.line+1,Fi)}else if(Ze.length==1)H(Gt,Gt.text.slice(0,Se.ch)+Ze[0]+st.text.slice(ve.ch),w(0)),s.remove(Se.line+1,fi);else{H(Gt,Gt.text.slice(0,Se.ch)+Ze[0],w(0)),H(st,Tn+st.text.slice(ve.ch),xn);var or=ne(1,Ze.length-1);fi>1&&s.remove(Se.line+1,fi-1),s.insert(Se.line+1,or)}vi(s,"change",s,c)}function Mo(s,c,b){function y(w,H,ne){if(w.linked)for(var Se=0;Se<w.linked.length;++Se){var ve=w.linked[Se];if(ve.doc!=H){var Ze=ne&&ve.sharedHist;b&&!Ze||(c(ve.doc,Ze),y(ve.doc,w,Ze))}}}y(s,null,!0)}function ir(s,c){if(c.cm)throw new Error("This document is already in use.");s.doc=c,c.cm=s,Or(s),qi(s),Mi(s),s.options.lineWrapping||Ta(s),s.options.mode=c.modeOption,So(s)}function Mi(s){(s.doc.direction=="rtl"?Pt:Ne)(s.display.lineDiv,"CodeMirror-rtl")}function Yi(s){Ot(s,function(){Mi(s),So(s)})}function Pi(s){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=s||1}function Zr(s,c){var b={from:Ge(c.from),to:Mr(c),text:Nn(s,c.from,c.to)};return En(s,b,c.from.line,c.to.line+1),Mo(s,function(y){return En(y,b,c.from.line,c.to.line+1)},!0),b}function Xi(s){for(;s.length;){var c=Jn(s);if(c.ranges)s.pop();else break}}function Br(s,c){if(c)return Xi(s.done),Jn(s.done);if(s.done.length&&!Jn(s.done).ranges)return Jn(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Jn(s.done)}function co(s,c,b,y){var w=s.history;w.undone.length=0;var H=+new Date,ne,Se;if((w.lastOp==y||w.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&w.lastModTime>H-(s.cm?s.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(ne=Br(w,w.lastOp==y)))Se=Jn(ne.changes),hn(c.from,c.to)==0&&hn(c.from,Se.to)==0?Se.to=Mr(c):ne.changes.push(Zr(s,c));else{var ve=Jn(w.done);for((!ve||!ve.ranges)&&ya(s.sel,w.done),ne={changes:[Zr(s,c)],generation:w.generation},w.done.push(ne);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(b),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=H,w.lastOp=w.lastSelOp=y,w.lastOrigin=w.lastSelOrigin=c.origin,Se||Qe(s,"historyAdded")}function rn(s,c,b,y){var w=c.charAt(0);return w=="*"||w=="+"&&b.ranges.length==y.ranges.length&&b.somethingSelected()==y.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function va(s,c,b,y){var w=s.history,H=y&&y.origin;b==w.lastSelOp||H&&w.lastSelOrigin==H&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==H||rn(s,H,Jn(w.done),c))?w.done[w.done.length-1]=c:ya(c,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=H,w.lastSelOp=b,y&&y.clearRedo!==!1&&Xi(w.undone)}function ya(s,c){var b=Jn(c);b&&b.ranges&&b.equals(s)||c.push(s)}function En(s,c,b,y){var w=c["spans_"+s.id],H=0;s.iter(Math.max(s.first,b),Math.min(s.first+s.size,y),function(ne){ne.markedSpans&&((w||(w=c["spans_"+s.id]={}))[H]=ne.markedSpans),++H})}function go(s){if(!s)return null;for(var c,b=0;b<s.length;++b)s[b].marker.explicitlyCleared?c||(c=s.slice(0,b)):c&&c.push(s[b]);return c?c.length?c:null:s}function _a(s,c){var b=c["spans_"+s.id];if(!b)return null;for(var y=[],w=0;w<c.text.length;++w)y.push(go(b[w]));return y}function ua(s,c){var b=_a(s,c),y=wi(s,c);if(!b)return y;if(!y)return b;for(var w=0;w<b.length;++w){var H=b[w],ne=y[w];if(H&&ne)e:for(var Se=0;Se<ne.length;++Se){for(var ve=ne[Se],Ze=0;Ze<H.length;++Ze)if(H[Ze].marker==ve.marker)continue e;H.push(ve)}else ne&&(b[w]=ne)}return b}function za(s,c,b){for(var y=[],w=0;w<s.length;++w){var H=s[w];if(H.ranges){y.push(b?Si.prototype.deepCopy.call(H):H);continue}var ne=H.changes,Se=[];y.push({changes:Se});for(var ve=0;ve<ne.length;++ve){var Ze=ne[ve],Gt=void 0;if(Se.push({from:Ze.from,to:Ze.to,text:Ze.text}),c)for(var st in Ze)(Gt=st.match(/^spans_(\d+)$/))&&le(c,Number(Gt[1]))>-1&&(Jn(Se)[st]=Ze[st],delete Ze[st])}}return y}function $a(s,c,b,y){if(y){var w=s.anchor;if(b){var H=hn(c,w)<0;H!=hn(b,w)<0?(w=c,c=b):H!=hn(c,b)<0&&(c=b)}return new li(w,c)}else return new li(b||c,c)}function Do(s,c,b,y,w){w==null&&(w=s.cm&&(s.cm.display.shift||s.extend)),g(s,new Si([$a(s.sel.primary(),c,b,w)],0),y)}function No(s,c,b){for(var y=[],w=s.cm&&(s.cm.display.shift||s.extend),H=0;H<s.sel.ranges.length;H++)y[H]=$a(s.sel.ranges[H],c[H],null,w);var ne=lr(s.cm,y,s.sel.primIndex);g(s,ne,b)}function Oo(s,c,b,y){var w=s.sel.ranges.slice(0);w[c]=b,g(s,lr(s.cm,w,s.sel.primIndex),y)}function ra(s,c,b,y){g(s,Ni(c,b),y)}function ja(s,c,b){var y={ranges:c.ranges,update:function(w){this.ranges=[];for(var H=0;H<w.length;H++)this.ranges[H]=new li(gt(s,w[H].anchor),gt(s,w[H].head))},origin:b&&b.origin};return Qe(s,"beforeSelectionChange",s,y),s.cm&&Qe(s.cm,"beforeSelectionChange",s.cm,y),y.ranges!=c.ranges?lr(s.cm,y.ranges,y.ranges.length-1):c}function d(s,c,b){var y=s.history.done,w=Jn(y);w&&w.ranges?(y[y.length-1]=c,K(s,c,b)):g(s,c,b)}function g(s,c,b){K(s,c,b),va(s,s.sel,s.cm?s.cm.curOp.id:NaN,b)}function K(s,c,b){(nn(s,"beforeSelectionChange")||s.cm&&nn(s.cm,"beforeSelectionChange"))&&(c=ja(s,c,b));var y=b&&b.bias||(hn(c.primary().head,s.sel.primary().head)<0?-1:1);nt(s,Yn(s,c,y,!0)),!(b&&b.scroll===!1)&&s.cm&&Xs(s.cm)}function nt(s,c){c.equals(s.sel)||(s.sel=c,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,tn(s.cm)),vi(s,"cursorActivity",s))}function mn(s){nt(s,Yn(s,s.sel,null,!1))}function Yn(s,c,b,y){for(var w,H=0;H<c.ranges.length;H++){var ne=c.ranges[H],Se=c.ranges.length==s.sel.ranges.length&&s.sel.ranges[H],ve=wr(s,ne.anchor,Se&&Se.anchor,b,y),Ze=wr(s,ne.head,Se&&Se.head,b,y);(w||ve!=ne.anchor||Ze!=ne.head)&&(w||(w=c.ranges.slice(0,H)),w[H]=new li(ve,Ze))}return w?lr(s.cm,w,c.primIndex):c}function Ci(s,c,b,y,w){var H=vn(s,c.line);if(H.markedSpans)for(var ne=0;ne<H.markedSpans.length;++ne){var Se=H.markedSpans[ne],ve=Se.marker,Ze="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,Gt="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((Se.from==null||(Ze?Se.from<=c.ch:Se.from<c.ch))&&(Se.to==null||(Gt?Se.to>=c.ch:Se.to>c.ch))){if(w&&(Qe(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(H.markedSpans){--ne;continue}else break;if(!ve.atomic)continue;if(b){var st=ve.find(y<0?1:-1),Tn=void 0;if((y<0?Gt:Ze)&&(st=zr(s,st,-y,st&&st.line==c.line?H:null)),st&&st.line==c.line&&(Tn=hn(st,b))&&(y<0?Tn<0:Tn>0))return Ci(s,st,c,y,w)}var xn=ve.find(y<0?-1:1);return(y<0?Ze:Gt)&&(xn=zr(s,xn,y,xn.line==c.line?H:null)),xn?Ci(s,xn,c,y,w):null}}return c}function wr(s,c,b,y,w){var H=y||1,ne=Ci(s,c,b,H,w)||!w&&Ci(s,c,b,H,!0)||Ci(s,c,b,-H,w)||!w&&Ci(s,c,b,-H,!0);return ne||(s.cantEdit=!0,at(s.first,0))}function zr(s,c,b,y){return b<0&&c.ch==0?c.line>s.first?gt(s,at(c.line-1)):null:b>0&&c.ch==(y||vn(s,c.line)).text.length?c.line<s.first+s.size-1?at(c.line+1,0):null:new at(c.line,c.ch+b)}function Yr(s){s.setSelection(at(s.firstLine(),0),at(s.lastLine()),St)}function Ra(s,c,b){var y={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return y.canceled=!0}};return b&&(y.update=function(w,H,ne,Se){w&&(y.from=gt(s,w)),H&&(y.to=gt(s,H)),ne&&(y.text=ne),Se!==void 0&&(y.origin=Se)}),Qe(s,"beforeChange",s,y),s.cm&&Qe(s.cm,"beforeChange",s.cm,y),y.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:y.from,to:y.to,text:y.text,origin:y.origin}}function ba(s,c,b){if(s.cm){if(!s.cm.curOp)return ge(s.cm,ba)(s,c,b);if(s.cm.state.suppressEdits)return}if(!((nn(s,"beforeChange")||s.cm&&nn(s.cm,"beforeChange"))&&(c=Ra(s,c,!0),!c))){var y=_i&&!b&&ar(s,c.from,c.to);if(y)for(var w=y.length-1;w>=0;--w)ri(s,{from:y[w].from,to:y[w].to,text:w?[""]:c.text,origin:c.origin});else ri(s,c)}}function ri(s,c){if(!(c.text.length==1&&c.text[0]==""&&hn(c.from,c.to)==0)){var b=oo(s,c);co(s,c,b,s.cm?s.cm.curOp.id:NaN),Lo(s,c,b,wi(s,c));var y=[];Mo(s,function(w,H){!H&&le(y,w.history)==-1&&(ca(w.history,c),y.push(w.history)),Lo(w,c,null,wi(w,c))})}}function rr(s,c,b){var y=s.cm&&s.cm.state.suppressEdits;if(!(y&&!b)){for(var w=s.history,H,ne=s.sel,Se=c=="undo"?w.done:w.undone,ve=c=="undo"?w.undone:w.done,Ze=0;Ze<Se.length&&(H=Se[Ze],!(b?H.ranges&&!H.equals(s.sel):!H.ranges));Ze++);if(Ze!=Se.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(H=Se.pop(),H.ranges){if(ya(H,ve),b&&!H.equals(s.sel)){g(s,H,{clearRedo:!1});return}ne=H}else if(y){Se.push(H);return}else break;var Gt=[];ya(ne,ve),ve.push({changes:Gt,generation:w.generation}),w.generation=H.generation||++w.maxGeneration;for(var st=nn(s,"beforeChange")||s.cm&&nn(s.cm,"beforeChange"),Tn=function(xi){var Fi=H.changes[xi];if(Fi.origin=c,st&&!Ra(s,Fi,!1))return Se.length=0,{};Gt.push(Zr(s,Fi));var or=xi?oo(s,Fi):Jn(Se);Lo(s,Fi,or,ua(s,Fi)),!xi&&s.cm&&s.cm.scrollIntoView({from:Fi.from,to:Mr(Fi)});var Pr=[];Mo(s,function(Sr,$r){!$r&&le(Pr,Sr.history)==-1&&(ca(Sr.history,Fi),Pr.push(Sr.history)),Lo(Sr,Fi,null,ua(Sr,Fi))})},xn=H.changes.length-1;xn>=0;--xn){var fi=Tn(xn);if(fi)return fi.v}}}}function xo(s,c){if(c!=0&&(s.first+=c,s.sel=new Si(In(s.sel.ranges,function(w){return new li(at(w.anchor.line+c,w.anchor.ch),at(w.head.line+c,w.head.ch))}),s.sel.primIndex),s.cm)){So(s.cm,s.first,s.first-c,c);for(var b=s.cm.display,y=b.viewFrom;y<b.viewTo;y++)lo(s.cm,y,"gutter")}}function Lo(s,c,b,y){if(s.cm&&!s.cm.curOp)return ge(s.cm,Lo)(s,c,b,y);if(c.to.line<s.first){xo(s,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>s.lastLine())){if(c.from.line<s.first){var w=c.text.length-1-(s.first-c.from.line);xo(s,w),c={from:at(s.first,0),to:at(c.to.line+w,c.to.ch),text:[Jn(c.text)],origin:c.origin}}var H=s.lastLine();c.to.line>H&&(c={from:c.from,to:at(H,vn(s,H).text.length),text:[c.text[0]],origin:c.origin}),c.removed=Nn(s,c.from,c.to),b||(b=oo(s,c)),s.cm?oa(s.cm,c,y):no(s,c,y),K(s,b,St),s.cantEdit&&wr(s,at(s.firstLine(),0))&&(s.cantEdit=!1)}}function oa(s,c,b){var y=s.doc,w=s.display,H=c.from,ne=c.to,Se=!1,ve=H.line;s.options.lineWrapping||(ve=Ke(Di(vn(y,H.line))),y.iter(ve,ne.line+1,function(xn){if(xn==w.maxLine)return Se=!0,!0})),y.sel.contains(c.from,c.to)>-1&&tn(s),no(y,c,b,Ia(s)),s.options.lineWrapping||(y.iter(ve,H.line+c.text.length,function(xn){var fi=Jo(xn);fi>w.maxLineLength&&(w.maxLine=xn,w.maxLineLength=fi,w.maxLineChanged=!0,Se=!1)}),Se&&(s.curOp.updateMaxLine=!0)),Rn(y,H.line),zn(s,400);var Ze=c.text.length-(ne.line-H.line)-1;c.full?So(s):H.line==ne.line&&c.text.length==1&&!qr(s.doc,c)?lo(s,H.line,"text"):So(s,H.line,ne.line+1,Ze);var Gt=nn(s,"changes"),st=nn(s,"change");if(st||Gt){var Tn={from:H,to:ne,text:c.text,removed:c.removed,origin:c.origin};st&&vi(s,"change",s,Tn),Gt&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(Tn)}s.display.selForContextMenu=null}function ws(s,c,b,y,w){var H;y||(y=b),hn(y,b)<0&&(H=[y,b],b=H[0],y=H[1]),typeof c=="string"&&(c=s.splitLines(c)),ba(s,{from:b,to:y,text:c,origin:w})}function ys(s,c,b,y){b<s.line?s.line+=y:c<s.line&&(s.line=c,s.ch=0)}function wo(s,c,b,y){for(var w=0;w<s.length;++w){var H=s[w],ne=!0;if(H.ranges){H.copied||(H=s[w]=H.deepCopy(),H.copied=!0);for(var Se=0;Se<H.ranges.length;Se++)ys(H.ranges[Se].anchor,c,b,y),ys(H.ranges[Se].head,c,b,y);continue}for(var ve=0;ve<H.changes.length;++ve){var Ze=H.changes[ve];if(b<Ze.from.line)Ze.from=at(Ze.from.line+y,Ze.from.ch),Ze.to=at(Ze.to.line+y,Ze.to.ch);else if(c<=Ze.to.line){ne=!1;break}}ne||(s.splice(0,w+1),w=0)}}function ca(s,c){var b=c.from.line,y=c.to.line,w=c.text.length-(y-b)-1;wo(s.done,b,y,w),wo(s.undone,b,y,w)}function Ga(s,c,b,y){var w=c,H=c;return typeof c=="number"?H=vn(s,Jt(s,c)):w=Ke(c),w==null?null:(y(H,w)&&s.cm&&lo(s.cm,w,b),H)}function N(s){this.lines=s,this.parent=null;for(var c=0,b=0;b<s.length;++b)s[b].parent=this,c+=s[b].height;this.height=c}N.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,c){for(var b=s,y=s+c;b<y;++b){var w=this.lines[b];this.height-=w.height,Na(w),vi(w,"delete")}this.lines.splice(s,c)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,c,b){this.height+=b,this.lines=this.lines.slice(0,s).concat(c).concat(this.lines.slice(s));for(var y=0;y<c.length;++y)c[y].parent=this},iterN:function(s,c,b){for(var y=s+c;s<y;++s)if(b(this.lines[s]))return!0}};function m(s){this.children=s;for(var c=0,b=0,y=0;y<s.length;++y){var w=s[y];c+=w.chunkSize(),b+=w.height,w.parent=this}this.size=c,this.height=b,this.parent=null}m.prototype={chunkSize:function(){return this.size},removeInner:function(s,c){this.size-=c;for(var b=0;b<this.children.length;++b){var y=this.children[b],w=y.chunkSize();if(s<w){var H=Math.min(c,w-s),ne=y.height;if(y.removeInner(s,H),this.height-=ne-y.height,w==H&&(this.children.splice(b--,1),y.parent=null),(c-=H)==0)break;s=0}else s-=w}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof N))){var Se=[];this.collapse(Se),this.children=[new N(Se)],this.children[0].parent=this}},collapse:function(s){for(var c=0;c<this.children.length;++c)this.children[c].collapse(s)},insertInner:function(s,c,b){this.size+=c.length,this.height+=b;for(var y=0;y<this.children.length;++y){var w=this.children[y],H=w.chunkSize();if(s<=H){if(w.insertInner(s,c,b),w.lines&&w.lines.length>50){for(var ne=w.lines.length%25+25,Se=ne;Se<w.lines.length;){var ve=new N(w.lines.slice(Se,Se+=25));w.height-=ve.height,this.children.splice(++y,0,ve),ve.parent=this}w.lines=w.lines.slice(0,ne),this.maybeSpill()}break}s-=H}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var c=s.children.splice(s.children.length-5,5),b=new m(c);if(s.parent){s.size-=b.size,s.height-=b.height;var w=le(s.parent.children,s);s.parent.children.splice(w+1,0,b)}else{var y=new m(s.children);y.parent=s,s.children=[y,b],s=y}b.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,c,b){for(var y=0;y<this.children.length;++y){var w=this.children[y],H=w.chunkSize();if(s<H){var ne=Math.min(c,H-s);if(w.iterN(s,ne,b))return!0;if((c-=ne)==0)break;s=0}else s-=H}}};var S=function(s,c,b){if(b)for(var y in b)b.hasOwnProperty(y)&&(this[y]=b[y]);this.doc=s,this.node=c};S.prototype.clear=function(){var s=this.doc.cm,c=this.line.widgets,b=this.line,y=Ke(b);if(!(y==null||!c)){for(var w=0;w<c.length;++w)c[w]==this&&c.splice(w--,1);c.length||(b.widgets=null);var H=Ds(this);Ct(b,Math.max(0,b.height-H)),s&&(Ot(s,function(){D(s,b,-H),lo(s,y,"widget")}),vi(s,"lineWidgetCleared",s,this,y))}},S.prototype.changed=function(){var s=this,c=this.height,b=this.doc.cm,y=this.line;this.height=null;var w=Ds(this)-c;w&&(mi(this.doc,y)||Ct(y,y.height+w),b&&Ot(b,function(){b.curOp.forceUpdate=!0,D(b,y,w),vi(b,"lineWidgetChanged",b,s,Ke(y))}))},He(S);function D(s,c,b){Wo(c)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&_u(s,b)}function Z(s,c,b,y){var w=new S(s,b,y),H=s.cm;return H&&w.noHScroll&&(H.display.alignWidgets=!0),Ga(s,c,"widget",function(ne){var Se=ne.widgets||(ne.widgets=[]);if(w.insertAt==null?Se.push(w):Se.splice(Math.min(Se.length-1,Math.max(0,w.insertAt)),0,w),w.line=ne,H&&!mi(s,ne)){var ve=Wo(ne)<s.scrollTop;Ct(ne,ne.height+Ds(w)),ve&&_u(H,w.height),H.curOp.forceUpdate=!0}return!0}),H&&vi(H,"lineWidgetAdded",H,w,typeof c=="number"?c:Ke(c)),w}var oe=0,Y=function(s,c){this.lines=[],this.type=c,this.doc=s,this.id=++oe};Y.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,c=s&&!s.curOp;if(c&&vs(s),nn(this,"clear")){var b=this.find();b&&vi(this,"clear",b.from,b.to)}for(var y=null,w=null,H=0;H<this.lines.length;++H){var ne=this.lines[H],Se=Gr(ne.markedSpans,this);s&&!this.collapsed?lo(s,Ke(ne),"text"):s&&(Se.to!=null&&(w=Ke(ne)),Se.from!=null&&(y=Ke(ne))),ne.markedSpans=At(ne.markedSpans,Se),Se.from==null&&this.collapsed&&!mi(this.doc,ne)&&s&&Ct(ne,Pl(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var Ze=Di(this.lines[ve]),Gt=Jo(Ze);Gt>s.display.maxLineLength&&(s.display.maxLine=Ze,s.display.maxLineLength=Gt,s.display.maxLineChanged=!0)}y!=null&&s&&this.collapsed&&So(s,y,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&mn(s.doc)),s&&vi(s,"markerCleared",s,this,y,w),c&&Vl(s),this.parent&&this.parent.clear()}},Y.prototype.find=function(s,c){s==null&&this.type=="bookmark"&&(s=1);for(var b,y,w=0;w<this.lines.length;++w){var H=this.lines[w],ne=Gr(H.markedSpans,this);if(ne.from!=null&&(b=at(c?H:Ke(H),ne.from),s==-1))return b;if(ne.to!=null&&(y=at(c?H:Ke(H),ne.to),s==1))return y}return b&&{from:b,to:y}},Y.prototype.changed=function(){var s=this,c=this.find(-1,!0),b=this,y=this.doc.cm;!c||!y||Ot(y,function(){var w=c.line,H=Ke(c.line),ne=as(y,H);if(ne&&(fa(ne),y.curOp.selectionChanged=y.curOp.forceUpdate=!0),y.curOp.updateMaxLine=!0,!mi(b.doc,w)&&b.height!=null){var Se=b.height;b.height=null;var ve=Ds(b)-Se;ve&&Ct(w,w.height+ve)}vi(y,"markerChanged",y,s)})},Y.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||le(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Y.prototype.detachLine=function(s){if(this.lines.splice(le(this.lines,s),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},He(Y);function ut(s,c,b,y,w){if(y&&y.shared)return bn(s,c,b,y,w);if(s.cm&&!s.cm.curOp)return ge(s.cm,ut)(s,c,b,y,w);var H=new Y(s,w),ne=hn(c,b);if(y&&wn(y,H,!1),ne>0||ne==0&&H.clearWhenEmpty!==!1)return H;if(H.replacedWith&&(H.collapsed=!0,H.widgetNode=Ye("span",[H.replacedWith],"CodeMirror-widget"),y.handleMouseEvents||H.widgetNode.setAttribute("cm-ignore-events","true"),y.insertLeft&&(H.widgetNode.insertLeft=!0)),H.collapsed){if(Ui(s,c.line,c,b,H)||c.line!=b.line&&Ui(s,b.line,c,b,H))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zt()}H.addToHistory&&co(s,{from:c,to:b,origin:"markText"},s.sel,NaN);var Se=c.line,ve=s.cm,Ze;if(s.iter(Se,b.line+1,function(st){ve&&H.collapsed&&!ve.options.lineWrapping&&Di(st)==ve.display.maxLine&&(Ze=!0),H.collapsed&&Se!=c.line&&Ct(st,0),eo(st,new Bi(H,Se==c.line?c.ch:null,Se==b.line?b.ch:null)),++Se}),H.collapsed&&s.iter(c.line,b.line+1,function(st){mi(s,st)&&Ct(st,0)}),H.clearOnEnter&&Bt(H,"beforeCursorEnter",function(){return H.clear()}),H.readOnly&&(Ei(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),H.collapsed&&(H.id=++oe,H.atomic=!0),ve){if(Ze&&(ve.curOp.updateMaxLine=!0),H.collapsed)So(ve,c.line,b.line+1);else if(H.className||H.startStyle||H.endStyle||H.css||H.attributes||H.title)for(var Gt=c.line;Gt<=b.line;Gt++)lo(ve,Gt,"text");H.atomic&&mn(ve.doc),vi(ve,"markerAdded",ve,H)}return H}var pt=function(s,c){this.markers=s,this.primary=c;for(var b=0;b<s.length;++b)s[b].parent=this};pt.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();vi(this,"clear")}},pt.prototype.find=function(s,c){return this.primary.find(s,c)},He(pt);function bn(s,c,b,y,w){y=wn(y),y.shared=!1;var H=[ut(s,c,b,y,w)],ne=H[0],Se=y.widgetNode;return Mo(s,function(ve){Se&&(y.widgetNode=Se.cloneNode(!0)),H.push(ut(ve,gt(ve,c),gt(ve,b),y,w));for(var Ze=0;Ze<ve.linked.length;++Ze)if(ve.linked[Ze].isParent)return;ne=Jn(H)}),new pt(H,ne)}function _n(s){return s.findMarks(at(s.first,0),s.clipPos(at(s.lastLine())),function(c){return c.parent})}function Qn(s,c){for(var b=0;b<c.length;b++){var y=c[b],w=y.find(),H=s.clipPos(w.from),ne=s.clipPos(w.to);if(hn(H,ne)){var Se=ut(s,H,ne,y.primary,y.primary.type);y.markers.push(Se),Se.parent=y}}}function ki(s){for(var c=function(y){var w=s[y],H=[w.primary.doc];Mo(w.primary.doc,function(ve){return H.push(ve)});for(var ne=0;ne<w.markers.length;ne++){var Se=w.markers[ne];le(H,Se.doc)==-1&&(Se.parent=null,w.markers.splice(ne--,1))}},b=0;b<s.length;b++)c(b)}var Ii=0,$i=function(s,c,b,y,w){if(!(this instanceof $i))return new $i(s,c,b,y,w);b==null&&(b=0),m.call(this,[new N([new Ya("",null)])]),this.first=b,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=b;var H=at(b,0);this.sel=Ni(H),this.history=new Pi(null),this.id=++Ii,this.modeOption=c,this.lineSep=y,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),no(this,{from:H,to:H,text:s}),g(this,Ni(H),St)};$i.prototype=P(m.prototype,{constructor:$i,iter:function(s,c,b){b?this.iterN(s-this.first,c-s,b):this.iterN(this.first,this.first+this.size,s)},insert:function(s,c){for(var b=0,y=0;y<c.length;++y)b+=c[y].height;this.insertInner(s-this.first,c,b)},remove:function(s,c){this.removeInner(s-this.first,c)},getValue:function(s){var c=on(this,this.first,this.first+this.size);return s===!1?c:c.join(s||this.lineSeparator())},setValue:ln(function(s){var c=at(this.first,0),b=this.first+this.size-1;ba(this,{from:c,to:at(b,vn(this,b).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),g(this,Ni(c),St)}),replaceRange:function(s,c,b,y){c=gt(this,c),b=b?gt(this,b):c,ws(this,s,c,b,y)},getRange:function(s,c,b){var y=Nn(this,gt(this,s),gt(this,c));return b===!1?y:y.join(b||this.lineSeparator())},getLine:function(s){var c=this.getLineHandle(s);return c&&c.text},getLineHandle:function(s){if(Rt(this,s))return vn(this,s)},getLineNumber:function(s){return Ke(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=vn(this,s)),Di(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return gt(this,s)},getCursor:function(s){var c=this.sel.primary(),b;return s==null||s=="head"?b=c.head:s=="anchor"?b=c.anchor:s=="end"||s=="to"||s===!1?b=c.to():b=c.from(),b},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ln(function(s,c,b){ra(this,gt(this,typeof s=="number"?at(s,c||0):s),null,b)}),setSelection:ln(function(s,c,b){ra(this,gt(this,s),gt(this,c||s),b)}),extendSelection:ln(function(s,c,b){Do(this,gt(this,s),c&>(this,c),b)}),extendSelections:ln(function(s,c){No(this,Cn(this,s),c)}),extendSelectionsBy:ln(function(s,c){var b=In(this.sel.ranges,s);No(this,Cn(this,b),c)}),setSelections:ln(function(s,c,b){if(s.length){for(var y=[],w=0;w<s.length;w++)y[w]=new li(gt(this,s[w].anchor),gt(this,s[w].head));c==null&&(c=Math.min(s.length-1,this.sel.primIndex)),g(this,lr(this.cm,y,c),b)}}),addSelection:ln(function(s,c,b){var y=this.sel.ranges.slice(0);y.push(new li(gt(this,s),gt(this,c||s))),g(this,lr(this.cm,y,y.length-1),b)}),getSelection:function(s){for(var c=this.sel.ranges,b,y=0;y<c.length;y++){var w=Nn(this,c[y].from(),c[y].to());b=b?b.concat(w):w}return s===!1?b:b.join(s||this.lineSeparator())},getSelections:function(s){for(var c=[],b=this.sel.ranges,y=0;y<b.length;y++){var w=Nn(this,b[y].from(),b[y].to());s!==!1&&(w=w.join(s||this.lineSeparator())),c[y]=w}return c},replaceSelection:function(s,c,b){for(var y=[],w=0;w<this.sel.ranges.length;w++)y[w]=s;this.replaceSelections(y,c,b||"+input")},replaceSelections:ln(function(s,c,b){for(var y=[],w=this.sel,H=0;H<w.ranges.length;H++){var ne=w.ranges[H];y[H]={from:ne.from(),to:ne.to(),text:this.splitLines(s[H]),origin:b}}for(var Se=c&&c!="end"&&ii(this,y,c),ve=y.length-1;ve>=0;ve--)ba(this,y[ve]);Se?d(this,Se):this.cm&&Xs(this.cm)}),undo:ln(function(){rr(this,"undo")}),redo:ln(function(){rr(this,"redo")}),undoSelection:ln(function(){rr(this,"undo",!0)}),redoSelection:ln(function(){rr(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,c=0,b=0,y=0;y<s.done.length;y++)s.done[y].ranges||++c;for(var w=0;w<s.undone.length;w++)s.undone[w].ranges||++b;return{undo:c,redo:b}},clearHistory:function(){var s=this;this.history=new Pi(this.history.maxGeneration),Mo(this,function(c){return c.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:za(this.history.done),undone:za(this.history.undone)}},setHistory:function(s){var c=this.history=new Pi(this.history.maxGeneration);c.done=za(s.done.slice(0),null,!0),c.undone=za(s.undone.slice(0),null,!0)},setGutterMarker:ln(function(s,c,b){return Ga(this,s,"gutter",function(y){var w=y.gutterMarkers||(y.gutterMarkers={});return w[c]=b,!b&&T(w)&&(y.gutterMarkers=null),!0})}),clearGutter:ln(function(s){var c=this;this.iter(function(b){b.gutterMarkers&&b.gutterMarkers[s]&&Ga(c,b,"gutter",function(){return b.gutterMarkers[s]=null,T(b.gutterMarkers)&&(b.gutterMarkers=null),!0})})}),lineInfo:function(s){var c;if(typeof s=="number"){if(!Rt(this,s)||(c=s,s=vn(this,s),!s))return null}else if(c=Ke(s),c==null)return null;return{line:c,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:ln(function(s,c,b){return Ga(this,s,c=="gutter"?"gutter":"class",function(y){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!y[w])y[w]=b;else{if(ee(b).test(y[w]))return!1;y[w]+=" "+b}return!0})}),removeLineClass:ln(function(s,c,b){return Ga(this,s,c=="gutter"?"gutter":"class",function(y){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",H=y[w];if(H)if(b==null)y[w]=null;else{var ne=H.match(ee(b));if(!ne)return!1;var Se=ne.index+ne[0].length;y[w]=H.slice(0,ne.index)+(!ne.index||Se==H.length?"":" ")+H.slice(Se)||null}else return!1;return!0})}),addLineWidget:ln(function(s,c,b){return Z(this,s,c,b)}),removeLineWidget:function(s){s.clear()},markText:function(s,c,b){return ut(this,gt(this,s),gt(this,c),b,b&&b.type||"range")},setBookmark:function(s,c){var b={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return s=gt(this,s),ut(this,s,s,b,"bookmark")},findMarksAt:function(s){s=gt(this,s);var c=[],b=vn(this,s.line).markedSpans;if(b)for(var y=0;y<b.length;++y){var w=b[y];(w.from==null||w.from<=s.ch)&&(w.to==null||w.to>=s.ch)&&c.push(w.marker.parent||w.marker)}return c},findMarks:function(s,c,b){s=gt(this,s),c=gt(this,c);var y=[],w=s.line;return this.iter(s.line,c.line+1,function(H){var ne=H.markedSpans;if(ne)for(var Se=0;Se<ne.length;Se++){var ve=ne[Se];!(ve.to!=null&&w==s.line&&s.ch>=ve.to||ve.from==null&&w!=s.line||ve.from!=null&&w==c.line&&ve.from>=c.ch)&&(!b||b(ve.marker))&&y.push(ve.marker.parent||ve.marker)}++w}),y},getAllMarks:function(){var s=[];return this.iter(function(c){var b=c.markedSpans;if(b)for(var y=0;y<b.length;++y)b[y].from!=null&&s.push(b[y].marker)}),s},posFromIndex:function(s){var c,b=this.first,y=this.lineSeparator().length;return this.iter(function(w){var H=w.text.length+y;if(H>s)return c=s,!0;s-=H,++b}),gt(this,at(b,c))},indexFromPos:function(s){s=gt(this,s);var c=s.ch;if(s.line<this.first||s.ch<0)return 0;var b=this.lineSeparator().length;return this.iter(this.first,s.line,function(y){c+=y.text.length+b}),c},copy:function(s){var c=new $i(on(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,s&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(s){s||(s={});var c=this.first,b=this.first+this.size;s.from!=null&&s.from>c&&(c=s.from),s.to!=null&&s.to<b&&(b=s.to);var y=new $i(on(this,c,b),s.mode||this.modeOption,c,this.lineSep,this.direction);return s.sharedHist&&(y.history=this.history),(this.linked||(this.linked=[])).push({doc:y,sharedHist:s.sharedHist}),y.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],Qn(y,_n(this)),y},unlinkDoc:function(s){if(s instanceof Ca&&(s=s.doc),this.linked)for(var c=0;c<this.linked.length;++c){var b=this.linked[c];if(b.doc==s){this.linked.splice(c,1),s.unlinkDoc(this),ki(_n(this));break}}if(s.history==this.history){var y=[s.id];Mo(s,function(w){return y.push(w.id)},!0),s.history=new Pi(null),s.history.done=za(this.history.done,y),s.history.undone=za(this.history.undone,y)}},iterLinkedDocs:function(s){Mo(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):tr(s)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ln(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(c){return c.order=null}),this.cm&&Yi(this.cm))})}),$i.prototype.eachLine=$i.prototype.iter;var Nr=0;function Ur(s){var c=this;if(Go(c),!(Ut(c,s)||Ps(c.display,s))){Bn(s),G&&(Nr=+new Date);var b=Fs(c,s,!0),y=s.dataTransfer.files;if(!(!b||c.isReadOnly()))if(y&&y.length&&window.FileReader&&window.File)for(var w=y.length,H=Array(w),ne=0,Se=function(){++ne==w&&ge(c,function(){b=gt(c.doc,b);var xn={from:b,to:b,text:c.doc.splitLines(H.filter(function(fi){return fi!=null}).join(c.doc.lineSeparator())),origin:"paste"};ba(c.doc,xn),d(c.doc,Ni(gt(c.doc,b),gt(c.doc,Mr(xn))))})()},ve=function(xn,fi){if(c.options.allowDropFileTypes&&le(c.options.allowDropFileTypes,xn.type)==-1){Se();return}var xi=new FileReader;xi.onerror=function(){return Se()},xi.onload=function(){var Fi=xi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fi)){Se();return}H[fi]=Fi,Se()},xi.readAsText(xn)},Ze=0;Ze<y.length;Ze++)ve(y[Ze],Ze);else{if(c.state.draggingText&&c.doc.sel.contains(b)>-1){c.state.draggingText(s),setTimeout(function(){return c.display.input.focus()},20);return}try{var Gt=s.dataTransfer.getData("Text");if(Gt){var st;if(c.state.draggingText&&!c.state.draggingText.copy&&(st=c.listSelections()),K(c.doc,Ni(b,b)),st)for(var Tn=0;Tn<st.length;++Tn)ws(c.doc,"",st[Tn].anchor,st[Tn].head,"drag");c.replaceSelection(Gt,"around","paste"),c.display.input.focus()}}catch(xn){}}}}function Hr(s,c){if(G&&(!s.state.draggingText||+new Date-Nr<100)){Ti(c);return}if(!(Ut(s,c)||Ps(s.display,c))&&(c.dataTransfer.setData("Text",s.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!Me)){var b=Xe("img",null,null,"position: fixed; left: 0; top: 0;");b.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",te&&(b.width=b.height=1,s.display.wrapper.appendChild(b),b._top=b.offsetTop),c.dataTransfer.setDragImage(b,0,0),te&&b.parentNode.removeChild(b)}}function Ao(s,c){var b=Fs(s,c);if(b){var y=document.createDocumentFragment();Bo(s,b,y),s.display.dragCursor||(s.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Pe(s.display.dragCursor,y)}}function Go(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function Da(s){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),b=[],y=0;y<c.length;y++){var w=c[y].CodeMirror;w&&b.push(w)}b.length&&b[0].operation(function(){for(var H=0;H<b.length;H++)s(b[H])})}}var na=!1;function Ko(){na||(pa(),na=!0)}function pa(){var s;Bt(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,Da(hs)},100))}),Bt(window,"blur",function(){return Da(du)})}function hs(s){var c=s.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,s.setSize()}for(var ha={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"},bl=0;bl<10;bl++)ha[bl+48]=ha[bl+96]=String(bl);for(var Us=65;Us<=90;Us++)ha[Us]=String.fromCharCode(Us);for(var ds=1;ds<=12;ds++)ha[ds+111]=ha[ds+63235]="F"+ds;var Is={};Is.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"},Is.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"},Is.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"},Is.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"]},Is.default=Re?Is.macDefault:Is.pcDefault;function ul(s){var c=s.split(/-(?!$)/);s=c[c.length-1];for(var b,y,w,H,ne=0;ne<c.length-1;ne++){var Se=c[ne];if(/^(cmd|meta|m)$/i.test(Se))H=!0;else if(/^a(lt)?$/i.test(Se))b=!0;else if(/^(c|ctrl|control)$/i.test(Se))y=!0;else if(/^s(hift)?$/i.test(Se))w=!0;else throw new Error("Unrecognized modifier name: "+Se)}return b&&(s="Alt-"+s),y&&(s="Ctrl-"+s),H&&(s="Cmd-"+s),w&&(s="Shift-"+s),s}function Kl(s){var c={};for(var b in s)if(s.hasOwnProperty(b)){var y=s[b];if(/^(name|fallthrough|(de|at)tach)$/.test(b))continue;if(y=="..."){delete s[b];continue}for(var w=In(b.split(" "),ul),H=0;H<w.length;H++){var ne=void 0,Se=void 0;H==w.length-1?(Se=w.join(" "),ne=y):(Se=w.slice(0,H+1).join(" "),ne="...");var ve=c[Se];if(!ve)c[Se]=ne;else if(ve!=ne)throw new Error("Inconsistent bindings for "+Se)}delete s[b]}for(var Ze in c)s[Ze]=c[Ze];return s}function _s(s,c,b,y){c=Fl(c);var w=c.call?c.call(s,y):c[s];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&b(w))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return _s(s,c.fallthrough,b,y);for(var H=0;H<c.fallthrough.length;H++){var ne=_s(s,c.fallthrough[H],b,y);if(ne)return ne}}}function Au(s){var c=typeof s=="string"?s:ha[s.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function ec(s,c,b){var y=s;return c.altKey&&y!="Alt"&&(s="Alt-"+s),(me?c.metaKey:c.ctrlKey)&&y!="Ctrl"&&(s="Ctrl-"+s),(me?c.ctrlKey:c.metaKey)&&y!="Mod"&&(s="Cmd-"+s),!b&&c.shiftKey&&y!="Shift"&&(s="Shift-"+s),s}function Pc(s,c){if(te&&s.keyCode==34&&s.char)return!1;var b=ha[s.keyCode];return b==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(b=s.code),ec(b,s,c))}function Fl(s){return typeof s=="string"?Is[s]:s}function bs(s,c){for(var b=s.doc.sel.ranges,y=[],w=0;w<b.length;w++){for(var H=c(b[w]);y.length&&hn(H.from,Jn(y).to)<=0;){var ne=y.pop();if(hn(ne.from,H.from)<0){H.from=ne.from;break}}y.push(H)}Ot(s,function(){for(var Se=y.length-1;Se>=0;Se--)ws(s.doc,"",y[Se].from,y[Se].to,"+delete");Xs(s)})}function Bl(s,c,b){var y=Ue(s.text,c+b,b);return y<0||y>s.text.length?null:y}function Qa(s,c,b){var y=Bl(s,c.ch,b);return y==null?null:new at(c.line,y,b<0?"after":"before")}function ea(s,c,b,y,w){if(s){c.doc.direction=="rtl"&&(w=-w);var H=an(b,c.doc.direction);if(H){var ne=w<0?Jn(H):H[0],Se=w<0==(ne.level==1),ve=Se?"after":"before",Ze;if(ne.level>0||c.doc.direction=="rtl"){var Gt=Fa(c,b);Ze=w<0?b.text.length-1:0;var st=Gs(c,Gt,Ze).top;Ze=Be(function(Tn){return Gs(c,Gt,Tn).top==st},w<0==(ne.level==1)?ne.from:ne.to-1,Ze),ve=="before"&&(Ze=Bl(b,Ze,1))}else Ze=w<0?ne.to:ne.from;return new at(y,Ze,ve)}}return new at(y,w<0?b.text.length:0,w<0?"before":"after")}function xa(s,c,b,y){var w=an(c,s.doc.direction);if(!w)return Qa(c,b,y);b.ch>=c.text.length?(b.ch=c.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var H=tt(w,b.ch,b.sticky),ne=w[H];if(s.doc.direction=="ltr"&&ne.level%2==0&&(y>0?ne.to>b.ch:ne.from<b.ch))return Qa(c,b,y);var Se=function(or,Pr){return Bl(c,or instanceof at?or.ch:or,Pr)},ve,Ze=function(or){return s.options.lineWrapping?(ve=ve||Fa(s,c),Ws(s,c,ve,or)):{begin:0,end:c.text.length}},Gt=Ze(b.sticky=="before"?Se(b,-1):b.ch);if(s.doc.direction=="rtl"||ne.level==1){var st=ne.level==1==y<0,Tn=Se(b,st?1:-1);if(Tn!=null&&(st?Tn<=ne.to&&Tn<=Gt.end:Tn>=ne.from&&Tn>=Gt.begin)){var xn=st?"before":"after";return new at(b.line,Tn,xn)}}var fi=function(or,Pr,Sr){for(var $r=function(fs,hl){return hl?new at(b.line,Se(fs,1),"before"):new at(b.line,fs,"after")};or>=0&&or<w.length;or+=Pr){var vo=w[or],yr=Pr>0==(vo.level!=1),$o=yr?Sr.begin:Se(Sr.end,-1);if(vo.from<=$o&&$o<vo.to||($o=yr?vo.from:Se(vo.to,-1),Sr.begin<=$o&&$o<Sr.end))return $r($o,yr)}},xi=fi(H+y,y,Gt);if(xi)return xi;var Fi=y>0?Gt.end:Se(Gt.begin,-1);return Fi!=null&&!(y>0&&Fi==c.text.length)&&(xi=fi(y>0?0:w.length-1,y,Ze(Fi)),xi)?xi:null}var Hs={selectAll:Yr,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),St)},killLine:function(s){return bs(s,function(c){if(c.empty()){var b=vn(s.doc,c.head.line).text.length;return c.head.ch==b&&c.head.line<s.lastLine()?{from:c.head,to:at(c.head.line+1,0)}:{from:c.head,to:at(c.head.line,b)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(s){return bs(s,function(c){return{from:at(c.from().line,0),to:gt(s.doc,at(c.to().line+1,0))}})},delLineLeft:function(s){return bs(s,function(c){return{from:at(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(s){return bs(s,function(c){var b=s.charCoords(c.head,"div").top+5,y=s.coordsChar({left:0,top:b},"div");return{from:y,to:c.from()}})},delWrappedLineRight:function(s){return bs(s,function(c){var b=s.charCoords(c.head,"div").top+5,y=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:b},"div");return{from:c.from(),to:y}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(at(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(at(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(c){return qs(s,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(c){return Cc(s,c.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(c){return el(s,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:b},"div")},Ft)},goLineLeft:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5;return s.coordsChar({left:0,top:b},"div")},Ft)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5,y=s.coordsChar({left:0,top:b},"div");return y.ch<s.getLine(y.line).search(/\S/)?Cc(s,c.head):y},Ft)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var c=[],b=s.listSelections(),y=s.options.tabSize,w=0;w<b.length;w++){var H=b[w].from(),ne=qe(s.getLine(H.line),H.ch,y);c.push(ni(y-ne%y))}s.replaceSelections(c)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Ot(s,function(){for(var c=s.listSelections(),b=[],y=0;y<c.length;y++)if(c[y].empty()){var w=c[y].head,H=vn(s.doc,w.line).text;if(H){if(w.ch==H.length&&(w=new at(w.line,w.ch-1)),w.ch>0)w=new at(w.line,w.ch+1),s.replaceRange(H.charAt(w.ch-1)+H.charAt(w.ch-2),at(w.line,w.ch-2),w,"+transpose");else if(w.line>s.doc.first){var ne=vn(s.doc,w.line-1).text;ne&&(w=new at(w.line,1),s.replaceRange(H.charAt(0)+s.doc.lineSeparator()+ne.charAt(ne.length-1),at(w.line-1,ne.length-1),w,"+transpose"))}}b.push(new li(w,w))}s.setSelections(b)})},newlineAndIndent:function(s){return Ot(s,function(){for(var c=s.listSelections(),b=c.length-1;b>=0;b--)s.replaceRange(s.doc.lineSeparator(),c[b].anchor,c[b].head,"+input");c=s.listSelections();for(var y=0;y<c.length;y++)s.indentLine(c[y].from().line,null,!0);Xs(s)})},openLine:function(s){return s.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function qs(s,c){var b=vn(s.doc,c),y=Di(b);return y!=b&&(c=Ke(y)),ea(!0,s,y,c,1)}function el(s,c){var b=vn(s.doc,c),y=Cr(b);return y!=b&&(c=Ke(y)),ea(!0,s,b,c,-1)}function Cc(s,c){var b=qs(s,c.line),y=vn(s.doc,b.line),w=an(y,s.doc.direction);if(!w||w[0].level==0){var H=Math.max(b.ch,y.text.search(/\S/)),ne=c.line==b.line&&c.ch<=H&&c.ch;return at(b.line,ne?0:H,b.sticky)}return b}function ku(s,c,b){if(typeof c=="string"&&(c=Hs[c],!c))return!1;s.display.input.ensurePolled();var y=s.display.shift,w=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),b&&(s.display.shift=!1),w=c(s)!=Vt}finally{s.display.shift=y,s.state.suppressEdits=!1}return w}function Xc(s,c,b){for(var y=0;y<s.state.keyMaps.length;y++){var w=_s(c,s.state.keyMaps[y],b,s);if(w)return w}return s.options.extraKeys&&_s(c,s.options.extraKeys,b,s)||_s(c,s.options.keyMap,b,s)}var mu=new ae;function tc(s,c,b,y){var w=s.state.keySeq;if(w){if(Au(c))return"handled";if(/\'$/.test(c)?s.state.keySeq=null:mu.set(50,function(){s.state.keySeq==w&&(s.state.keySeq=null,s.display.input.reset())}),ch(s,w+" "+c,b,y))return!0}return ch(s,c,b,y)}function ch(s,c,b,y){var w=Xc(s,c,y);return w=="multi"&&(s.state.keySeq=c),w=="handled"&&vi(s,"keyHandled",s,c,b),(w=="handled"||w=="multi")&&(Bn(b),qo(s)),!!w}function Bh(s,c){var b=Pc(c,!0);return b?c.shiftKey&&!s.state.keySeq?tc(s,"Shift-"+b,c,function(y){return ku(s,y,!0)})||tc(s,b,c,function(y){if(typeof y=="string"?/^go[A-Z]/.test(y):y.motion)return ku(s,y)}):tc(s,b,c,function(y){return ku(s,y)}):!1}function _h(s,c,b){return tc(s,"'"+b+"'",c,function(y){return ku(s,y,!0)})}var Tc=null;function hh(s){var c=this;if(!(s.target&&s.target!=c.display.input.getField())&&(c.curOp.focus=We(),!Ut(c,s))){G&&F<11&&s.keyCode==27&&(s.returnValue=!1);var b=s.keyCode;c.display.shift=b==16||s.shiftKey;var y=Bh(c,s);te&&(Tc=y?b:null,!y&&b==88&&!br&&(Re?s.metaKey:s.ctrlKey)&&c.replaceSelection("",null,"cut")),v&&!Re&&!y&&b==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),b==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&dh(c)}}function dh(s){var c=s.display.lineDiv;Pt(c,"CodeMirror-crosshair");function b(y){(y.keyCode==18||!y.altKey)&&(Ne(c,"CodeMirror-crosshair"),gn(document,"keyup",b),gn(document,"mouseover",b))}Bt(document,"keyup",b),Bt(document,"mouseover",b)}function np(s){s.keyCode==16&&(this.doc.sel.shift=!1),Ut(this,s)}function Nc(s){var c=this;if(!(s.target&&s.target!=c.display.input.getField())&&!(Ps(c.display,s)||Ut(c,s)||s.ctrlKey&&!s.altKey||Re&&s.metaKey)){var b=s.keyCode,y=s.charCode;if(te&&b==Tc){Tc=null,Bn(s);return}if(!(te&&(!s.which||s.which<10)&&Bh(c,s))){var w=String.fromCharCode(y==null?b:y);w!="\b"&&(_h(c,s,w)||c.display.input.onKeyPress(s))}}}var d0=400,ip=function(s,c,b){this.time=s,this.pos=c,this.button=b};ip.prototype.compare=function(s,c,b){return this.time+d0>s&&hn(c,this.pos)==0&&b==this.button};var hd,zh;function rp(s,c){var b=+new Date;return zh&&zh.compare(b,s,c)?(hd=zh=null,"triple"):hd&&hd.compare(b,s,c)?(zh=new ip(b,s,c),hd=null,"double"):(hd=new ip(b,s,c),zh=null,"single")}function Ac(s){var c=this,b=c.display;if(!(Ut(c,s)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=s.shiftKey,Ps(b,s)){M||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!hf(c,s)){var y=Fs(c,s),w=dn(s),H=y?rp(y,w):"single";window.focus(),w==1&&c.state.selectingText&&c.state.selectingText(s),!(y&&op(c,w,y,H,s))&&(w==1?y?f0(c,y,H,s):hi(s)==b.scroller&&Bn(s):w==2?(y&&Do(c.doc,y),setTimeout(function(){return b.input.focus()},20)):w==3&&(ke?c.display.input.onContextMenu(s):wa(c)))}}}function op(s,c,b,y,w){var H="Click";return y=="double"?H="Double"+H:y=="triple"&&(H="Triple"+H),H=(c==1?"Left":c==2?"Middle":"Right")+H,tc(s,ec(H,w),w,function(ne){if(typeof ne=="string"&&(ne=Hs[ne]),!ne)return!1;var Se=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),Se=ne(s,b)!=Vt}finally{s.state.suppressEdits=!1}return Se})}function uf(s,c,b){var y=s.getOption("configureMouse"),w=y?y(s,c,b):{};if(w.unit==null){var H=de?b.shiftKey&&b.metaKey:b.altKey;w.unit=H?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(w.extend==null||s.doc.extend)&&(w.extend=s.doc.extend||b.shiftKey),w.addNew==null&&(w.addNew=Re?b.metaKey:b.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(Re?b.altKey:b.ctrlKey)),w}function f0(s,c,b,y){G?setTimeout(Et(ia,s),0):s.curOp.focus=We();var w=uf(s,b,y),H=s.doc.sel,ne;s.options.dragDrop&&sn&&!s.isReadOnly()&&b=="single"&&(ne=H.contains(c))>-1&&(hn((ne=H.ranges[ne]).from(),c)<0||c.xRel>0)&&(hn(ne.to(),c)>0||c.xRel<0)?ap(s,y,c,w):cg(s,y,c,w)}function ap(s,c,b,y){var w=s.display,H=!1,ne=ge(s,function(Ze){M&&(w.scroller.draggable=!1),s.state.draggingText=!1,gn(w.wrapper.ownerDocument,"mouseup",ne),gn(w.wrapper.ownerDocument,"mousemove",Se),gn(w.scroller,"dragstart",ve),gn(w.scroller,"drop",ne),H||(Bn(Ze),y.addNew||Do(s.doc,b,null,null,y.extend),M&&!Me||G&&F==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),Se=function(Ze){H=H||Math.abs(c.clientX-Ze.clientX)+Math.abs(c.clientY-Ze.clientY)>=10},ve=function(){return H=!0};M&&(w.scroller.draggable=!0),s.state.draggingText=ne,ne.copy=!y.moveOnDrag,w.scroller.dragDrop&&w.scroller.dragDrop(),Bt(w.wrapper.ownerDocument,"mouseup",ne),Bt(w.wrapper.ownerDocument,"mousemove",Se),Bt(w.scroller,"dragstart",ve),Bt(w.scroller,"drop",ne),wa(s),setTimeout(function(){return w.input.focus()},20)}function sp(s,c,b){if(b=="char")return new li(c,c);if(b=="word")return s.findWordAt(c);if(b=="line")return new li(at(c.line,0),gt(s.doc,at(c.line+1,0)));var y=b(s,c);return new li(y.from,y.to)}function cg(s,c,b,y){var w=s.display,H=s.doc;Bn(c);var ne,Se,ve=H.sel,Ze=ve.ranges;if(y.addNew&&!y.extend?(Se=H.sel.contains(b),Se>-1?ne=Ze[Se]:ne=new li(b,b)):(ne=H.sel.primary(),Se=H.sel.primIndex),y.unit=="rectangle")y.addNew||(ne=new li(b,b)),b=Fs(s,c,!0,!0),Se=-1;else{var Gt=sp(s,b,y.unit);y.extend?ne=$a(ne,Gt.anchor,Gt.head,y.extend):ne=Gt}y.addNew?Se==-1?(Se=Ze.length,g(H,lr(s,Ze.concat([ne]),Se),{scroll:!1,origin:"*mouse"})):Ze.length>1&&Ze[Se].empty()&&y.unit=="char"&&!y.extend?(g(H,lr(s,Ze.slice(0,Se).concat(Ze.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),ve=H.sel):Oo(H,Se,ne,un):(Se=0,g(H,new Si([ne],0),un),ve=H.sel);var st=b;function Tn(Sr){if(hn(st,Sr)!=0)if(st=Sr,y.unit=="rectangle"){for(var $r=[],vo=s.options.tabSize,yr=qe(vn(H,b.line).text,b.ch,vo),$o=qe(vn(H,Sr.line).text,Sr.ch,vo),fs=Math.min(yr,$o),hl=Math.max(yr,$o),Cs=Math.min(b.line,Sr.line),vu=Math.min(s.lastLine(),Math.max(b.line,Sr.line));Cs<=vu;Cs++){var Zl=vn(H,Cs).text,nl=ai(Zl,fs,vo);fs==hl?$r.push(new li(at(Cs,nl),at(Cs,nl))):Zl.length>nl&&$r.push(new li(at(Cs,nl),at(Cs,ai(Zl,hl,vo))))}$r.length||$r.push(new li(b,b)),g(H,lr(s,ve.ranges.slice(0,Se).concat($r),Se),{origin:"*mouse",scroll:!1}),s.scrollIntoView(Sr)}else{var Iu=ne,_l=sp(s,Sr,y.unit),il=Iu.anchor,Ma;hn(_l.anchor,il)>0?(Ma=_l.head,il=Dt(Iu.from(),_l.anchor)):(Ma=_l.anchor,il=L(Iu.to(),_l.head));var Ms=ve.ranges.slice(0);Ms[Se]=p0(s,new li(gt(H,il),Ma)),g(H,lr(s,Ms,Se),un)}}var xn=w.wrapper.getBoundingClientRect(),fi=0;function xi(Sr){var $r=++fi,vo=Fs(s,Sr,!0,y.unit=="rectangle");if(vo)if(hn(vo,st)!=0){s.curOp.focus=We(),Tn(vo);var yr=To(w,H);(vo.line>=yr.to||vo.line<yr.from)&&setTimeout(ge(s,function(){fi==$r&&xi(Sr)}),150)}else{var $o=Sr.clientY<xn.top?-20:Sr.clientY>xn.bottom?20:0;$o&&setTimeout(ge(s,function(){fi==$r&&(w.scroller.scrollTop+=$o,xi(Sr))}),50)}}function Fi(Sr){s.state.selectingText=!1,fi=1/0,Sr&&(Bn(Sr),w.input.focus()),gn(w.wrapper.ownerDocument,"mousemove",or),gn(w.wrapper.ownerDocument,"mouseup",Pr),H.history.lastSelOrigin=null}var or=ge(s,function(Sr){Sr.buttons===0||!dn(Sr)?Fi(Sr):xi(Sr)}),Pr=ge(s,Fi);s.state.selectingText=Pr,Bt(w.wrapper.ownerDocument,"mousemove",or),Bt(w.wrapper.ownerDocument,"mouseup",Pr)}function p0(s,c){var b=c.anchor,y=c.head,w=vn(s.doc,b.line);if(hn(b,y)==0&&b.sticky==y.sticky)return c;var H=an(w);if(!H)return c;var ne=tt(H,b.ch,b.sticky),Se=H[ne];if(Se.from!=b.ch&&Se.to!=b.ch)return c;var ve=ne+(Se.from==b.ch==(Se.level!=1)?0:1);if(ve==0||ve==H.length)return c;var Ze;if(y.line!=b.line)Ze=(y.line-b.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var Gt=tt(H,y.ch,y.sticky),st=Gt-ne||(y.ch-b.ch)*(Se.level==1?-1:1);Gt==ve-1||Gt==ve?Ze=st<0:Ze=st>0}var Tn=H[ve+(Ze?-1:0)],xn=Ze==(Tn.level==1),fi=xn?Tn.from:Tn.to,xi=xn?"after":"before";return b.ch==fi&&b.sticky==xi?c:new li(new at(b.line,fi,xi),y)}function cf(s,c,b,y){var w,H;if(c.touches)w=c.touches[0].clientX,H=c.touches[0].clientY;else try{w=c.clientX,H=c.clientY}catch(Tn){return!1}if(w>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;y&&Bn(c);var ne=s.display,Se=ne.lineDiv.getBoundingClientRect();if(H>Se.bottom||!nn(s,b))return Kn(c);H-=Se.top-ne.viewOffset;for(var ve=0;ve<s.display.gutterSpecs.length;++ve){var Ze=ne.gutters.childNodes[ve];if(Ze&&Ze.getBoundingClientRect().right>=w){var Gt=Ht(s.doc,H),st=s.display.gutterSpecs[ve];return Qe(s,b,s,Gt,st.className,c),Kn(c)}}}function hf(s,c){return cf(s,c,"gutterClick",!0)}function df(s,c){Ps(s.display,c)||m0(s,c)||Ut(s,c,"contextmenu")||ke||s.display.input.onContextMenu(c)}function m0(s,c){return nn(s,"gutterContextMenu")?cf(s,c,"gutterContextMenu",!1):!1}function ff(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ro(s)}var fh={toString:function(){return"CodeMirror.Init"}},lp={},Dd={};function g0(s){var c=s.optionHandlers;function b(y,w,H,ne){s.defaults[y]=w,H&&(c[y]=ne?function(Se,ve,Ze){Ze!=fh&&H(Se,ve,Ze)}:H)}s.defineOption=b,s.Init=fh,b("value","",function(y,w){return y.setValue(w)},!0),b("mode",null,function(y,w){y.doc.modeOption=w,qi(y)},!0),b("indentUnit",2,qi,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(y){Qr(y),ro(y),So(y)},!0),b("lineSeparator",null,function(y,w){if(y.doc.lineSep=w,!!w){var H=[],ne=y.doc.first;y.doc.iter(function(ve){for(var Ze=0;;){var Gt=ve.text.indexOf(w,Ze);if(Gt==-1)break;Ze=Gt+w.length,H.push(at(ne,Gt))}ne++});for(var Se=H.length-1;Se>=0;Se--)ws(y.doc,w,H[Se],at(H[Se].line,H[Se].ch+w.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(y,w,H){y.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),H!=fh&&y.refresh()}),b("specialCharPlaceholder",Ba,function(y){return y.refresh()},!0),b("electricChars",!0),b("inputStyle",Ae?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(y,w){return y.getInputField().spellcheck=w},!0),b("autocorrect",!1,function(y,w){return y.getInputField().autocorrect=w},!0),b("autocapitalize",!1,function(y,w){return y.getInputField().autocapitalize=w},!0),b("rtlMoveVisually",!pe),b("wholeLineUpdateBefore",!0),b("theme","default",function(y){ff(y),it(y)},!0),b("keyMap","default",function(y,w,H){var ne=Fl(w),Se=H!=fh&&Fl(H);Se&&Se.detach&&Se.detach(y,ne),ne.attach&&ne.attach(y,Se||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,v0,!0),b("gutters",[],function(y,w){y.display.gutterSpecs=Ce(w,y.options.lineNumbers),it(y)},!0),b("fixedGutter",!0,function(y,w){y.display.gutters.style.left=w?cu(y.display)+"px":"0",y.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(y){return fu(y)},!0),b("scrollbarStyle","native",function(y){Nu(y),fu(y),y.display.scrollbars.setScrollTop(y.doc.scrollTop),y.display.scrollbars.setScrollLeft(y.doc.scrollLeft)},!0),b("lineNumbers",!1,function(y,w){y.display.gutterSpecs=Ce(y.options.gutters,w),it(y)},!0),b("firstLineNumber",1,it,!0),b("lineNumberFormatter",function(y){return y},it,!0),b("showCursorWhenSelecting",!1,ss,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(y,w){w=="nocursor"&&(du(y),y.display.input.blur()),y.display.input.readOnlyChanged(w)}),b("screenReaderLabel",null,function(y,w){w=w===""?null:w,y.display.input.screenReaderLabelChanged(w)}),b("disableInput",!1,function(y,w){w||y.display.input.reset()},!0),b("dragDrop",!0,pf),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,ss,!0),b("singleCursorHeightPerLine",!0,ss,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,Qr,!0),b("addModeClass",!1,Qr,!0),b("pollInterval",100),b("undoDepth",200,function(y,w){return y.doc.history.undoDepth=w}),b("historyEventDelay",1250),b("viewportMargin",10,function(y){return y.refresh()},!0),b("maxHighlightLength",1e4,Qr,!0),b("moveInputWithCursor",!0,function(y,w){w||y.display.input.resetPosition()}),b("tabindex",null,function(y,w){return y.display.input.getField().tabIndex=w||""}),b("autofocus",null),b("direction","ltr",function(y,w){return y.doc.setDirection(w)},!0),b("phrases",null)}function pf(s,c,b){var y=b&&b!=fh;if(!c!=!y){var w=s.display.dragFunctions,H=c?Bt:gn;H(s.display.scroller,"dragstart",w.start),H(s.display.scroller,"dragenter",w.enter),H(s.display.scroller,"dragover",w.over),H(s.display.scroller,"dragleave",w.leave),H(s.display.scroller,"drop",w.drop)}}function v0(s){s.options.lineWrapping?(Pt(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Ne(s.display.wrapper,"CodeMirror-wrap"),Ta(s)),Or(s),So(s),ro(s),setTimeout(function(){return fu(s)},100)}function Ca(s,c){var b=this;if(!(this instanceof Ca))return new Ca(s,c);this.options=c=c?wn(c):{},wn(lp,c,!1);var y=c.value;typeof y=="string"?y=new $i(y,c.mode,null,c.lineSeparator,c.direction):c.mode&&(y.modeOption=c.mode),this.doc=y;var w=new Ca.inputStyles[c.inputStyle](this),H=this.display=new jt(s,y,w,c);H.wrapper.CodeMirror=this,ff(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Nu(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 ae,keySeq:null,specialChars:null},c.autofocus&&!Ae&&H.input.focus(),G&&F<11&&setTimeout(function(){return b.display.input.reset(!0)},20),dd(this),Ko(),vs(this),this.curOp.forceUpdate=!0,ir(this,y),c.autofocus&&!Ae||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&_o(b)},20):du(this);for(var ne in Dd)Dd.hasOwnProperty(ne)&&Dd[ne](this,c[ne],fh);fe(this),c.finishInit&&c.finishInit(this);for(var Se=0;Se<Uh.length;++Se)Uh[Se](this);Vl(this),M&&c.lineWrapping&&getComputedStyle(H.lineDiv).textRendering=="optimizelegibility"&&(H.lineDiv.style.textRendering="auto")}Ca.defaults=lp,Ca.optionHandlers=Dd;function dd(s){var c=s.display;Bt(c.scroller,"mousedown",ge(s,Ac)),G&&F<11?Bt(c.scroller,"dblclick",ge(s,function(ve){if(!Ut(s,ve)){var Ze=Fs(s,ve);if(!(!Ze||hf(s,ve)||Ps(s.display,ve))){Bn(ve);var Gt=s.findWordAt(Ze);Do(s.doc,Gt.anchor,Gt.head)}}})):Bt(c.scroller,"dblclick",function(ve){return Ut(s,ve)||Bn(ve)}),Bt(c.scroller,"contextmenu",function(ve){return df(s,ve)}),Bt(c.input.getField(),"contextmenu",function(ve){c.scroller.contains(ve.target)||df(s,ve)});var b,y={end:0};function w(){c.activeTouch&&(b=setTimeout(function(){return c.activeTouch=null},1e3),y=c.activeTouch,y.end=+new Date)}function H(ve){if(ve.touches.length!=1)return!1;var Ze=ve.touches[0];return Ze.radiusX<=1&&Ze.radiusY<=1}function ne(ve,Ze){if(Ze.left==null)return!0;var Gt=Ze.left-ve.left,st=Ze.top-ve.top;return Gt*Gt+st*st>20*20}Bt(c.scroller,"touchstart",function(ve){if(!Ut(s,ve)&&!H(ve)&&!hf(s,ve)){c.input.ensurePolled(),clearTimeout(b);var Ze=+new Date;c.activeTouch={start:Ze,moved:!1,prev:Ze-y.end<=300?y:null},ve.touches.length==1&&(c.activeTouch.left=ve.touches[0].pageX,c.activeTouch.top=ve.touches[0].pageY)}}),Bt(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Bt(c.scroller,"touchend",function(ve){var Ze=c.activeTouch;if(Ze&&!Ps(c,ve)&&Ze.left!=null&&!Ze.moved&&new Date-Ze.start<300){var Gt=s.coordsChar(c.activeTouch,"page"),st;!Ze.prev||ne(Ze,Ze.prev)?st=new li(Gt,Gt):!Ze.prev.prev||ne(Ze,Ze.prev.prev)?st=s.findWordAt(Gt):st=new li(at(Gt.line,0),gt(s.doc,at(Gt.line+1,0))),s.setSelection(st.anchor,st.head),s.focus(),Bn(ve)}w()}),Bt(c.scroller,"touchcancel",w),Bt(c.scroller,"scroll",function(){c.scroller.clientHeight&&(tu(s,c.scroller.scrollTop),yl(s,c.scroller.scrollLeft,!0),Qe(s,"scroll",s))}),Bt(c.scroller,"mousewheel",function(ve){return zt(s,ve)}),Bt(c.scroller,"DOMMouseScroll",function(ve){return zt(s,ve)}),Bt(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(ve){Ut(s,ve)||Ti(ve)},over:function(ve){Ut(s,ve)||(Ao(s,ve),Ti(ve))},start:function(ve){return Hr(s,ve)},drop:ge(s,Ur),leave:function(ve){Ut(s,ve)||Go(s)}};var Se=c.input.getField();Bt(Se,"keyup",function(ve){return np.call(s,ve)}),Bt(Se,"keydown",ge(s,hh)),Bt(Se,"keypress",ge(s,Nc)),Bt(Se,"focus",function(ve){return _o(s,ve)}),Bt(Se,"blur",function(ve){return du(s,ve)})}var Uh=[];Ca.defineInitHook=function(s){return Uh.push(s)};function cl(s,c,b,y){var w=s.doc,H;b==null&&(b="add"),b=="smart"&&(w.mode.indent?H=Qi(s,c).state:b="prev");var ne=s.options.tabSize,Se=vn(w,c),ve=qe(Se.text,null,ne);Se.stateAfter&&(Se.stateAfter=null);var Ze=Se.text.match(/^\s*/)[0],Gt;if(!y&&!/\S/.test(Se.text))Gt=0,b="not";else if(b=="smart"&&(Gt=w.mode.indent(H,Se.text.slice(Ze.length),Se.text),Gt==Vt||Gt>150)){if(!y)return;b="prev"}b=="prev"?c>w.first?Gt=qe(vn(w,c-1).text,null,ne):Gt=0:b=="add"?Gt=ve+s.options.indentUnit:b=="subtract"?Gt=ve-s.options.indentUnit:typeof b=="number"&&(Gt=ve+b),Gt=Math.max(0,Gt);var st="",Tn=0;if(s.options.indentWithTabs)for(var xn=Math.floor(Gt/ne);xn;--xn)Tn+=ne,st+=" ";if(Tn<Gt&&(st+=ni(Gt-Tn)),st!=Ze)return ws(w,st,at(c,0),at(c,Ze.length),"+input"),Se.stateAfter=null,!0;for(var fi=0;fi<w.sel.ranges.length;fi++){var xi=w.sel.ranges[fi];if(xi.head.line==c&&xi.head.ch<Ze.length){var Fi=at(c,Ze.length);Oo(w,fi,new li(Fi,Fi));break}}}var gu=null;function Hh(s){gu=s}function Pd(s,c,b,y,w){var H=s.doc;s.display.shift=!1,y||(y=H.sel);var ne=+new Date-200,Se=w=="paste"||s.state.pasteIncoming>ne,ve=tr(c),Ze=null;if(Se&&y.ranges.length>1)if(gu&&gu.text.join(`
|
|
|
`)==c){if(y.ranges.length%gu.text.length==0){Ze=[];for(var Gt=0;Gt<gu.text.length;Gt++)Ze.push(H.splitLines(gu.text[Gt]))}}else ve.length==y.ranges.length&&s.options.pasteLinesPerSelection&&(Ze=In(ve,function(or){return[or]}));for(var st=s.curOp.updateInput,Tn=y.ranges.length-1;Tn>=0;Tn--){var xn=y.ranges[Tn],fi=xn.from(),xi=xn.to();xn.empty()&&(b&&b>0?fi=at(fi.line,fi.ch-b):s.state.overwrite&&!Se?xi=at(xi.line,Math.min(vn(H,xi.line).text.length,xi.ch+Jn(ve).length)):Se&&gu&&gu.lineWise&&gu.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(fi=xi=at(fi.line,0)));var Fi={from:fi,to:xi,text:Ze?Ze[Tn%Ze.length]:ve,origin:w||(Se?"paste":s.state.cutIncoming>ne?"cut":"+input")};ba(s.doc,Fi),vi(s,"inputRead",s,Fi)}c&&!Se&&cp(s,c),Xs(s),s.curOp.updateInput<2&&(s.curOp.updateInput=st),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function up(s,c){var b=s.clipboardData&&s.clipboardData.getData("Text");if(b)return s.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&Ot(c,function(){return Pd(c,b,0,null,"paste")}),!0}function cp(s,c){if(!(!s.options.electricChars||!s.options.smartIndent))for(var b=s.doc.sel,y=b.ranges.length-1;y>=0;y--){var w=b.ranges[y];if(!(w.head.ch>100||y&&b.ranges[y-1].head.line==w.head.line)){var H=s.getModeAt(w.head),ne=!1;if(H.electricChars){for(var Se=0;Se<H.electricChars.length;Se++)if(c.indexOf(H.electricChars.charAt(Se))>-1){ne=cl(s,w.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(vn(s.doc,w.head.line).text.slice(0,w.head.ch))&&(ne=cl(s,w.head.line,"smart"));ne&&vi(s,"electricInput",s,w.head.line)}}}function hp(s){for(var c=[],b=[],y=0;y<s.doc.sel.ranges.length;y++){var w=s.doc.sel.ranges[y].head.line,H={anchor:at(w,0),head:at(w+1,0)};b.push(H),c.push(s.getRange(H.anchor,H.head))}return{text:c,ranges:b}}function dp(s,c,b,y){s.setAttribute("autocorrect",b?"":"off"),s.setAttribute("autocapitalize",y?"":"off"),s.setAttribute("spellcheck",!!c)}function fp(){var s=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Xe("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?s.style.width="1000px":s.setAttribute("wrap","off"),Oe&&(s.style.border="1px solid black"),dp(s),c}function ph(s){var c=s.optionHandlers,b=s.helpers={};s.prototype={constructor:s,focus:function(){window.focus(),this.display.input.focus()},setOption:function(y,w){var H=this.options,ne=H[y];H[y]==w&&y!="mode"||(H[y]=w,c.hasOwnProperty(y)&&ge(this,c[y])(this,w,ne),Qe(this,"optionChange",this,y))},getOption:function(y){return this.options[y]},getDoc:function(){return this.doc},addKeyMap:function(y,w){this.state.keyMaps[w?"push":"unshift"](Fl(y))},removeKeyMap:function(y){for(var w=this.state.keyMaps,H=0;H<w.length;++H)if(w[H]==y||w[H].name==y)return w.splice(H,1),!0},addOverlay:yn(function(y,w){var H=y.token?y:s.getMode(this.options,y);if(H.startState)throw new Error("Overlays may not be stateful.");Mn(this.state.overlays,{mode:H,modeSpec:y,opaque:w&&w.opaque,priority:w&&w.priority||0},function(ne){return ne.priority}),this.state.modeGen++,So(this)}),removeOverlay:yn(function(y){for(var w=this.state.overlays,H=0;H<w.length;++H){var ne=w[H].modeSpec;if(ne==y||typeof y=="string"&&ne.name==y){w.splice(H,1),this.state.modeGen++,So(this);return}}}),indentLine:yn(function(y,w,H){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),Rt(this.doc,y)&&cl(this,y,w,H)}),indentSelection:yn(function(y){for(var w=this.doc.sel.ranges,H=-1,ne=0;ne<w.length;ne++){var Se=w[ne];if(Se.empty())Se.head.line>H&&(cl(this,Se.head.line,y,!0),H=Se.head.line,ne==this.doc.sel.primIndex&&Xs(this));else{var ve=Se.from(),Ze=Se.to(),Gt=Math.max(H,ve.line);H=Math.min(this.lastLine(),Ze.line-(Ze.ch?0:1))+1;for(var st=Gt;st<H;++st)cl(this,st,y);var Tn=this.doc.sel.ranges;ve.ch==0&&w.length==Tn.length&&Tn[ne].from().ch>0&&Oo(this.doc,ne,new li(ve,Tn[ne].to()),St)}}}),getTokenAt:function(y,w){return Hn(this,y,w)},getLineTokens:function(y,w){return Hn(this,at(y),w,!0)},getTokenTypeAt:function(y){y=gt(this.doc,y);var w=Oi(this,vn(this.doc,y.line)),H=0,ne=(w.length-1)/2,Se=y.ch,ve;if(Se==0)ve=w[2];else for(;;){var Ze=H+ne>>1;if((Ze?w[Ze*2-1]:0)>=Se)ne=Ze;else if(w[Ze*2+1]<Se)H=Ze+1;else{ve=w[Ze*2+2];break}}var Gt=ve?ve.indexOf("overlay "):-1;return Gt<0?ve:Gt==0?null:ve.slice(0,Gt-1)},getModeAt:function(y){var w=this.doc.mode;return w.innerMode?s.innerMode(w,this.getTokenAt(y).state).mode:w},getHelper:function(y,w){return this.getHelpers(y,w)[0]},getHelpers:function(y,w){var H=[];if(!b.hasOwnProperty(w))return H;var ne=b[w],Se=this.getModeAt(y);if(typeof Se[w]=="string")ne[Se[w]]&&H.push(ne[Se[w]]);else if(Se[w])for(var ve=0;ve<Se[w].length;ve++){var Ze=ne[Se[w][ve]];Ze&&H.push(Ze)}else Se.helperType&&ne[Se.helperType]?H.push(ne[Se.helperType]):ne[Se.name]&&H.push(ne[Se.name]);for(var Gt=0;Gt<ne._global.length;Gt++){var st=ne._global[Gt];st.pred(Se,this)&&le(H,st.val)==-1&&H.push(st.val)}return H},getStateAfter:function(y,w){var H=this.doc;return y=Jt(H,y==null?H.first+H.size-1:y),Qi(this,y+1,w).state},cursorCoords:function(y,w){var H,ne=this.doc.sel.primary();return y==null?H=ne.head:typeof y=="object"?H=gt(this.doc,y):H=y?ne.from():ne.to(),ka(this,H,w||"page")},charCoords:function(y,w){return Ys(this,gt(this.doc,y),w||"page")},coordsChar:function(y,w){return y=Gl(this,y,w||"page"),uu(this,y.left,y.top)},lineAtHeight:function(y,w){return y=Gl(this,{top:y,left:0},w||"page").top,Ht(this.doc,y+this.display.viewOffset)},heightAtLine:function(y,w,H){var ne=!1,Se;if(typeof y=="number"){var ve=this.doc.first+this.doc.size-1;y<this.doc.first?y=this.doc.first:y>ve&&(y=ve,ne=!0),Se=vn(this.doc,y)}else Se=y;return Aa(this,Se,{top:0,left:0},w||"page",H||ne).top+(ne?this.doc.height-Wo(Se):0)},defaultTextHeight:function(){return Pl(this.display)},defaultCharWidth:function(){return gl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(y,w,H,ne,Se){var ve=this.display;y=ka(this,gt(this.doc,y));var Ze=y.bottom,Gt=y.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),ve.sizer.appendChild(w),ne=="over")Ze=y.top;else if(ne=="above"||ne=="near"){var st=Math.max(ve.wrapper.clientHeight,this.doc.height),Tn=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(ne=="above"||y.bottom+w.offsetHeight>st)&&y.top>w.offsetHeight?Ze=y.top-w.offsetHeight:y.bottom+w.offsetHeight<=st&&(Ze=y.bottom),Gt+w.offsetWidth>Tn&&(Gt=Tn-w.offsetWidth)}w.style.top=Ze+"px",w.style.left=w.style.right="",Se=="right"?(Gt=ve.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(Se=="left"?Gt=0:Se=="middle"&&(Gt=(ve.sizer.clientWidth-w.offsetWidth)/2),w.style.left=Gt+"px"),H&&qu(this,{left:Gt,top:Ze,right:Gt+w.offsetWidth,bottom:Ze+w.offsetHeight})},triggerOnKeyDown:yn(hh),triggerOnKeyPress:yn(Nc),triggerOnKeyUp:np,triggerOnMouseDown:yn(Ac),execCommand:function(y){if(Hs.hasOwnProperty(y))return Hs[y].call(null,this)},triggerElectric:yn(function(y){cp(this,y)}),findPosH:function(y,w,H,ne){var Se=1;w<0&&(Se=-1,w=-w);for(var ve=gt(this.doc,y),Ze=0;Ze<w&&(ve=Fd(this.doc,ve,Se,H,ne),!ve.hitSide);++Ze);return ve},moveH:yn(function(y,w){var H=this;this.extendSelectionsBy(function(ne){return H.display.shift||H.doc.extend||ne.empty()?Fd(H.doc,ne.head,y,w,H.options.rtlMoveVisually):y<0?ne.from():ne.to()},Ft)}),deleteH:yn(function(y,w){var H=this.doc.sel,ne=this.doc;H.somethingSelected()?ne.replaceSelection("",null,"+delete"):bs(this,function(Se){var ve=Fd(ne,Se.head,y,w,!1);return y<0?{from:ve,to:Se.head}:{from:Se.head,to:ve}})}),findPosV:function(y,w,H,ne){var Se=1,ve=ne;w<0&&(Se=-1,w=-w);for(var Ze=gt(this.doc,y),Gt=0;Gt<w;++Gt){var st=ka(this,Ze,"div");if(ve==null?ve=st.left:st.left=ve,Ze=mh(this,st,Se,H),Ze.hitSide)break}return Ze},moveV:yn(function(y,w){var H=this,ne=this.doc,Se=[],ve=!this.display.shift&&!ne.extend&&ne.sel.somethingSelected();if(ne.extendSelectionsBy(function(Gt){if(ve)return y<0?Gt.from():Gt.to();var st=ka(H,Gt.head,"div");Gt.goalColumn!=null&&(st.left=Gt.goalColumn),Se.push(st.left);var Tn=mh(H,st,y,w);return w=="page"&&Gt==ne.sel.primary()&&_u(H,Ys(H,Tn,"div").top-st.top),Tn},Ft),Se.length)for(var Ze=0;Ze<ne.sel.ranges.length;Ze++)ne.sel.ranges[Ze].goalColumn=Se[Ze]}),findWordAt:function(y){var w=this.doc,H=vn(w,y.line).text,ne=y.ch,Se=y.ch;if(H){var ve=this.getHelper(y,"wordChars");(y.sticky=="before"||Se==H.length)&&ne?--ne:++Se;for(var Ze=H.charAt(ne),Gt=X(Ze,ve)?function(st){return X(st,ve)}:/\s/.test(Ze)?function(st){return/\s/.test(st)}:function(st){return!/\s/.test(st)&&!X(st)};ne>0&&Gt(H.charAt(ne-1));)--ne;for(;Se<H.length&&Gt(H.charAt(Se));)++Se}return new li(at(y.line,ne),at(y.line,Se))},toggleOverwrite:function(y){y!=null&&y==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pt(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),Qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==We()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yn(function(y,w){Qs(this,y,w)}),getScrollInfo:function(){var y=this.display.scroller;return{left:y.scrollLeft,top:y.scrollTop,height:y.scrollHeight-Xa(this)-this.display.barHeight,width:y.scrollWidth-Xa(this)-this.display.barWidth,clientHeight:ml(this),clientWidth:Oa(this)}},scrollIntoView:yn(function(y,w){y==null?(y={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof y=="number"?y={from:at(y,0),to:null}:y.from==null&&(y={from:y,to:null}),y.to||(y.to=y.from),y.margin=w||0,y.from.line!=null?Io(this,y):dc(this,y.from,y.to,y.margin)}),setSize:yn(function(y,w){var H=this,ne=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};y!=null&&(this.display.wrapper.style.width=ne(y)),w!=null&&(this.display.wrapper.style.height=ne(w)),this.options.lineWrapping&&aa(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(ve){if(ve.widgets){for(var Ze=0;Ze<ve.widgets.length;Ze++)if(ve.widgets[Ze].noHScroll){lo(H,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,Qe(this,"refresh",this)}),operation:function(y){return Ot(this,y)},startOperation:function(){return vs(this)},endOperation:function(){return Vl(this)},refresh:yn(function(){var y=this.display.cachedTextHeight;So(this),this.curOp.forceUpdate=!0,ro(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),_(this.display),(y==null||Math.abs(y-Pl(this.display))>.5||this.options.lineWrapping)&&Or(this),Qe(this,"refresh",this)}),swapDoc:yn(function(y){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),ir(this,y),ro(this),this.display.input.reset(),Qs(this,y.scrollLeft,y.scrollTop),this.curOp.forceScroll=!0,vi(this,"swapDoc",this,w),w}),phrase:function(y){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,y)?w[y]:y},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}},He(s),s.registerHelper=function(y,w,H){b.hasOwnProperty(y)||(b[y]=s[y]={_global:[]}),b[y][w]=H},s.registerGlobalHelper=function(y,w,H,ne){s.registerHelper(y,w,ne),b[y]._global.push({pred:H,val:ne})}}function Fd(s,c,b,y,w){var H=c,ne=b,Se=vn(s,c.line),ve=w&&s.direction=="rtl"?-b:b;function Ze(){var Pr=c.line+ve;return Pr<s.first||Pr>=s.first+s.size?!1:(c=new at(Pr,c.ch,c.sticky),Se=vn(s,Pr))}function Gt(Pr){var Sr;if(y=="codepoint"){var $r=Se.text.charCodeAt(c.ch+(y>0?0:-1));isNaN($r)?Sr=null:Sr=new at(c.line,Math.max(0,Math.min(Se.text.length,c.ch+b*($r>=55296&&$r<56320?2:1))),-b)}else w?Sr=xa(s.cm,Se,c,b):Sr=Qa(Se,c,b);if(Sr==null)if(!Pr&&Ze())c=ea(w,s.cm,Se,c.line,ve);else return!1;else c=Sr;return!0}if(y=="char"||y=="codepoint")Gt();else if(y=="column")Gt(!0);else if(y=="word"||y=="group")for(var st=null,Tn=y=="group",xn=s.cm&&s.cm.getHelper(c,"wordChars"),fi=!0;!(b<0&&!Gt(!fi));fi=!1){var xi=Se.text.charAt(c.ch)||`
|
|
|
`,Fi=X(xi,xn)?"w":Tn&&xi==`
|
|
|
`?"n":!Tn||/\s/.test(xi)?null:"p";if(Tn&&!fi&&!Fi&&(Fi="s"),st&&st!=Fi){b<0&&(b=1,Gt(),c.sticky="after");break}if(Fi&&(st=Fi),b>0&&!Gt(!fi))break}var or=wr(s,c,H,ne,!0);return yt(H,or)&&(or.hitSide=!0),or}function mh(s,c,b,y){var w=s.doc,H=c.left,ne;if(y=="page"){var Se=Math.min(s.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(Se-.5*Pl(s.display),3);ne=(b>0?c.bottom:c.top)+b*ve}else y=="line"&&(ne=b>0?c.bottom+3:c.top-3);for(var Ze;Ze=uu(s,H,ne),!!Ze.outside;){if(b<0?ne<=0:ne>=w.height){Ze.hitSide=!0;break}ne+=b*5}return Ze}var Ja=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ja.prototype.init=function(s){var c=this,b=this,y=b.cm,w=b.div=s.lineDiv;dp(w,y.options.spellcheck,y.options.autocorrect,y.options.autocapitalize);function H(Se){for(var ve=Se.target;ve;ve=ve.parentNode){if(ve==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Bt(w,"paste",function(Se){!H(Se)||Ut(y,Se)||up(Se,y)||F<=11&&setTimeout(ge(y,function(){return c.updateFromDOM()}),20)}),Bt(w,"compositionstart",function(Se){c.composing={data:Se.data,done:!1}}),Bt(w,"compositionupdate",function(Se){c.composing||(c.composing={data:Se.data,done:!1})}),Bt(w,"compositionend",function(Se){c.composing&&(Se.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Bt(w,"touchstart",function(){return b.forceCompositionEnd()}),Bt(w,"input",function(){c.composing||c.readFromDOMSoon()});function ne(Se){if(!(!H(Se)||Ut(y,Se))){if(y.somethingSelected())Hh({lineWise:!1,text:y.getSelections()}),Se.type=="cut"&&y.replaceSelection("",null,"cut");else if(y.options.lineWiseCopyCut){var ve=hp(y);Hh({lineWise:!0,text:ve.text}),Se.type=="cut"&&y.operation(function(){y.setSelections(ve.ranges,0,St),y.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ze=gu.text.join(`
|
|
|
`);if(Se.clipboardData.setData("Text",Ze),Se.clipboardData.getData("Text")==Ze){Se.preventDefault();return}}var Gt=fp(),st=Gt.firstChild;y.display.lineSpace.insertBefore(Gt,y.display.lineSpace.firstChild),st.value=gu.text.join(`
|
|
|
`);var Tn=document.activeElement;Tt(st),setTimeout(function(){y.display.lineSpace.removeChild(Gt),Tn.focus(),Tn==w&&b.showPrimarySelection()},50)}}Bt(w,"copy",ne),Bt(w,"cut",ne)},Ja.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},Ja.prototype.prepareSelection=function(){var s=hu(this.cm,!1);return s.focus=document.activeElement==this.div,s},Ja.prototype.showSelection=function(s,c){!s||!this.cm.display.view.length||((s.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(s))},Ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ja.prototype.showPrimarySelection=function(){var s=this.getSelection(),c=this.cm,b=c.doc.sel.primary(),y=b.from(),w=b.to();if(c.display.viewTo==c.display.viewFrom||y.line>=c.display.viewTo||w.line<c.display.viewFrom){s.removeAllRanges();return}var H=Bd(c,s.anchorNode,s.anchorOffset),ne=Bd(c,s.focusNode,s.focusOffset);if(!(H&&!H.bad&&ne&&!ne.bad&&hn(Dt(H,ne),y)==0&&hn(L(H,ne),w)==0)){var Se=c.display.view,ve=y.line>=c.display.viewFrom&&mf(c,y)||{node:Se[0].measure.map[2],offset:0},Ze=w.line<c.display.viewTo&&mf(c,w);if(!Ze){var Gt=Se[Se.length-1].measure,st=Gt.maps?Gt.maps[Gt.maps.length-1]:Gt.map;Ze={node:st[st.length-1],offset:st[st.length-2]-st[st.length-3]}}if(!ve||!Ze){s.removeAllRanges();return}var Tn=s.rangeCount&&s.getRangeAt(0),xn;try{xn=ie(ve.node,ve.offset,Ze.offset,Ze.node)}catch(fi){}xn&&(!v&&c.state.focused?(s.collapse(ve.node,ve.offset),xn.collapsed||(s.removeAllRanges(),s.addRange(xn))):(s.removeAllRanges(),s.addRange(xn)),Tn&&s.anchorNode==null?s.addRange(Tn):v&&this.startGracePeriod()),this.rememberSelection()}},Ja.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},Ja.prototype.showMultipleSelections=function(s){Pe(this.cm.display.cursorDiv,s.cursors),Pe(this.cm.display.selectionDiv,s.selection)},Ja.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},Ja.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var c=s.getRangeAt(0).commonAncestorContainer;return lt(this.div,c)},Ja.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ja.prototype.blur=function(){this.div.blur()},Ja.prototype.getField=function(){return this.div},Ja.prototype.supportsTouch=function(){return!0},Ja.prototype.receivedFocus=function(){var s=this;this.selectionInEditor()?this.pollSelection():Ot(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function c(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Ja.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},Ja.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),c=this.cm;if(Te&&ue&&this.cm.display.gutterSpecs.length&&pp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var b=Bd(c,s.anchorNode,s.anchorOffset),y=Bd(c,s.focusNode,s.focusOffset);b&&y&&Ot(c,function(){g(c.doc,Ni(b,y),St),(b.bad||y.bad)&&(c.curOp.selectionChanged=!0)})}}},Ja.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,c=s.display,b=s.doc.sel.primary(),y=b.from(),w=b.to();if(y.ch==0&&y.line>s.firstLine()&&(y=at(y.line-1,vn(s.doc,y.line-1).length)),w.ch==vn(s.doc,w.line).text.length&&w.line<s.lastLine()&&(w=at(w.line+1,0)),y.line<c.viewFrom||w.line>c.viewTo-1)return!1;var H,ne,Se;y.line==c.viewFrom||(H=gs(s,y.line))==0?(ne=Ke(c.view[0].line),Se=c.view[0].node):(ne=Ke(c.view[H].line),Se=c.view[H-1].node.nextSibling);var ve=gs(s,w.line),Ze,Gt;if(ve==c.view.length-1?(Ze=c.viewTo-1,Gt=c.lineDiv.lastChild):(Ze=Ke(c.view[ve+1].line)-1,Gt=c.view[ve+1].node.previousSibling),!Se)return!1;for(var st=s.doc.splitLines(pd(s,Se,Gt,ne,Ze)),Tn=Nn(s.doc,at(ne,0),at(Ze,vn(s.doc,Ze).text.length));st.length>1&&Tn.length>1;)if(Jn(st)==Jn(Tn))st.pop(),Tn.pop(),Ze--;else if(st[0]==Tn[0])st.shift(),Tn.shift(),ne++;else break;for(var xn=0,fi=0,xi=st[0],Fi=Tn[0],or=Math.min(xi.length,Fi.length);xn<or&&xi.charCodeAt(xn)==Fi.charCodeAt(xn);)++xn;for(var Pr=Jn(st),Sr=Jn(Tn),$r=Math.min(Pr.length-(st.length==1?xn:0),Sr.length-(Tn.length==1?xn:0));fi<$r&&Pr.charCodeAt(Pr.length-fi-1)==Sr.charCodeAt(Sr.length-fi-1);)++fi;if(st.length==1&&Tn.length==1&&ne==y.line)for(;xn&&xn>y.ch&&Pr.charCodeAt(Pr.length-fi-1)==Sr.charCodeAt(Sr.length-fi-1);)xn--,fi++;st[st.length-1]=Pr.slice(0,Pr.length-fi).replace(/^\u200b+/,""),st[0]=st[0].slice(xn).replace(/\u200b+$/,"");var vo=at(ne,xn),yr=at(Ze,Tn.length?Jn(Tn).length-fi:0);if(st.length>1||st[0]||hn(vo,yr))return ws(s.doc,st,vo,yr,"+input"),!0},Ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ja.prototype.reset=function(){this.forceCompositionEnd()},Ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ja.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},Ja.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Ot(this.cm,function(){return So(s.cm)})},Ja.prototype.setUneditable=function(s){s.contentEditable="false"},Ja.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||ge(this.cm,Pd)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},Ja.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},Ja.prototype.onContextMenu=function(){},Ja.prototype.resetPosition=function(){},Ja.prototype.needsContentAttribute=!0;function mf(s,c){var b=as(s,c.line);if(!b||b.hidden)return null;var y=vn(s.doc,c.line),w=js(b,y,c.line),H=an(y,s.doc.direction),ne="left";if(H){var Se=tt(H,c.ch);ne=Se%2?"right":"left"}var ve=ks(w.map,c.ch,ne);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function pp(s){for(var c=s;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function fd(s,c){return c&&(s.bad=!0),s}function pd(s,c,b,y,w){var H="",ne=!1,Se=s.doc.lineSeparator(),ve=!1;function Ze(xn){return function(fi){return fi.id==xn}}function Gt(){ne&&(H+=Se,ve&&(H+=Se),ne=ve=!1)}function st(xn){xn&&(Gt(),H+=xn)}function Tn(xn){if(xn.nodeType==1){var fi=xn.getAttribute("cm-text");if(fi){st(fi);return}var xi=xn.getAttribute("cm-marker"),Fi;if(xi){var or=s.findMarks(at(y,0),at(w+1,0),Ze(+xi));or.length&&(Fi=or[0].find(0))&&st(Nn(s.doc,Fi.from,Fi.to).join(Se));return}if(xn.getAttribute("contenteditable")=="false")return;var Pr=/^(pre|div|p|li|table|br)$/i.test(xn.nodeName);if(!/^br$/i.test(xn.nodeName)&&xn.textContent.length==0)return;Pr&&Gt();for(var Sr=0;Sr<xn.childNodes.length;Sr++)Tn(xn.childNodes[Sr]);/^(pre|p)$/i.test(xn.nodeName)&&(ve=!0),Pr&&(ne=!0)}else xn.nodeType==3&&st(xn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Tn(c),c!=b;)c=c.nextSibling,ve=!1;return H}function Bd(s,c,b){var y;if(c==s.display.lineDiv){if(y=s.display.lineDiv.childNodes[b],!y)return fd(s.clipPos(at(s.display.viewTo-1)),!0);c=null,b=0}else for(y=c;;y=y.parentNode){if(!y||y==s.display.lineDiv)return null;if(y.parentNode&&y.parentNode==s.display.lineDiv)break}for(var w=0;w<s.display.view.length;w++){var H=s.display.view[w];if(H.node==y)return y0(H,c,b)}}function y0(s,c,b){var y=s.text.firstChild,w=!1;if(!c||!lt(y,c))return fd(at(Ke(s.line),0),!0);if(c==y&&(w=!0,c=y.childNodes[b],b=0,!c)){var H=s.rest?Jn(s.rest):s.line;return fd(at(Ke(H),H.text.length),w)}var ne=c.nodeType==3?c:null,Se=c;for(!ne&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(ne=c.firstChild,b&&(b=ne.nodeValue.length));Se.parentNode!=y;)Se=Se.parentNode;var ve=s.measure,Ze=ve.maps;function Gt(Fi,or,Pr){for(var Sr=-1;Sr<(Ze?Ze.length:0);Sr++)for(var $r=Sr<0?ve.map:Ze[Sr],vo=0;vo<$r.length;vo+=3){var yr=$r[vo+2];if(yr==Fi||yr==or){var $o=Ke(Sr<0?s.line:s.rest[Sr]),fs=$r[vo]+Pr;return(Pr<0||yr!=Fi)&&(fs=$r[vo+(Pr?1:0)]),at($o,fs)}}}var st=Gt(ne,Se,b);if(st)return fd(st,w);for(var Tn=Se.nextSibling,xn=ne?ne.nodeValue.length-b:0;Tn;Tn=Tn.nextSibling){if(st=Gt(Tn,Tn.firstChild,0),st)return fd(at(st.line,st.ch-xn),w);xn+=Tn.textContent.length}for(var fi=Se.previousSibling,xi=b;fi;fi=fi.previousSibling){if(st=Gt(fi,fi.firstChild,-1),st)return fd(at(st.line,st.ch+xi),w);xi+=fi.textContent.length}}var tl=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null};tl.prototype.init=function(s){var c=this,b=this,y=this.cm;this.createField(s);var w=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),Oe&&(w.style.width="0px"),Bt(w,"input",function(){G&&F>=9&&c.hasSelection&&(c.hasSelection=null),b.poll()}),Bt(w,"paste",function(ne){Ut(y,ne)||up(ne,y)||(y.state.pasteIncoming=+new Date,b.fastPoll())});function H(ne){if(!Ut(y,ne)){if(y.somethingSelected())Hh({lineWise:!1,text:y.getSelections()});else if(y.options.lineWiseCopyCut){var Se=hp(y);Hh({lineWise:!0,text:Se.text}),ne.type=="cut"?y.setSelections(Se.ranges,null,St):(b.prevInput="",w.value=Se.text.join(`
|
|
|
`),Tt(w))}else return;ne.type=="cut"&&(y.state.cutIncoming=+new Date)}}Bt(w,"cut",H),Bt(w,"copy",H),Bt(s.scroller,"paste",function(ne){if(!(Ps(s,ne)||Ut(y,ne))){if(!w.dispatchEvent){y.state.pasteIncoming=+new Date,b.focus();return}var Se=new Event("paste");Se.clipboardData=ne.clipboardData,w.dispatchEvent(Se)}}),Bt(s.lineSpace,"selectstart",function(ne){Ps(s,ne)||Bn(ne)}),Bt(w,"compositionstart",function(){var ne=y.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:ne,range:y.markText(ne,y.getCursor("to"),{className:"CodeMirror-composing"})}}),Bt(w,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},tl.prototype.createField=function(s){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},tl.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var s=this.cm,c=s.display,b=s.doc,y=hu(s);if(s.options.moveInputWithCursor){var w=ka(s,b.sel.primary().head,"div"),H=c.wrapper.getBoundingClientRect(),ne=c.lineDiv.getBoundingClientRect();y.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,w.top+ne.top-H.top)),y.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,w.left+ne.left-H.left))}return y},tl.prototype.showSelection=function(s){var c=this.cm,b=c.display;Pe(b.cursorDiv,s.cursors),Pe(b.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},tl.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var b=c.getSelection();this.textarea.value=b,c.state.focused&&Tt(this.textarea),G&&F>=9&&(this.hasSelection=b)}else s||(this.prevInput=this.textarea.value="",G&&F>=9&&(this.hasSelection=null))}},tl.prototype.getField=function(){return this.textarea},tl.prototype.supportsTouch=function(){return!1},tl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ae||We()!=this.textarea))try{this.textarea.focus()}catch(s){}},tl.prototype.blur=function(){this.textarea.blur()},tl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tl.prototype.receivedFocus=function(){this.slowPoll()},tl.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},tl.prototype.fastPoll=function(){var s=!1,c=this;c.pollingFast=!0;function b(){var y=c.poll();!y&&!s?(s=!0,c.polling.set(60,b)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,b)},tl.prototype.poll=function(){var s=this,c=this.cm,b=this.textarea,y=this.prevInput;if(this.contextMenuPending||!c.state.focused||U(b)&&!y&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var w=b.value;if(w==y&&!c.somethingSelected())return!1;if(G&&F>=9&&this.hasSelection===w||Re&&/[\uf700-\uf7ff]/.test(w))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var H=w.charCodeAt(0);if(H==8203&&!y&&(y="\u200B"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var ne=0,Se=Math.min(y.length,w.length);ne<Se&&y.charCodeAt(ne)==w.charCodeAt(ne);)++ne;return Ot(c,function(){Pd(c,w.slice(ne),y.length-ne,null,s.composing?"*compose":null),w.length>1e3||w.indexOf(`
|
|
|
`)>-1?b.value=s.prevInput="":s.prevInput=w,s.composing&&(s.composing.range.clear(),s.composing.range=c.markText(s.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tl.prototype.onKeyPress=function(){G&&F>=9&&(this.hasSelection=null),this.fastPoll()},tl.prototype.onContextMenu=function(s){var c=this,b=c.cm,y=b.display,w=c.textarea;c.contextMenuPending&&c.contextMenuPending();var H=Fs(b,s),ne=y.scroller.scrollTop;if(!H||te)return;var Se=b.options.resetSelectionOnContextMenu;Se&&b.doc.sel.contains(H)==-1&&ge(b,g)(b.doc,Ni(H),St);var ve=w.style.cssText,Ze=c.wrapper.style.cssText,Gt=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(s.clientY-Gt.top-5)+"px; left: "+(s.clientX-Gt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var st;M&&(st=window.scrollY),y.input.focus(),M&&window.scrollTo(null,st),y.input.reset(),b.somethingSelected()||(w.value=c.prevInput=" "),c.contextMenuPending=xn,y.selForContextMenu=b.doc.sel,clearTimeout(y.detectingSelectAll);function Tn(){if(w.selectionStart!=null){var xi=b.somethingSelected(),Fi="\u200B"+(xi?w.value:"");w.value="\u21DA",w.value=Fi,c.prevInput=xi?"":"\u200B",w.selectionStart=1,w.selectionEnd=Fi.length,y.selForContextMenu=b.doc.sel}}function xn(){if(c.contextMenuPending==xn&&(c.contextMenuPending=!1,c.wrapper.style.cssText=Ze,w.style.cssText=ve,G&&F<9&&y.scrollbars.setScrollTop(y.scroller.scrollTop=ne),w.selectionStart!=null)){(!G||G&&F<9)&&Tn();var xi=0,Fi=function(){y.selForContextMenu==b.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&c.prevInput=="\u200B"?ge(b,Yr)(b):xi++<10?y.detectingSelectAll=setTimeout(Fi,500):(y.selForContextMenu=null,y.input.reset())};y.detectingSelectAll=setTimeout(Fi,200)}}if(G&&F>=9&&Tn(),ke){Ti(s);var fi=function(){gn(window,"mouseup",fi),setTimeout(xn,20)};Bt(window,"mouseup",fi)}else setTimeout(xn,50)},tl.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},tl.prototype.setUneditable=function(){},tl.prototype.needsContentAttribute=!1;function b0(s,c){if(c=c?wn(c):{},c.value=s.value,!c.tabindex&&s.tabIndex&&(c.tabindex=s.tabIndex),!c.placeholder&&s.placeholder&&(c.placeholder=s.placeholder),c.autofocus==null){var b=We();c.autofocus=b==s||s.getAttribute("autofocus")!=null&&b==document.body}function y(){s.value=Se.getValue()}var w;if(s.form&&(Bt(s.form,"submit",y),!c.leaveSubmitMethodAlone)){var H=s.form;w=H.submit;try{var ne=H.submit=function(){y(),H.submit=w,H.submit(),H.submit=ne}}catch(ve){}}c.finishInit=function(ve){ve.save=y,ve.getTextArea=function(){return s},ve.toTextArea=function(){ve.toTextArea=isNaN,y(),s.parentNode.removeChild(ve.getWrapperElement()),s.style.display="",s.form&&(gn(s.form,"submit",y),!c.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=w))}},s.style.display="none";var Se=Ca(function(ve){return s.parentNode.insertBefore(ve,s.nextSibling)},c);return Se}function md(s){s.off=gn,s.on=Bt,s.wheelEventPixels=qt,s.Doc=$i,s.splitLines=tr,s.countColumn=qe,s.findColumn=ai,s.isWordChar=j,s.Pass=Vt,s.signal=Qe,s.Line=Ya,s.changeEnd=Mr,s.scrollbarModel=Tu,s.Pos=at,s.cmpPos=hn,s.modes=jr,s.mimeModes=so,s.resolveMode=vr,s.getMode=Ji,s.modeExtensions=di,s.extendMode=ft,s.copyState=Un,s.startState=vt,s.innerMode=Wn,s.commands=Hs,s.keyMap=Is,s.keyName=Pc,s.isModifierKey=Au,s.lookupKey=_s,s.normalizeKeyMap=Kl,s.StringStream=Ve,s.SharedTextMarker=pt,s.TextMarker=Y,s.LineWidget=S,s.e_preventDefault=Bn,s.e_stopPropagation=kn,s.e_stop=Ti,s.addClass=Pt,s.contains=lt,s.rmClass=Ne,s.keyNames=ha}g0(Ca),ph(Ca);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var _d in $i.prototype)$i.prototype.hasOwnProperty(_d)&&le(Qc,_d)<0&&(Ca.prototype[_d]=function(s){return function(){return s.apply(this.doc,arguments)}}($i.prototype[_d]));return He($i),Ca.inputStyles={textarea:tl,contenteditable:Ja},Ca.defineMode=function(s){!Ca.defaults.mode&&s!="null"&&(Ca.defaults.mode=s),Ar.apply(this,arguments)},Ca.defineMIME=to,Ca.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(s,c){Ca.prototype[s]=c},Ca.defineDocExtension=function(s,c){$i.prototype[s]=c},Ca.fromTextArea=b0,md(Ca),Ca.version="5.58.2",Ca})},25419:function(Q,C,h){(function(v){v(h(89780),h(15525),h(98101))})(function(v){"use strict";v.defineMode("markdown",function(I,O){var B=v.getMode(I,"text/html"),G=B.name=="null";function F(qe){if(v.findModeByName){var ae=v.findModeByName(qe);ae&&(qe=ae.mime||ae.mimes[0])}var le=v.getMode(I,qe);return le.name=="null"?null:le}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 M={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 he in M)M.hasOwnProperty(he)&&O.tokenTypeOverrides[he]&&(M[he]=O.tokenTypeOverrides[he]);var ue=/^([*\-_])(?:\s*\1){2,}\s*$/,te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Me=/^\[(x| )\](?=\s)/i,we=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Oe=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ae=/^\s*\[[^\]]+?\]:.*$/,Re=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,de=" ";function pe(qe,ae,le){return ae.f=ae.inline=le,le(qe,ae)}function be(qe,ae,le){return ae.f=ae.block=le,le(qe,ae)}function me(qe){return!qe||!/\S/.test(qe.string)}function ke(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==Ne){var ae=G;if(!ae){var le=v.innerMode(B,qe.htmlState);ae=le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText}ae&&(qe.f=Ye,qe.block=ee,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function ee(qe,ae){var le=qe.column()===ae.indentation,$t=me(ae.prevLine.stream),Vt=ae.indentedCode,St=ae.prevLine.hr,un=ae.list!==!1,Ft=(ae.listStack[ae.listStack.length-1]||0)+3;ae.indentedCode=!1;var ai=ae.indentation;if(ae.indentationDiff===null&&(ae.indentationDiff=ae.indentation,un)){for(ae.list=null;ai<ae.listStack[ae.listStack.length-1];)ae.listStack.pop(),ae.listStack.length?ae.indentation=ae.listStack[ae.listStack.length-1]:ae.list=!1;ae.list!==!1&&(ae.indentationDiff=ai-ae.listStack[ae.listStack.length-1])}var On=!$t&&!St&&!ae.prevLine.header&&(!un||!Vt)&&!ae.prevLine.fencedCodeEnd,ni=(ae.list===!1||St||$t)&&ae.indentation<=Ft&&qe.match(ue),Jn=null;if(ae.indentationDiff>=4&&(Vt||ae.prevLine.fencedCodeEnd||ae.prevLine.header||$t))return qe.skipToEnd(),ae.indentedCode=!0,M.code;if(qe.eatSpace())return null;if(le&&ae.indentation<=Ft&&(Jn=qe.match(we))&&Jn[1].length<=6)return ae.quote=0,ae.header=Jn[1].length,ae.thisLine.header=!0,O.highlightFormatting&&(ae.formatting="header"),ae.f=ae.inline,Pe(ae);if(ae.indentation<=Ft&&qe.eat(">"))return ae.quote=le?1:ae.quote+1,O.highlightFormatting&&(ae.formatting="quote"),qe.eatSpace(),Pe(ae);if(!ni&&!ae.setext&&le&&ae.indentation<=Ft&&(Jn=qe.match(te))){var In=Jn[1]?"ol":"ul";return ae.indentation=ai+qe.current().length,ae.list=!0,ae.quote=0,ae.listStack.push(ae.indentation),ae.em=!1,ae.strong=!1,ae.code=!1,ae.strikethrough=!1,O.taskLists&&qe.match(Me,!1)&&(ae.taskList=!0),ae.f=ae.inline,O.highlightFormatting&&(ae.formatting=["list","list-"+In]),Pe(ae)}else{if(le&&ae.indentation<=Ft&&(Jn=qe.match(Te,!0)))return ae.quote=0,ae.fencedEndRE=new RegExp(Jn[1]+"+ *$"),ae.localMode=O.fencedCodeBlockHighlighting&&F(Jn[2]||O.fencedCodeBlockDefaultMode),ae.localMode&&(ae.localState=v.startState(ae.localMode)),ae.f=ae.block=Ie,O.highlightFormatting&&(ae.formatting="code-block"),ae.code=-1,Pe(ae);if(ae.setext||(!On||!un)&&!ae.quote&&ae.list===!1&&!ae.code&&!ni&&!Ae.test(qe.string)&&(Jn=qe.lookAhead(1))&&(Jn=Jn.match(Je)))return ae.setext?(ae.header=ae.setext,ae.setext=0,qe.skipToEnd(),O.highlightFormatting&&(ae.formatting="header")):(ae.header=Jn[0].charAt(0)=="="?1:2,ae.setext=ae.header),ae.thisLine.header=!0,ae.f=ae.inline,Pe(ae);if(ni)return qe.skipToEnd(),ae.hr=!0,ae.thisLine.hr=!0,M.hr;if(qe.peek()==="[")return pe(qe,ae,xt)}return pe(qe,ae,ae.inline)}function Ne(qe,ae){var le=B.token(qe,ae.htmlState);if(!G){var $t=v.innerMode(B,ae.htmlState);($t.mode.name=="xml"&&$t.state.tagStart===null&&!$t.state.context&&$t.state.tokenize.isInText||ae.md_inside&&qe.current().indexOf(">")>-1)&&(ae.f=Ye,ae.block=ee,ae.htmlState=null)}return le}function Ie(qe,ae){var le=ae.listStack[ae.listStack.length-1]||0,$t=ae.indentation<le,Vt=le+3;if(ae.fencedEndRE&&ae.indentation<=Vt&&($t||qe.match(ae.fencedEndRE))){O.highlightFormatting&&(ae.formatting="code-block");var St;return $t||(St=Pe(ae)),ae.localMode=ae.localState=null,ae.block=ee,ae.f=Ye,ae.fencedEndRE=null,ae.code=0,ae.thisLine.fencedCodeEnd=!0,$t?be(qe,ae,ae.block):St}else return ae.localMode?ae.localMode.token(qe,ae.localState):(qe.skipToEnd(),M.code)}function Pe(qe){var ae=[];if(qe.formatting){ae.push(M.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var le=0;le<qe.formatting.length;le++)ae.push(M.formatting+"-"+qe.formatting[le]),qe.formatting[le]==="header"&&ae.push(M.formatting+"-"+qe.formatting[le]+"-"+qe.header),qe.formatting[le]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=qe.quote?ae.push(M.formatting+"-"+qe.formatting[le]+"-"+qe.quote):ae.push("error"))}if(qe.taskOpen)return ae.push("meta"),ae.length?ae.join(" "):null;if(qe.taskClosed)return ae.push("property"),ae.length?ae.join(" "):null;if(qe.linkHref?ae.push(M.linkHref,"url"):(qe.strong&&ae.push(M.strong),qe.em&&ae.push(M.em),qe.strikethrough&&ae.push(M.strikethrough),qe.emoji&&ae.push(M.emoji),qe.linkText&&ae.push(M.linkText),qe.code&&ae.push(M.code),qe.image&&ae.push(M.image),qe.imageAltText&&ae.push(M.imageAltText,"link"),qe.imageMarker&&ae.push(M.imageMarker)),qe.header&&ae.push(M.header,M.header+"-"+qe.header),qe.quote&&(ae.push(M.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=qe.quote?ae.push(M.quote+"-"+qe.quote):ae.push(M.quote+"-"+O.maxBlockquoteDepth)),qe.list!==!1){var $t=(qe.listStack.length-1)%3;$t?$t===1?ae.push(M.list2):ae.push(M.list3):ae.push(M.list1)}return qe.trailingSpaceNewLine?ae.push("trailing-space-new-line"):qe.trailingSpace&&ae.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),ae.length?ae.join(" "):null}function Xe(qe,ae){if(qe.match(Oe,!0))return Pe(ae)}function Ye(qe,ae){var le=ae.text(qe,ae);if(typeof le!="undefined")return le;if(ae.list)return ae.list=null,Pe(ae);if(ae.taskList){var $t=qe.match(Me,!0)[1]===" ";return $t?ae.taskOpen=!0:ae.taskClosed=!0,O.highlightFormatting&&(ae.formatting="task"),ae.taskList=!1,Pe(ae)}if(ae.taskOpen=!1,ae.taskClosed=!1,ae.header&&qe.match(/^#+$/,!0))return O.highlightFormatting&&(ae.formatting="header"),Pe(ae);var Vt=qe.next();if(ae.linkTitle){ae.linkTitle=!1;var St=Vt;Vt==="("&&(St=")"),St=(St+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var un="^\\s*(?:[^"+St+"\\\\]+|\\\\\\\\|\\\\.)"+St;if(qe.match(new RegExp(un),!0))return M.linkHref}if(Vt==="`"){var Ft=ae.formatting;O.highlightFormatting&&(ae.formatting="code"),qe.eatWhile("`");var ai=qe.current().length;if(ae.code==0&&(!ae.quote||ai==1))return ae.code=ai,Pe(ae);if(ai==ae.code){var On=Pe(ae);return ae.code=0,On}else return ae.formatting=Ft,Pe(ae)}else if(ae.code)return Pe(ae);if(Vt==="\\"&&(qe.next(),O.highlightFormatting)){var ni=Pe(ae),Jn=M.formatting+"-escape";return ni?ni+" "+Jn:Jn}if(Vt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ae.imageMarker=!0,ae.image=!0,O.highlightFormatting&&(ae.formatting="image"),Pe(ae);if(Vt==="["&&ae.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ae.imageMarker=!1,ae.imageAltText=!0,O.highlightFormatting&&(ae.formatting="image"),Pe(ae);if(Vt==="]"&&ae.imageAltText){O.highlightFormatting&&(ae.formatting="image");var ni=Pe(ae);return ae.imageAltText=!1,ae.image=!1,ae.inline=ae.f=lt,ni}if(Vt==="["&&!ae.image)return ae.linkText&&qe.match(/^.*?\]/)||(ae.linkText=!0,O.highlightFormatting&&(ae.formatting="link")),Pe(ae);if(Vt==="]"&&ae.linkText){O.highlightFormatting&&(ae.formatting="link");var ni=Pe(ae);return ae.linkText=!1,ae.inline=ae.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?lt:Ye,ni}if(Vt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ae.f=ae.inline=ie,O.highlightFormatting&&(ae.formatting="link");var ni=Pe(ae);return ni?ni+=" ":ni="",ni+M.linkInline}if(Vt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ae.f=ae.inline=ie,O.highlightFormatting&&(ae.formatting="link");var ni=Pe(ae);return ni?ni+=" ":ni="",ni+M.linkEmail}if(O.xml&&Vt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var In=qe.string.indexOf(">",qe.pos);if(In!=-1){var Mn=qe.string.substring(qe.start,In);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Mn)&&(ae.md_inside=!0)}return qe.backUp(1),ae.htmlState=v.startState(B),be(qe,ae,Ne)}if(O.xml&&Vt==="<"&&qe.match(/^\/\w*?>/))return ae.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var xe=1,P=qe.pos==1?" ":qe.string.charAt(qe.pos-2);xe<3&&qe.eat(Vt);)xe++;var k=qe.peek()||" ",j=!/\s/.test(k)&&(!Re.test(k)||/\s/.test(P)||Re.test(P)),X=!/\s/.test(P)&&(!Re.test(P)||/\s/.test(k)||Re.test(k)),T=null,_e=null;if(xe%2&&(!ae.em&&j&&(Vt==="*"||!X||Re.test(P))?T=!0:ae.em==Vt&&X&&(Vt==="*"||!j||Re.test(k))&&(T=!1)),xe>1&&(!ae.strong&&j&&(Vt==="*"||!X||Re.test(P))?_e=!0:ae.strong==Vt&&X&&(Vt==="*"||!j||Re.test(k))&&(_e=!1)),_e!=null||T!=null){O.highlightFormatting&&(ae.formatting=T==null?"strong":_e==null?"em":"strong em"),T===!0&&(ae.em=Vt),_e===!0&&(ae.strong=Vt);var On=Pe(ae);return T===!1&&(ae.em=!1),_e===!1&&(ae.strong=!1),On}}else if(Vt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return Pe(ae);qe.backUp(1)}if(O.strikethrough){if(Vt==="~"&&qe.eatWhile(Vt)){if(ae.strikethrough){O.highlightFormatting&&(ae.formatting="strikethrough");var On=Pe(ae);return ae.strikethrough=!1,On}else if(qe.match(/^[^\s]/,!1))return ae.strikethrough=!0,O.highlightFormatting&&(ae.formatting="strikethrough"),Pe(ae)}else if(Vt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return Pe(ae);qe.backUp(2)}}if(O.emoji&&Vt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ae.emoji=!0,O.highlightFormatting&&(ae.formatting="emoji");var kt=Pe(ae);return ae.emoji=!1,kt}return Vt===" "&&(qe.match(/^ +$/,!1)?ae.trailingSpace++:ae.trailingSpace&&(ae.trailingSpaceNewLine=!0)),Pe(ae)}function ie(qe,ae){var le=qe.next();if(le===">"){ae.f=ae.inline=Ye,O.highlightFormatting&&(ae.formatting="link");var $t=Pe(ae);return $t?$t+=" ":$t="",$t+M.linkInline}return qe.match(/^[^>]+/,!0),M.linkInline}function lt(qe,ae){if(qe.eatSpace())return null;var le=qe.next();return le==="("||le==="["?(ae.f=ae.inline=Pt(le==="("?")":"]"),O.highlightFormatting&&(ae.formatting="link-string"),ae.linkHref=!0,Pe(ae)):"error"}var We={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pt(qe){return function(ae,le){var $t=ae.next();if($t===qe){le.f=le.inline=Ye,O.highlightFormatting&&(le.formatting="link-string");var Vt=Pe(le);return le.linkHref=!1,Vt}return ae.match(We[qe]),le.linkHref=!0,Pe(le)}}function xt(qe,ae){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ae.f=Tt,qe.next(),O.highlightFormatting&&(ae.formatting="link"),ae.linkText=!0,Pe(ae)):pe(qe,ae,Ye)}function Tt(qe,ae){if(qe.match(/^\]:/,!0)){ae.f=ae.inline=Et,O.highlightFormatting&&(ae.formatting="link");var le=Pe(ae);return ae.linkText=!1,le}return qe.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function Et(qe,ae){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?ae.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ae.f=ae.inline=Ye,M.linkHref+" url")}var wn={startState:function(){return{f:ee,prevLine:{stream:null},thisLine:{stream:null},block:ee,htmlState:null,indentation:0,inline:Ye,text:Xe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&v.copyState(B,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?v.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,ae){if(ae.formatting=!1,qe!=ae.thisLine.stream){if(ae.header=0,ae.hr=!1,qe.match(/^\s*$/,!0))return ke(ae),null;if(ae.prevLine=ae.thisLine,ae.thisLine={stream:qe},ae.taskList=!1,ae.trailingSpace=0,ae.trailingSpaceNewLine=!1,!ae.localState&&(ae.f=ae.block,ae.f!=Ne)){var le=qe.match(/^\s*/,!0)[0].replace(/\t/g,de).length;if(ae.indentation=le,ae.indentationDiff=null,le>0)return null}}return ae.f(qe,ae)},innerMode:function(qe){return qe.block==Ne?{state:qe.htmlState,mode:B}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:wn}},indent:function(qe,ae,le){return qe.block==Ne&&B.indent?B.indent(qe.htmlState,ae,le):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,ae,le):v.Pass},blankLine:ke,getType:Pe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wn},"xml"),v.defineMIME("text/markdown","markdown"),v.defineMIME("text/x-markdown","markdown")})},98101:function(Q,C,h){(function(v){v(h(89780))})(function(v){"use strict";v.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 I=0;I<v.modeInfo.length;I++){var O=v.modeInfo[I];O.mimes&&(O.mime=O.mimes[0])}v.findModeByMIME=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.mime==B)return F;if(F.mimes){for(var M=0;M<F.mimes.length;M++)if(F.mimes[M]==B)return F}}if(/\+xml$/.test(B))return v.findModeByMIME("application/xml");if(/\+json$/.test(B))return v.findModeByMIME("application/json")},v.findModeByExtension=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.ext){for(var M=0;M<F.ext.length;M++)if(F.ext[M]==B)return F}}},v.findModeByFileName=function(B){for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.file&&F.file.test(B))return F}var M=B.lastIndexOf("."),he=M>-1&&B.substring(M+1,B.length);if(he)return v.findModeByExtension(he)},v.findModeByName=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.name.toLowerCase()==B)return F;if(F.alias){for(var M=0;M<F.alias.length;M++)if(F.alias[M].toLowerCase()==B)return F}}}})},67549:function(Q,C,h){(function(v){v(h(89780))})(function(v){"use strict";v.defineMode("stex",function(I,O){"use strict";function B(Oe,Te){Oe.cmdState.push(Te)}function G(Oe){return Oe.cmdState.length>0?Oe.cmdState[Oe.cmdState.length-1]:null}function F(Oe){var Te=Oe.cmdState.pop();Te&&Te.closeBracket()}function M(Oe){for(var Te=Oe.cmdState,Ae=Te.length-1;Ae>=0;Ae--){var Re=Te[Ae];if(Re.name!="DEFAULT")return Re}return{styleIdentifier:function(){return null}}}function he(Oe,Te,Ae){return function(){this.name=Oe,this.bracketNo=0,this.style=Te,this.styles=Ae,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ue={};ue.importmodule=he("importmodule","tag",["string","builtin"]),ue.documentclass=he("documentclass","tag",["","atom"]),ue.usepackage=he("usepackage","tag",["atom"]),ue.begin=he("begin","tag",["atom"]),ue.end=he("end","tag",["atom"]),ue.label=he("label","tag",["atom"]),ue.ref=he("ref","tag",["atom"]),ue.eqref=he("eqref","tag",["atom"]),ue.cite=he("cite","tag",["atom"]),ue.bibitem=he("bibitem","tag",["atom"]),ue.Bibitem=he("Bibitem","tag",["atom"]),ue.RBibitem=he("RBibitem","tag",["atom"]),ue.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function te(Oe,Te){Oe.f=Te}function Me(Oe,Te){var Ae;if(Oe.match(/^\\[a-zA-Z@]+/)){var Re=Oe.current().slice(1);return Ae=ue.hasOwnProperty(Re)?ue[Re]:ue.DEFAULT,Ae=new Ae,B(Te,Ae),te(Te,Je),Ae.style}if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/\\]/))return"tag";if(Oe.match("\\["))return te(Te,function(pe,be){return we(pe,be,"\\]")}),"keyword";if(Oe.match("\\("))return te(Te,function(pe,be){return we(pe,be,"\\)")}),"keyword";if(Oe.match("$$"))return te(Te,function(pe,be){return we(pe,be,"$$")}),"keyword";if(Oe.match("$"))return te(Te,function(pe,be){return we(pe,be,"$")}),"keyword";var de=Oe.next();if(de=="%")return Oe.skipToEnd(),"comment";if(de=="}"||de=="]"){if(Ae=G(Te),Ae)Ae.closeBracket(de),te(Te,Je);else return"error";return"bracket"}else return de=="{"||de=="["?(Ae=ue.DEFAULT,Ae=new Ae,B(Te,Ae),"bracket"):/\d/.test(de)?(Oe.eatWhile(/[\w.%]/),"atom"):(Oe.eatWhile(/[\w\-_]/),Ae=M(Te),Ae.name=="begin"&&(Ae.argument=Oe.current()),Ae.styleIdentifier())}function we(Oe,Te,Ae){if(Oe.eatSpace())return null;if(Ae&&Oe.match(Ae))return te(Te,Me),"keyword";if(Oe.match(/^\\[a-zA-Z@]+/))return"tag";if(Oe.match(/^[a-zA-Z]+/))return"variable-2";if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/]/)||Oe.match(/^[\^_&]/))return"tag";if(Oe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Oe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Re=Oe.next();return Re=="{"||Re=="}"||Re=="["||Re=="]"||Re=="("||Re==")"?"bracket":Re=="%"?(Oe.skipToEnd(),"comment"):"error"}function Je(Oe,Te){var Ae=Oe.peek(),Re;return Ae=="{"||Ae=="["?(Re=G(Te),Re.openBracket(Ae),Oe.eat(Ae),te(Te,Me),"bracket"):/[ \t\r]/.test(Ae)?(Oe.eat(Ae),null):(te(Te,Me),F(Te),Me(Oe,Te))}return{startState:function(){var Oe=O.inMathMode?function(Te,Ae){return we(Te,Ae)}:Me;return{cmdState:[],f:Oe}},copyState:function(Oe){return{cmdState:Oe.cmdState.slice(),f:Oe.f}},token:function(Oe,Te){return Te.f(Oe,Te)},blankLine:function(Oe){Oe.f=Me,Oe.cmdState.length=0},lineComment:"%"}}),v.defineMIME("text/x-stex","stex"),v.defineMIME("text/x-latex","stex")})},15525:function(Q,C,h){(function(v){v(h(89780))})(function(v){"use strict";var I={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};v.defineMode("xml",function(B,G){var F=B.indentUnit,M={},he=G.htmlMode?I:O;for(var ue in he)M[ue]=he[ue];for(var ue in G)M[ue]=G[ue];var te,Me;function we(ie,lt){function We(Tt){return lt.tokenize=Tt,Tt(ie,lt)}var Pt=ie.next();if(Pt=="<")return ie.eat("!")?ie.eat("[")?ie.match("CDATA[")?We(Te("atom","]]>")):null:ie.match("--")?We(Te("comment","-->")):ie.match("DOCTYPE",!0,!0)?(ie.eatWhile(/[\w\._\-]/),We(Ae(1))):null:ie.eat("?")?(ie.eatWhile(/[\w\._\-]/),lt.tokenize=Te("meta","?>"),"meta"):(te=ie.eat("/")?"closeTag":"openTag",lt.tokenize=Je,"tag bracket");if(Pt=="&"){var xt;return ie.eat("#")?ie.eat("x")?xt=ie.eatWhile(/[a-fA-F\d]/)&&ie.eat(";"):xt=ie.eatWhile(/[\d]/)&&ie.eat(";"):xt=ie.eatWhile(/[\w\.\-:]/)&&ie.eat(";"),xt?"atom":"error"}else return ie.eatWhile(/[^&<]/),null}we.isInText=!0;function Je(ie,lt){var We=ie.next();if(We==">"||We=="/"&&ie.eat(">"))return lt.tokenize=we,te=We==">"?"endTag":"selfcloseTag","tag bracket";if(We=="=")return te="equals",null;if(We=="<"){lt.tokenize=we,lt.state=be,lt.tagName=lt.tagStart=null;var Pt=lt.tokenize(ie,lt);return Pt?Pt+" tag error":"tag error"}else return/[\'\"]/.test(We)?(lt.tokenize=Oe(We),lt.stringStartCol=ie.column(),lt.tokenize(ie,lt)):(ie.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Oe(ie){var lt=function(We,Pt){for(;!We.eol();)if(We.next()==ie){Pt.tokenize=Je;break}return"string"};return lt.isInAttribute=!0,lt}function Te(ie,lt){return function(We,Pt){for(;!We.eol();){if(We.match(lt)){Pt.tokenize=we;break}We.next()}return ie}}function Ae(ie){return function(lt,We){for(var Pt;(Pt=lt.next())!=null;){if(Pt=="<")return We.tokenize=Ae(ie+1),We.tokenize(lt,We);if(Pt==">")if(ie==1){We.tokenize=we;break}else return We.tokenize=Ae(ie-1),We.tokenize(lt,We)}return"meta"}}function Re(ie,lt,We){this.prev=ie.context,this.tagName=lt,this.indent=ie.indented,this.startOfLine=We,(M.doNotIndent.hasOwnProperty(lt)||ie.context&&ie.context.noIndent)&&(this.noIndent=!0)}function de(ie){ie.context&&(ie.context=ie.context.prev)}function pe(ie,lt){for(var We;;){if(!ie.context||(We=ie.context.tagName,!M.contextGrabbers.hasOwnProperty(We)||!M.contextGrabbers[We].hasOwnProperty(lt)))return;de(ie)}}function be(ie,lt,We){return ie=="openTag"?(We.tagStart=lt.column(),me):ie=="closeTag"?ke:be}function me(ie,lt,We){return ie=="word"?(We.tagName=lt.current(),Me="tag",Ie):M.allowMissingTagName&&ie=="endTag"?(Me="tag bracket",Ie(ie,lt,We)):(Me="error",me)}function ke(ie,lt,We){if(ie=="word"){var Pt=lt.current();return We.context&&We.context.tagName!=Pt&&M.implicitlyClosed.hasOwnProperty(We.context.tagName)&&de(We),We.context&&We.context.tagName==Pt||M.matchClosing===!1?(Me="tag",ee):(Me="tag error",Ne)}else return M.allowMissingTagName&&ie=="endTag"?(Me="tag bracket",ee(ie,lt,We)):(Me="error",Ne)}function ee(ie,lt,We){return ie!="endTag"?(Me="error",ee):(de(We),be)}function Ne(ie,lt,We){return Me="error",ee(ie,lt,We)}function Ie(ie,lt,We){if(ie=="word")return Me="attribute",Pe;if(ie=="endTag"||ie=="selfcloseTag"){var Pt=We.tagName,xt=We.tagStart;return We.tagName=We.tagStart=null,ie=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(Pt)?pe(We,Pt):(pe(We,Pt),We.context=new Re(We,Pt,xt==We.indented)),be}return Me="error",Ie}function Pe(ie,lt,We){return ie=="equals"?Xe:(M.allowMissing||(Me="error"),Ie(ie,lt,We))}function Xe(ie,lt,We){return ie=="string"?Ye:ie=="word"&&M.allowUnquoted?(Me="string",Ie):(Me="error",Ie(ie,lt,We))}function Ye(ie,lt,We){return ie=="string"?Ye:Ie(ie,lt,We)}return{startState:function(ie){var lt={tokenize:we,state:be,indented:ie||0,tagName:null,tagStart:null,context:null};return ie!=null&&(lt.baseIndent=ie),lt},token:function(ie,lt){if(!lt.tagName&&ie.sol()&&(lt.indented=ie.indentation()),ie.eatSpace())return null;te=null;var We=lt.tokenize(ie,lt);return(We||te)&&We!="comment"&&(Me=null,lt.state=lt.state(te||We,ie,lt),Me&&(We=Me=="error"?We+" error":Me)),We},indent:function(ie,lt,We){var Pt=ie.context;if(ie.tokenize.isInAttribute)return ie.tagStart==ie.indented?ie.stringStartCol+1:ie.indented+F;if(Pt&&Pt.noIndent)return v.Pass;if(ie.tokenize!=Je&&ie.tokenize!=we)return We?We.match(/^(\s*)/)[0].length:0;if(ie.tagName)return M.multilineTagIndentPastTag!==!1?ie.tagStart+ie.tagName.length+2:ie.tagStart+F*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(lt))return 0;var xt=lt&&/^<(\/)?([\w_:\.-]*)/.exec(lt);if(xt&&xt[1])for(;Pt;)if(Pt.tagName==xt[2]){Pt=Pt.prev;break}else if(M.implicitlyClosed.hasOwnProperty(Pt.tagName))Pt=Pt.prev;else break;else if(xt)for(;Pt;){var Tt=M.contextGrabbers[Pt.tagName];if(Tt&&Tt.hasOwnProperty(xt[2]))Pt=Pt.prev;else break}for(;Pt&&Pt.prev&&!Pt.startOfLine;)Pt=Pt.prev;return Pt?Pt.indent+F:ie.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(ie){ie.state==Xe&&(ie.state=Ie)},xmlCurrentTag:function(ie){return ie.tagName?{name:ie.tagName,close:ie.type=="closeTag"}:null},xmlCurrentContext:function(ie){for(var lt=[],We=ie.context;We;We=We.prev)We.tagName&<.push(We.tagName);return lt.reverse()}}}),v.defineMIME("text/xml","xml"),v.defineMIME("application/xml","xml"),v.mimeModes.hasOwnProperty("text/html")||v.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Q,C){"use strict";var h;C.Q=B,h=G;var v=",",I=" ",O="";function B(F){for(var M=[],he=String(F||O),ue=he.indexOf(v),te=0,Me=!1,we;!Me;)ue===-1&&(ue=he.length,Me=!0),we=he.slice(te,ue).trim(),(we||!Me)&&M.push(we),te=ue+1,ue=he.indexOf(v,te);return M}function G(F,M){var he=M||{},ue=he.padLeft===!1?O:I,te=he.padRight?I:O;return F[F.length-1]===O&&(F=F.concat(O)),F.join(te+v+ue).trim()}},86204:function(Q){"use strict";var C=typeof Reflect=="object"?Reflect:null,h=C&&typeof C.apply=="function"?C.apply:function(be,me,ke){return Function.prototype.apply.call(be,me,ke)},v;C&&typeof C.ownKeys=="function"?v=C.ownKeys:Object.getOwnPropertySymbols?v=function(be){return Object.getOwnPropertyNames(be).concat(Object.getOwnPropertySymbols(be))}:v=function(be){return Object.getOwnPropertyNames(be)};function I(pe){console&&console.warn&&console.warn(pe)}var O=Number.isNaN||function(be){return be!==be};function B(){B.init.call(this)}Q.exports=B,Q.exports.once=Ae,B.EventEmitter=B,B.prototype._events=void 0,B.prototype._eventsCount=0,B.prototype._maxListeners=void 0;var G=10;function F(pe){if(typeof pe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof pe)}Object.defineProperty(B,"defaultMaxListeners",{enumerable:!0,get:function(){return G},set:function(pe){if(typeof pe!="number"||pe<0||O(pe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+pe+".");G=pe}}),B.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},B.prototype.setMaxListeners=function(be){if(typeof be!="number"||be<0||O(be))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+be+".");return this._maxListeners=be,this};function M(pe){return pe._maxListeners===void 0?B.defaultMaxListeners:pe._maxListeners}B.prototype.getMaxListeners=function(){return M(this)},B.prototype.emit=function(be){for(var me=[],ke=1;ke<arguments.length;ke++)me.push(arguments[ke]);var ee=be==="error",Ne=this._events;if(Ne!==void 0)ee=ee&&Ne.error===void 0;else if(!ee)return!1;if(ee){var Ie;if(me.length>0&&(Ie=me[0]),Ie instanceof Error)throw Ie;var Pe=new Error("Unhandled error."+(Ie?" ("+Ie.message+")":""));throw Pe.context=Ie,Pe}var Xe=Ne[be];if(Xe===void 0)return!1;if(typeof Xe=="function")h(Xe,this,me);else for(var Ye=Xe.length,ie=Je(Xe,Ye),ke=0;ke<Ye;++ke)h(ie[ke],this,me);return!0};function he(pe,be,me,ke){var ee,Ne,Ie;if(F(me),Ne=pe._events,Ne===void 0?(Ne=pe._events=Object.create(null),pe._eventsCount=0):(Ne.newListener!==void 0&&(pe.emit("newListener",be,me.listener?me.listener:me),Ne=pe._events),Ie=Ne[be]),Ie===void 0)Ie=Ne[be]=me,++pe._eventsCount;else if(typeof Ie=="function"?Ie=Ne[be]=ke?[me,Ie]:[Ie,me]:ke?Ie.unshift(me):Ie.push(me),ee=M(pe),ee>0&&Ie.length>ee&&!Ie.warned){Ie.warned=!0;var Pe=new Error("Possible EventEmitter memory leak detected. "+Ie.length+" "+String(be)+" listeners added. Use emitter.setMaxListeners() to increase limit");Pe.name="MaxListenersExceededWarning",Pe.emitter=pe,Pe.type=be,Pe.count=Ie.length,I(Pe)}return pe}B.prototype.addListener=function(be,me){return he(this,be,me,!1)},B.prototype.on=B.prototype.addListener,B.prototype.prependListener=function(be,me){return he(this,be,me,!0)};function ue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function te(pe,be,me){var ke={fired:!1,wrapFn:void 0,target:pe,type:be,listener:me},ee=ue.bind(ke);return ee.listener=me,ke.wrapFn=ee,ee}B.prototype.once=function(be,me){return F(me),this.on(be,te(this,be,me)),this},B.prototype.prependOnceListener=function(be,me){return F(me),this.prependListener(be,te(this,be,me)),this},B.prototype.removeListener=function(be,me){var ke,ee,Ne,Ie,Pe;if(F(me),ee=this._events,ee===void 0)return this;if(ke=ee[be],ke===void 0)return this;if(ke===me||ke.listener===me)--this._eventsCount===0?this._events=Object.create(null):(delete ee[be],ee.removeListener&&this.emit("removeListener",be,ke.listener||me));else if(typeof ke!="function"){for(Ne=-1,Ie=ke.length-1;Ie>=0;Ie--)if(ke[Ie]===me||ke[Ie].listener===me){Pe=ke[Ie].listener,Ne=Ie;break}if(Ne<0)return this;Ne===0?ke.shift():Oe(ke,Ne),ke.length===1&&(ee[be]=ke[0]),ee.removeListener!==void 0&&this.emit("removeListener",be,Pe||me)}return this},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(be){var me,ke,ee;if(ke=this._events,ke===void 0)return this;if(ke.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ke[be]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ke[be]),this;if(arguments.length===0){var Ne=Object.keys(ke),Ie;for(ee=0;ee<Ne.length;++ee)Ie=Ne[ee],Ie!=="removeListener"&&this.removeAllListeners(Ie);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(me=ke[be],typeof me=="function")this.removeListener(be,me);else if(me!==void 0)for(ee=me.length-1;ee>=0;ee--)this.removeListener(be,me[ee]);return this};function Me(pe,be,me){var ke=pe._events;if(ke===void 0)return[];var ee=ke[be];return ee===void 0?[]:typeof ee=="function"?me?[ee.listener||ee]:[ee]:me?Te(ee):Je(ee,ee.length)}B.prototype.listeners=function(be){return Me(this,be,!0)},B.prototype.rawListeners=function(be){return Me(this,be,!1)},B.listenerCount=function(pe,be){return typeof pe.listenerCount=="function"?pe.listenerCount(be):we.call(pe,be)},B.prototype.listenerCount=we;function we(pe){var be=this._events;if(be!==void 0){var me=be[pe];if(typeof me=="function")return 1;if(me!==void 0)return me.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]};function Je(pe,be){for(var me=new Array(be),ke=0;ke<be;++ke)me[ke]=pe[ke];return me}function Oe(pe,be){for(;be+1<pe.length;be++)pe[be]=pe[be+1];pe.pop()}function Te(pe){for(var be=new Array(pe.length),me=0;me<be.length;++me)be[me]=pe[me].listener||pe[me];return be}function Ae(pe,be){return new Promise(function(me,ke){function ee(Ie){pe.removeListener(be,Ne),ke(Ie)}function Ne(){typeof pe.removeListener=="function"&&pe.removeListener("error",ee),me([].slice.call(arguments))}de(pe,be,Ne,{once:!0}),be!=="error"&&Re(pe,ee,{once:!0})})}function Re(pe,be,me){typeof pe.on=="function"&&de(pe,"error",be,me)}function de(pe,be,me,ke){if(typeof pe.on=="function")ke.once?pe.once(be,me):pe.on(be,me);else if(typeof pe.addEventListener=="function")pe.addEventListener(be,function ee(Ne){ke.once&&pe.removeEventListener(be,ee),me(Ne)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof pe)}},58847:function(Q){"use strict";var C=Object.prototype.hasOwnProperty,h=Object.prototype.toString,v=Object.defineProperty,I=Object.getOwnPropertyDescriptor,O=function(he){return typeof Array.isArray=="function"?Array.isArray(he):h.call(he)==="[object Array]"},B=function(he){if(!he||h.call(he)!=="[object Object]")return!1;var ue=C.call(he,"constructor"),te=he.constructor&&he.constructor.prototype&&C.call(he.constructor.prototype,"isPrototypeOf");if(he.constructor&&!ue&&!te)return!1;var Me;for(Me in he);return typeof Me=="undefined"||C.call(he,Me)},G=function(he,ue){v&&ue.name==="__proto__"?v(he,ue.name,{enumerable:!0,configurable:!0,value:ue.newValue,writable:!0}):he[ue.name]=ue.newValue},F=function(he,ue){if(ue==="__proto__")if(C.call(he,ue)){if(I)return I(he,ue).value}else return;return he[ue]};Q.exports=function M(){var he,ue,te,Me,we,Je,Oe=arguments[0],Te=1,Ae=arguments.length,Re=!1;for(typeof Oe=="boolean"&&(Re=Oe,Oe=arguments[1]||{},Te=2),(Oe==null||typeof Oe!="object"&&typeof Oe!="function")&&(Oe={});Te<Ae;++Te)if(he=arguments[Te],he!=null)for(ue in he)te=F(Oe,ue),Me=F(he,ue),Oe!==Me&&(Re&&Me&&(B(Me)||(we=O(Me)))?(we?(we=!1,Je=te&&O(te)?te:[]):Je=te&&B(te)?te:{},G(Oe,{name:ue,newValue:M(Re,Je,Me)})):typeof Me!="undefined"&&G(Oe,{name:ue,newValue:Me}));return Oe}},12378:function(Q,C,h){"use strict";h.d(C,{$u:function(){return ue},BD:function(){return xe},E9:function(){return he},FF:function(){return gr},FJ:function(){return be},Hn:function(){return pe},KX:function(){return ke},NB:function(){return mt},S0:function(){return Jn},UL:function(){return te},Vk:function(){return de},Vm:function(){return tt},YI:function(){return In},ZA:function(){return O},Zt:function(){return Me},al:function(){return T},bn:function(){return X},bx:function(){return P},g2:function(){return Mn},h1:function(){return Xe},hD:function(){return He},l4:function(){return F},rU:function(){return ct},s_:function(){return k},uz:function(){return Be},z6:function(){return we}}),Q=h.hmd(Q),function(){var U;function br(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function fr(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:br(e)}}function Fr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var jr=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},so;if(typeof Object.setPrototypeOf=="function")so=Object.setPrototypeOf;else{var Ar;e:{var to={a:!0},vr={};try{vr.__proto__=to,Ar=vr.a;break e}catch(e){}Ar=!1}so=Ar?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Ji=so;function di(e,t){if(e.prototype=jr(t.prototype),e.prototype.constructor=e,Ji)Ji(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.QA=t.prototype}var ft=typeof h.g!="undefined"&&h.g!=null?h.g:self,Un=typeof Object.assign=="function"?Object.assign:function(e,t){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)&&(e[r]=i[r])}return e},Wn=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function vt(e,t){if(t){var n=ft;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];r in n||(n[r]={}),n=n[r]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&t!=null&&Wn(n,e,{writable:!0,value:t})}}vt("Object.assign",function(e){return e||Un}),vt("Array.prototype.fill",function(e){return e||function(t,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]=t;return this}});var Ve=typeof globalThis=="object"&&globalThis||typeof h.g=="object"&&h.g.global===h.g&&h.g||typeof self=="object"&&self.self===self&&self||{};Ve.requestAnimationFrame===void 0&&(Ve.setImmediate===void 0?Ve.requestAnimationFrame=function(e){Ve.setTimeout(e,0)}:Ve.requestAnimationFrame=Ve.setImmediate);function vn(){}function Nn(e,t){var n=-1;return function(){var i=this,r=arguments;n!==-1&&Ve.clearTimeout(n),n=on(function(){n=-1,e.apply(i,r)},t)}}function on(e,t){return Ve.setTimeout(e,t)}function Ct(e){return Ve.document.createElement(e)}function Ke(e){throw Error(e)}function Ht(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),Ke(e)}function Rt(e,t,n,i){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",i!==void 0&&(n+="."+i),Ke(n+" is not in the range "+t+": "+e)}function jn(e){Ve.console&&Ve.console.log(e)}function at(e){return typeof e=="object"&&e!==null}function hn(e){return Array.isArray(e)||Ve.NodeList&&e instanceof Ve.NodeList||Ve.HTMLCollection&&e instanceof Ve.HTMLCollection}function yt(e){return Array.prototype.slice.call(e)}function Ge(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):Ke("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function L(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):Ke("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function Dt(){var e=Qi.pop();return e===void 0?[]:e}function Jt(e){e.length=0,Qi.push(e)}function gt(e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(t=t.substring(9,t.indexOf("(")).trim(),t!=="")return e._className=t}else if(at(e)&&e.constructor)return gt(e.constructor);return typeof e}function fn(e){var t=e;return at(e)&&(e.text?t=e.text:e.name?t=e.name:e.key!==void 0?t=e.key:e.id!==void 0?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:e.Key!==void 0?t=e.Key:e.Id!==void 0?t=e.Id:e.ID!==void 0&&(t=e.ID))),t===void 0?"undefined":t===null?"null":t.toString()}function Cn(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function ui(e,t,n){Object.defineProperty(To.prototype,e,{get:t,set:n})}function Ln(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var i=0,r=0;r<e.length;r+=2)n[i++]=t[e.substr(r,2)];for(e=n.join(""),e=e===""?"0":e,t=[],n=0;256>n;n++)t[n]=n;for(n=i=0;256>n;n++)i=(i+t[n]+119)%256,r=t[n],t[n]=t[i],t[i]=r;i=n=0;for(var o="",a=0;a<e.length;a++)n=(n+1)%256,i=(i+t[n])%256,r=t[n],t[n]=t[i],t[i]=r,o+=String.fromCharCode(e.charCodeAt(a)^t[(t[n]+t[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 rt=Ve.navigator!==void 0&&0<Ve.navigator.userAgent.indexOf("Trident/7"),Oi=Ve.navigator!==void 0&&Ve.navigator.platform!==void 0&&Ve.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Qi=[];Object.freeze([]),vn.className="Util",vn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",vn.adym="gojs.net",vn.vfo="28e645fdb266",vn.className="Util";function Kt(e,t,n){Bi(this),this.j=e,this.xa=t,this.o=n}Kt.prototype.toString=function(){return"EnumValue."+this.xa};function zi(e,t){return t==null||t===""?null:e[t]}ft.Object.defineProperties(Kt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Kt.className="EnumValue";function J(){this.ew=[]}J.prototype.toString=function(){return this.ew.join("")},J.prototype.add=function(e){e!==""&&this.ew.push(e)},J.className="StringBuilder";function re(){}re.className="PropertyCollection";var Hn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){Ve.console&&Ve.console.log(e)},HA:function(e,t,n,i){e.strokeStyle="red",e.fillStyle="red",e.font="8px sans-serif",e.beginPath(),e.moveTo(-10,0),e.lineTo(10,0),e.moveTo(0,-10),e.lineTo(0,10),e.stroke(),e.setTransform(1,0,0,1,0,0),e.scale(n,n),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.lineWidth=2,e.beginPath(),e.moveTo(i.left,i.top+20),e.lineTo(i.left,i.top),e.lineTo(i.left+20,i.top),e.moveTo(i.right,i.bottom-20),e.lineTo(i.right,i.bottom),e.lineTo(i.right-20,i.bottom),e.stroke(),e.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(e){var t={},n;for(n in e){if(t.x=n,t.x!=="licenseKey"){var i=e[t.x];if(i.prototype!==void 0){t.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<t.Zl.length;r={Tj:r.Tj},r.Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,t.Zl[r.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(i.prototype,t.Zl[r.Tj],{set:function(a,l){return function(){throw Error("Property "+a.Zl[l.Tj]+" of "+a.x+" is read-only.")}}(t,r)})}}}t={Zl:t.Zl,x:t.x}}}};function Fe(){}Fe.prototype.reset=function(){},Fe.prototype.next=function(){return!1},Fe.prototype.Ad=function(){return!1},Fe.prototype.first=function(){return null},Fe.prototype.any=function(){return!1},Fe.prototype.all=function(){return!0},Fe.prototype.each=function(){return this},Fe.prototype.map=function(){return this},Fe.prototype.filter=function(){return this},Fe.prototype.de=function(){},Fe.prototype.toString=function(){return"EmptyIterator"},ft.Object.defineProperties(Fe.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Fe.prototype.first=Fe.prototype.first,Fe.prototype.hasNext=Fe.prototype.Ad,Fe.prototype.next=Fe.prototype.next,Fe.prototype.reset=Fe.prototype.reset;var wt=null;Fe.className="EmptyIterator",wt=new Fe;function gi(e){this.key=-1,this.value=e}gi.prototype.reset=function(){this.key=-1},gi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},gi.prototype.Ad=function(){return this.next()},gi.prototype.first=function(){return this.key=0,this.value},gi.prototype.any=function(e){return this.key=-1,e(this.value)},gi.prototype.all=function(e){return this.key=-1,e(this.value)},gi.prototype.each=function(e){return this.key=-1,e(this.value),this},gi.prototype.map=function(e){return new gi(e(this.value))},gi.prototype.filter=function(e){return e(this.value)?new gi(this.value):wt},gi.prototype.de=function(){this.value=null},gi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ft.Object.defineProperties(gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),gi.prototype.first=gi.prototype.first,gi.prototype.hasNext=gi.prototype.Ad,gi.prototype.next=gi.prototype.next,gi.prototype.reset=gi.prototype.reset,gi.className="SingletonIterator";function Rn(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}Rn.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},Rn.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;e=e.s;var t=e.length,n=++this.Za,i=this.qf;if(i!==null)for(;n<t;){var r=e[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<t)return this.key=n,this.value=e[n],!0;this.de()}return!1},Rn.prototype.Ad=function(){return this.next()},Rn.prototype.first=function(){var e=this.Bb;this.qa=e.Ja,this.Za=0,e=e.s;var t=e.length,n=this.qf;if(n!==null){for(var i=0;i<t;){var r=e[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<t?(e=e[0],this.key=0,this.value=e):null},Rn.prototype.any=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&e(o))return!0}return!1},Rn.prototype.all=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&!e(o))return!1}return!0},Rn.prototype.each=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];(i===null||i(o))&&e(o)}return this},Rn.prototype.map=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var a=t[o];(r===null||r(a))&&n.push(e(a))}return e=new Xt,e.s=n,e.xb(),e.iterator},Rn.prototype.filter=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var a=t[o];(r===null||r(a))&&e(a)&&n.push(a)}return e=new Xt,e.s=n,e.xb(),e.iterator},Rn.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Rn.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ft.Object.defineProperties(Rn.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(e){this.qf=e}},count:{get:function(){var e=this.qf;if(e!==null){for(var t=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)e(n[r])&&t++;return t}return this.Bb.s.length}}}),Rn.prototype.first=Rn.prototype.first,Rn.prototype.hasNext=Rn.prototype.Ad,Rn.prototype.next=Rn.prototype.next,Rn.prototype.reset=Rn.prototype.reset,Rn.className="ListIterator";function _i(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}_i.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},_i.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},_i.prototype.Ad=function(){return this.next()},_i.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},_i.prototype.any=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},_i.prototype.all=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},_i.prototype.each=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},_i.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--)n.push(e(t[i]));return e=new Xt,e.s=n,e.xb(),e.iterator},_i.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--){var r=t[i];e(r)&&n.push(r)}return e=new Xt,e.s=n,e.xb(),e.iterator},_i.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},_i.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ft.Object.defineProperties(_i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),_i.prototype.first=_i.prototype.first,_i.prototype.hasNext=_i.prototype.Ad,_i.prototype.next=_i.prototype.next,_i.prototype.reset=_i.prototype.reset,_i.className="ListIteratorBackwards";function Xt(e){Bi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&Ke("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Xt.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"List()#"+At(this)},U.add=function(e){return e===null?this:(this._isFrozen&&Ht(this,e),this.s.push(e),this.xb(),this)},U.push=function(e){this.add(e)},U.addAll=function(e){if(e===null)return this;this._isFrozen&&Ht(this);var t=this.s;if(hn(e))for(var n=e.length,i=0;i<n;i++)t.push(e[i]);else for(e=e.iterator;e.next();)t.push(e.value);return this.xb(),this},U.clear=function(){this._isFrozen&&Ht(this),this.s.length=0,this.xb()},U.contains=function(e){return e===null?!1:this.s.indexOf(e)!==-1},U.has=function(e){return this.contains(e)},U.indexOf=function(e){return e===null?-1:this.s.indexOf(e)},U.M=function(e){var t=this.s;return(0>e||e>=t.length)&&Rt(e,"0 <= i < length",Xt,"elt:i"),t[e]},U.get=function(e){return this.M(e)},U.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&Rt(e,"0 <= i < length",Xt,"setElt:i"),this._isFrozen&&Ht(this,e),n[e]=t},U.set=function(e,t){this.cd(e,t)},U.first=function(){var e=this.s;return e.length===0?null:e[0]},U.jc=function(){var e=this.s,t=e.length;return 0<t?e[t-1]:null},U.pop=function(){this._isFrozen&&Ht(this);var e=this.s;return 0<e.length?e.pop():null},Xt.prototype.any=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(e(t[i]))return!0;return!1},Xt.prototype.all=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(!e(t[i]))return!1;return!0},Xt.prototype.each=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)e(t[i]);return this},Xt.prototype.map=function(e){for(var t=new Xt,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(e(i[o]));return t.s=n,t.xb(),t},Xt.prototype.filter=function(e){for(var t=new Xt,n=[],i=this.s,r=i.length,o=0;o<r;o++){var a=i[o];e(a)&&n.push(a)}return t.s=n,t.xb(),t},U=Xt.prototype,U.Gb=function(e,t){0>e&&Rt(e,">= 0",Xt,"insertAt:i"),this._isFrozen&&Ht(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ht(this,e);var t=this.s;return e=t.indexOf(e),e===-1?!1:(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},U.delete=function(e){return this.remove(e)},U.mb=function(e){var t=this.s;(0>e||e>=t.length)&&Rt(e,"0 <= i < length",Xt,"removeAt:i"),this._isFrozen&&Ht(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},U.removeRange=function(e,t){var n=this.s,i=n.length;if(0>e)e=0;else if(e>=i)return this;if(0>t)return this;if(t>=i&&(t=i-1),e>t)return this;this._isFrozen&&Ht(this);for(var r=e,o=t+1;o<i;)n[r++]=n[o++];return n.length=i-(t-e+1),this.xb(),this},Xt.prototype.copy=function(){var e=new Xt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},U=Xt.prototype,U.Fa=function(){for(var e=this.s,t=this.count,n=Array(t),i=0;i<t;i++)n[i]=e[i];return n},U.Iv=function(){for(var e=new Zt,t=this.s,n=this.count,i=0;i<n;i++)e.add(t[i]);return e},U.sort=function(e){return this._isFrozen&&Ht(this),this.s.sort(e),this.xb(),this},U.zi=function(e,t,n){var i=this.s,r=i.length;t===void 0&&(t=0),n===void 0&&(n=r),this._isFrozen&&Ht(this);var o=n-t;if(1>=o)return this;if((0>t||t>=r-1)&&Rt(t,"0 <= from < length",Xt,"sortRange:from"),o===2)return n=i[t],r=i[t+1],0<e(n,r)&&(i[t]=r,i[t+1]=n,this.xb()),this;if(t===0)if(n>=r)i.sort(e);else for(t=i.slice(0,n),t.sort(e),e=0;e<n;e++)i[e]=t[e];else if(n>=r)for(n=i.slice(t),n.sort(e),e=t;e<r;e++)i[e]=n[e-t];else for(r=i.slice(t,n),r.sort(e),e=t;e<n;e++)i[e]=r[e-t];return this.xb(),this},U.reverse=function(){return this._isFrozen&&Ht(this),this.s.reverse(),this.xb(),this},ft.Object.defineProperties(Xt.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 wt;var e=this.Sa;return e!==null?(e.reset(),e):new Rn(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wt;var e=this.Hg;return e!==null?(e.reset(),e):new _i(this)}}}),Xt.prototype.reverse=Xt.prototype.reverse,Xt.prototype.sortRange=Xt.prototype.zi,Xt.prototype.sort=Xt.prototype.sort,Xt.prototype.toSet=Xt.prototype.Iv,Xt.prototype.toArray=Xt.prototype.Fa,Xt.prototype.removeRange=Xt.prototype.removeRange,Xt.prototype.removeAt=Xt.prototype.mb,Xt.prototype.delete=Xt.prototype.delete,Xt.prototype.remove=Xt.prototype.remove,Xt.prototype.insertAt=Xt.prototype.Gb,Xt.prototype.pop=Xt.prototype.pop,Xt.prototype.last=Xt.prototype.jc,Xt.prototype.first=Xt.prototype.first,Xt.prototype.set=Xt.prototype.set,Xt.prototype.setElt=Xt.prototype.cd,Xt.prototype.get=Xt.prototype.get,Xt.prototype.elt=Xt.prototype.M,Xt.prototype.indexOf=Xt.prototype.indexOf,Xt.prototype.has=Xt.prototype.has,Xt.prototype.contains=Xt.prototype.contains,Xt.prototype.clear=Xt.prototype.clear,Xt.prototype.addAll=Xt.prototype.addAll,Xt.prototype.push=Xt.prototype.push,Xt.prototype.add=Xt.prototype.add,Xt.prototype.thaw=Xt.prototype.ka,Xt.prototype.freeze=Xt.prototype.freeze,Xt.className="List";function Ei(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Ei.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},Ei.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},Ei.prototype.Ad=function(){return this.next()},Ei.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},Ei.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Ei.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Ei.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},Ei.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Ei.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Ei.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ei.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ft.Object.defineProperties(Ei.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ei.prototype.first=Ei.prototype.first,Ei.prototype.hasNext=Ei.prototype.Ad,Ei.prototype.next=Ei.prototype.next,Ei.prototype.reset=Ei.prototype.reset,Ei.className="SetIterator";function Zt(e){Bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Ke("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Zt.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"Set()#"+At(this)},U.add=function(e){if(e===null)return this;this._isFrozen&&Ht(this,e);var t=e;return at(e)&&(t=Gr(e)),this.Tb[t]===void 0&&(this.Sb++,e=new pr(e,e),this.Tb[t]=e,t=this.kf,t===null?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},U.addAll=function(e){if(e===null)return this;if(this._isFrozen&&Ht(this),hn(e))for(var t=e.length,n=0;n<t;n++)this.add(e[n]);else for(e=e.iterator;e.next();)this.add(e.value);return this},U.contains=function(e){if(e===null)return!1;var t=e;return at(e)&&(t=At(e),t===void 0)?!1:this.Tb[t]!==void 0},U.has=function(e){return this.contains(e)},U.Sy=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(!this.contains(e.value))return!1;return!0},U.Ty=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(this.contains(e.value))return!0;return!1},U.first=function(){var e=this.ea;return e===null?null:e.value},Zt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Zt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Zt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Zt.prototype.map=function(e){for(var t=new Zt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Zt.prototype.filter=function(e){for(var t=new Zt,n=this.ea;n!==null;){var i=n.value;e(i)&&t.add(i),n=n.va}return t},U=Zt.prototype,U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ht(this,e);var t=e;if(at(e)&&(t=At(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},U.delete=function(e){return this.remove(e)},U.hp=function(e){if(e===null)return this;if(this._isFrozen&&Ht(this),hn(e))for(var t=e.length,n=0;n<t;n++)this.remove(e[n]);else for(e=e.iterator;e.next();)this.remove(e.value);return this},U.pA=function(e){if(e===null||this.count===0)return this;this._isFrozen&&Ht(this);var t=new Zt;t.addAll(e),e=[];for(var n=this.iterator;n.next();){var i=n.value;t.contains(i)||e.push(i)}return this.hp(e),this},U.clear=function(){this._isFrozen&&Ht(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Zt.prototype.copy=function(){var e=new Zt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Zt.prototype.Fa=function(){var e=Array(this.Sb),t=this.Tb,n=0,i;for(i in t)e[n]=t[i].value,n++;return e},Zt.prototype.Hv=function(){var e=new Xt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Bi(e){e.__gohashid=eo++}function Gr(e){var t=e.__gohashid;return t===void 0&&(t=eo++,e.__gohashid=t),t}function At(e){return e.__gohashid}ft.Object.defineProperties(Zt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wt;var e=this.Sa;return e!==null?(e.reset(),e):new Ei(this)}}}),Zt.prototype.toList=Zt.prototype.Hv,Zt.prototype.toArray=Zt.prototype.Fa,Zt.prototype.clear=Zt.prototype.clear,Zt.prototype.retainAll=Zt.prototype.pA,Zt.prototype.removeAll=Zt.prototype.hp,Zt.prototype.delete=Zt.prototype.delete,Zt.prototype.remove=Zt.prototype.remove,Zt.prototype.first=Zt.prototype.first,Zt.prototype.containsAny=Zt.prototype.Ty,Zt.prototype.containsAll=Zt.prototype.Sy,Zt.prototype.has=Zt.prototype.has,Zt.prototype.contains=Zt.prototype.contains,Zt.prototype.addAll=Zt.prototype.addAll,Zt.prototype.add=Zt.prototype.add,Zt.prototype.thaw=Zt.prototype.ka,Zt.prototype.freeze=Zt.prototype.freeze;var eo=1;Zt.className="Set",Zt.uniqueHash=Bi,Zt.hashIdUnique=Gr,Zt.hashId=At;function Qt(e){this.ma=e,this.qa=e.Ja,this.sa=null}Qt.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Qt.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},Qt.prototype.Ad=function(){return this.next()},Qt.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.value=this.key=e=e.key):null},Qt.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Qt.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Qt.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;)e(t.key),t=t.va;return this},Qt.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},Qt.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},Qt.prototype.de=function(){this.value=this.key=null,this.qa=-1},Qt.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ft.Object.defineProperties(Qt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qt.prototype.first=Qt.prototype.first,Qt.prototype.hasNext=Qt.prototype.Ad,Qt.prototype.next=Qt.prototype.next,Qt.prototype.reset=Qt.prototype.reset,Qt.className="MapKeySetIterator";function Li(e){Zt.call(this),Bi(this),this._isFrozen=!0,this.ma=e}di(Li,Zt),U=Li.prototype,U.freeze=function(){return this},U.ka=function(){return this},U.toString=function(){return"MapKeySet("+this.ma.toString()+")"},U.add=function(){Ke("This Set is read-only: "+this.toString())},U.contains=function(e){return this.ma.contains(e)},U.has=function(e){return this.contains(e)},U.remove=function(){Ke("This Set is read-only: "+this.toString())},U.delete=function(e){return this.remove(e)},U.clear=function(){Ke("This Set is read-only: "+this.toString())},U.first=function(){var e=this.ma.ea;return e!==null?e.key:null},Li.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Li.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Li.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},Li.prototype.map=function(e){for(var t=new Zt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},Li.prototype.filter=function(e){for(var t=new Zt,n=this.ma.ea;n!==null;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},Li.prototype.copy=function(){return new Li(this.ma)},Li.prototype.Iv=function(){var e=new Zt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Li.prototype.Fa=function(){var e=this.ma.Tb,t=Array(this.ma.Sb),n=0,i;for(i in e)t[n]=e[i].key,n++;return t},Li.prototype.Hv=function(){var e=new Xt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},ft.Object.defineProperties(Li.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wt:new Qt(this.ma)}}}),Li.prototype.toList=Li.prototype.Hv,Li.prototype.toArray=Li.prototype.Fa,Li.prototype.toSet=Li.prototype.Iv,Li.prototype.first=Li.prototype.first,Li.prototype.clear=Li.prototype.clear,Li.prototype.delete=Li.prototype.delete,Li.prototype.remove=Li.prototype.remove,Li.prototype.has=Li.prototype.has,Li.prototype.contains=Li.prototype.contains,Li.prototype.add=Li.prototype.add,Li.prototype.thaw=Li.prototype.ka,Li.prototype.freeze=Li.prototype.freeze,Li.className="MapKeySet";function wi(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}wi.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},wi.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},wi.prototype.Ad=function(){return this.next()},wi.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},wi.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},wi.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},wi.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},wi.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},wi.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},wi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},wi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ft.Object.defineProperties(wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),wi.prototype.first=wi.prototype.first,wi.prototype.hasNext=wi.prototype.Ad,wi.prototype.next=wi.prototype.next,wi.prototype.reset=wi.prototype.reset,wi.className="MapValueSetIterator";function pr(e,t){this.key=e,this.value=t,this.ll=this.va=null}pr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},pr.className="KeyValuePair";function ar(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}ar.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},ar.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},ar.prototype.Ad=function(){return this.next()},ar.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,e):null},ar.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},ar.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},ar.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t),t=t.va;return this},ar.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},ar.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},ar.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ar.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ft.Object.defineProperties(ar.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ar.prototype.first=ar.prototype.first,ar.prototype.hasNext=ar.prototype.Ad,ar.prototype.next=ar.prototype.next,ar.prototype.reset=ar.prototype.reset,ar.className="MapIterator";function Zn(e){Bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Ke("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Zn.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"Map()#"+At(this)},U.add=function(e,t){this._isFrozen&&Ht(this,e);var n=e;at(e)&&(n=Gr(e));var i=this.Tb[n];return i===void 0?(this.Sb++,e=new pr(e,t),this.Tb[n]=e,n=this.kf,n===null?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):i.value=t,this},U.set=function(e,t){return this.add(e,t)},U.addAll=function(e){if(e===null)return this;if(hn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];this.add(i.key,i.value)}else if(e instanceof Zn)for(e=e.iterator;e.next();)this.add(e.key,e.value);else for(e=e.iterator;e.next();)t=e.value,this.add(t.key,t.value);return this},U.first=function(){return this.ea},Zn.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},Zn.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},Zn.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},Zn.prototype.map=function(e){for(var t=new Zn,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},Zn.prototype.filter=function(e){for(var t=new Zn,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},U=Zn.prototype,U.contains=function(e){var t=e;return at(e)&&(t=At(e),t===void 0)?!1:this.Tb[t]!==void 0},U.has=function(e){return this.contains(e)},U.I=function(e){var t=e;return at(e)&&(t=At(e),t===void 0)?null:(e=this.Tb[t],e===void 0?null:e.value)},U.get=function(e){return this.I(e)},U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ht(this,e);var t=e;if(at(e)&&(t=At(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},U.delete=function(e){return this.remove(e)},U.clear=function(){this._isFrozen&&Ht(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()},Zn.prototype.copy=function(){var e=new Zn,t=this.Tb,n;for(n in t){var i=t[n];e.add(i.key,i.value)}return e},Zn.prototype.Fa=function(){var e=this.Tb,t=Array(this.Sb),n=0,i;for(i in e){var r=e[i];t[n]=new pr(r.key,r.value),n++}return t},Zn.prototype.Lf=function(){return new Li(this)},ft.Object.defineProperties(Zn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wt;var e=this.Sa;return e!==null?(e.reset(),e):new ar(this)}},iteratorKeys:{get:function(){return 0>=this.count?wt:new Qt(this)}},iteratorValues:{get:function(){if(0>=this.count)return wt;var e=this.jf;return e!==null?(e.reset(),e):new wi(this)}}}),Zn.prototype.toKeySet=Zn.prototype.Lf,Zn.prototype.toArray=Zn.prototype.Fa,Zn.prototype.clear=Zn.prototype.clear,Zn.prototype.delete=Zn.prototype.delete,Zn.prototype.remove=Zn.prototype.remove,Zn.prototype.get=Zn.prototype.get,Zn.prototype.getValue=Zn.prototype.I,Zn.prototype.has=Zn.prototype.has,Zn.prototype.contains=Zn.prototype.contains,Zn.prototype.first=Zn.prototype.first,Zn.prototype.addAll=Zn.prototype.addAll,Zn.prototype.set=Zn.prototype.set,Zn.prototype.add=Zn.prototype.add,Zn.prototype.thaw=Zn.prototype.ka,Zn.prototype.freeze=Zn.prototype.freeze,Zn.className="Map";function ce(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):Ke("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var mr,Er,cr,Wr,Wi;ce.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.h=function(e,t){return this.x=e,this.y=t,this},ce.prototype.sg=function(e,t){return this.x=e,this.y=t,this},ce.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.copy=function(){var e=new ce;return e.x=this.x,e.y=this.y,e},U=ce.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this};function Kr(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new ce(n,r)}return new ce}function Ri(e){return e.x.toString()+" "+e.y.toString()}U.toString=function(){return"Point("+this.x+","+this.y+")"},U.D=function(e){return e instanceof ce?this.x===e.x&&this.y===e.y:!1},U.hi=function(e,t){return this.x===e&&this.y===t},U.Xa=function(e){return et.B(this.x,e.x)&&et.B(this.y,e.y)},U.add=function(e){return this.x+=e.x,this.y+=e.y,this},U.re=function(e){return this.x-=e.x,this.y-=e.y,this},U.offset=function(e,t){return this.x+=e,this.y+=t,this},ce.prototype.rotate=function(e){if(e===0)return this;var t=this.x,n=this.y;if(t===0&&n===0)return this;if(360<=e?e-=360:0>e&&(e+=360),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));return this.x=e*t-i*n,this.y=i*t+e*n,this},U=ce.prototype,U.scale=function(e,t){return this.x*=e,this.y*=t,this},U.Bf=function(e){var t=e.x-this.x;return e=e.y-this.y,t*t+e*e},U.zd=function(e,t){return e-=this.x,t-=this.y,e*e+t*t},U.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0<n&&(this.x=e/n,this.y=t/n),this},U.ab=function(e){return Ui(e.x-this.x,e.y-this.y)},U.direction=function(e,t){return Ui(e-this.x,t-this.y)};function Ui(e,t){if(e===0)return 0<t?90:0>t?270:0;if(t===0)return 0<e?0:180;if(isNaN(e)||isNaN(t))return 0;var n=180*Math.atan(Math.abs(t/e))/Math.PI;return 0>e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}U.Ry=function(e,t){return et.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},U.fA=function(e,t,n,i){return et.qh(e,t,n,i,this.x,this.y,this),this},U.gA=function(e,t){return et.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},U.uA=function(e,t,n,i){return et.No(this.x,this.y,e,t,n,i,this),this},U.vA=function(e,t){return et.No(this.x,this.y,e.x,e.y,t.width,t.height,this),this},U.xi=function(e,t){return this.x=e.x+t.x*e.width+t.offsetX,this.y=e.y+t.y*e.height+t.offsetY,this},U.yi=function(e,t,n,i,r){return this.x=e+r.x*n+r.offsetX,this.y=t+r.y*i+r.offsetY,this},U.transform=function(e){return e.Ga(this),this};function Di(e,t){return t.Cd(e),e}function Cr(e,t,n,i,r,o){var a=r-n,l=o-i,u=a*a+l*l;n-=e,i-=t;var f=-n*a-i*l;return 0>=f||f>=u?(a=r-e,l=o-t,Math.min(n*n+i*i,a*a+l*l)):(e=a*i-l*n,e*e/u)}function Tr(e,t,n,i){return e=n-e,t=i-t,e*e+t*t}function io(e,t,n,i){return e=n-e,t=i-t,e===0?0<t?90:0>t?270:0:t===0?0<e?0:180:isNaN(e)||isNaN(t)?0:(i=180*Math.atan(Math.abs(t/e))/Math.PI,0>e?i=0>t?i+180:180-i:0>t&&(i=360-i),i)}U.w=function(){return isFinite(this.x)&&isFinite(this.y)},ce.alloc=function(){var e=bo.pop();return e===void 0?new ce:e},ce.allocAt=function(e,t){var n=bo.pop();return n===void 0?new ce(e,t):(n.x=e,n.y=t,n)},ce.free=function(e){bo.push(e)},ce.prototype.isReal=ce.prototype.w,ce.prototype.setSpot=ce.prototype.yi,ce.prototype.setRectSpot=ce.prototype.xi,ce.prototype.snapToGridPoint=ce.prototype.vA,ce.prototype.snapToGrid=ce.prototype.uA,ce.prototype.projectOntoLineSegmentPoint=ce.prototype.gA,ce.prototype.projectOntoLineSegment=ce.prototype.fA,ce.intersectingLineSegments=function(e,t,n,i,r,o,a,l){return et.Rl(e,t,n,i,r,o,a,l)},ce.prototype.compareWithLineSegmentPoint=ce.prototype.Ry,ce.compareWithLineSegment=function(e,t,n,i,r,o){return et.Fl(e,t,n,i,r,o)},ce.prototype.direction=ce.prototype.direction,ce.prototype.directionPoint=ce.prototype.ab,ce.prototype.normalize=ce.prototype.normalize,ce.prototype.distanceSquared=ce.prototype.zd,ce.prototype.distanceSquaredPoint=ce.prototype.Bf,ce.prototype.scale=ce.prototype.scale,ce.prototype.rotate=ce.prototype.rotate,ce.prototype.offset=ce.prototype.offset,ce.prototype.subtract=ce.prototype.re,ce.prototype.add=ce.prototype.add,ce.prototype.equalsApprox=ce.prototype.Xa,ce.prototype.equalTo=ce.prototype.hi,ce.prototype.equals=ce.prototype.D,ce.prototype.set=ce.prototype.set,ce.prototype.setTo=ce.prototype.sg;var bo=[];ce.className="Point",ce.parse=Kr,ce.stringify=Ri,ce.distanceLineSegmentSquared=Cr,ce.distanceSquared=Tr,ce.direction=io,ce.Origin=mr=new ce(0,0).ja(),ce.InfiniteTopLeft=Er=new ce(-1/0,-1/0).ja(),ce.InfiniteBottomRight=cr=new ce(1/0,1/0).ja(),ce.SixPoint=Wr=new ce(6,6).ja(),ce.NoPoint=Wi=new ce(NaN,NaN).ja(),ce.parse=Kr,ce.stringify=Ri,ce.distanceLineSegmentSquared=Cr,ce.distanceSquared=Tr,ce.direction=io;function mi(e,t){e===void 0?this.height=this.width=0:typeof e=="number"&&(0<=e||isNaN(e))&&typeof t=="number"&&(0<=t||isNaN(t))?(this.width=e,this.height=t):Ke("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var Sa,Wo,Jo,Ta,Ya,ns,Na;mi.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.h=function(e,t){return this.width=e,this.height=t,this},mi.prototype.sg=function(e,t){return this.width=e,this.height=t,this},mi.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.copy=function(){var e=new mi;return e.width=this.width,e.height=this.height,e},U=mi.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this};function cs(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new mi(n,r)}return new mi}function Za(e){return e.width.toString()+" "+e.height.toString()}U.toString=function(){return"Size("+this.width+","+this.height+")"},U.D=function(e){return e instanceof mi?this.width===e.width&&this.height===e.height:!1},U.hi=function(e,t){return this.width===e&&this.height===t},U.Xa=function(e){return et.B(this.width,e.width)&&et.B(this.height,e.height)},U.Bc=function(e,t){return e=this.width+e,this.width=0<=e?e:0,t=this.height+t,this.height=0<=t?t:0,this},U.w=function(){return isFinite(this.width)&&isFinite(this.height)},mi.alloc=function(){var e=jo.pop();return e===void 0?new mi:e},mi.free=function(e){jo.push(e)},mi.prototype.isReal=mi.prototype.w,mi.prototype.inflate=mi.prototype.Bc,mi.prototype.equalsApprox=mi.prototype.Xa,mi.prototype.equalTo=mi.prototype.hi,mi.prototype.equals=mi.prototype.D,mi.prototype.set=mi.prototype.set,mi.prototype.setTo=mi.prototype.sg;var jo=[];mi.className="Size",mi.parse=cs,mi.stringify=Za,mi.ZeroSize=Sa=new mi(0,0).ja(),mi.OneSize=Wo=new mi(1,1).ja(),mi.SixSize=Jo=new mi(6,6).ja(),mi.EightSize=Ta=new mi(8,8).ja(),mi.TenSize=Ya=new mi(10,10).ja(),mi.InfiniteSize=ns=new mi(1/0,1/0).ja(),mi.NoSize=Na=new mi(NaN,NaN).ja(),mi.parse=cs,mi.stringify=Za;function Wt(e,t,n,i){e===void 0?this.height=this.width=this.y=this.x=0:typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof i=="number"&&(0<=i||isNaN(i))?(this.x=e,this.y=t,this.width=n,this.height=i):e instanceof ce?(n=e.x,e=e.y,t instanceof ce?(i=t.x,t=t.y,this.x=Math.min(n,i),this.y=Math.min(e,t),this.width=Math.abs(n-i),this.height=Math.abs(e-t)):t instanceof mi?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):Ke("Incorrect second argument supplied to Rect constructor "+t)):Ke("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}U=Wt.prototype,U.assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},U.h=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this};function Ba(e,t,n){e.width=t,e.height=n}U.sg=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},U.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},U.dd=function(e){return this.x=e.x,this.y=e.y,this},U.tA=function(e){return this.width=e.width,this.height=e.height,this},Wt.prototype.copy=function(){var e=new Wt;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},U=Wt.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this};function eu(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;(i=e[t++])&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;(i=e[t++])&&(o=parseFloat(i));for(var a=0;e[t]==="";)t++;return(i=e[t++])&&(a=parseFloat(i)),new Wt(n,r,o,a)}return new Wt}function ol(e){return e.x.toString()+" "+e.y.toString()+" "+e.width.toString()+" "+e.height.toString()}U.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},U.D=function(e){return e instanceof Wt?this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1},U.hi=function(e,t,n,i){return this.x===e&&this.y===t&&this.width===n&&this.height===i},U.Xa=function(e){return et.B(this.x,e.x)&&et.B(this.y,e.y)&&et.B(this.width,e.width)&&et.B(this.height,e.height)};function po(e,t){return et.$(e.x,t.x)&&et.$(e.y,t.y)&&et.$(e.width,t.width)&&et.$(e.height,t.height)}U.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},U.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},U.contains=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+i<=this.y+this.height},U.offset=function(e,t){return this.x+=e,this.y+=t,this},U.Bc=function(e,t){return ko(this,t,e,t,e)},U.Co=function(e){return ko(this,e.top,e.right,e.bottom,e.left)},U.Fv=function(e){return ko(this,-e.top,-e.right,-e.bottom,-e.left)},U.Hz=function(e,t,n,i){return ko(this,e,t,n,i)};function ko(e,t,n,i,r){var o=e.width;return n+r<=-o?(e.x+=o/2,e.width=0):(e.x-=r,e.width+=n+r),n=e.height,t+i<=-n?(e.y+=n/2,e.height=0):(e.y-=t,e.height+=t+i),e}U.Ex=function(e){return yo(this,e.x,e.y,e.width,e.height)},U.Uu=function(e,t,n,i){return yo(this,e,t,n,i)};function yo(e,t,n,i,r){var o=Math.max(e.x,t),a=Math.max(e.y,n);return t=Math.min(e.x+e.width,t+i),n=Math.min(e.y+e.height,n+r),e.x=o,e.y=a,e.width=Math.max(0,t-o),e.height=Math.max(0,n-a),e}U.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},U.Vu=function(e,t,n,i){var r=this.width,o=this.x;return r!==1/0&&n!==1/0&&(r+=o,n+=e,isNaN(n)||isNaN(r)||o>n||e>r)?!1:(e=this.height,n=this.y,!(e!==1/0&&i!==1/0&&(e+=n,i+=t,isNaN(i)||isNaN(e)||n>i||t>e)))};function Mt(e,t){var n=e.width,i=e.x,r=t.x-10;return i>t.width+10+10+r||r>n+i?!1:(n=e.height,e=e.y,i=t.y-10,!(e>t.height+10+10+i||i>n+e))}U.Ye=function(e){return Dr(this,e.x,e.y,0,0)},U.ed=function(e){return Dr(this,e.x,e.y,e.width,e.height)},U.Kv=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),Dr(this,e,t,n,i)};function Dr(e,t,n,i,r){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+i),n=Math.max(e.y+e.height,n+r),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}U.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this};function mo(e,t,n,i,r,o,a,l){return a===void 0&&(a=0),l===void 0&&(l=0),e<=r&&r+a<=e+n&&t<=o&&o+l<=t+i}function Ea(e,t,n,i,r,o,a,l){return e>a+r||r>n+e?!1:!(t>l+o||o>i+t)}U.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},U.Mz=function(){return this.width===0&&this.height===0},Wt.alloc=function(){var e=ur.pop();return e===void 0?new Wt:e},Wt.allocAt=function(e,t,n,i){var r=ur.pop();return r===void 0?new Wt(e,t,n,i):r.h(e,t,n,i)},Wt.free=function(e){ur.push(e)},ft.Object.defineProperties(Wt.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new ce(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new mi(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new ce(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Wt.prototype.isEmpty=Wt.prototype.Mz,Wt.prototype.isReal=Wt.prototype.w,Wt.intersectsLineSegment=function(e,t,n,i,r,o,a,l){return et.Fx(e,t,n,i,r,o,a,l)},Wt.prototype.setSpot=Wt.prototype.yi,Wt.prototype.union=Wt.prototype.Kv,Wt.prototype.unionRect=Wt.prototype.ed,Wt.prototype.unionPoint=Wt.prototype.Ye,Wt.prototype.intersects=Wt.prototype.Vu,Wt.prototype.intersectsRect=Wt.prototype.Yc,Wt.prototype.intersect=Wt.prototype.Uu,Wt.prototype.intersectRect=Wt.prototype.Ex,Wt.prototype.grow=Wt.prototype.Hz,Wt.prototype.subtractMargin=Wt.prototype.Fv,Wt.prototype.addMargin=Wt.prototype.Co,Wt.prototype.inflate=Wt.prototype.Bc,Wt.prototype.offset=Wt.prototype.offset,Wt.prototype.contains=Wt.prototype.contains,Wt.prototype.containsRect=Wt.prototype.Re,Wt.prototype.containsPoint=Wt.prototype.ca,Wt.prototype.equalsApprox=Wt.prototype.Xa,Wt.prototype.equalTo=Wt.prototype.hi,Wt.prototype.equals=Wt.prototype.D,Wt.prototype.setSize=Wt.prototype.tA,Wt.prototype.setPoint=Wt.prototype.dd,Wt.prototype.set=Wt.prototype.set,Wt.prototype.setTo=Wt.prototype.sg;var xr=null,Sn=null,ur=[];Wt.className="Rect",Wt.parse=eu,Wt.stringify=ol,Wt.contains=mo,Wt.intersects=Ea,Wt.ZeroRect=xr=new Wt(0,0,0,0).ja(),Wt.NoRect=Sn=new Wt(NaN,NaN,NaN,NaN).ja(),Wt.parse=eu,Wt.stringify=ol,Wt.contains=mo,Wt.intersects=Ea;function vi(e,t,n,i){e===void 0?this.left=this.bottom=this.right=this.top=0:t===void 0?this.left=this.bottom=this.right=this.top=e:n===void 0?(this.top=e,this.right=t,this.bottom=e,this.left=t):i!==void 0?(this.top=e,this.right=t,this.bottom=n,this.left=i):Ke("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}vi.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},vi.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},vi.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},vi.prototype.copy=function(){var e=new vi;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},U=vi.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vo(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=NaN;e[t]==="";)t++;var i=e[t++];if(i&&(n=parseFloat(i)),isNaN(n))return new vi;for(var r=NaN;e[t]==="";)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new vi(n);for(var o=NaN;e[t]==="";)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new vi(n,r);for(var a=NaN;e[t]==="";)t++;return(i=e[t++])&&(a=parseFloat(i)),isNaN(a)?new vi(n,r):new vi(n,r,o,a)}return new vi}function ma(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}U.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},U.D=function(e){return e instanceof vi?this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left:!1},U.hi=function(e,t,n,i){return this.top===e&&this.right===t&&this.bottom===n&&this.left===i},U.Xa=function(e){return et.B(this.top,e.top)&&et.B(this.right,e.right)&&et.B(this.bottom,e.bottom)&&et.B(this.left,e.left)},U.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},vi.alloc=function(){var e=Ns.pop();return e===void 0?new vi:e},vi.free=function(e){Ns.push(e)},vi.prototype.isReal=vi.prototype.w,vi.prototype.equalsApprox=vi.prototype.Xa,vi.prototype.equalTo=vi.prototype.hi,vi.prototype.equals=vi.prototype.D,vi.prototype.set=vi.prototype.set,vi.prototype.setTo=vi.prototype.sg;var is=null,Rs=null,Ns=[];vi.className="Margin",vi.parse=Vo,vi.stringify=ma,vi.ZeroMargin=is=new vi(0,0,0,0).ja(),vi.TwoMargin=Rs=new vi(2,2,2,2).ja(),vi.parse=Vo,vi.stringify=ma;function si(e,t,n,i){e===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}var Hi,ta,As,Yo,rs,Lr,al,Ds,Ps,Ho,os,Ol,Xa,Oa,ml,Xo,js,wu,Ll,as,Fa,Gs,Ki,ks,Rl,Vr,Co,fa,aa,ro,sa,ga,La,Aa,Gl,Ys;si.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},si.prototype.sg=function(e,t,n,i){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=i,this},si.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},si.prototype.copy=function(){var e=new si;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},U=si.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this};function ka(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function hc(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return Hi;if(e==="TopLeft")return ta;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return As;if(e==="TopRight")return Yo;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return rs;if(e==="Center")return Lr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return al;if(e==="BottomLeft")return Ds;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Ps;if(e==="BottomRight")return Ho;if(e==="TopSide")return os;if(e==="LeftSide")return Ol;if(e==="RightSide")return Xa;if(e==="BottomSide")return Oa;if(e==="TopBottomSides")return ml;if(e==="LeftRightSides")return Xo;if(e==="TopLeftSides")return js;if(e==="TopRightSides")return wu;if(e==="BottomLeftSides")return Ll;if(e==="BottomRightSides")return as;if(e==="NotTopSide")return Fa;if(e==="NotLeftSide")return Gs;if(e==="NotRightSide")return Ki;if(e==="NotBottomSide")return ks;if(e==="AllSides")return Rl;if(e==="Default")return Vr;e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i!==void 0&&0<i.length&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(o=parseFloat(i));for(var a=0;e[t]==="";)t++;return i=e[t++],i!==void 0&&0<i.length&&(a=parseFloat(i)),new si(n,r,o,a)}return new si}function Zu(e){return e.sb()?e.x.toString()+" "+e.y.toString()+" "+e.offsetX.toString()+" "+e.offsetY.toString():e.toString()}U.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(Hi)?"None":this.D(ta)?"TopLeft":this.D(As)?"Top":this.D(Yo)?"TopRight":this.D(rs)?"Left":this.D(Lr)?"Center":this.D(al)?"Right":this.D(Ds)?"BottomLeft":this.D(Ps)?"Bottom":this.D(Ho)?"BottomRight":this.D(os)?"TopSide":this.D(Ol)?"LeftSide":this.D(Xa)?"RightSide":this.D(Oa)?"BottomSide":this.D(ml)?"TopBottomSides":this.D(Xo)?"LeftRightSides":this.D(js)?"TopLeftSides":this.D(wu)?"TopRightSides":this.D(Ll)?"BottomLeftSides":this.D(as)?"BottomRightSides":this.D(Fa)?"NotTopSide":this.D(Gs)?"NotLeftSide":this.D(Ki)?"NotRightSide":this.D(ks)?"NotBottomSide":this.D(Rl)?"AllSides":this.D(Vr)?"Default":"None"},U.D=function(e){return e instanceof si?(this.x===e.x||isNaN(this.x)&&isNaN(e.x))&&(this.y===e.y||isNaN(this.y)&&isNaN(e.y))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY:!1},U.gv=function(){return new si(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},U.Hf=function(e){if(!this.$c())return!1;if(!e.$c())if(e.D(Co))e=Ol;else if(e.D(fa))e=Xa;else if(e.D(aa))e=os;else if(e.D(ro))e=Oa;else return!1;return e=e.offsetY,(this.offsetY&e)===e},U.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},U.Mc=function(){return isNaN(this.x)||isNaN(this.y)},U.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},U.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},U.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},si.alloc=function(){var e=uu.pop();return e===void 0?new si:e},si.free=function(e){uu.push(e)},si.prototype.isDefault=si.prototype.Xb,si.prototype.isNone=si.prototype.ys,si.prototype.isSide=si.prototype.$c,si.prototype.isNoSpot=si.prototype.Mc,si.prototype.isSpot=si.prototype.sb,si.prototype.includesSide=si.prototype.Hf,si.prototype.opposite=si.prototype.gv,si.prototype.equals=si.prototype.D,si.prototype.set=si.prototype.set,si.prototype.setTo=si.prototype.sg;var uu=[];si.className="Spot",si.parse=hc,si.stringify=Zu,si.None=Hi=ka(new si(0,0,0,0),0).ja(),si.Default=Vr=ka(new si(0,0,-1,0),-1).ja(),si.TopLeft=ta=new si(0,0,0,0).ja(),si.TopCenter=As=new si(.5,0,0,0).ja(),si.TopRight=Yo=new si(1,0,0,0).ja(),si.LeftCenter=rs=new si(0,.5,0,0).ja(),si.Center=Lr=new si(.5,.5,0,0).ja(),si.RightCenter=al=new si(1,.5,0,0).ja(),si.BottomLeft=Ds=new si(0,1,0,0).ja(),si.BottomCenter=Ps=new si(.5,1,0,0).ja(),si.BottomRight=Ho=new si(1,1,0,0).ja(),si.MiddleTop=sa=As,si.MiddleLeft=ga=rs,si.MiddleRight=La=al,si.MiddleBottom=Aa=Ps,si.Top=aa=As,si.Left=Co=rs,si.Right=fa=al,si.Bottom=ro=Ps,si.TopSide=os=ka(new si(0,0,1,1),1).ja(),si.LeftSide=Ol=ka(new si(0,0,1,2),1).ja(),si.RightSide=Xa=ka(new si(0,0,1,4),1).ja(),si.BottomSide=Oa=ka(new si(0,0,1,8),1).ja(),si.TopBottomSides=ml=ka(new si(0,0,1,9),1).ja(),si.LeftRightSides=Xo=ka(new si(0,0,1,6),1).ja(),si.TopLeftSides=js=ka(new si(0,0,1,3),1).ja(),si.TopRightSides=wu=ka(new si(0,0,1,5),1).ja(),si.BottomLeftSides=Ll=ka(new si(0,0,1,10),1).ja(),si.BottomRightSides=as=ka(new si(0,0,1,12),1).ja(),si.NotTopSide=Fa=ka(new si(0,0,1,14),1).ja(),si.NotLeftSide=Gs=ka(new si(0,0,1,13),1).ja(),si.NotRightSide=Ki=ka(new si(0,0,1,11),1).ja(),si.NotBottomSide=ks=ka(new si(0,0,1,7),1).ja(),si.AllSides=Rl=ka(new si(0,0,1,15),1).ja(),Gl=new si(.156,.156).ja(),Ys=new si(.844,.844).ja(),si.parse=hc,si.stringify=Zu;function sr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}sr.prototype.set=function(e){return this.m11=e.m11,this.m12=e.m12,this.m21=e.m21,this.m22=e.m22,this.dx=e.dx,this.dy=e.dy,this},sr.prototype.setTransform=function(e,t,n,i,r,o){return this.m11=e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},sr.prototype.copy=function(){var e=new sr;return e.m11=this.m11,e.m12=this.m12,e.m21=this.m21,e.m22=this.m22,e.dx=this.dx,e.dy=this.dy,e},sr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},sr.prototype.D=function(e){return this.m11===e.m11&&this.m12===e.m12&&this.m21===e.m21&&this.m22===e.m22&&this.dx===e.dx&&this.dy===e.dy},sr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},sr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},sr.prototype.multiply=function(e){var t=this.m11*e.m11+this.m21*e.m12,n=this.m12*e.m11+this.m22*e.m12,i=this.m11*e.m21+this.m21*e.m22,r=this.m12*e.m21+this.m22*e.m22;return this.dx=this.m11*e.dx+this.m21*e.dy+this.dx,this.dy=this.m12*e.dx+this.m22*e.dy+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},sr.prototype.bv=function(e){var t=1/(e.m11*e.m22-e.m12*e.m21),n=e.m22*t,i=-e.m12*t,r=-e.m21*t,o=e.m11*t,a=t*(e.m21*e.dy-e.m22*e.dx);return e=t*(e.m12*e.dx-e.m11*e.dy),t=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*a+this.m21*e+this.dx,this.dy=this.m12*a+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},sr.prototype.Vj=function(){var e=1/(this.m11*this.m22-this.m12*this.m21),t=-this.m12*e,n=-this.m21*e,i=this.m11*e,r=e*(this.m21*this.dy-this.m22*this.dx),o=e*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},sr.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e===0)return this;if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.m12*e+this.m22*i,o=this.m11*-i+this.m21*e,a=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=a,this.translate(-t,-n),this},U=sr.prototype,U.translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},U.scale=function(e,t){return t===void 0&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},U.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},U.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,i=e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},U.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,i=1.2*e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},U.pp=function(e){var t=e.x,n=e.y,i=t+e.width,r=n+e.height,o=this.m11,a=this.m12,l=this.m21,u=this.m22,f=this.dx,p=this.dy,x=t*o+n*l+f,A=t*a+n*u+p,R=i*o+n*l+f,z=i*a+n*u+p;return n=t*o+r*l+f,t=t*a+r*u+p,o=i*o+r*l+f,i=i*a+r*u+p,r=Math.min(x,R),x=Math.max(x,R),R=Math.min(A,z),A=Math.max(A,z),r=Math.min(r,n),x=Math.max(x,n),R=Math.min(R,t),A=Math.max(A,t),r=Math.min(r,o),x=Math.max(x,o),R=Math.min(R,i),A=Math.max(A,i),e.h(r,R,x-r,A-R),e},sr.alloc=function(){var e=Ws.pop();return e===void 0?new sr:e},sr.free=function(e){Ws.push(e)},sr.prototype.transformRect=sr.prototype.pp,sr.prototype.transformPoint=sr.prototype.Ga,sr.prototype.scale=sr.prototype.scale,sr.prototype.translate=sr.prototype.translate,sr.prototype.rotate=sr.prototype.rotate,sr.prototype.invert=sr.prototype.Vj,sr.prototype.multiplyInverted=sr.prototype.bv,sr.prototype.multiply=sr.prototype.multiply,sr.prototype.reset=sr.prototype.reset,sr.prototype.isIdentity=sr.prototype.ws,sr.prototype.equals=sr.prototype.D,sr.prototype.setTransform=sr.prototype.setTransform,sr.prototype.set=sr.prototype.set;var Ws=[];sr.className="Transform",sr.xF="54a702f3e53909c447824c6706603faf4c";var et={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=et.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);et.Uv=t}return 1>e?(n=1/e,2e3>=n?1/t[n|0]:Math.sqrt(e)):2e3>=e?t[e|0]:Math.sqrt(e)},B:function(e,t){return e-=t,.5>e&&-.5<e},$:function(e,t){return e-=t,5e-8>e&&-5e-8<e},Yb:function(e,t,n,i,r,o,a){if(0>=r&&(r=1e-6),e<n)var l=e,u=n;else l=n,u=e;if(t<i)var f=t,p=i;else f=i,p=t;if(e===n)return f<=a&&a<=p&&e-r<=o&&o<=e+r;if(t===i)return l<=o&&o<=u&&t-r<=a&&a<=t+r;if(u+=r,l-=r,l<=o&&o<=u&&(p+=r,f-=r,f<=a&&a<=p))if(u-l>p-f)if(e-n>r||n-e>r){if(o=(i-t)/(n-e)*(o-e)+t,o-r<=a&&a<=o+r)return!0}else return!0;else if(t-i>r||i-t>r){if(a=(n-e)/(i-t)*(a-t)+e,a-r<=o&&o<=a+r)return!0}else return!0;return!1},cs:function(e,t,n,i,r,o,a,l,u,f,p,x){if(et.Yb(e,t,a,l,x,n,i)&&et.Yb(e,t,a,l,x,r,o))return et.Yb(e,t,a,l,x,f,p);var A=(e+n)/2,R=(t+i)/2,z=(n+r)/2,V=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(A+z)/2,n=(R+V)/2,z=(z+r)/2,V=(V+o)/2;var ye=(i+z)/2,se=(n+V)/2;return et.cs(e,t,A,R,i,n,ye,se,u,f,p,x)||et.cs(ye,se,z,V,r,o,a,l,u,f,p,x)},ax:function(e,t,n,i,r,o,a,l,u){var f=(n+r)/2,p=(i+o)/2;return u.h((((e+n)/2+f)/2+(f+(r+a)/2)/2)/2,(((t+i)/2+p)/2+(p+(o+l)/2)/2)/2),u},My:function(e,t,n,i,r,o,a,l){var u=(n+r)/2,f=(i+o)/2;return io(((e+n)/2+u)/2,((t+i)/2+f)/2,(u+(r+a)/2)/2,(f+(o+l)/2)/2)},Dl:function(e,t,n,i,r,o,a,l,u,f){if(et.Yb(e,t,a,l,u,n,i)&&et.Yb(e,t,a,l,u,r,o))Dr(f,e,t,0,0),Dr(f,a,l,0,0);else{var p=(e+n)/2,x=(t+i)/2,A=(n+r)/2,R=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(p+A)/2,n=(x+R)/2,A=(A+r)/2,R=(R+o)/2;var z=(i+A)/2,V=(n+R)/2;et.Dl(e,t,p,x,i,n,z,V,u,f),et.Dl(z,V,A,R,r,o,a,l,u,f)}return f},Qe:function(e,t,n,i,r,o,a,l,u,f){if(et.Yb(e,t,a,l,u,n,i)&&et.Yb(e,t,a,l,u,r,o))f.length===0&&(f.push(e),f.push(t)),f.push(a),f.push(l);else{var p=(e+n)/2,x=(t+i)/2,A=(n+r)/2,R=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(p+A)/2,n=(x+R)/2,A=(A+r)/2,R=(R+o)/2;var z=(i+A)/2,V=(n+R)/2;et.Qe(e,t,p,x,i,n,z,V,u,f),et.Qe(z,V,A,R,r,o,a,l,u,f)}return f},jv:function(e,t,n,i,r,o,a,l,u,f){if(et.Yb(e,t,r,o,f,n,i))return et.Yb(e,t,r,o,f,l,u);var p=(e+n)/2,x=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var A=(p+n)/2,R=(x+i)/2;return et.jv(e,t,p,x,A,R,a,l,u,f)||et.jv(A,R,n,i,r,o,a,l,u,f)},OA:function(e,t,n,i,r,o,a){return a.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),a},iv:function(e,t,n,i,r,o,a,l){if(et.Yb(e,t,r,o,a,n,i))Dr(l,e,t,0,0),Dr(l,r,o,0,0);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;et.iv(e,t,u,f,p,x,a,l),et.iv(p,x,n,i,r,o,a,l)}return l},ep:function(e,t,n,i,r,o,a,l){if(et.Yb(e,t,r,o,a,n,i))l.length===0&&(l.push(e),l.push(t)),l.push(r),l.push(o);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;et.ep(e,t,u,f,p,x,a,l),et.ep(p,x,n,i,r,o,a,l)}return l},Eo:function(e,t,n,i,r,o,a,l,u,f,p,x,A,R){if(et.Yb(e,t,a,l,A,n,i)&&et.Yb(e,t,a,l,A,r,o))return!et.Rl(e,t,a,l,u,f,p,x)||(A=(e-a)*(f-x)-(t-l)*(u-p),A===0)?!1:(R.h(((e*l-t*a)*(u-p)-(e-a)*(u*x-f*p))/A,((e*l-t*a)*(f-x)-(t-l)*(u*x-f*p))/A),!0);var z=(e+n)/2,V=(t+i)/2,ye=(n+r)/2,se=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(z+ye)/2,n=(V+se)/2,ye=(ye+r)/2,se=(se+o)/2;var De=(i+ye)/2,ze=(n+se)/2,je=1/0,ot=!1,Nt=0,Vn=0;return et.Eo(e,t,z,V,i,n,De,ze,u,f,p,x,A,R)&&(e=(R.x-u)*(R.x-u)+(R.y-f)*(R.y-f),e<je&&(je=e,ot=!0,Nt=R.x,Vn=R.y)),et.Eo(De,ze,ye,se,r,o,a,l,u,f,p,x,A,R)&&(R.x-u)*(R.x-u)+(R.y-f)*(R.y-f)<je&&(ot=!0,Nt=R.x,Vn=R.y),ot&&(R.x=Nt,R.y=Vn),ot},Fo:function(e,t,n,i,r,o,a,l,u,f,p,x,A){var R=0;if(et.Yb(e,t,a,l,A,n,i)&&et.Yb(e,t,a,l,A,r,o)){if(A=(e-a)*(f-x)-(t-l)*(u-p),A===0)return R;var z=((e*l-t*a)*(u-p)-(e-a)*(u*x-f*p))/A,V=((e*l-t*a)*(f-x)-(t-l)*(u*x-f*p))/A;if(z>=p)return R;if((u>p?u-p:p-u)<(f>x?f-x:x-f)){if(t<l?(u=t,e=l):(u=l,e=t),V<u||V>e)return R}else if(e<a?(u=e,e=a):u=a,z<u||z>e)return R;0<A?R++:0>A&&R--}else{z=(e+n)/2,V=(t+i)/2;var ye=(n+r)/2,se=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(z+ye)/2,n=(V+se)/2,ye=(ye+r)/2,se=(se+o)/2;var De=(i+ye)/2,ze=(n+se)/2;R+=et.Fo(e,t,z,V,i,n,De,ze,u,f,p,x,A),R+=et.Fo(De,ze,ye,se,r,o,a,l,u,f,p,x,A)}return R},qh:function(e,t,n,i,r,o,a){return et.$(e,n)?(t<i?(n=t,t=i):n=i,o<n?(a.h(e,n),!1):o>t?(a.h(e,t),!1):(a.h(e,o),!0)):et.$(t,i)?(e<n?(i=e,e=n):i=n,r<i?(a.h(i,t),!1):r>e?(a.h(e,t),!1):(a.h(r,t),!0)):(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)),-5e-6>r?(a.h(e,t),!1):1.000005<r?(a.h(n,i),!1):(a.h(e+r*(n-e),t+r*(i-t)),!0))},Ve:function(e,t,n,i,r,o,a,l,u){return et.B(e,n)&&et.B(t,i)?(u.h(e,t),!1):et.$(r,a)?et.$(e,n)?(et.qh(e,t,n,i,r,o,u),!1):et.qh(e,t,n,i,r,(i-t)/(n-e)*(r-e)+t,u):(l=(l-o)/(a-r),et.$(e,n)?(n=l*(e-r)+o,t<i?(r=t,t=i):r=i,n<r?(u.h(e,r),!1):n>t?(u.h(e,t),!1):(u.h(e,n),!0)):(a=(i-t)/(n-e),et.$(l,a)?(et.qh(e,t,n,i,r,o,u),!1):(r=(a*e-l*r+o-t)/(a-l),et.$(a,0)?(e<n?(i=e,e=n):i=n,r<i?(u.h(i,t),!1):r>e?(u.h(e,t),!1):(u.h(r,t),!0)):et.qh(e,t,n,i,r,a*(r-e)+t,u))))},MA:function(e,t,n,i,r){return et.Ve(n.x,n.y,i.x,i.y,e.x,e.y,t.x,t.y,r)},KA:function(e,t,n,i,r,o,a,l,u,f){function p(ye,se){var De=(ye-e)*(ye-e)+(se-t)*(se-t);De<x&&(x=De,u.h(ye,se))}var x=1/0;p(u.x,u.y);var A=0,R=0,z=0,V=0;if(r<a?(A=r,R=a):(A=a,R=r),o<l?(z=r,V=a):(z=a,V=r),A=(R-A)/2+f,f=(V-z)/2+f,r=(r+a)/2,o=(o+l)/2,A===0||f===0)return u;if(.5>(n>e?n-e:e-n)){if(A=1-(n-r)*(n-r)/(A*A),0>A)return u;A=Math.sqrt(A),i=-f*A+o,p(n,f*A+o),p(n,i)}else{if(n=(i-t)/(n-e),i=1/(A*A)+n*n/(f*f),l=2*n*(t-n*e)/(f*f)-2*n*o/(f*f)-2*r/(A*A),A=l*l-4*i*(2*n*e*o/(f*f)-2*t*o/(f*f)+o*o/(f*f)+r*r/(A*A)-1+(t-n*e)*(t-n*e)/(f*f)),0>A)return u;A=Math.sqrt(A),f=(-l+A)/(2*i),p(f,n*f-n*e+t),A=(-l-A)/(2*i),p(A,n*A-n*e+t)}return u},Ff:function(e,t,n,i,r,o,a,l,u){var f=1e21,p=e,x=t;if(et.Ve(e,t,e,i,r,o,a,l,u)){var A=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);A<f&&(f=A,p=u.x,x=u.y)}return et.Ve(n,t,n,i,r,o,a,l,u)&&(A=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),A<f&&(f=A,p=u.x,x=u.y)),et.Ve(e,t,n,t,r,o,a,l,u)&&(t=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),t<f&&(f=t,p=u.x,x=u.y)),et.Ve(e,i,n,i,r,o,a,l,u)&&(e=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),e<f&&(f=e,p=u.x,x=u.y)),u.h(p,x),1e21>f},us:function(e,t,n){return et.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,i,r,o,a,l){var u=e+n,f=t+i;return r===a?(o<l?(a=o,o=l):a=l,e<=r&&r<=u&&a<=f&&o>=t):o===l?(r<a?(l=r,r=a):l=a,t<=o&&o<=f&&l<=u&&r>=e):!!(mo(e,t,n,i,r,o)||mo(e,t,n,i,a,l)||et.Rl(e,t,u,t,r,o,a,l)||et.Rl(u,t,u,f,r,o,a,l)||et.Rl(u,f,e,f,r,o,a,l)||et.Rl(e,f,e,t,r,o,a,l))},Rl:function(e,t,n,i,r,o,a,l){return e===n&&t===i&&r===a&&o===l?e===r&&t===o:0>=et.Fl(e,t,n,i,r,o)*et.Fl(e,t,n,i,a,l)&&0>=et.Fl(r,o,a,l,e,t)*et.Fl(r,o,a,l,n,i)},Fl:function(e,t,n,i,r,o){return n-=e,i-=t,e=r-e,t=o-t,o=e*i-t*n,o===0&&(o=e*n+t*i,0<o&&(o=(e-n)*n+(t-i)*i,0>o&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,i,r,o){var a=Math.PI;o||(i*=a/180,r*=a/180);var l=i>r?-1:1;o=[];var u=a/2,f=i;if(i=Math.min(2*a,Math.abs(r-i)),1e-5>i)return u=f+l*Math.min(i,u),l=e+n*Math.cos(f),f=t+n*Math.sin(f),e+=n*Math.cos(u),t+=n*Math.sin(u),n=(l+e)/2,u=(f+t)/2,o.push([l,f,n,u,n,u,e,t]),o;for(;1e-5<i;)r=f+l*Math.min(i,u),o.push(et.Vy(n,f,r,e,t)),i-=Math.abs(r-f),f=r;return o},Vy:function(e,t,n,i,r){var o=(n-t)/2,a=e*Math.cos(o),l=e*Math.sin(o),u=-l,f=a*a+u*u,p=f+a*a+u*l;return f=4/3*(Math.sqrt(2*f*p)-p)/(a*l-u*a),l=a-f*u,a=u+f*a,u=-a,f=o+t,o=Math.cos(f),f=Math.sin(f),[i+e*Math.cos(t),r+e*Math.sin(t),i+l*o-a*f,r+l*f+a*o,i+l*o-u*f,r+l*f+u*o,i+e*Math.cos(n),r+e*Math.sin(n)]},No:function(e,t,n,i,r,o,a){n=Math.floor((e-n)/r)*r+n,i=Math.floor((t-i)/o)*o+i;var l=n;return n+r-e<r/2&&(l=n+r),e=i,i+o-t<o/2&&(e=i+o),a.h(l,e),a},vx:function(e,t){var n=Math.max(e,t);e=Math.min(e,t);var i;do t=n%e,n=i=e,e=t;while(0<t);return i},$y:function(e,t,n,i){var r=0>n,o=0>i;if(e<t)var a=1,l=0;else a=0,l=1;var u=a===0?e:t,f=a===0?n:i;return(a===0?r:o)&&(f=-f),a=l,n=a===0?n:i,(a===0?r:o)&&(n=-n),et.az(u,a===0?e:t,f,n,0,0)},az:function(e,t,n,i,r,o){if(0<i)if(0<n){r=e*e,o=t*t,e*=n;var a=t*i,l=-o+a,u=-o+Math.sqrt(e*e+a*a);t=l;for(var f=0;9999999999>f&&(t=.5*(l+u),!(t===l||t===u));++f){var p=e/(t+r),x=a/(t+o);if(p=p*p+x*x-1,0<p)l=t;else if(0>p)u=t;else break}n=r*n/(t+r)-n,i=o*i/(t+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-t);else i=e*e-t*t,o=e*n,o<i?(i=o/i,o=t*Math.sqrt(Math.abs(1-i*i)),n=e*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new re,um:new re,Mf:new re,Nf:0,vm:100};et.za=et.AA;function Pn(e){Bi(this),this.l=2,e===void 0&&(e=Pn.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===Pn.o?this.ee=new Xt:(Pn.V===null&&(Pn.V=new Xt().freeze()),this.ee=Pn.V),this.aq=this.ee.Ja,this.Ip=new Wt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ta,this.gg=Ho,this.Rk=this.Sk=NaN,this.Uf=Tn}Pn.prototype.copy=function(){var e=new Pn;if(e.l=this.l&-2,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===Pn.o){for(var t=this.ee.s,n=e.ee,i=0;i<t.length;i++)n.add(t[i].copy());e.ee=n}else e.ee=this.ee;return e.aq=this.aq,e.Ip.assign(this.Ip),e.tk=this.tk,e.ym=this.ym,e.zm=this.zm,e.fg=this.fg.J(),e.gg=this.gg.J(),e.Sk=this.Sk,e.Rk=this.Rk,e.Uf=this.Uf,e},Pn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Pn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Pn.o)return this;var e=this.figures;e.freeze(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].freeze();return this},Pn.prototype.ka=function(){if(Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Pn.o)return this;var e=this.figures;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},Pn.prototype.Xa=function(e){if(!(e instanceof Pn))return!1;if(this.type!==e.type)return this.type===Pn.j&&e.type===Pn.o?Cu(this,e):e.type===Pn.j&&this.type===Pn.o?Cu(e,this):!1;if(this.type===Pn.o){var t=this.figures.s;e=e.figures.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0}return et.B(this.startX,e.startX)&&et.B(this.startY,e.startY)&&et.B(this.endX,e.endX)&&et.B(this.endY,e.endY)};function Cu(e,t){return e.type!==Pn.j||t.type!==Pn.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&et.B(e.startX,t.startX)&&et.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===lo&&et.B(e.endX,t.endX)&&et.B(e.endY,t.endY))))}Pn.ia=function(e){return e.toString()},Pn.prototype.qb=function(e){e.classType===Pn&&(this.type=e)},Pn.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Pn.j:return 0>e?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case Pn.u:var t=new Wt(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case Pn.F:if(t=new Wt(this.startX,this.startY,0,0),t.Kv(this.endX,this.endY,0,0),0>e)return e=t.left.toString()+" "+(t.y+t.height/2).toString(),"M"+e+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+(t.right.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+(t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e))+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case Pn.o:t="",n=this.figures.s;for(var i=n.length,r=0;r<i;r++){var o=n[r];0<r&&(t+=" x "),o.isFilled&&(t+="F "),t+=o.toString(e)}return t;default:return this.type.toString()}},Pn.nb=function(e){e=e.split(/[Xx]/);for(var t=e.length,n="",i=0;i<t;i++){var r=e[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},Pn.parse=function(e,t){function n(){return V>=je-1?!0:f[V+1].match(ot)!==null}function i(){return V++,f[V]}function r(er){var Vi=parseFloat(i()),Jr=parseFloat(i());ye===ye.toLowerCase()&&(Vi=ze.x+Vi,Jr=ze.y+Jr),er.h(Vi,Jr)}function o(){return r(ze),ze}function a(){return r(De),De}function l(){var er=se.toLowerCase();return er!=="c"&&er!=="s"&&er!=="q"&&er!=="t"?ze:new ce(2*ze.x-De.x,2*ze.y-De.y)}t===void 0&&(t=!1);var u=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(u,"$1 $2"),e=e.replace(u,"$1 $2"),e=e.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),e=e.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/[\s\r\t\n]+/gm," "),e=e.replace(/^\s+|\s+$/g,"");var f=e.split(" ");for(e=0;e<f.length;e++){var p=f[e];if(p.match(/(\.[0-9]*)(\.)/gm)!==null){u=Dt();for(var x="",A=!1,R=0;R<p.length;R++){var z=p[R];z!=="."||A?z==="."?(u.push(x),x="."):x+=z:(A=!0,x+=z)}for(u.push(x),f.splice(e,1),p=0;p<u.length;p++)f.splice(e+p,0,u[p]);e+=u.length-1,Jt(u)}}var V=-1,ye="",se="";u=new ce(0,0);var De=new ce(0,0),ze=new ce(0,0),je=f.length;e=Hy(null),A=x=p=!1,R=!0,z=null;for(var ot=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(V>=je-1);)if(se=ye,ye=i(),ye!=="")switch(ye.toUpperCase()){case"X":R=!0,x=p=!1;break;case"M":for(z=o(),e.mc===null||R===!0?(If(e,z.x,z.y,p,!x,A),R=!1):e.moveTo(z.x,z.y),u.assign(ze);!n();)z=o(),e.lineTo(z.x,z.y);break;case"L":for(;!n();)z=o(),e.lineTo(z.x,z.y);break;case"H":for(;!n();)ze=new ce((ye===ye.toLowerCase()?ze.x:0)+parseFloat(i()),ze.y),e.lineTo(ze.x,ze.y);break;case"V":for(;!n();)ze=new ce(ze.x,(ye===ye.toLowerCase()?ze.y:0)+parseFloat(i())),e.lineTo(ze.x,ze.y);break;case"C":for(;!n();){z=new ce,r(z);var Nt=a(),Vn=o();bh(e,z.x,z.y,Nt.x,Nt.y,Vn.x,Vn.y)}break;case"S":for(;!n();)z=l(),Nt=a(),Vn=o(),bh(e,z.x,z.y,Nt.x,Nt.y,Vn.x,Vn.y);break;case"Q":for(;!n();)z=a(),Nt=o(),Y0(e,z.x,z.y,Nt.x,Nt.y);break;case"T":for(;!n();)De=z=l(),Nt=o(),Y0(e,z.x,z.y,Nt.x,Nt.y);break;case"B":for(;!n();){z=parseFloat(i()),Nt=parseFloat(i()),Vn=parseFloat(i());var oi=parseFloat(i()),ei=parseFloat(i()),Dn=ei,pn=!1;n()||(Dn=parseFloat(i()),n()||(pn=parseFloat(i())!==0)),ye===ye.toLowerCase()&&(Vn+=ze.x,oi+=ze.y),e.arcTo(z,Nt,Vn,oi,ei,Dn,pn)}break;case"A":for(;!n();)z=Math.abs(parseFloat(i())),Nt=Math.abs(parseFloat(i())),Vn=parseFloat(i()),ei=oi=!1,pn=Dn=0,Dn=i(),Dn.length===1?(oi=!!parseFloat(Dn),ei=!!parseFloat(i()),Dn=parseFloat(i())):Dn.length===2?(oi=!!parseFloat(Dn[0]),ei=!!parseFloat(Dn[1]),Dn=parseFloat(i())):(oi=!!parseFloat(Dn[0]),ei=!!parseFloat(Dn[1]),Dn=parseFloat(Dn.slice(2))),pn=parseFloat(i()),ye===ye.toLowerCase()&&(Dn=ze.x+Dn,pn=ze.y+pn),ze.h(Dn,pn),Fb(e,z,Nt,Vn,oi,ei,Dn,pn);break;case"Z":Pb(e),ze.assign(u);break;case"F":for(z="",Nt=1;f[V+Nt];)if(f[V+Nt]==="0")A=!0,Nt++;else if(f[V+Nt].match(/[Uu]/)!==null)Nt++;else if(f[V+Nt].match(ot)===null)Nt++;else{z=f[V+Nt];break}z.match(/[Mm]/)?p=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(z="",Nt=1;f[V+Nt];)if(f[V+Nt].match(/[Ff]/)!==null)Nt++;else if(f[V+Nt].match(ot)===null)Nt++;else{z=f[V+Nt];break}z.match(/[Mm]/)?x=!0:e.mc.isShadowed=!1}if(u=e.os,X0=e,t)for(t=u.figures.iterator;t.next();)t.value.isFilled=!0;return u},Pn.Ha=function(e,t){for(var n=e.length,i=ce.alloc(),r=0;r<n;r++){var o=e[r];i.x=o[0],i.y=o[1],t.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],t.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],t.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],t.Ga(i),o[6]=i.x,o[7]=i.y}ce.free(i)},Pn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Pn.o){if(this.aq!==this.figures.Ja)return!0;for(var e=this.figures.s,t=e.length,n=0;n<t;n++)if(e[n].Zu())return!0}return!1},Pn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Pn.o){this.aq=this.figures.Ja;for(var e=this.figures.s,t=e.length,n=0;n<t;n++){var i=e[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 a=i[o];a._isInvalidBounds=!1,a.ae=null}}}e=this.Ip,e.ka(),isNaN(this.Sk)||isNaN(this.Rk)?e.h(0,0,0,0):e.h(0,0,this.Sk,this.Rk),Yu(this,e,!1),Dr(e,0,0,0,0),e.freeze()},Pn.prototype.ix=function(){var e=new Wt;return Yu(this,e,!0),e};function Yu(e,t,n){switch(e.type){case Pn.j:case Pn.u:case Pn.F:n?t.h(e.od,e.pd,0,0):Dr(t,e.od,e.pd,0,0),Dr(t,e.Dc,e.Ec,0,0);break;case Pn.o:var i=e.figures;e=i.s,i=i.length;for(var r=0;r<i;r++){var o=e[r];n&&r===0?t.h(o.startX,o.startY,0,0):Dr(t,o.startX,o.startY,0,0);for(var a=o.segments.s,l=a.length,u=o.startX,f=o.startY,p=0;p<l;p++){var x=a[p];switch(x.type){case lo:case So:u=x.endX,f=x.endY,Dr(t,u,f,0,0);break;case Ha:et.Dl(u,f,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case Vs:et.iv(u,f,x.point1X,x.point1Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case la:case Ks:var A=x.type===la?Fs(x,o):gs(x,o,u,f),R=A.length;if(R===0){u=x.type===la?x.centerX:x.endX,f=x.type===la?x.centerY:x.endY,Dr(t,u,f,0,0);break}x=null;for(var z=0;z<R;z++)x=A[z],et.Dl(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.5,t);x!==null&&(u=x[6],f=x[7]);break;default:Ke("Unknown Segment type: "+x.type)}}}break;default:Ke("Unknown Geometry type: "+e.type)}}Pn.prototype.normalize=function(){this._isFrozen&&Ht(this);var e=this.ix();return this.offset(-e.x,-e.y),new ce(-e.x,-e.y)},Pn.prototype.offset=function(e,t){return this._isFrozen&&Ht(this),this.transform(1,0,0,1,e,t),this},Pn.prototype.scale=function(e,t){return this._isFrozen&&Ht(this),this.transform(e,0,0,t,0,0),this},Pn.prototype.rotate=function(e,t,n){this._isFrozen&&Ht(this),t===void 0&&(t=0),n===void 0&&(n=0);var i=sr.alloc();return i.reset(),i.rotate(e,t,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),sr.free(i),this},U=Pn.prototype,U.transform=function(e,t,n,i,r,o){switch(this.type){case Pn.j:case Pn.u:case Pn.F:var a=this.od,l=this.pd;this.od=a*e+l*n+r,this.pd=a*t+l*i+o,a=this.Dc,l=this.Ec,this.Dc=a*e+l*n+r,this.Ec=a*t+l*i+o;break;case Pn.o:for(var u=this.figures.s,f=u.length,p=0;p<f;p++){var x=u[p];a=x.startX,l=x.startY,x.startX=a*e+l*n+r,x.startY=a*t+l*i+o,x=x.segments.s;for(var A=x.length,R=0;R<A;R++){var z=x[R];switch(z.type){case lo:case So:a=z.endX,l=z.endY,z.endX=a*e+l*n+r,z.endY=a*t+l*i+o;break;case Ha:a=z.point1X,l=z.point1Y,z.point1X=a*e+l*n+r,z.point1Y=a*t+l*i+o,a=z.point2X,l=z.point2Y,z.point2X=a*e+l*n+r,z.point2Y=a*t+l*i+o,a=z.endX,l=z.endY,z.endX=a*e+l*n+r,z.endY=a*t+l*i+o;break;case Vs:a=z.point1X,l=z.point1Y,z.point1X=a*e+l*n+r,z.point1Y=a*t+l*i+o,a=z.endX,l=z.endY,z.endX=a*e+l*n+r,z.endY=a*t+l*i+o;break;case la:a=z.centerX,l=z.centerY,z.centerX=a*e+l*n+r,z.centerY=a*t+l*i+o,t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),z.startAngle+=a),0>e&&(z.startAngle=180-z.startAngle,z.sweepAngle=-z.sweepAngle),0>i&&(z.startAngle=-z.startAngle,z.sweepAngle=-z.sweepAngle),z.radiusX*=Math.sqrt(e*e+n*n),z.radiusY!==void 0&&(z.radiusY*=Math.sqrt(t*t+i*i));break;case Ks:if(a=z.endX,l=z.endY,z.endX=a*e+l*n+r,z.endY=a*t+l*i+o,z.radiusX===0||z.radiusY===0)break;t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),z.xAxisRotation+=a),0>e&&(z.xAxisRotation=180-z.xAxisRotation,z.isClockwiseArc=!z.isClockwiseArc),0>i&&(z.xAxisRotation=-z.xAxisRotation,z.isClockwiseArc=!z.isClockwiseArc),z.radiusX*=Math.sqrt(e*e+n*n),z.radiusY*=Math.sqrt(t*t+i*i);break;default:Ke("Unknown Segment type: "+z.type)}}}}return this._isInvalidBounds=!0,this},U.ca=function(e,t){t===void 0&&(t=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Pn.j:return et.Yb(n,i,r,o,t,e.x,e.y);case Pn.u:var a=Wt.allocAt(Math.min(n,r)-t,Math.min(i,o)-t,Math.abs(r-n)+2*t,Math.abs(o-i)+2*t);return e=a.ca(e),Wt.free(a),e;case Pn.F:a=Math.min(n,r)-t;var l=Math.min(i,o)-t;return n=(Math.abs(r-n)+2*t)/2,t=(Math.abs(o-i)+2*t)/2,0>=n||0>=t?!1:(a=e.x-(a+n),l=e.y-(l+t),1>=a*a/(n*n)+l*l/(t*t));case Pn.o:return Dl(this,e,t,!0,!1);default:return!1}};function Dl(e,t,n,i,r){var o=t.x;t=t.y;for(var a=e.bounds.x-20,l=0,u,f,p,x,A=e.figures.s,R=A.length,z=0;z<R;z++){var V=A[z],ye=!V.isEvenOdd;if(V.isFilled){if(i&&V.ca(o,t,n))return!0;var se=V.segments;u=V.startX,f=V.startY;for(var De=u,ze=f,je=se.s,ot=0;ot<=se.length;ot++){var Nt=void 0;if(ot!==se.length){Nt=je[ot];var Vn=Nt.type;e=Nt.endX,x=Nt.endY}else Vn=lo,e=De,x=ze;switch(Vn){case So:if(De=Pl(o,t,a,t,u,f,De,ze),isNaN(De))return!0;l+=De,De=e,ze=x;break;case lo:if(u=Pl(o,t,a,t,u,f,e,x),isNaN(u))return!0;l+=u;break;case Ha:p=et.Fo(u,f,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,e,x,a,t,o,t,.5),l+=p;break;case Vs:p=et.Fo(u,f,(u+2*Nt.point1X)/3,(f+2*Nt.point1Y)/3,(2*Nt.point1X+e)/3,(2*Nt.point1Y+x)/3,e,x,a,t,o,t,.5),l+=p;break;case la:case Ks:Vn=Nt.type===la?Fs(Nt,V):gs(Nt,V,u,f);var oi=Vn.length;if(oi===0){if(u=Pl(o,t,a,t,u,f,Nt.type===la?Nt.centerX:Nt.endX,Nt.type===la?Nt.centerY:Nt.endY),isNaN(u))return!0;l+=u;break}Nt=null;for(var ei=0;ei<oi;ei++){if(Nt=Vn[ei],ei===0){if(p=Pl(o,t,a,t,u,f,Nt[0],Nt[1]),isNaN(p))return!0;l+=p}p=et.Fo(Nt[0],Nt[1],Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],a,t,o,t,.5),l+=p}Nt!==null&&(e=Nt[6],x=Nt[7]);break;default:Ke("Unknown Segment type: "+Nt.type)}u=e,f=x}if(ye){if(l!==0)return!0}else if(l%2!==0)return!0;l=0}else if(V.ca(o,t,r?n:n+2))return!0}return!1}function Pl(e,t,n,i,r,o,a,l){if(et.Yb(r,o,a,l,.05,e,t))return NaN;var u=(e-n)*(o-l);if(u===0)return 0;var f=((e*i-t*n)*(r-a)-(e-n)*(r*l-o*a))/u;if(t=(e*i-t*n)*(o-l)/u,f>=e)return 0;if((r>a?r-a:a-r)<(o>l?o-l:l-o)){if(o<l){if(t<o||t>l)return 0}else if(t<l||t>o)return 0}else if(r<a){if(f<r||f>a)return 0}else if(f<a||f>r)return 0;return 0<u?1:-1}function gl(e,t,n,i){e=e.figures.s;for(var r=e.length,o=0;o<r;o++)if(e[o].ca(t,n,i))return!0;return!1}U.Pu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=new ce),this.type===Pn.j)return t.h(this.startX+e*(this.endX-this.startX),this.startY+e*(this.endY-this.startY)),t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,a=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(a+p>=o)return i=o-a,i=p===0?0:i/p,n=n[l],l=n[2*e],r=n[2*e+1],t.h(l+(n[2*e+2]-l)*i,r+(n[2*e+3]-r)*i),t;a+=p}}return t},U.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===Pn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var t=this.flattenedSegments,n=this.flattenedLengths,i=t.length,r=this.flattenedTotalLength*e,o=0,a=0;a<i;a++){var l=n[a],u=l.length;for(e=0;e<u;e++){var f=l[e];if(o+f>=r)return r=t[a],t=r[2*e],n=r[2*e+1],i=r[2*e+2],e=r[2*e+3],1>Math.abs(i-t)&&1>Math.abs(e-n)?0:1>Math.abs(i-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=i-t?0:180:180*Math.atan2(e-n,i-t)/Math.PI;o+=f}}return NaN},U.Qu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=[]),t.length=3,this.type===Pn.j)return t[0]=this.startX+e*(this.endX-this.startX),t[1]=this.startY+e*(this.endY-this.startY),t[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,a=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(a+p>=o)return i=o-a,i=p===0?0:i/p,p=n[l],n=p[2*e],l=p[2*e+1],r=p[2*e+2],e=p[2*e+3],t[0]=n+(r-n)*i,t[1]=l+(e-l)*i,t[2]=1>Math.abs(r-n)&&1>Math.abs(e-l)?0:1>Math.abs(r-n)?0<=e-l?90:270:1>Math.abs(e-l)?0<=r-n?0:180:180*Math.atan2(e-l,r-n)/Math.PI,t;a+=p}}return t},U.xx=function(e){if(this.type===Pn.j){var t=this.startX,n=this.startY,i=this.endX,r=this.endY;if(t!==i||n!==r){var o=e.x;if(e=e.y,t===i){if(n<r){var a=n;i=r}else a=r,i=n;return e<=a?a===n?0:1:e>=i?i===n?0:1:Math.abs(e-n)/(i-a)}if(n===r)return t<i?a=t:(a=i,i=t),o<=a?a===t?0:1:o>=i?i===t?0:1:Math.abs(o-t)/(i-a);a=(i-t)*(i-t)+(r-n)*(r-n);var l=ce.alloc();return et.qh(t,n,i,r,o,e,l),e=l.x,o=l.y,ce.free(l),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else if(this.type===Pn.u){a=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,a!==u||l!==r){t=u-a,n=r-l,o=2*t+2*n,i=e.x,e=e.y,i=Math.min(Math.max(i,a),u),e=Math.min(Math.max(e,l),r),a=Math.abs(i-a),u=Math.abs(i-u),l=Math.abs(e-l),r=Math.abs(e-r);var f=Math.min(a,u,l,r);if(f===l)return i/o;if(f===u)return(t+e)/o;if(f===r)return(2*t+n-i)/o;if(f===a)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=ce.alloc(),r=1/0,l=a=0,u=t.length;for(var p=f=0,x=0;x<u;x++)for(var A=t[x],R=n[x],z=A.length,V=0;V<z;V+=2){var ye=A[V],se=A[V+1];if(V!==0){et.qh(f,p,ye,se,e.x,e.y,i);var De=(i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y);De<r&&(r=De,a=l,a+=Math.sqrt((i.x-f)*(i.x-f)+(i.y-p)*(i.y-p))),l+=R[(V-2)/2]}f=ye,p=se}return ce.free(i),e=a/o,0>e?0:1<e?1:e}return 0};function Xu(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],i=[],r=[];if(e.type===Pn.j)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.endY),t.push(i),r.push(Math.sqrt((e.startX-e.endX)*(e.startX-e.endX)+(e.startY-e.endY)*(e.startY-e.endY))),n.push(r);else if(e.type===Pn.u)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.startY),i.push(e.endX),i.push(e.endY),i.push(e.startX),i.push(e.endY),i.push(e.startX),i.push(e.startY),t.push(i),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),n.push(r);else if(e.type===Pn.F){var o=new Ia;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var a=new Or(la);if(a.startAngle=0,a.sweepAngle=360,a.centerX=(e.startX+e.endX)/2,a.centerY=(e.startY+e.endY)/2,a.radiusX=Math.abs(e.startX-e.endX)/2,a.radiusY=Math.abs(e.startY-e.endY)/2,o.add(a),e=Fs(a,o),r=e.length,r===0)i.push(a.centerX),i.push(a.centerY);else{a=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=e[l];et.Qe(a,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),a=u[6],o=u[7]}}t.push(i),n.push(cu(i))}else for(e=e.figures.iterator;e.next();){r=e.value,i=[],i.push(r.startX),i.push(r.startY),a=r.startX,o=r.startY,l=a,u=o;for(var f=r.segments.s,p=f.length,x=0;x<p;x++){var A=f[x];switch(A.type){case So:4<=i.length&&(t.push(i),n.push(cu(i))),i=[],i.push(A.endX),i.push(A.endY),a=A.endX,o=A.endY,l=a,u=o;break;case lo:i.push(A.endX),i.push(A.endY),a=A.endX,o=A.endY;break;case Ha:et.Qe(a,o,A.point1X,A.point1Y,A.point2X,A.point2Y,A.endX,A.endY,.5,i),a=A.endX,o=A.endY;break;case Vs:et.ep(a,o,A.point1X,A.point1Y,A.endX,A.endY,.5,i),a=A.endX,o=A.endY;break;case la:var R=Fs(A,r),z=R.length;if(z===0){i.push(A.centerX),i.push(A.centerY),a=A.centerX,o=A.centerY;break}for(var V=0;V<z;V++){var ye=R[V];et.Qe(a,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),a=ye[6],o=ye[7]}break;case Ks:if(R=gs(A,r,a,o),z=R.length,V=A.endX,ye=A.endY,z===0){i.push(V),i.push(ye),a=V,o=ye;break}for(V=0;V<z;V++)ye=R[V],et.Qe(a,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),a=ye[6],o=ye[7];break;default:Ke("Segment not of valid type: "+A.type)}A.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(t.push(i),n.push(cu(i)))}}}function cu(e){for(var t=[],n=0,i=0,r=e.length,o=0;o<r;o+=2){var a=e[o],l=e[o+1];o!==0&&t.push(Math.sqrt(Tr(n,i,a,l))),n=a,i=l}return t}U.add=function(e){return this.ee.add(e),this},U.pm=function(e,t,n,i,r,o,a,l){return this._isFrozen&&Ht(this),this.fg=new si(e,t,r,o).freeze(),this.gg=new si(n,i,a,l).freeze(),this},ft.Object.defineProperties(Pn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Xu(this),this.tk}},flattenedLengths:{get:function(){return Xu(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===Pn.j){e=Math.abs(this.endX-this.startX);var t=Math.abs(this.endY-this.startY);e=Math.sqrt(e*e+t*t)}else if(this.type===Pn.u)e=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{t=this.flattenedLengths;for(var n=t.length,i=e=0;i<n;i++)for(var r=t[i],o=r.length,a=0;a<o;a++)e+=r[a]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&Ht(this,e),this.na=e,e===Pn.o?this.ee=new Xt:(Pn.V===null&&(Pn.V=new Xt().freeze()),this.ee=Pn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&Ht(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&Ht(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&Ht(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&Ht(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&Ht(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&Ht(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&Ht(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&Ht(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Pn.prototype.setSpots=Pn.prototype.pm,Pn.prototype.add=Pn.prototype.add,Pn.prototype.getFractionForPoint=Pn.prototype.xx,Pn.prototype.getPointAndAngleAlongPath=Pn.prototype.Qu,Pn.prototype.getAngleAlongPath=Pn.prototype.wx,Pn.prototype.getPointAlongPath=Pn.prototype.Pu,Pn.prototype.containsPoint=Pn.prototype.ca,Pn.prototype.transform=Pn.prototype.transform,Pn.prototype.rotate=Pn.prototype.rotate,Pn.prototype.scale=Pn.prototype.scale,Pn.prototype.offset=Pn.prototype.offset,Pn.prototype.normalize=Pn.prototype.normalize,Pn.prototype.computeBoundsWithoutOrigin=Pn.prototype.ix,Pn.prototype.equalsApprox=Pn.prototype.Xa,Pn.className="Geometry",Pn.j=new Kt(Pn,"Line",0),Pn.u=new Kt(Pn,"Rectangle",1),Pn.F=new Kt(Pn,"Ellipse",2),Pn.o=new Kt(Pn,"Path",3),Pn.V=null,Pn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Pn.className="Geometry",Pn.stringify=Pn.ia,Pn.fillPath=Pn.nb,Pn.parse=Pn.parse,Pn.Line=Pn.j,Pn.Rectangle=Pn.u,Pn.Ellipse=Pn.F,Pn.Path=Pn.o;function Ia(e,t,n,i,r){Bi(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),e!==void 0?this.od=e:this.od=0,t!==void 0?this.pd=t:this.pd=0,this.pl=new Xt,this.sr=this.pl.Ja,this.fw=null}Ia.prototype.copy=function(){var e=new Ia;e.l=this.l&-2,e.od=this.od,e.pd=this.pd;for(var t=this.pl.s,n=t.length,i=e.pl,r=0;r<n;r++){var o=t[r].copy();i.add(o)}return e.sr=this.sr,e.fw=this.fw,e},U=Ia.prototype,U.Xa=function(e){if(!(e instanceof Ia&&et.B(this.startX,e.startX)&&et.B(this.startY,e.startY)))return!1;var t=this.segments.s;e=e.segments.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0},U.toString=function(e){e===void 0&&(e=-1);for(var t=0>e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,i=n.length,r=0;r<i;r++)t+=" "+n[r].toString(e);return t},U.freeze=function(){this._isFrozen=!0;var e=this.segments;e.freeze();var t=e.s;e=e.length;for(var n=0;n<e;n++)t[n].freeze();return this},U.ka=function(){this._isFrozen=!1;var e=this.segments;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},U.Zu=function(){if(this._isInvalidBounds)return!0;var e=this.segments;if(this.sr!==e.Ja)return!0;e=e.s;for(var t=e.length,n=0;n<t;n++)if(e[n]._isInvalidBounds)return!0;return!1},U.add=function(e){return this.pl.add(e),this},U.ca=function(e,t,n){for(var i=this.startX,r=this.startY,o=i,a=r,l=this.segments.s,u=l.length,f=0;f<u;f++){var p=l[f];switch(p.type){case So:o=p.endX,a=p.endY,i=p.endX,r=p.endY;break;case lo:if(et.Yb(i,r,p.endX,p.endY,n,e,t))return!0;i=p.endX,r=p.endY;break;case Ha:if(et.cs(i,r,p.point1X,p.point1Y,p.point2X,p.point2Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case Vs:if(et.jv(i,r,p.point1X,p.point1Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case la:case Ks:var x=p.type===la?Fs(p,this):gs(p,this,i,r),A=x.length,R=p.type===la?p.centerX:p.endX,z=p.type===la?p.centerY:p.endY;if(A===0){if(et.Yb(i,r,R,z,n,e,t))return!0;i=R,r=z;break}for(R=null,z=0;z<A;z++)if(R=x[z],z===0&&et.Yb(i,r,R[0],R[1],n,e,t)||et.cs(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],.5,e,t,n))return!0;R!==null&&(i=R[6],r=R[7]);break;default:Ke("Unknown Segment type: "+p.type)}if(p.isClosed&&(i!==o||r!==a)&&et.Yb(i,r,o,a,n,e,t))return!0}return!1},ft.Object.defineProperties(Ia.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Ht(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&Ht(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Ht(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&Ht(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&Ht(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&Ht(this,e),this.pl=e,this._isInvalidBounds=!0}}}),Ia.prototype.add=Ia.prototype.add,Ia.prototype.equalsApprox=Ia.prototype.Xa,Ia.className="PathFigure";function Or(e,t,n,i,r,o,a,l){Bi(this),e===void 0&&(e=lo),this.na=e,this.l=2,t!==void 0?this.Dc=t: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),a===void 0&&(a=0),e===Ks?(e=o%360,0>e&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),typeof a=="boolean"?a&&(this.isLargeArc=!0):typeof a=="number"&&a&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===la&&(o=Math.max(o,0)),this.Wh=o,typeof a=="number"?(e===la&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}Or.prototype.copy=function(){var e=new Or;return e.na=this.na,e.l=this.l&-2,e.Dc=this.Dc,e.Ec=this.Ec,e.Ne=this.Ne,e.Vh=this.Vh,e.Wh=this.Wh,e.Pg=this.Pg,e},U=Or.prototype,U.Xa=function(e){if(!(e instanceof Or)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case So:case lo:return et.B(this.endX,e.endX)&&et.B(this.endY,e.endY);case Ha:return et.B(this.endX,e.endX)&&et.B(this.endY,e.endY)&&et.B(this.point1X,e.point1X)&&et.B(this.point1Y,e.point1Y)&&et.B(this.point2X,e.point2X)&&et.B(this.point2Y,e.point2Y);case Vs:return et.B(this.endX,e.endX)&&et.B(this.endY,e.endY)&&et.B(this.point1X,e.point1X)&&et.B(this.point1Y,e.point1Y);case la:return et.B(this.startAngle,e.startAngle)&&et.B(this.sweepAngle,e.sweepAngle)&&et.B(this.centerX,e.centerX)&&et.B(this.centerY,e.centerY)&&et.B(this.radiusX,e.radiusX)&&et.B(this.radiusY,e.radiusY);case Ks:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&et.B(this.xAxisRotation,e.xAxisRotation)&&et.B(this.endX,e.endX)&&et.B(this.endY,e.endY)&&et.B(this.radiusX,e.radiusX)&&et.B(this.radiusY,e.radiusY);default:return!1}},U.qb=function(e){e.classType===Or&&(this.type=e)},U.toString=function(e){switch(e===void 0&&(e=-1),this.type){case So:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case lo:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Ha:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Vs:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case la:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case Ks:e=0>e?"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(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.close=function(){return this.isClosed=!0,this};function Fs(e,t){if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;var n=e.radiusX,i=e.radiusY;if(i===void 0&&(i=n),n===0||i===0)return e.ae=[],e.ae;t=e.Ne;var r=e.Vh,o=et.jx(0,0,n<i?n:i,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==i){var a=sr.alloc();a.reset(),n<i?a.scale(1,i/n):a.scale(n/i,1),Pn.Ha(o,a),sr.free(a)}for(n=o.length,i=0;i<n;i++)a=o[i],a[0]+=t,a[1]+=r,a[2]+=t,a[3]+=r,a[4]+=t,a[5]+=r,a[6]+=t,a[7]+=r;return e.ae=o,e.ae}function gs(e,t,n,i){function r(V,ye,se,De){return(V*De<ye*se?-1:1)*Math.acos((V*se+ye*De)/(Math.sqrt(V*V+ye*ye)*Math.sqrt(se*se+De*De)))}if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;if(e.radiusX===0||e.radiusY===0)return e.ae=[],e.ae;t=e.Wh;var o=e.Pg;t===0&&(t=1e-4),o===0&&(o=1e-4);var a=Math.PI/180*e.Ne,l=e.isLargeArc,u=e.isClockwiseArc,f=e.Dc,p=e.Ec,x=Math.cos(a),A=Math.sin(a),R=x*(n-f)/2+A*(i-p)/2;a=-A*(n-f)/2+x*(i-p)/2;var z=R*R/(t*t)+a*a/(o*o);return 1<z&&(t*=Math.sqrt(z),o*=Math.sqrt(z)),z=(l===u?-1:1)*Math.sqrt((t*t*o*o-t*t*a*a-o*o*R*R)/(t*t*a*a+o*o*R*R)),isNaN(z)&&(z=0),l=z*t*a/o,z=z*-o*R/t,isNaN(l)&&(l=0),isNaN(z)&&(z=0),n=(n+f)/2+x*l-A*z,i=(i+p)/2+A*l+x*z,p=r(1,0,(R-l)/t,(a-z)/o),x=(R-l)/t,f=(a-z)/o,R=(-R-l)/t,l=(-a-z)/o,a=r(x,f,R,l),R=(x*R+f*l)/(Math.sqrt(x*x+f*f)*Math.sqrt(R*R+l*l)),-1>=R?a=Math.PI:1<=R&&(a=0),!u&&0<a&&(a-=2*Math.PI),u&&0>a&&(a+=2*Math.PI),u=t>o?1:t/o,R=t>o?o/t:1,t=et.jx(0,0,t>o?t:o,p,p+a,!0),o=sr.alloc(),o.reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(u,R),Pn.Ha(t,o),sr.free(o),e.ae=t,e.ae}ft.Object.defineProperties(Or.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(e){this.isClosed!==e&&(this.l=e?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&Ht(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Ht(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Ht(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ht(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Ht(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&Ht(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&Ht(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ht(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Ht(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&Rt(e,">= zero",Or,"radiusX"),this._isFrozen&&Ht(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&Rt(e,">= zero",Or,"radiusY"),this._isFrozen&&Ht(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Ht(this,e),e%=360,0>e&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Ht(this,e),360<e&&(e=360),-360>e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Ht(this,e),this.l=e?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Ht(this,e),this.l=e?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ht(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Or.prototype.equalsApprox=Or.prototype.Xa;var So=new Kt(Or,"Move",0),lo=new Kt(Or,"Line",1),Ha=new Kt(Or,"Bezier",2),Vs=new Kt(Or,"QuadraticBezier",3),la=new Kt(Or,"Arc",4),Ks=new Kt(Or,"SvgArc",4);Or.className="PathSegment",Or.Move=So,Or.Line=lo,Or.Bezier=Ha,Or.QuadraticBezier=Vs,Or.Arc=la,Or.SvgArc=Ks;function ss(){this.H=null,this.xu=new ce(0,0).freeze(),this.mt=new ce(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}ss.prototype.copy=function(){var e=new ss;return this.clone(e)},ss.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},ss.prototype.toString=function(){var e="^";return this.modifiers!==0&&(e+="M:"+this.modifiers),this.button!==0&&(e+="B:"+this.button),this.key!==""&&(e+="K:"+this.key),this.clickCount!==0&&(e+="C:"+this.clickCount),this.delta!==0&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),this.documentPoint!==null&&(e+="@"+this.documentPoint.toString()),e},ss.prototype.So=function(e,t){var n=this.diagram;return n===null||ec(n,e,t),t},ss.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(ec(n,e,t),t.assign(n.Ps(t))),t},ft.Object.defineProperties(ss.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,this.event===null)switch(e){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(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return e===null?!1:e.pointerType==="touch"||e.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return(this.modifiers&1)!==0},set:function(e){this.modifiers=e?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(e){this.modifiers=e?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(e){this.modifiers=e?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(e){this.modifiers=e?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(e){this.buttons=e?this.buttons|1:this.buttons&-2}},right:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(e){this.buttons=e?this.buttons|2:this.buttons&-3}},middle:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(e){this.buttons=e?this.buttons|4:this.buttons&-5}}}),ss.prototype.getMultiTouchDocumentPoint=ss.prototype.Bz,ss.prototype.getMultiTouchViewPoint=ss.prototype.So,ss.className="InputEvent";function hu(){this.H=null,this.xa="",this.ar=this.Lr=null}hu.prototype.copy=function(){var e=new hu;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},hu.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},ft.Object.defineProperties(hu.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),hu.className="DiagramEvent";function Bo(){this.Fm=Eo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Bo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Bo.prototype.copy=function(){var e=new Bo;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=at(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=at(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=at(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=at(t)&&typeof t.J=="function"?t.J():t,e},Bo.prototype.qb=function(e){e.classType===Bo&&(this.change=e)},Bo.prototype.toString=function(){var e="";return e=this.change===Es?e+"* ":this.change===Eo?e+(this.model!==null?"!m":"!d"):e+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===Es?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=fn(this.object)),this.oldValue!==null&&(e+=" old: "+fn(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+fn(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},Bo.prototype.I=function(e){return e?this.oldValue:this.newValue},Bo.prototype.Dz=function(e){return e?this.oldParam:this.newParam},Bo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Bo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Bo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Bo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ft.Object.defineProperties(Bo.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===Es&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),Bo.prototype.redo=Bo.prototype.redo,Bo.prototype.canRedo=Bo.prototype.canRedo,Bo.prototype.undo=Bo.prototype.undo,Bo.prototype.canUndo=Bo.prototype.canUndo,Bo.prototype.getParam=Bo.prototype.Dz,Bo.prototype.getValue=Bo.prototype.I,Bo.prototype.clear=Bo.prototype.clear;var Es=new Kt(Bo,"Transaction",-1),Eo=new Kt(Bo,"Property",0),qo=new Kt(Bo,"Insert",1),ia=new Kt(Bo,"Remove",2);Bo.className="ChangedEvent",Bo.Transaction=Es,Bo.Property=Eo,Bo.Insert=qo,Bo.Remove=ia;function wa(){this.o=new Xt().freeze(),this.xa="",this.j=!1}wa.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(e!==void 0&&0<e){e=this.changes.count;for(var n=0;n<e;n++){var i=this.changes.M(n);i!==null&&(t+=`
|
|
|
`+i.toString())}}return t},wa.prototype.clear=function(){var e=this.changes;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),e.freeze()},wa.prototype.canUndo=function(){return this.isComplete},wa.prototype.undo=function(){if(this.canUndo())for(var e=this.changes.count-1;0<=e;e--){var t=this.changes.M(e);t!==null&&t.undo()}},wa.prototype.canRedo=function(){return this.isComplete},wa.prototype.redo=function(){if(this.canRedo())for(var e=this.changes.count,t=0;t<e;t++){var n=this.changes.M(t);n!==null&&n.redo()}},wa.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new Zn,n=0;n<e.count;n++){var i=e.M(n);if(i!==null&&i.change===Eo&&i.object){var r=t.get(i.object);r||(r=new Zn,t.set(i.object,r));var o=r.get(i.propertyName);o===null?r.set(i.propertyName,-1):(0<o&&e.cd(o,null),r.set(i.propertyName,n))}}for(n=t=0;n<e.count;n++)i=e.M(n),i!==null&&(n>t&&e.cd(t,i),t++);for(;e.length>t;)e.pop();e.freeze()}},ft.Object.defineProperties(wa.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),wa.prototype.optimize=wa.prototype.ak,wa.prototype.redo=wa.prototype.redo,wa.prototype.canRedo=wa.prototype.canRedo,wa.prototype.undo=wa.prototype.undo,wa.prototype.canUndo=wa.prototype.canUndo,wa.prototype.clear=wa.prototype.clear,wa.className="Transaction";function _o(){this.Pt=new Zt,this.Jd=!1,this.u=new Xt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Xt().freeze(),this.hl=new Xt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}_o.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(t+=" "),t+=this.nestedTransactionNames.M(i);if(t+="]",e!==void 0&&0<e)for(n=this.history.count,i=0;i<n;i++)t+=`
|
|
|
`+this.history.M(i).toString(e-1);return t},_o.prototype.clear=function(){var e=this.history;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),this.Ce=-1,e.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},_o.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},U=_o.prototype,U.Xw=function(e){this.Pt.add(e)},U.Rx=function(e){this.Pt.remove(e)},U.Ea=function(e){if(e===void 0&&(e=""),e===null&&(e=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",e,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(e),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var t=this.transactionLevel===1;return t&&(this.isInternalTransaction||this.Ob("StartedTransaction",e,this.currentTransaction)),t},U.eb=function(e){return e===void 0&&(e=""),du(this,!0,e)},U.Kf=function(){return du(this,!1,"")};function du(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&jn("Ending transaction without having started a transaction: "+n);var i=e.transactionLevel===1,r=e.currentTransaction;i&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,r));var o=0;if(0<e.transactionLevel&&(e.bi--,e.isEnabled)){var a=e.Ie.count;0<a&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(a-1),e.Ie.freeze()),a=e.hl.count,0<a&&(o=e.hl.M(a-1),e.hl.mb(a-1))}if(i){if(t)e.rq=!1,r===null&&n!==""&&(r=e.currentTransaction),e.isEnabled&&r!==null&&(r.isComplete||(r.isComplete=!0,r.name=n),e.lx(),t=e.history,t.ka(),i=e.maxHistoryLength,0<=i&&(i===0?t.clear():t.count>=i&&(o=t.M(0),o!==null&&o.clear(),t.mb(0),e.Ce--)),i===0||t.count!==0&&t.get(t.count-1)===r||(t.add(r),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,r);else{e.Fe=!0;try{e.isEnabled&&r!==null&&(r.isComplete=!0,r.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,r),e.Fe=!1}r!==null&&r.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&r!==null){for(e=o,n=r.changes,r=n.count-1;r>=e;r--)t=n.M(r),t!==null&&t.undo(),n.ka(),n.mb(r);n.freeze()}return!1}U.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var e=this.history;e.ka();for(var t=e.count-1;t>this.historyIndex;t--){var n=e.M(t);n!==null&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},_o.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},_o.prototype.undo=function(){if(this.canUndo()){var e=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",e),this.Ce--,e.undo()}catch(t){jn("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},_o.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},_o.prototype.redo=function(){if(this.canRedo()){var e=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",e),this.Ce++,e.redo()}catch(t){jn("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},_o.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var i=new Bo;for(i.change=Es,i.propertyName=e,i.object=n,i.oldValue=t,e=this.models;e.next();)t=e.value,i.model=t,t.ds(i)},_o.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new wa);var n=e.copy();t=t.changes,t.ka(),t.add(n),t.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(e=e.diagram,e!==null&&e.pi===!1||jn("Change not within a transaction: "+n.toString()))}},_o.prototype.skipsEvent=function(e){if(e===null||0>e.change.value)return!0;if(e=e.object,e===null)return!1;if(e.layer!==void 0){if(e=e.layer,e!==null&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},ft.Object.defineProperties(_o.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},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(e){this.o=e}},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(e){this.j=e}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(e){this.Ft=e}},isPendingUnmodified:{get:function(){return this.Gt},set:function(e){this.Gt=e}},isInternalTransaction:{get:function(){return this.Dt},set:function(e){this.Dt=e}},isJustDiscarded:{get:function(){return this.rq}}}),_o.prototype.handleChanged=_o.prototype.Tu,_o.prototype.redo=_o.prototype.redo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.discardHistoryAfterIndex=_o.prototype.lx,_o.prototype.rollbackTransaction=_o.prototype.Kf,_o.prototype.commitTransaction=_o.prototype.eb,_o.prototype.startTransaction=_o.prototype.Ea,_o.prototype.removeModel=_o.prototype.Rx,_o.prototype.addModel=_o.prototype.Xw,_o.prototype.clear=_o.prototype.clear,_o.className="UndoManager";function Ir(){Bi(this),this.H=pt,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ss,this.Zr=-1}Ir.prototype.toString=function(){return this.name!==""?this.name+" Tool":gt(this.constructor)},Ir.prototype.updateAdornments=function(){},Ir.prototype.canStart=function(){return this.isEnabled},Ir.prototype.doStart=function(){},Ir.prototype.doActivate=function(){this.isActive=!0},Ir.prototype.doDeactivate=function(){this.isActive=!1},Ir.prototype.doStop=function(){},Ir.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ir.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},Ir.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ir.prototype.doMouseMove=function(){},Ir.prototype.doMouseUp=function(){this.stopTool()},Ir.prototype.doMouseWheel=function(){},Ir.prototype.canStartMultiTouch=function(){return!0},Ir.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){e.Bw=e.scale;var r=i.x-n.x,o=i.y-n.y;e.Jw=Math.sqrt(r*r+o*o),t.bubbles=!1}ce.free(n),ce.free(i)},Ir.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/e.Jw,r=new ce((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*=e.Bw;var a=e.commandHandler;if(o!==e.scale&&a.canResetZoom(o)){var l=e.zoomPoint;e.zoomPoint=r,a.resetZoom(o),e.zoomPoint=l}t.bubbles=!1}ce.free(n),ce.free(i)},Ir.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ir.prototype.doKeyUp=function(){},Ir.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},Ir.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},Ir.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(Oi?t.meta:t.control){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!t.isSelected),e.R("ChangedSelection",e.selection)}else if(t.shift){if(!n.isSelected){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!0),e.R("ChangedSelection",e.selection)}}else if(!n.isSelected){for(t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&e.select(t)}}else!t.left||(Oi?t.meta:t.control)||t.shift||e.clearSelection()}},Ir.prototype.standardMouseClick=function(e,t){e===void 0&&(e=null),t===void 0&&(t=function(r){return!r.layer.isTemporary});var n=this.diagram,i=n.lastInput;return e=n.ic(i.documentPoint,e,t),i.targetObject=e,sl(e,i,n),i.handled};function sl(e,t,n){if(t.handled=!1,e===null||e.If()){var i=0;t.left?i=t.clickCount===1?1:t.clickCount===2?2:1:t.right&&t.clickCount===1&&(i=3);var r="ObjectSingleClicked";if(e!==null){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}i!==0&&n.R(r,e)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}i!==0&&n.R(r)}if(e!==null)for(;e!==null;){switch(n=null,i){case 1:n=e.click;break;case 2:n=e.doubleClick?e.doubleClick:e.click;break;case 3:n=e.contextClick}if(n!==null&&(n(t,e),t.handled))break;e=e.panel}else{switch(e=null,i){case 1:e=n.click;break;case 2:e=n.doubleClick?n.doubleClick:n.click;break;case 3:e=n.contextClick}e!==null&&e(t)}}}Ir.prototype.standardMouseOver=function(){var e=this.diagram,t=e.lastInput;if(e.animationManager.zb!==!0){var n=e.skipsUndoManager;e.skipsUndoManager=!0;var i=e.viewportBounds.ca(t.documentPoint)?e.ic(t.documentPoint,null,null):null;!t.event||t.event.type!=="pointercancel"&&t.event.type!=="pointerout"||(i=null),t.targetObject=i;var r=!1;if(i!==e.Ck){var o=e.Ck,a=o;for(e.Ck=i,this.doCurrentObjectChanged(o,i),t.handled=!1;o!==null;){var l=o.mouseLeave;if(l!==null&&(i===o||i!==null&&i.rg(o)||(l(t,o,i),r=!0,t.handled)))break;o=o.panel}for(o=a,t.handled=!1;i!==null&&(a=i.mouseEnter,!(a!==null&&(o===i||o!==null&&o.rg(i)||(a(t,i,o),r=!0,t.handled))));)i=i.panel;i=e.Ck}if(i!==null){for(o=i,a="";o!==null&&(a=o.cursor,a==="");)o=o.panel;for(e.currentCursor=a,t.handled=!1,o=i;o!==null&&(i=o.mouseOver,!(i!==null&&(i(t,o),r=!0,t.handled)));)o=o.panel}else this.doUpdateCursor(null),i=e.mouseOver,i!==null&&(i(t),r=!0);r&&e.$b(),e.skipsUndoManager=n}},Ir.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},Ir.prototype.doCurrentObjectChanged=function(){},Ir.prototype.standardMouseWheel=function(){var e=this.diagram,t=e.lastInput,n=t.delta;if(n!==0&&e.documentBounds.w()){var i=e.commandHandler,r=e.toolManager.mouseWheelBehavior;if(i!==null&&(r===qu&&!t.shift||r===Ju&&t.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=e.zoomPoint,e.zoomPoint=t.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),e.zoomPoint=r),t.bubbles=!1;else if(r===qu&&t.shift||r===Ju&&!t.control){i=e.position.copy();var o=t.event;r=o.deltaMode;var a=o.deltaX;o=o.deltaY;var l="pixel";if(a===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(l,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.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"}a!==0&&e.allowHorizontalScroll&&(a*=e.scrollHorizontalLineChange/16,e.scroll(l,0<a?"right":"left",Math.abs(a))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,i,t)}}},Ir.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Ir.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=t.clone(this.yy);this.Zr=on(function(){n.doWaitAfter(i)},e)},Ir.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ve.clearTimeout(this.Zr),this.Zr=-1},Ir.prototype.doWaitAfter=function(){},Ir.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Xr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},Ir.prototype.isBeyondDragSize=function(e,t){var n=this.diagram;e===void 0&&(e=n.firstInput.viewPoint),t===void 0&&(t=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(t.x-e.x)>r||Math.abs(t.y-e.y)>i},ft.Object.defineProperties(Ir.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Y&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),Ir.prototype.startTransaction=Ir.prototype.Ea,Ir.className="Tool";function To(){Ir.call(this),this.name="ToolManager",this.hb=new Xt,this.ob=new Xt,this.Hb=new Xt,this.F=this.V=850,this.o=new mi(2,2).ja(),this.Ha=5e3,this.ia=Ju,this.u=_u,this.Mp=this.j=null,this.zj=-1}di(To,Ir),To.prototype.initializeStandardTools=function(){},To.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Xr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},To.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===Xs&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Qs){t.bubbles=!0;return}if(this.gestureBehavior===Xs)return;if(e.currentTool.canStartMultiTouch()){e.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()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown());return}}e.lastInput.button===1&&(this.mouseWheelBehavior===Ju?this.mouseWheelBehavior=qu:this.mouseWheelBehavior===qu&&(this.mouseWheelBehavior=Ju)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},To.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Qs){t.bubbles=!0;return}if(this.gestureBehavior===Xs)return;if(e.currentTool.canStartMultiTouch()){e.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()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove());return}}Qu(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function Qu(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}To.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Xr&&(t===e||t.rg(e))||this.hideToolTip()},To.prototype.doWaitAfter=function(e){var t=this.diagram;t.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),e.isTouchEvent&&!t.lastInput.handled&&(e=e.copy(),e.button=2,e.buttons=2,t.lastInput=e,t.qu=!0,t.doMouseUp()))},To.prototype.doMouseHover=function(){var e=this.diagram,t=e.lastInput;t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null));var n=t.targetObject;if(n!==null)for(t.handled=!1;n!==null&&(e=this.isActive?n.mouseHold:n.mouseHover,!(e!==null&&(e(t,n),t.handled)));)n=n.panel;else n=this.isActive?e.mouseHold:e.mouseHover,n!==null&&n(t)},To.prototype.doToolTip=function(){var e=this.diagram,t=e.lastInput;if(t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null)),t=t.targetObject,t!==null){if(e=this.currentToolTip,!(e instanceof Xr)||t!==e&&!t.rg(e)){for(;t!==null;){if(e=t.toolTip,e!==null){this.showToolTip(e,t);return}t=t.panel}this.hideToolTip()}}else t=e.toolTip,t!==null?this.showToolTip(t,null):this.hideToolTip()},To.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Xr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category="ToolTip",e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionToolTip(e,t)}else e instanceof Yt&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(Ve.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var r=this;this.zj=on(function(){r.hideToolTip()},e)}},To.prototype.positionToolTip=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/t.scale+i.height>r.bottom?n.y-(i.height+5/t.scale):n.y+20/t.scale,n.y<r.y&&(n.y=r.y),e.position=n}},To.prototype.hideToolTip=function(){this.zj!==-1&&(Ve.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Xr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Yt&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},To.prototype.doMouseUp=function(){this.cancelWaitAfter();var e=this.diagram;if(this.isActive)for(var t=this.mouseUpTools.length,n=0;n<t;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp());return}}e.doFocus(),this.doDeactivate()},To.prototype.doMouseWheel=function(){this.standardMouseWheel()},To.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},To.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},To.prototype.findTool=function(e){for(var t=this.mouseDownTools.length,n=0;n<t;n++){var i=this.mouseDownTools.M(n);if(i.name===e)return i}for(t=this.mouseMoveTools.length,n=0;n<t;n++)if(i=this.mouseMoveTools.M(n),i.name===e)return i;for(t=this.mouseUpTools.length,n=0;n<t;n++)if(i=this.mouseUpTools.M(n),i.name===e)return i;return null},To.prototype.replaceTool=function(e,t){t!==null&&(t.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===e)return t!==null?this.mouseDownTools.cd(i,t):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if(r=this.mouseMoveTools.M(i),r.name===e)return t!==null?this.mouseMoveTools.cd(i,t):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if(r=this.mouseUpTools.M(i),r.name===e)return t!==null?this.mouseUpTools.cd(i,t):this.mouseUpTools.mb(i),r;return null},To.prototype.gb=function(e,t,n){t!==null&&(t.name=e,t.diagram=this.diagram),this.findTool(e)?this.replaceTool(e,t):t!==null&&n.add(t)},ft.Object.defineProperties(To.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(e){this.ia=e}},gestureBehavior:{get:function(){return this.u},set:function(e){this.u=e}},currentToolTip:{get:function(){return this.j},set:function(e){this.j=e,this.Mp=e!==null&&e instanceof Xr?e.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(e){this.V=e}},holdDelay:{get:function(){return this.F},set:function(e){this.F=e}},dragSize:{get:function(){return this.o},set:function(e){this.o=e.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(e){this.Ha=e}}}),To.prototype.replaceStandardTool=To.prototype.gb;var Ju=new Kt(To,"WheelScroll",0),qu=new Kt(To,"WheelZoom",1),wc=new Kt(To,"WheelNone",2),_u=new Kt(To,"GestureZoom",3),Xs=new Kt(To,"GestureCancel",4),Qs=new Kt(To,"GestureNone",5);To.className="ToolManager",To.WheelScroll=Ju,To.WheelZoom=qu,To.WheelNone=wc,To.GestureZoom=_u,To.GestureCancel=Xs,To.GestureNone=Qs;function Io(){Ir.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 ce(NaN,NaN),this.Fr=new ce,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Zt().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Bs;di(Io,Ir),Io.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Io.prototype.findDraggablePart=function(){var e=this.diagram;if(e=e.Ol(e.firstInput.documentPoint,!1),e===null)return null;for(;e!==null&&!e.canSelect();)e=e.containingGroup;return e!==null&&(e.canMove()||e.canCopy())?e:null},Io.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.Ol(e.firstInput.documentPoint,!1);if(t!==null){for(;t!==null&&!t.canSelect();)t=t.containingGroup;this.currentPart=t,this.currentPart===null||this.currentPart.isSelected||(e.R("ChangingSelection",e.selection),t=e.lastInput,(Oi?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},Io.prototype.doActivate=function(){var e=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var t=this.currentPart;t!==null&&(t.canMove()||t.canCopy())&&(e.Fu(!0),bt=null,this.isActive=!0,this.tl.set(e.position),dc(this,e.selection),this.Cg.length=0,e.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(e.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,e.Ns=!0,e.Gf("temporaryPixelRatio")===!0&&30<e.$w&&$i(e),_h(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,bt=this,_t=this.diagram,this.doSimulatedDragOut()))};function dc(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof Fn?(e.draggedLink=t.first(),e.draggedLink.canRelinkFrom()&&e.draggedLink.canRelinkTo()&&e.draggedLink.Ej(),e.Oe=n.toolManager.findTool("Relinking"),e.Oe===null&&(e.Oe=new ti,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}Io.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},Io.prototype.Pd=function(e){return e===void 0?new Qc(mr):this.isGridSnapEnabled?new Qc(new ce(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new Qc(e.copy())},Io.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),tu(this),Tc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Bs.count){for(var t=Bs,n=t.length,i=0;i<n;i++){var r=t.M(i);Wl(r),Js(r),tu(r),r.diagram.ug()}t.clear()}Wl(this),this.tl.h(NaN,NaN),_t!==null&&(_t.currentCursor=""),bt=_t=null,Js(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),Nr(e,!0)},Io.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function tu(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,Tu(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function vl(){var e=bt;Js(e),fu(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}Io.prototype.doCancel=function(){Js(this),fu(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},Io.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},Io.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function yl(e,t){if(e.copiedParts===null){var n=e.diagram;if((!t||!n.isReadOnly&&!n.isModelReadOnly)&&e.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")):fu(e),n.skipsUndoManager=!t,n.partManager.addsToTemporaryLayer=!t,e.startPoint=n.firstInput.documentPoint,t=e.copiesEffectiveCollection?e.draggedParts.Lf():n.selection,t=n.Kj(t,n,!0),n=new Zn,i=e.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=t.I(r);o!==null&&(o.location=r.location,o.Va(),n.add(o,e.Pd(o.location)))}}for(t=t.iterator;t.next();)i=t.value,i instanceof Fn&&i.canCopy()&&n.add(i,e.Pd());e.copiedParts=n,dc(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function Js(e){var t=e.diagram;if(e.copiedParts!==null){if(t.Is(e.copiedParts.Lf(),!1),e.copiedParts=null,e.draggedParts!==null)for(var n=e.draggedParts.iterator;n.next();)n.key instanceof Fn&&(n.value.point=new ce(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function Wl(e){if(e.draggedLink!==null){if(e.dragsLink&&e.Oe!==null){var t=e.Oe;t.diagram.remove(t.temporaryFromNode),t.diagram.remove(t.temporaryToNode),e.Oe.originalLink=null}e.draggedLink=null,e.Oe=null}}function Zs(e,t,n){var i=e.diagram,r=e.startPoint,o=ce.alloc();o.assign(i.lastInput.documentPoint),e.moveParts(t,o.re(r),n),ce.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&($i(i),i.hk())}Io.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var i=this.diagram;i!==null&&tc(i,e,t,this.dragOptions,n)};function fu(e){if(e.draggedParts!==null){for(var t=e.diagram,n=e.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=e.draggedParts.iterator;n.next();)if(i=n.key,i instanceof Fn&&i.suspendsRouting){var r=n.value.point;e.draggedParts.add(i,e.Pd()),Eh(i,-r.x,-r.y)}t.bd()}}function pu(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),vs(e,!1));var i=e.findDragOverObject(t),r=n.lastInput;r.targetObject=i,e.doUpdateCursor(i);var o=n.skipsUndoManager,a=!1;try{if(n.skipsUndoManager=!0,a=Tu(e,r,i),!e.isActive&&bt===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof nr)){var u=n.mouseDragOver;u!==null&&(u(r),a=!0)}if(!e.isActive&&bt===null||(e.doDragOver(t,i),!e.isActive&&bt===null))return}finally{n.skipsUndoManager=o,a&&n.bd()}e.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}Io.prototype.findDragOverObject=function(e){var t=this;return ha(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Xr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},Io.prototype.doUpdateCursor=function(e){var t=this.diagram;(e===null||this.Bn!==e)&&(!this.diagram.currentTool.isActive||this.mayCopy()?t.currentCursor=this.copyCursor:this.mayMove()?t.currentCursor=this.moveCursor:this.mayDragOut()&&(t.currentCursor=this.nodropCursor))};function Tu(e,t,n){var i=!1,r=e.Cg.length,o=0<r?e.Cg[0]:null;if(n===o)return!1;t.handled=!1;for(var a=0;a<r;a++){var l=e.Cg[a],u=l.mouseDragLeave;if(u!==null&&(u(t,l,n),i=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&bt===null||n===null)return i;for(t.handled=!1,r=n;r!==null;)e.Cg.push(r),r=Nu(r);for(r=e.Cg.length,n=0;n<r&&(a=e.Cg[n],l=a.mouseDragEnter,l===null||(l(t,a,o),i=!0,!t.handled));n++);return i}function Nu(e){var t=e.panel;return t!==null?t:e instanceof Ai&&!(e instanceof nr)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function ll(e,t,n){var i=e.Oe;if(i===null)return null;var r=e.diagram.og(t,i.portGravity,function(f){return i.findValidLinkablePort(f,n)});e=ce.alloc();var o=1/0,a=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(Lr,e);u=t.Bf(u),u<o&&(a=l,o=u)}}return ce.free(e),a}function vs(e,t){var n=e.draggedLink;if(n!==null&&!(2>n.pointsCount)){var i=e.diagram;if(!i.isReadOnly){var r=e.Oe;if(r!==null){var o=null,a=null;n.fromNode===null&&(o=ll(e,n.i(0),!1),o!==null&&(a=o.part));var l=null,u=null;n.toNode===null&&(l=ll(e,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(a,o,u,l)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,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)):ji(r,a,o,u,l):ji(r,null,null,null,null)}}}}Io.prototype.doDragOver=function(){};function Vl(e,t){var n=e.diagram;e.dragsLink&&vs(e,!0),tu(e);var i=e.findDragOverObject(t),r=n.lastInput;if(r.targetObject=i,i!==null){r.handled=!1;for(var o=i;o!==null;){var a=o.mouseDrop;if(a!==null&&(a(r,o),r.handled))break;zu(e,r,o),o=Nu(o)}}else o=n.mouseDrop,o!==null&&o(r);if(e.isActive||bt!==null){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)o=r.key,o instanceof Xn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(e.doDropOnto(t,i),e.isActive||bt!==null){for(e=Wt.alloc(),t=n.selection.iterator;t.next();)i=t.value,i instanceof Xn&&Ee(n,i,e);Wt.free(e)}}}function zu(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof nr||(n=e.mouseDrop,n!==null&&n(t))}function Ee(e,t,n){var i=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(i=!0),e=e.Nu(n,function(r){return r.part},function(r){return r instanceof Fn},!0,function(r){return r instanceof Fn},i),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}Io.prototype.doDropOnto=function(){},Io.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;this.simulatedMouseMove(t.event,t.documentPoint,t.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(yl(this,!1),_h(e,this.copiedParts),Zs(this,this.copiedParts,!1),Tc(e,this.copiedParts)):this.mayMove()?(Js(this),Zs(this,this.draggedParts,!0)):this.mayDragOut()?(yl(this,!1),Zs(this,this.copiedParts,!1)):Js(this),pu(this,e.lastInput.documentPoint))}},Io.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;if(!this.simulatedMouseUp(t.event,t.documentPoint,t.targetDiagram)){t=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(Js(this),yl(this,!0),_h(e,this.copiedParts),Zs(this,this.copiedParts,!1),Tc(e,this.copiedParts),this.copiedParts!==null&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0}))):(t=!0,Js(this),this.mayMove()&&(Zs(this,this.draggedParts,!0),pu(this,e.lastInput.documentPoint))),this.Ym=!0,Vl(this,e.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&Le(this),e.Ya(),Tc(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},Io.prototype.simulatedMouseMove=function(e,t,n){if(bt===null)return!1;var i=bt.diagram;n instanceof Y||(n=null);var r=_t;return n!==r&&(r!==null&&r!==i&&(r.ug(),bt.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),_t=n,n!==null&&n!==i&&(vl(),r=n.toolManager.findTool("Dragging"),r!==null&&(Bs.contains(r)||Bs.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&&(e!==null&&(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},Io.prototype.simulatedMouseUp=function(e,t,n){if(bt===null)return!1;var i=_t,r=bt.diagram;if(n===null)return bt.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),bt.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;_t=n,i=n.toolManager.findTool("Dragging"),i!==null&&(vl(),Bs.contains(i)||Bs.add(i),i.doSimulatedDragEnter())}return n!==this.diagram?(e!==null?(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)):t===null&&(t=new ce),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!0,e=n.toolManager.findTool("Dragging"),e!==null&&e.doSimulatedDrop(),e=bt,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function Le(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof Xn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}Io.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(Oi?!e.lastInput.alt:!e.lastInput.control))return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Io.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(!e.allowDragOut||!e.allowCopy||e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Io.prototype.mayMove=function(){var e=this.diagram;if(e.isReadOnly||!e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Io.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},Io.prototype.Az=function(){return bt},Io.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=bt;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},Io.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),bs(e),e.animationManager.Cc(),e=bt,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},Io.prototype.doSimulatedDragLeave=function(){var e=bt;e!==null&&e.doSimulatedDragOut(),this.doCancel()},Io.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=bt;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;ht(this,t.draggedParts.Lf(),!1,e.firstInput),Zs(this,this.copiedParts,!1),pu(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},Io.prototype.doSimulatedDrop=function(){var e=this.diagram,t=bt;if(t!==null){var n=t.diagram;if(t.Ym=!0,Js(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),ht(this,t.draggedParts.Lf(),!0,e.lastInput),Zs(this,this.copiedParts,!1);var i=new Zt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),Vl(this,e.lastInput.documentPoint),e.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,e.doFocus(),e.R("ExternalObjectsDropped",i,n),this.stopTransaction(),e.R("ChangedSelection",e.selection)}e.animationManager.Dm=!1};function ht(e,t,n,i){if(e.copiedParts===null){var r=e.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,e.startPoint=i.documentPoint,n=r.Kj(t,r,!0);var o=Wt.alloc();r=i=1/0;for(var a=-1/0,l=-1/0,u=t.iterator;u.next();){var f=u.value;if(f.isVisible()){var p=f.location;f=p.x,p=p.y,isNaN(f)||isNaN(p)||(f<i&&(i=f),p<r&&(r=p),f>a&&(a=f),p>l&&(l=p))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,a-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,Wt.free(o),o=e.Fr,a=new Zn,l=ce.alloc(),u=t.iterator;u.next();)f=u.value,f instanceof Fn&&f.canCopy()&&(p=n.I(f),p!==null&&(p.points=f.points,Eh(p,o.x-i,o.y-r),p.suspendsRouting=!0,a.add(p,e.Pd())));for(t=t.iterator;t.next();)f=t.value,f.Zc()&&f.canCopy()&&(u=n.I(f),u!==null&&(f=f.location,l.h(o.x-(i-f.x),o.y-(r-f.y)),u.location=l,u.Va(),a.add(u,e.Pd(l))));ce.free(l),e.copiedParts=a,dc(e,a.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}Io.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},Io.prototype.computeMove=function(e,t,n,i){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,i):new ce},ft.Object.defineProperties(Io.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(e){this.ob=e}},copiesEffectiveCollection:{get:function(){return this.u},set:function(e){this.u=e}},dragOptions:{get:function(){return this.ia},set:function(e){this.ia=e}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(e){this.dragOptions.isGridSnapEnabled=e}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(e){this.hb=e}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(e){this.dragOptions.isGridSnapRealtime=e}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(e){this.dragOptions.gridSnapCellSize.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSize=e)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(e){this.dragOptions.gridSnapCellSpot.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSpot=e)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(e){this.dragOptions.gridSnapOrigin.D(e)||(e=e.J(),this.dragOptions.gridSnapOrigin=e)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(e){this.dragOptions.dragsLink=e}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(e){this.dragOptions.dragsTree=e}},copyCursor:{get:function(){return this.F},set:function(e){this.F=e}},moveCursor:{get:function(){return this.Oc},set:function(e){this.Oc=e}},nodropCursor:{get:function(){return this.Pc},set:function(e){this.Pc=e}},currentPart:{get:function(){return this.V},set:function(e){this.V=e}},copiedParts:{get:function(){return this.o},set:function(e){this.o=e}},draggedParts:{get:function(){return this.Ha},set:function(e){this.Ha=e}},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(e){this.diagram.draggedLink=e}},isDragOutStarted:{get:function(){return this.Hb},set:function(e){this.Hb=e}},startPoint:{get:function(){return this.Fr},set:function(e){this.Fr.D(e)||this.Fr.assign(e)}},delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}}}),Io.prototype.getDraggingSource=Io.prototype.Az;var bt=null,_t=null;Io.className="DraggingTool",Bs=new Xt,ui("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),To.prototype.doCancel=function(){bt!==null&&bt.doCancel(),Ir.prototype.doCancel.call(this)};function Ot(){Ir.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new Fn,t=new hr;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new hr,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new Xn,t=new hr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Wo,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new Xn,t=new hr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Wo,e.add(t),e.selectable=!1,e.layerName="Tool",this.Di=e,this.o=t,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Zn,this.Of=this.gj=this.Pf=null}di(Ot,Ir),Ot.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ot.prototype.copyPortProperties=function(e,t,n,i,r){if(e!==null&&t!==null&&n!==null&&i!==null){var o=t.Df(),a=mi.alloc();a.width=t.naturalBounds.width*o,a.height=t.naturalBounds.height*o,i.desiredSize=a,mi.free(a),r?(i.toSpot=t.toSpot,i.toEndSegmentLength=t.toEndSegmentLength):(i.fromSpot=t.fromSpot,i.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=Lr,o=ce.alloc(),n.location=t.ga(Lr,o),ce.free(o),i.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,i,r)}},Ot.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=Wo,t.fromSpot=Hi,t.toSpot=Hi),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},Ot.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ot.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xn){var t=this.targetPort.part;this.isForwards?this.copyPortProperties(t,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(t,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Ot.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof Xn))return null;for(;e!==null;){var i=t?e.toLinkable:e.fromLinkable;if(i===!0&&(e.portId!==null||e instanceof Xn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(i===!1)break;e=e.panel}return null},Ot.prototype.findTargetPort=function(e){var t=this.diagram,n=t.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=t.og(n,i,function(x){return r.findValidLinkablePort(x,e)},null,!0);for(i=1/0,t=null,o=o.iterator;o.next();){var a=o.value,l=a.part;if(l instanceof Xn){var u=a.ga(Lr,ce.alloc()),f=n.x-u.x,p=n.y-u.y;ce.free(u),u=f*f+p*p,u<i&&(f=this.validPortsCache.I(a),f!==null?f&&(t=a,i=u):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,a)||!e&&this.isValidLink(l,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),t=a,i=u):this.validPortsCache.add(a,!1))}}return t!==null&&(n=t.part,n instanceof Xn&&(n.layer===null||n.layer.allowLink))?t:null},Ot.prototype.isValidFrom=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.fromLinkable!==!0))return!1;var n=t.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(t=t.portId,t===null&&(t=""),e.Mo(t).count>=n)return!1}return!0},Ot.prototype.isValidTo=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.toLinkable!==!0))return!1;var n=t.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalToNode&&t===this.originalToPort)return!0;if(t=t.portId,t===null&&(t=""),e.Sd(t).count>=n)return!1}return!0},Ot.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},Ot.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof Xn))return!1;e=e.portId,e===null&&(e="");var i=t.part;if(!(i instanceof Xn))return!1;for(t=t.portId,t===null&&(t=""),t=i.Sd(t);t.next();)if(i=t.value,i.fromNode===n&&i.fromPortId===e)return!0;return!1},Ot.prototype.isValidLink=function(e,t,n,i){if(!this.isValidFrom(e,t)||!this.isValidTo(n,i)||!(t===null||i===null||(t.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(t,i))&&(t.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(t,i)))||this.originalLink!==null&&(e!==null&&this.isLabelDependentOnLink(e,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||e!==null&&n!==null&&(e.data===null&&n.data!==null||e.data!==null&&n.data===null)||!this.isValidCycle(e,n,this.originalLink))return!1;if(e!==null){var r=e.linkValidation;if(r!==null&&!r(e,t,n,i,this.originalLink))return!1}return n!==null&&(r=n.linkValidation,r!==null&&!r(e,t,n,i,this.originalLink))?!1:(r=this.linkValidation,r!==null?r(e,t,n,i,this.originalLink):!0)},Ot.prototype.isLabelDependentOnLink=function(e,t){if(e===null)return!1;var n=e.labeledLink;if(n===null)return!1;if(n===t)return!0;var i=new Zt;return i.add(e),ge(this,n,t,i)};function ge(e,t,n,i){if(t===n)return!0;var r=t.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),ge(e,r.labeledLink,n,i))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(i.add(t),ge(e,t.labeledLink,n,i))))}Ot.prototype.isValidCycle=function(e,t,n){if(n===void 0&&(n=null),e===null||t===null)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Pd){if(i===dp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===t)return!1}return!yn(this,e,t,n,!0)}if(i===fp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();)if(r=i.value,r!==n&&r.isTreeLink&&r.fromNode===e)return!1;return!yn(this,e,t,n,!0)}if(i===up)return e===t?e=!0:(i=new Zt,i.add(t),e=ln(this,i,e,t,n)),!e;if(i===cp)return!yn(this,e,t,n,!1);if(i===hp)return e===t?e=!0:(i=new Zt,i.add(t),e=zn(this,i,e,t,n)),!e}return!0};function yn(e,t,n,i,r){if(t===n)return!0;if(t===null||n===null)return!1;for(var o=t.linksConnected;o.next();){var a=o.value;if(a!==i&&(!r||a.isTreeLink)&&a.toNode===t&&(a=a.fromNode,a!==t&&yn(e,a,n,i,r)))return!0}return!1}function ln(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r&&a.toNode===n&&(a=a.fromNode,a!==n&&ln(e,t,a,i,r)))return!0}return!1}function zn(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r){var l=a.fromNode;if(a=a.toNode,l=l===n?a:l,l!==n&&zn(e,t,l,i,r))return!0}}return!1}ft.Object.defineProperties(Ot.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(this.j!==null){var t=this.j.panel;if(t!==null){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(this.o!==null){var t=this.o.panel;if(t!==null){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),Ot.className="LinkingBaseTool";function $n(){Ot.call(this),this.name="Linking",this.V={},this.F=null,this.K=Gn,this.Xd=null}di($n,Ot),$n.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},$n.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(t===null&&(t=e.ic(e.firstInput.documentPoint,null,null)),t===null||(e=t.part,!(e instanceof Xn)))return null;var n=this.direction;if(n===Gn||n===yi){var i=this.findValidLinkablePort(t,!1);if(i!==null||this.startObject===e&&(i=e.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===Gn||n===bi)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},$n.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();t===null?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,t=this.originalFromPort.part,t instanceof Xn&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,t=this.originalToPort.part,t instanceof Xn&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.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(),e.add(this.temporaryLink)),this.isActive=!0)},$n.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},$n.prototype.doStop=function(){Ot.prototype.doStop.call(this),this.startObject=null},$n.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(a!==null){var l=a.part;l instanceof Xn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),i=l,r=a):(t=l,n=a,this.originalToNode!==null&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);t!==null||i!==null?(o=this.insertLink(t,n,i,r),o!==null?(a===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,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&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},$n.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof Fn)return e.isTreeLink;var t=this.diagram;return t===null?!0:(e=t.partManager.getLinkCategoryForData(e),t=t.partManager.findLinkTemplateForCategory(e),t!==null?t.isTreeLink:!0)},$n.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},$n.prototype.doNoLink=function(){},ft.Object.defineProperties($n.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var Gn=new Kt($n,"Either",0),yi=new Kt($n,"ForwardsOnly",0),bi=new Kt($n,"BackwardsOnly",0);$n.className="LinkingTool",$n.Either=Gn,$n.ForwardsOnly=yi,$n.BackwardsOnly=bi;function ti(){Ot.call(this),this.name="Relinking";var e=new hr;e.figure="Diamond",e.desiredSize=Ta,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new hr,e.figure="Diamond",e.desiredSize=Ta,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Wt}di(ti,Ot),ti.prototype.updateAdornments=function(e){if(e!==null&&e instanceof Fn){var t="RelinkFrom",n=null;if(e.isSelected&&!this.diagram.isReadOnly){var i=e.selectionObject;i!==null&&e.canRelinkFrom()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null&&(n=this.makeAdornment(i,!1),e.bh(t,n)))}n===null&&e.Jf(t),t="RelinkTo",n=null,e.isSelected&&!this.diagram.isReadOnly&&(i=e.selectionObject,i!==null&&e.canRelinkTo()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null?(n=this.makeAdornment(i,!0),e.bh(t,n)):n.v())),n===null&&e.Jf(t)}},ti.prototype.makeAdornment=function(e,t){var n=new Xr;return n.type=An.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowRelink||!e.model.xs()||!e.lastInput.left)return!1;var t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom");return t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo")),t!==null},ti.prototype.doActivate=function(){var e=this.diagram;if(this.originalLink===null){var t=this.handle;if(t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom"),t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo"))),t===null)return;var n=t.part;if(!(n instanceof Xr&&n.adornedPart instanceof Fn))return;this.handle=t,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),e.isMouseCaptured=!0,e.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=Sa),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Sa),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),e.add(this.temporaryFromNode),e.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(),e.add(this.temporaryLink)),this.isActive=!0},ti.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===Lf||n===wh)&&(n=Cl),t.curve=n,t.curviness=e.curviness,t.isTreeLink=e.isTreeLink,t.points=e.points,t.routing=e.routing,t.smoothness=e.smoothness,t.fromSpot=e.fromSpot,t.fromEndSegmentLength=e.fromEndSegmentLength,t.fromShortLength=e.fromShortLength,t.toSpot=e.toSpot,t.toEndSegmentLength=e.toEndSegmentLength,t.toShortLength=e.toShortLength}},ti.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},ti.prototype.doStop=function(){Ot.prototype.doStop.call(this),this.handle=null},ti.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;this.transactionResult=null;var t=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 a=this.targetPort.part;a instanceof Xn&&(this.isForwards?(i=a,r=this.targetPort):(t=a,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=t=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?i:t,this.isForwards?r:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,e.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ti.prototype.reconnectLink=function(e,t,n,i){return n=n!==null&&n.portId!==null?n.portId:"",i?(e.toNode=t,e.toPortId=n):(e.fromNode=t,e.fromPortId=n),!0},ti.prototype.doNoRelink=function(){};function ji(e,t,n,i,r){t!==null?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),i!==null?(e.copyPortProperties(i,r,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}ft.Object.defineProperties(ti.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(e){this.V=e}},toHandleArchetype:{get:function(){return this.Xd},set:function(e){this.Xd=e}},handle:{get:function(){return this.F},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),ti.className="RelinkingTool",ui("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),ui("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function ci(){Ir.call(this),this.name="LinkReshaping";var e=new hr;e.figure="Rectangle",e.desiredSize=Jo,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new hr,e.figure="Diamond",e.desiredSize=Ta,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new ce,this.Yq=new Xt}di(ci,Ir),ci.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:E},ci.prototype.om=function(e,t){e.reshapingBehavior=t},ci.prototype.updateAdornments=function(e){if(e!==null&&e instanceof Fn){var t=null;if(e.isSelected&&!this.diagram.isReadOnly){var n=e.path;n!==null&&e.canReshape()&&e.actualBounds.w()&&e.isVisible()&&n.actualBounds.w()&&n.Ed()&&(t=e.Pj(this.name),t===null||t.Aw!==e.pointsCount||t.Uw!==e.resegmentable)&&(t=this.makeAdornment(n),t!==null&&(t.Aw=e.pointsCount,t.Uw=e.resegmentable,e.bh(this.name,t)))}t===null&&e.Jf(this.name)}},ci.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,i=t.isOrthogonal,r=null;if(t.points!==null&&1<n){r=new Xr,r.type=An.Link,n=t.firstPickIndex;var o=t.lastPickIndex,a=i?1:0;if(t.resegmentable&&t.computeCurve()!==xu)for(var l=n+a;l<o-a;l++){var u=this.makeResegmentHandle(e,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(a=n+1;a<o;a++)if(l=this.makeHandle(e,a),l!==null){if(l.segmentIndex=a,a!==n)if(a===n+1&&i){u=t.i(n);var f=t.i(n+1);et.B(u.x,f.x)&&et.B(u.y,f.y)&&(f=t.i(n-1)),et.B(u.x,f.x)?(this.om(l,W),l.cursor="n-resize"):et.B(u.y,f.y)&&(this.om(l,_),l.cursor="w-resize")}else a===o-1&&i?(u=t.i(o-1),f=t.i(o),et.B(u.x,f.x)&&et.B(u.y,f.y)&&(u=t.i(o+1)),et.B(u.x,f.x)?(this.om(l,W),l.cursor="n-resize"):et.B(u.y,f.y)&&(this.om(l,_),l.cursor="w-resize")):a!==o&&(this.om(l,q),l.cursor="move");r.add(l)}r.adornedObject=e}return r},ci.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},ci.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowReshape&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},ci.prototype.doActivate=function(){var e=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null){var t=this.handle.part.adornedPart;if(t instanceof Fn){if(this.Ts=t,e.isMouseCaptured=!0,this.Ea(this.name),t.resegmentable&&this.handle.fromMaxLinks===999){var n=t.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),t.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),t.points=n,t.Wb(),t.updateAdornments(),this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=t.i(this.handle.segmentIndex),this.Yq=t.points.copy(),this.isActive=!0}}},ci.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ci.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},ci.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},ci.prototype.getResegmentingPoint=function(){return this.handle.ga(Lr)},ci.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},ci.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.computeReshape(e.lastInput.documentPoint);if(this.reshape(t),t=this.adornedLink,t!==null&&t.resegmentable){var n=this.handle.segmentIndex,i=t.i(n-1),r=t.i(n),o=t.i(n+1);if(t.isOrthogonal){if(n>t.firstPickIndex+1&&n<t.lastPickIndex-1){var a=t.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(Gi(this,a,i,r,o,!0)||Gi(this,a,i,r,o,!1))){var l=t.points.copy();Gi(this,a,i,r,o,!0)?(l.cd(n-2,new ce(a.x,(o.y+a.y)/2)),l.cd(n+1,new ce(o.x,(o.y+a.y)/2))):(l.cd(n-2,new ce((o.x+a.x)/2,a.y)),l.cd(n+1,new ce((o.x+a.x)/2,o.y))),l.mb(n),l.mb(n-1),t.points=l,t.Wb()}else a=t.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(Gi(this,i,r,o,a,!0)||Gi(this,i,r,o,a,!1))&&(l=t.points.copy(),Gi(this,i,r,o,a,!0)?(l.cd(n-1,new ce(i.x,(i.y+a.y)/2)),l.cd(n+2,new ce(a.x,(i.y+a.y)/2))):(l.cd(n-1,new ce((i.x+a.x)/2,i.y)),l.cd(n+2,new ce((i.x+a.x)/2,a.y))),l.mb(n+1),l.mb(n),t.points=l,t.Wb())}}else a=ce.alloc(),et.qh(i.x,i.y,o.x,o.y,r.x,r.y,a)&&a.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=t.points.copy(),i.mb(n),t.points=i,t.Wb()),ce.free(a)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Gi(e,t,n,i,r,o){return o?Math.abs(t.y-n.y)<e.resegmentingDistance&&Math.abs(n.y-i.y)<e.resegmentingDistance&&Math.abs(i.y-r.y)<e.resegmentingDistance:Math.abs(t.x-n.x)<e.resegmentingDistance&&Math.abs(n.x-i.x)<e.resegmentingDistance&&Math.abs(i.x-r.x)<e.resegmentingDistance}ci.prototype.reshape=function(e){var t=this.adornedLink;t.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(t.isOrthogonal)if(n===t.firstPickIndex+1)n=t.firstPickIndex+1,i===W?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):i===_&&(t.L(n,e.x,t.i(n-1).y),t.L(n+1,e.x,t.i(n+2).y));else if(n===t.lastPickIndex-1)n=t.lastPickIndex-1,i===W?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):i===_&&(t.L(n-1,e.x,t.i(n-2).y),t.L(n,e.x,t.i(n+1).y));else{i=n;var r=t.i(i),o=t.i(i-1),a=t.i(i+1);et.B(o.x,r.x)&&et.B(r.y,a.y)?(et.B(o.x,t.i(i-2).x)&&!et.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),et.B(a.y,t.i(i+2).y)&&!et.B(a.x,t.i(i+2).x)?t.m(i+1,a.x,e.y):t.L(i+1,a.x,e.y)):et.B(o.y,r.y)&&et.B(r.x,a.x)?(et.B(o.y,t.i(i-2).y)&&!et.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),et.B(a.x,t.i(i+2).x)&&!et.B(a.y,t.i(i+2).y)?t.m(i+1,e.x,a.y):t.L(i+1,e.x,a.y)):et.B(o.x,r.x)&&et.B(r.x,a.x)?(et.B(o.x,t.i(i-2).x)&&!et.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),et.B(a.x,t.i(i+2).x)&&!et.B(a.y,t.i(i+2).y)?t.m(i+1,e.x,a.y):t.L(i+1,e.x,a.y)):et.B(o.y,r.y)&&et.B(r.y,a.y)&&(et.B(o.y,t.i(i-2).y)&&!et.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),et.B(a.y,t.i(i+2).y)&&!et.B(a.x,t.i(i+2).x)?t.m(i+1,a.x,e.y):t.L(i+1,a.x,e.y)),t.L(n,e.x,e.y)}else t.L(n,e.x,e.y),i=t.fromNode,r=t.fromPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===1&&t.computeSpot(!0,r).Mc()&&(o=r.ga(Lr,ce.alloc()),i=t.getLinkPointFromPoint(i,r,o,e,!0,ce.alloc()),t.L(0,i.x,i.y),ce.free(o),ce.free(i)),i=t.toNode,r=t.toPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===t.pointsCount-2&&t.computeSpot(!1,r).Mc()&&(n=r.ga(Lr,ce.alloc()),e=t.getLinkPointFromPoint(i,r,n,e,!1,ce.alloc()),t.L(t.pointsCount-1,e.x,e.y),ce.free(n),ce.free(e));t.zf()},ci.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case q:return e;case W:return new ce(t.i(n).x,e.y);case _:return new ce(e.x,t.i(n).y);default:case E:return t.i(n)}},ft.Object.defineProperties(ci.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},midHandleArchetype:{get:function(){return this.u},set:function(e){this.u=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(e){this.F=e}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ci.prototype.setReshapingBehavior=ci.prototype.om,ci.prototype.getReshapingBehavior=ci.prototype.Ru;var E=new Kt(ci,"None",0),_=new Kt(ci,"Horizontal",1),W=new Kt(ci,"Vertical",2),q=new Kt(ci,"All",3);ci.className="LinkReshapingTool",ci.None=E,ci.Horizontal=_,ci.Vertical=W,ci.All=q,ui("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function fe(){Ir.call(this),this.name="Resizing",this.o=new mi(1,1).freeze(),this.j=new mi(9999,9999).freeze(),this.yg=new mi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new hr;e.alignmentFocus=Lr,e.figure="Rectangle",e.desiredSize=Jo,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new ce,this.Dw=new mi,this.Tn=new ce,this.rt=new mi(0,0),this.qt=new mi(1/0,1/0),this.pt=new mi(1,1)}di(fe,Ir),fe.prototype.updateAdornments=function(e){if(!(e===null||e instanceof Fn)){if(e.isSelected&&!this.diagram.isReadOnly){var t=e.resizeObject,n=e.Pj(this.name);if(t!==null&&e.canResize()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed()&&((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null)){t=t.li(),Gh(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},fe.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Xr,t.type=An.Spot,t.locationSpot=Lr;var n=new wl;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,ta)),t.add(this.makeHandle(e,Yo)),t.add(this.makeHandle(e,Ho)),t.add(this.makeHandle(e,Ds)),t.add(this.makeHandle(e,sa)),t.add(this.makeHandle(e,La)),t.add(this.makeHandle(e,Aa)),t.add(this.makeHandle(e,ga))}else if($u(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},fe.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},fe.prototype.updateResizeHandles=function(e,t){if(e!==null){if(!e.alignment.Xb()&&(e.cursor==="pointer"||0<e.cursor.indexOf("resize")))e:{var n=e.alignment;if(n.Mc()&&(n=Lr),0>=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else if(1<=n.y)t+=90;else break e;0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof An)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},fe.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowResize&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},fe.prototype.doActivate=function(){var e=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(e.isMouseCaptured=!0,e.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))},fe.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},fe.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},fe.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},fe.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),ce.free(r)}},fe.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),ce.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},fe.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=e.size,e=n.part,e.Va(),n=n.ga(this.handle.alignment.gv()),e instanceof nr){var i=new Xt;if(i.add(e),!this.dragsMembers&&e.placeholder===null){var r=new c;r.dragsMembers=!1}t.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},fe.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=Lr);var a=this.adornedObject.naturalBounds,l=a.x,u=a.y,f=a.x+a.width,p=a.y+a.height,x=1;if(!o){x=a.width;var A=a.height;0>=x&&(x=1),0>=A&&(A=1),x=A/x}return A=ce.alloc(),et.No(e.x,e.y,l,u,r.width,r.height,A),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(A.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.y=Math.max(A.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width,e.y=p-e.height)):1<=t.y?(e.x=Math.max(A.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.height=Math.max(Math.min(A.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width)):(e.x=Math.max(A.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=f-e.x,o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(A.x-l,i.width),n.width),e.y=Math.max(A.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.y=p-e.height)):1<=t.y?(e.width=Math.max(Math.min(A.x-l,i.width),n.width),e.height=Math.max(Math.min(A.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width))):(e.width=Math.max(Math.min(A.x-l,i.width),n.width),o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):0>=t.y?(e.y=Math.max(A.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=p-e.y,o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))):1<=t.y&&(e.height=Math.max(Math.min(A.y-u,i.height),n.height),o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))),ce.free(A),e},fe.prototype.computeReshape=function(){var e=xn;return this.adornedObject instanceof hr&&(e=Rg(this.adornedObject)),!(e===fi||this.diagram.lastInput.shift)},fe.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},fe.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.width<e.width&&(e.width=t.width),!isNaN(t.height)&&t.height<e.height&&(e.height=t.height),e},fe.prototype.computeCellSize=function(){var e=new mi(NaN,NaN),t=this.adornedObject.part;return t!==null&&(t=t.resizeCellSize,!isNaN(t.width)&&0<t.width&&(e.width=t.width),!isNaN(t.height)&&0<t.height&&(e.height=t.height)),t=this.cellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height),t=this.diagram,(isNaN(e.width)||isNaN(e.height))&&t&&(t=t.grid,t!==null&&t.visible&&this.isGridSnapEnabled&&(t=t.gridCellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height))),(isNaN(e.width)||e.width===0||e.width===1/0)&&(e.width=1),(isNaN(e.height)||e.height===0||e.height===1/0)&&(e.height=1),e},ft.Object.defineProperties(fe.prototype,{handleArchetype:{get:function(){return this.F},set:function(e){this.F=e}},handle:{get:function(){return this.u},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.u=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Xr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},minSize:{get:function(){return this.o},set:function(e){if(!this.o.D(e)){var t=e.width;isNaN(t)&&(t=0),e=e.height,isNaN(e)&&(e=0),this.o.h(t,e)}}},maxSize:{get:function(){return this.j},set:function(e){if(!this.j.D(e)){var t=e.width;isNaN(t)&&(t=1/0),e=e.height,isNaN(e)&&(e=1/0),this.j.h(t,e)}}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||this.yg.assign(e)}},isGridSnapEnabled:{get:function(){return this.V},set:function(e){this.V=e}},dragsMembers:{get:function(){return this.ia},set:function(e){this.ia=e}},oppositePoint:{get:function(){return this.Xq},set:function(e){this.Xq.D(e)||this.Xq.assign(e)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),fe.className="ResizingTool",ui("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function Ce(){Ir.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ce,this.ue=null;var e=new hr;e.figure="Ellipse",e.desiredSize=Ta,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new ce(NaN,NaN),this.u=0,this.F=50}di(Ce,Ir),Ce.prototype.updateAdornments=function(e){if(e!==null){if(e.ph()){var t=e.rotateObject;if(t===e||t===e.path||t.isPanelMain)return}if(e.isSelected&&!this.diagram.isReadOnly&&(t=e.rotateObject,t!==null&&e.canRotate()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed())){var n=e.Pj(this.name);if((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null){n.angle=t.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(t)),e.bh(this.name,n);return}}e.Jf(this.name)}},Ce.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Xr,t.type=An.Position,t.locationSpot=Lr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if($u(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},Ce.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowRotate&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},Ce.prototype.doActivate=function(){var e=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(e.isMouseCaptured=!0,e.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)},Ce.prototype.computeRotationPoint=function(e){var t=e.part,n=t.locationObject;return t.rotationSpot.sb()?e.ga(t.rotationSpot):e===t||e===n?n.ga(t.locationSpot):e.ga(Lr)},Ce.prototype.computeAdornmentLocation=function(e){var t=this.rotationPoint;t.w()||(t=this.computeRotationPoint(e)),t=e.qs(t);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?t.x=e.naturalBounds.width+i:n===45?(t.x=e.naturalBounds.width+i,t.y=e.naturalBounds.height+i):n===90?t.y=e.naturalBounds.height+i:n===135?(t.x=-i,t.y=e.naturalBounds.height+i):n===180?t.x=-i:n===225?(t.x=-i,t.y=-i):n===270?t.y=-i:n===315&&(t.x=e.naturalBounds.width+i,t.y=-i),e.ga(t)},Ce.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ce(NaN,NaN),this.isActive=e.isMouseCaptured=!1},Ce.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Ce.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ce.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},Ce.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Ce.prototype.rotate=function(e){var t=this.adornedObject;if(t!==null){t.angle=e,t=t.part,t.Va();var n=t.locationObject,i=t.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Ce.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;t!==null&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0<t&&0<n&&(e%t<n?e=Math.floor(e/t)*t:e%t>t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},ft.Object.defineProperties(Ce.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Xr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Xr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),Ce.className="RotatingTool",ui("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function $e(){Ir.call(this),this.name="ClickSelecting"}di($e,Ir),$e.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},$e.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},$e.className="ClickSelectingTool";function it(){Ir.call(this),this.name="Action",this.pk=null}di(it,Ir),it.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i});return n!==null&&n.isActionable?(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0):!1},it.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionDown!==null&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},it.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionMove!==null&&t.actionMove(e,t))}},it.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(t===null)return;e.targetObject=t,t.actionUp!==null&&t.actionUp(e,t),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==t);)n=n.panel;return n},function(n){return n===t})}this.stopTool()},it.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionCancel!==null&&t.actionCancel(e,t),this.stopTool())},it.prototype.doStop=function(){this.pk=null},it.className="ActionTool";function jt(){Ir.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ce(0,0)}di(jt,Ir),jt.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(e.lastInput.clickCount===1&&(this.mw=e.lastInput.viewPoint.copy()),e.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(e.lastInput.clickCount!==1)return!1;return!(e.currentTool!==this&&e.Ol(e.lastInput.documentPoint,!0)!==null)},jt.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},jt.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var i=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Ai)n.Zc()&&($u(n),i=n.copy(),i!==null&&t.add(i));else if(n!==null){var r=t.model.copyNodeData(n);at(r)&&(t.model.xf(r),i=t.Lc(r))}if(i!==null){var o=ce.allocAt(e.x,e.y);this.isGridSnapEnabled&&Bh(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),ce.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",i)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return i},ft.Object.defineProperties(jt.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),jt.className="ClickCreatingTool";function Lt(){Ir.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Ai;e.layerName="Tool",e.selectable=!1;var t=new hr;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}di(Lt,Ir),Lt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestamp<this.delay||e.Ol(t.documentPoint,!0)!==null))},Lt.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},Lt.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},Lt.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive&&this.box!==null){var t=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var i=mi.alloc().h(t.width,t.height);n.desiredSize=i,this.box.mm(t.x,t.y,!1),mi.free(i),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Lt.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;e.remove(this.box);try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),this.selectInRect(this.computeBoxBounds()),e.R("ChangedSelection",e.selection)}finally{e.currentCursor=""}}this.stopTool()},Lt.prototype.computeBoxBounds=function(){var e=this.diagram;return new Wt(e.firstInput.documentPoint,e.lastInput.documentPoint)},Lt.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),Oi?n.meta:n.control)if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected&&(t.isSelected=!1);else for(e=e.iterator;e.next();)t=e.value,t.isSelected=!t.isSelected;else if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0);else{for(n=new Xt,t=t.selection.iterator;t.next();){var i=t.value;e.contains(i)||n.add(i)}for(t=n.iterator;t.next();)t.value.isSelected=!1;for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0)}},ft.Object.defineProperties(Lt.prototype,{delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}},isPartialInclusion:{get:function(){return this.o},set:function(e){this.o=e}},box:{get:function(){return this.j},set:function(e){this.j=e}}}),Lt.className="DragSelectingTool";function dt(){Ir.call(this),this.name="Panning",this.Xt=new ce,this.xy=new ce,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(Ve.document,"scroll",e.Kw,!1),e.stopTool()}}di(dt,Ir),dt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(!e.allowHorizontalScroll&&!e.allowVerticalScroll||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())},dt.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(Ve.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},dt.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},dt.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},dt.prototype.doMouseMove=function(){this.move()},dt.prototype.doMouseUp=function(){this.move(),this.stopTool()},dt.prototype.move=function(){var e=this.diagram;if(this.isActive&&e)if(this.xg)e.lastInput.bubbles=!0;else{var t=e.position,n=e.firstInput.documentPoint,i=e.lastInput.documentPoint,r=t.x+n.x-i.x;n=t.y+n.y-i.y,e.allowHorizontalScroll||(r=t.x),e.allowVerticalScroll||(n=t.y),e.position=this.xy.h(r,n)}},ft.Object.defineProperties(dt.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),dt.className="PanningTool",ui("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),ui("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),ui("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),ui("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),ui("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function Yt(){this.F=this.u=this.j=this.o=null}ft.Object.defineProperties(Yt.prototype,{mainElement:{get:function(){return this.u},set:function(e){this.u=e}},show:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},hide:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},valueFunction:{get:function(){return this.F},set:function(e){this.F=e}}}),Yt.className="HTMLInfo";function qt(e,t,n){this.text=e,this.hx=t,this.visible=n}qt.className="ContextMenuButtonInfo";function zt(){Ir.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ce,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}di(zt,Ir);function Si(e){var t=new Yt;t.show=function(r,o,a){a.showDefaultContextMenu()},t.hide=function(r,o){o.hideDefaultContextMenu()},Zi=t,e.tu=function(){e.stopTool()},t=Ct("div");var n=Ct("div");t.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=Ct("style");Ve.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=e.diagram,i!==null&&(i.addEventListener(t,"contextmenu",li,!1),i.addEventListener(t,"selectstart",li,!1),i.addEventListener(n,"contextmenu",li,!1)),t.className="goCXforeground",n.className="goCXbackground",Ve.document.body&&(Ve.document.body.appendChild(t),Ve.document.body.appendChild(n)),ii=t,uo=n,oo=!0}function li(e){return e.preventDefault(),!1}zt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return this.isBeyondDragSize()||!e.lastInput.right||1<e.lastInput.clickCount?!1:!!(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},zt.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},zt.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},zt.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,i=null;if(e instanceof Y||(e instanceof st?i=e:i=t.ic(n.documentPoint,null,function(r){return!r.layer.isTemporary})),i!==null){for(e=i;e!==null;){if(e.contextMenu!==null)return e;e=e.panel}if(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(t.contextMenu!==null)return t;return null},zt.prototype.doActivate=function(){},zt.prototype.doMouseDown=function(){if(Ir.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Xr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&lr(this)},zt.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Xr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}lr(this)};function lr(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var i=null;n instanceof Yt||(i=t.ic(t.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(i)}}else e.canStart()&&(Ni(e,!0),e.isActive||e.stopTool())}zt.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ni(e,t,n){if(n===void 0&&(n=null),!e.Et&&(e.Et=!0,t&&e.standardMouseSelect(),t=e.standardMouseClick(),e.Et=!1,!t)){if(e.isActive=!0,t=Zi,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(e.currentObject=n instanceof st?n:null,e.showContextMenu(i,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Xr&&!e.currentContextMenu.visible&&e.stopTool()}}zt.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},zt.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Xr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category=this.name,e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionContextMenu(e,t)}else e instanceof Yt&&e.show(t,n,this);this.currentContextMenu=e},zt.prototype.positionContextMenu=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/t.scale),n.y<r.y&&(n.y=r.y),e.position=n}},zt.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Xr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Yt&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Mr(e){var t=new Xt;return t.add(new qt("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new qt("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new qt("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new qt("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new qt("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new qt("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new qt("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new qt("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new qt("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new qt("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new qt("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new qt("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new qt("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}zt.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Mr(this)),ii.innerHTML="",uo.addEventListener("pointerdown",this.tu,!1);var t=this,n=Ct("ul");n.className="goCXul",ii.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(e))){o=Ct("li"),o.className="goCXli";var a=Ct("a");a.className="goCXa",a.href="#",a.ky=r.hx,a.addEventListener("pointerdown",function(l){return this.ky(e),t.stopTool(),l.preventDefault(),!1},!1),a.textContent=r.text,o.appendChild(a),n.appendChild(o)}}ii.style.display="block",uo.style.display="block"},zt.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Zi){ii.style.display="none",uo.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(uo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ft.Object.defineProperties(zt.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Xr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return oo===!1&&Zi===null&&Ca&&Si(this),Zi},set:function(e){e===null&&(oo=!0),Zi=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var Zi=null,oo=!1,uo=null,ii=null;zt.className="ContextMenuTool",ui("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function qi(){Ir.call(this),this.name="TextEditing",this.Zh=new Po,this.ia=null,this.V=Pi,this.vj=null,this.qa=Xi,this.u=1,this.F=!0,this.o=null,this.j=new Yt,this.kt=null,Qr(this,this.j)}di(qi,Ir);function Qr(e,t){if(Ca){var n=Ct("textarea");e.kt=n,n.addEventListener("input",function(){if(e.textBlock!==null){var i=e.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&&e.textBlock!==null){var r=i.key;r==="Enter"?(e.textBlock.isMultiline===!1&&i.preventDefault(),e.acceptText(Mi)):r==="Tab"?(e.acceptText(ir),i.preventDefault()):r==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==Xi){var i=e.kt;e.qa===Br&&(e.qa=co),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==Xi){var i=e.kt;typeof i.focus=="function"&&i.focus(),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),t.valueFunction=function(){return n.value},t.mainElement=n,t.show=function(i,r,o){if(i instanceof Po&&o instanceof qi)if(o.state===va)n.style.border="3px solid red",n.focus();else{var a=i.ga(Lr),l=r.position,u=r.scale,f=i.Df()*u;f<o.minimumEditorScale&&(f=o.minimumEditorScale);var p=i.naturalBounds.width*f+6,x=i.naturalBounds.height*f+2,A=(a.x-l.x)*u;a=(a.y-l.y)*u,l=i.verticalAlignment,u=(i.lineHeight+i.spacingAbove+i.spacingBelow)*i.lineCount*f,x=l.y*x-l.y*u+l.offsetY-(.5*x-.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*f+"%",n.style.lineHeight="normal",n.style.width=p+"px",n.style.left=(A-p/2|0)-1+"px",n.style.top=(a+x|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=f,n.className="goTXarea",r.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},t.hide=function(i){i.div.removeChild(n)}}}qi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||En&&En!==this&&(En.acceptText(Mo),En&&En!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof Po&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===Pi&&!t.isSelected||this.starting===Zr&&2>e.lastInput.clickCount)):!1},qi.prototype.doStart=function(){En=this,this.textBlock!==null&&this.doActivate()},qi.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(e!==null){var t=this.textBlock;if(t===null&&(t=e.ic(e.lastInput.documentPoint)),t!==null&&t instanceof Po&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=Br;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Wt(this.textBlock.ga(ta),this.textBlock.ga(Ho));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},qi.prototype.doCancel=function(){this.stopTool()},qi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},qi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Mo)},qi.prototype.acceptText=function(e){switch(e){case Mo:this.qa===ya?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Br||this.qa===va||this.qa===co)&&(this.qa=rn,qr(this));break;case no:case Mi:case ir:(Mi!==e||this.textBlock.isMultiline!==!0)&&(this.qa===Br||this.qa===va||this.qa===co)&&(this.qa=rn,qr(this))}};function qr(e){var t=e.textBlock,n=e.diagram,i=e.currentTextEditor;if(t!==null&&i!==null){var r=t.text,o="";i.valueFunction!==null&&(o=i.valueFunction()),e.isValidText(t,r,o)?(e.Ea(e.name),e.qa=ya,e.transactionResult=e.name,t.text=o,e.doSuccess(r,o),n!==null&&n.R("TextEdited",t,r),e.stopTransaction(),e.stopTool(),n!==null&&n.doFocus()):(e.qa=va,e.doError(r,o))}}qi.prototype.doError=function(e,t){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},qi.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},qi.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=Xi,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},qi.prototype.doStop=function(){En=null},qi.prototype.isValidText=function(e,t,n){var i=this.textValidation;return i!==null&&!i(e,t,n)?!1:(i=e.textValidation,!!(i===null||i(e,t,n)))},qi.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},ft.Object.defineProperties(qi.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),qi.prototype.measureTemporaryTextBlock=qi.prototype.Lx;var no=new Kt(qi,"LostFocus",0),Mo=new Kt(qi,"MouseDown",1),ir=new Kt(qi,"Tab",2),Mi=new Kt(qi,"Enter",3),Yi=new Kt(qi,"SingleClick",0),Pi=new Kt(qi,"SingleClickSelected",1),Zr=new Kt(qi,"DoubleClick",2),Xi=new Kt(qi,"StateNone",0),Br=new Kt(qi,"StateActive",1),co=new Kt(qi,"StateEditing",2),rn=new Kt(qi,"StateValidating",3),va=new Kt(qi,"StateInvalid",4),ya=new Kt(qi,"StateValidated",5),En=null;qi.className="TextEditingTool",qi.LostFocus=no,qi.MouseDown=Mo,qi.Tab=ir,qi.Enter=Mi,qi.SingleClick=Yi,qi.SingleClickSelected=Pi,qi.DoubleClick=Zr,qi.StateNone=Xi,qi.StateActive=Br,qi.StateEditing=co,qi.StateValidating=rn,qi.StateInvalid=va,qi.StateValidated=ya,ui("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function go(e){Yn||(nt(),Yn=!0),this.H=pt,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ci,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Zt,this.ce=new Yr,this.ce.Yd=this,this.Ei=new Zt,this.pu=new Zt,this.Sr=new Zt,this.pr=new Zt,e&&Object.assign(this,e)}go.prototype.Xe=function(e){this.H=e},go.prototype.canStart=function(){return!0};function _a(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Qa(e.H),e.zb=!0)}function ua(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===Ci?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===zr&&t.vc.clear(),e.Qw=!!(e.Pk===wr&&n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),i&&!e.Gh||t.vc.count===0?(e.Zd.clear(),e.zb=!1,t.vc.clear(),Ra(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==cl&&i!==null&&(delete i.start.scale,delete i.end.scale),Ve.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&$i(n),Ur(n),e.zb=!1,t.start(),t.bc&&(Oo(e),n.Ya(),xo(t,0),bs(n,!0),ra(e),n.R("AnimationStarting",e)))}))}}function za(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function $a(e,t,n,i){e.isTicking||za(e)||t instanceof Fn&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,i,!1)}U=go.prototype,U.fv=function(e){return this.ce.fv(e)},U.Xu=function(e){return this.ce.Xu(e)};function Do(e,t){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 a=o.value;if(a.bc!==!1){e:if(0<a.yl.count)var l=!0;else{for(l=a.vc.iterator;l.next();){var u=l.key;if(u instanceof st&&u.diagram!==null||u instanceof Y){l=!0;break e}}l=!1}l?rr(a,!1):a.Xk=!0}}r.pu.clear(),r.bc!==!1&&(Oo(r),bs(r.H),ra(r)),Ve.requestAnimationFrame(n)}}var i=e.Ei,r=e;e.bc?e.Sr.add(t):(e.bc=!0,i.add(t),Ve.requestAnimationFrame(function(){n()}))}function No(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function Oo(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function ra(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}U.Cc=function(e){var t=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<t.vc.count&&this.H.$b()),this.bc){if(t.Ml(!0),t.vc.clear(),Ra(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),Ra(t,this.H)},U.Ml=function(e){e===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(e),this.Ei.count===0&&(this.bc=!1,this.H.$b()),e===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},U.Cj=function(e,t){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(e,t),g(this,e))},U.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),ba(this.ce,t,"position",t.position,t.position),g(this,e))};function ja(e,t,n){!e.zb||t.D(n)||za(e)||(e.H.pi||(t=n.copy()),ba(e.ce,e.H,"position",t,n))}function d(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function g(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function K(e,t,n,i,r){e===null&&(e=[0,0,0,0]),t===null&&(t=[0,0,0,0]);var o=e[0],a=e[1],l=e[2];e=e[3];var u=t[0],f=t[1],p=t[2];return t=t[3],l===0||l===100?(o=u,a=f):(p===0||p===100)&&(u=o,f=a),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,a=r(n,a,f-a,i),l=r(n,l,p-l,i),n=r(n,e,t-e,i),"hsla("+o+", "+a+"%, "+l+"%, "+n+")"}function nt(){function e(n,i,r,o,a,l){n.position=new ce(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}var t=new Zn;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!1):n.position=new ce(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("location",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!0):n.location=new ce(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("position:placeholder",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!1):n.position=new ce(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("position:nodeCollapse",function(n,i,r,o,a,l){var u=n.actualBounds,f=r.actualBounds;r=f.x+f.width/2-u.width/2,u=f.y+f.height/2-u.height/2,a<l?n.mm(o(a,i.x,r-i.x,l),o(a,i.y,u-i.y,l),!1):n.position=new ce(o(a,i.x,r-i.x,l),o(a,i.y,u-i.y,l))}),t.add("desiredSize",function(n,i,r,o,a,l){n.desiredSize=new Wt(o(a,i.width,r.width-i.width,l),o(a,i.height,r.height-i.height,l))}),t.add("width",function(n,i,r,o,a,l){n.width=o(a,i,r-i,l)}),t.add("height",function(n,i,r,o,a,l){n.height=o(a,i,r-i,l)}),t.add("fill",function(n,i,r,o,a,l){n.fill=K(i,r,a,l,o)}),t.add("stroke",function(n,i,r,o,a,l){n.stroke=K(i,r,a,l,o)}),t.add("strokeWidth",function(n,i,r,o,a,l){n.strokeWidth=o(a,i,r-i,l)}),t.add("strokeDashOffset",function(n,i,r,o,a,l){n.strokeDashOffset=o(a,i,r-i,l)}),t.add("background",function(n,i,r,o,a,l){n.background=K(i,r,a,l,o)}),t.add("areaBackground",function(n,i,r,o,a,l){n.areaBackground=K(i,r,a,l,o)}),t.add("opacity",function(n,i,r,o,a,l){n.opacity=o(a,i,r-i,l)}),t.add("scale",function(n,i,r,o,a,l){n.scale=o(a,i,r-i,l)}),t.add("angle",function(n,i,r,o,a,l){n.angle=o(a,i,r-i,l)}),mn=t}ft.Object.defineProperties(go.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(e){(this.Jd=e)&&this.Ei.each(function(t){t.isAnimating||t.runCount!==1/0||t.start()})}},duration:{get:function(){return this.Dg},set:function(e){1>e&&Rt(e,">= 1",go,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),go.prototype.stopAnimation=go.prototype.Cc;var mn=null,Yn=!1,Ci=new Kt(go,"Default",1),wr=new Kt(go,"AnimateLocations",2),zr=new Kt(go,"None",3);go.className="AnimationManager",go.defineAnimationEffect=function(e,t){Yn||(nt(),Yn=!0),mn.add(e,t)},go.Default=Ci,go.AnimateLocations=wr,go.None=zr;function Yr(e){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=Lo,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=mr,this.vc=new Zn,this.Tt=new Zn,this.yl=new Zt,this.Ut=new Zt,this.dw=ph,e&&Object.assign(this,e)}Yr.prototype.suspend=function(){this.Xk=!0},Yr.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,rr(this,!0),Oo(this.Yd),bs(this.H),ra(this.Yd),this.H.redraw()};function Ra(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0<e.yl.count&&e.yl.clear(),0<e.Ut.count&&e.Ut.clear(),t!==null)for(e=t.links;e.next();)e.value.Tg=null}U=Yr.prototype,U.start=function(){if(this.vc.count===0||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;e===null&&(n instanceof Y?e=n:n instanceof st&&(e=n.diagram))}if(e!==null)this.H=e,this.Yd=e.animationManager;else return this;return t=this.Yd,t.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===Ci&&this===t.defaultAnimation&&(this.Lp=oa,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Fd),Oo(t),this.yl.each(function(i){i.data=null,e.add(i)}),ra(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Do(t,this),this)},U.Iy=function(e,t){return e.Zc()?(this.yl.add(e),this.H=t,this):this},U.add=function(e,t,n,i,r){if(t==="position"&&n.Xa(i))return this;if(this.H===null&&(e instanceof Y?this.H=e:e instanceof st&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Ai){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return ba(this,e,t,n,i,r),this};function ba(e,t,n,i,r,o){var a=e.vc;if(t instanceof Y&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(qc(i),mg(),i=[bu.j,bu.u,bu.o,bu.F],qc(r),mg(),r=[bu.j,bu.u,bu.o,bu.F]),a.contains(t)){var l=a.I(t),u=l.start,f=l.end;u[n]===void 0&&(u[n]=ri(i)),f[n]=ri(r)}else u={},f={},u[n]=ri(i),f[n]=ri(r),l=u.position,t instanceof st&&l instanceof ce&&!l.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(f.position),l=new ws(u,f,o),a.add(t,l);a=u[n],a instanceof ce&&!a.w()&&a.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Ai?l.Ku.location=ri(t.location):o&&(l.Ku[n]=ri(i))}function ri(e){return e instanceof ce||e instanceof mi?e.copy():e}U.fv=function(e){return this.bc?(e=this.vc.I(e),e!==null&&e.nv):!1},U.Xu=function(e){return this.bc?(e=this.vc.I(e),e!==null&&(e.start.position||e.start.location)):!1};function rr(e,t){if(!e.Xk||t){var n=e.Yd;if(e.bc!==!1){var i=+new Date,r=i>e.cn?e.Gd:i-e.Qd;t&&(r=e.gw,r<e.Gd?(e.Qd=+new Date-r,e.cn=e.Qd+e.Gd):r=e.Gd),Oo(n),xo(e,r),bs(e.H,!0),ra(n),i>e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function xo(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof st&&o.diagram===null)){var a=i.value,l=r?a.end:a.start;a=r?a.start:a.end;var u=mn,f;for(f in a)f==="position"&&(a["position:placeholder"]||a["position:nodeCollapse"])||u.get(f)===null||u.get(f)(o,l[f],a[f],e.Lp,t,n,e)}}}U.stop=function(){return this.bc?(this.Ml(!0),this):this},U.Ml=function(e){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var t=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,Oo(n);for(var i=this.vc,r=this.yl.iterator;r.next();)t.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=mn;i.next();){var a=i.key,l=i.value,u=r?l.end:l.start,f=r?l.start:l.end,p=l.Ku,x;for(x in f)if(o.get(x)!==null){var A=x;!l.Hu||A!=="position:nodeCollapse"&&A!=="position:placeholder"||(A="position"),o.get(A)(a,u[x],p[x]!==void 0?p[x]:l.Hu?u[x]:f[x],this.Lp,this.Gd,this.Gd,this)}l.Hu&&p.location!==void 0&&a instanceof Ai&&(a.location=p.location),l.nv&&a instanceof Ai&&a.Zb(!1)}if(t.As.clear(),Nr(t,!1),t.Ya(),t.N(),bs(t,!0),n.defaultAnimation===this){for(x=n.pr.iterator;x.next();)r=x.value,r.Tg!==null&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}bs(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),ra(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ra(this,null),n.Ml(this),t.$b())}},U.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof nr&&(i=t.placeholder),i!==null?(n=i.ga(ta),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new ce(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof nr)for(e=e.memberParts;e.next();)i=e.value,i instanceof Xn&&this.Cj(i,t)},U.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof nr&&(n=t.placeholder),n!==null){var i=n.ga(ta);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(e,"position:placeholder",e.position,i,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),i=this.vc,i.contains(e)&&(i.I(e).nv=!0),e instanceof nr)for(e=e.memberParts;e.next();)i=e.value,i instanceof Xn&&this.Aj(i,t)}},U.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},ft.Object.defineProperties(Yr.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&Rt(e,">= 1",Yr,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0<e?this.cu=e:Ke("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(e){this.dn!==e&&(this.dn=e)}},easing:{get:function(){return this.ot},set:function(e){this.ot=e}},isViewportUnconstrained:{get:function(){return this.j},set:function(e){this.j=e}},isAnimating:{get:function(){return this.bc}}}),Yr.prototype.getTemporaryState=Yr.prototype.Ez,Yr.prototype.stop=Yr.prototype.stop,Yr.prototype.add=Yr.prototype.add,Yr.prototype.addTemporaryPart=Yr.prototype.Iy;function Lo(e,t,n,i){return e/=i/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function oa(e,t,n,i){return e===i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t}Yr.className="Animation",Yr.EaseLinear=function(e,t,n,i){return n*e/i+t},Yr.EaseInOutQuad=Lo,Yr.EaseInQuad=function(e,t,n,i){return n*(e/=i)*e+t},Yr.EaseOutQuad=function(e,t,n,i){return-n*(e/=i)*(e-2)+t},Yr.EaseInExpo=function(e,t,n,i){return e===0?t:n*Math.pow(2,10*(e/i-1))+t},Yr.EaseOutExpo=oa;function ws(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}ws.className="AnimationState";function ys(e,t,n){this.xd=null,this.rf=e,this.so=n||ca,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=Ga))}ys.prototype.copy=function(){var e=new ys(this.rf);e.so=this.so;var t=this.uk;if(t!==null){var n={};t.duration!==void 0&&(n.duration=t.duration),t.finished!==void 0&&(n.finished=t.finished),t.easing!==void 0&&(n.easing=t.easing),e.uk=n}return e};function wo(e,t){e=e.uk,e!==null&&(e.duration&&(t.duration=e.duration),e.finished&&(t.finished=e.finished),e.easing&&(t.easing=e.easing))}ft.Object.defineProperties(ys.prototype,{propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},animationSettings:{get:function(){return this.uk},set:function(e){this.uk=e}},startCondition:{get:function(){return this.so},set:function(e){this.so=e}}});var ca=new Kt(ys,"Default",1),Ga=new Kt(ys,"Immediate",2),N=new Kt(ys,"Bundled",3);ys.className="AnimationTrigger",ys.Default=ca,ys.Immediate=Ga,ys.Bundled=N;function m(e){Bi(this),this.H=null,this.Pa=new Xt,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=[],e&&Object.assign(this,e)}U=m.prototype,U.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,il(n)}e.clear(),this.Zq.length=0},U.Xe=function(e){this.H=e},U.toString=function(e){e===void 0&&(e=0);var t='Layer "'+this.name+'"';if(0>=e)return t;for(var n=0,i=0,r=0,o=0,a=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof nr?r++:u instanceof Xn?i++:u instanceof Fn?o++:u instanceof Xr?a++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<a&&(l+=a+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,l+=`
|
|
|
`+n.toString(),i=n.data,i!==null&&At(i)&&(l+=" #"+At(i)),n instanceof Xn?l+=" "+fn(i):n instanceof Fn&&(l+=" "+fn(n.fromNode)+" "+fn(n.toNode));return t+" "+this.Pa.count+": "+l},U.ic=function(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),this.Uh===!1)return null;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var r=ce.alloc(),o=this.Pa.s,a=o.length;a--;){var l=o[a];if((i!==!0||Gh(l)!==!1)&&l.isVisible()&&(r.assign(e),Di(r,l.oe),l=l.ic(r,t,n),l!==null&&(t!==null&&(l=t(l)),l!==null&&(n===null||n(l)))))return ce.free(r),l}return ce.free(r),null},U.ji=function(e,t,n,i){if(t===void 0&&(t=null),n===void 0&&(n=null),i instanceof Xt||i instanceof Zt||(i=new Zt),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var o=ce.alloc(),a=this.Pa.s,l=a.length;l--;){var u=a[l];if((r!==!0||Gh(u)!==!1)&&u.isVisible()){o.assign(e),Di(o,u.oe);var f=u;u.ji(o,t,n,i)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||i.add(f))}}return ce.free(o),i},U.Cf=function(e,t,n,i,r){if(t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Zt||(r=new Zt),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var a=this.Pa.s,l=a.length;l--;){var u=a[l];if((o!==!0||Gh(u)!==!1)&&u.isVisible()){var f=u;u.Cf(e,t,n,i,r)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||r.add(f))}}return r},U.Nu=function(e,t,n,i,r,o,a){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var f=l[u];if((a!==!0||Gh(f)!==!1)&&o(f)&&f.isVisible()){var p=f;f.Cf(e,t,n,i,r)&&(t!==null&&(p=t(p)),p===null||n!==null&&!n(p)||r.add(p))}}return r},U.og=function(e,t,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 Xt||r instanceof Zt)&&(o=r),r=!0),o instanceof Xt||o instanceof Zt||(o=new Zt),this.Uh===!1)return o;var a=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(a=!0);for(var l=ce.alloc(),u=ce.alloc(),f=this.Pa.s,p=f.length;p--;){var x=f[p];if((a!==!0||Gh(x)!==!1)&&x.isVisible()){l.assign(e),Di(l,x.oe),u.h(e.x+t,e.y),Di(u,x.oe);var A=x;x.og(l,u,n,i,r,o)&&(n!==null&&(A=n(A)),A===null||i!==null&&!i(A)||o.add(A))}}return ce.free(l),ce.free(u),o},U.Fd=function(e,t){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){e=Dt();for(var r=Dt(),o=0;o<i;o++){var a=n[o];if(a.vw=o,a instanceof Fn){if(a.fd===!1)continue}else if(a instanceof Xr&&a.adornedPart!==null)continue;var l=a.actualBounds;a.isVisible()&&Mt(l,t)?(a.Fd(!0),e.push(a)):(a.Fd(!1),a.adornments!==null&&0<a.adornments.count&&r.push(a))}for(t=0;t<e.length;t++)for(n=e[t],Gg(n),n=n.adornments;n.next();)i=n.value,i.measure(1/0,1/0),i.arrange(),i.Fd(!0);for(t=0;t<r.length;t++)Gg(r[t]);Jt(e),Jt(r)}}};function S(e,t){var n=1;return e.pb!==1&&(n=t.globalAlpha,t.globalAlpha=n*e.pb),n}U.gc=function(e,t,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(e.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=S(this,e);var o=this.Zq;o.length=0;for(var a=t.scale,l=Wt.alloc(),u=0;u<i;u++)this.Oj(e,n[u],t,o,a,l,!0);if(Wt.free(l),e.isTemporary)for(t=0;t<i;t++)n[t].Gj();e.globalAlpha=r}}};function D(e,t,n,i,r){if(e.visible&&e.pb!==0&&(r||!e.isTemporary)){r=e.Pa.s;var o=r.length;if(o!==0){var a=S(e,t),l=e.Zq;l.length=0;for(var u=n.scale,f=Wt.alloc(),p=0;p<o;p++){var x=r[p];i.contains(x)&&e.Oj(t,x,n,l,u,f,!1)}Wt.free(f),t.globalAlpha=a}}}U.Oj=function(e,t,n,i,r,o,a){if(a&&!Gh(t))e.Hs(t);else{if(i!==null&&t instanceof Fn&&(t.isOrthogonal&&i.push(t),t.fd===!1)){e.Hs(t);return}for(a=!1,i=t.containingGroup;i!==null;)a?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(a=!0,o.assign(i.tb)),i=i.containingGroup;var l=t.actualBounds;if(i=!1,a&&t.isVisible()){if(!o.Yc(l)){e.Hs(t);return}i=!o.Re(l)}i&&(e.save(),e instanceof nu?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),l.width*r>n.Oq||l.height*r>n.Oq?t.gc(e,n):(r=t.actualBounds,o=t.naturalBounds,r.width===0||r.height===0||isNaN(r.x)||isNaN(r.y)||!t.isVisible()||(n=t.transform,t.areaBackground!==null&&(Ma(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.areaBackground===null&&t.background===null&&(Ma(t,e,"rgba(0,0,0,0.3)",!0,!1,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.background!==null&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Ma(t,e,t.background,!0,!1,o,r),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),i&&(e.restore(),e.Vc(!0))}},U.g=function(e,t,n,i,r){var o=this.diagram;o!==null&&o.cb(Eo,e,this,t,n,i,r)},U.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,this===null&&il(t),e>=i.count)e=i.count;else if(i.M(e)===t)return-1;return i.Gb(e,t),t.Vo(n),i=this.diagram,i!==null&&(n?i.N():i.oi(t)),Z(this,e,t),e},U.pc=function(e,t,n){if(!n&&t.layer!==this&&t.layer!==null)return t.layer.pc(e,t,n);var i=this.Pa;if(0>e||e>=i.length){if(e=i.indexOf(t),0>e)return-1}else if(i.M(e)!==t&&(e=i.indexOf(t),0>e))return-1;return t.Wo(n),i.mb(e),i=this.diagram,i!==null&&(n?i.N():i.pc(t)),t.Ig=null,il(t),e};function Z(e,t,n){if(t=oe(e,t,n),n instanceof nr&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=e.Pa.s,o=r.length,a=0;a<o;a++){var l=r[a];if(l===n&&(t=a,0<=i)||0>i&&l.containingGroup===n&&(i=a,0<=t))break}!(0>i)&&i<t&&(r=e.Pa,r.mb(t),r.Gb(i,n))}t=n.containingGroup,t!==null&&Z(e,-1,t)}n.svg!==null&&n.svg.remove()}function oe(e,t,n){var i=n.zOrder;if(isNaN(i))return t;e=e.Pa;var r=e.count;if(1>=r)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,!!isNaN(a));)o--;for(var l=t+1,u=NaN;l<r&&(u=e.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(a)&&a>i)for(;;){if(o===-1||a<=i){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(u)&&u<i)for(;;){if(l===r||u>=i){if(l--,l===t)break;return e.mb(t),e.Gb(l,n),l}for(u=NaN;++l<r&&(u=e.M(l).zOrder,isNaN(u)););}return t}ft.Object.defineProperties(m.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(e){var t=this.xa;if(t!==e){var n=this.diagram;if(n!==null)for(t===""&&Ke("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&Ke("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Rt(e,"0 <= value <= 1",m,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,e!==null&&e.N())}},isTemporary:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&((this.o=e)&&(this.isInDocumentBounds=!1),this.g("isTemporary",t,e))}},visible:{get:function(){return this.u},set:function(e){var t=this.u;if(t!==e){for(this.u=e,this.g("visible",t,e),t=this.Pa.iterator;t.next();)t.value.Zb(e);e=this.diagram,e!==null&&e.N()}}},pickable:{get:function(){return this.Uh},set:function(e){var t=this.Uh;t!==e&&(this.Uh=e,this.g("pickable",t,e))}},isInDocumentBounds:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}}}),m.prototype.findObjectsNear=m.prototype.og,m.prototype.findObjectsIn=m.prototype.Cf,m.prototype.findObjectsAt=m.prototype.ji,m.prototype.findObjectAt=m.prototype.ic,m.className="Layer";function Y(e,t){if(y0||(tl(),y0=!0),Bi(this),pt=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ca){var n=this,i=function(){n.removeEventListener(Ve.document,"DOMContentLoaded",i,!1),n.setRTL()};Ve.document.body!==null?this.setRTL():n.addEventListener(Ve.document,"DOMContentLoaded",i,!1)}this.ol=null,pf.add("Model",ho);var r=this;return this.Hb=function(o){var a=r.partManager;if(o.model===a.diagram.model&&a.diagram.aa){a.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===Eo&&a.updateDataBindings(o.object,o.propertyName)}finally{a.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,bn(this),this.model=bv(),this.Wg=!0,Hr(this),this.layout=new Qo,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 b0,e!==void 0&&(typeof e=="string"||Ve.Element&&e instanceof Element?ki(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var ut,pt;function bn(e){e.Yd=new go,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Xt,e.pj=new Zn,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new ce(NaN,NaN).freeze(),e.du=new ce(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new ce(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new sr,e.zu=new ce(NaN,NaN).freeze(),e.ut=new Wt(NaN,NaN,NaN,NaN).freeze(),e.rj=new vi(0,0,0,0).freeze(),e.sj=ph,e.nu=!1,e.Zt=null,e.fu=null,e.yh=cl,e.zk=Vr,e.Fg=cl,e.pq=Vr,e.yt=ta,e.Bt=ta,e.Fc=!0,e.pn=!1,e.De=new Zt,e.Eh=new Zn,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new vi(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new ss,e.bq.diagram=e,e.Qg=new ss,e.Qg.diagram=e,e.cj=new ss,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,cg(e),e.ai=new Zt,e.Ht=!0,e.uu=mh,e.pw=!1,e.wu=Pd,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new Zn,e.Xn=new Xt,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new vi(5).freeze(),e.Hw=new Zt().freeze(),e.Nt=999999999,e.nw=new Zt().freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Zt,e.ow=new Zt,e.Xh=null,e.aw=new mi(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new ce,bounds:new Wt,Py:new mi,bA:new mi,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Wt(NaN,NaN,NaN,NaN).freeze(),e.wo=new mi(NaN,NaN).freeze(),e.Sp=new Wt(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new Zn;var t=new Xn,n=new Po;n.bind(new Wa("text","",fn)),t.add(n),e.ny=t,e.Lg.add("",t),t=new Xn,n=new Po,n.stroke="brown",n.bind(new Wa("text","",fn)),t.add(n),e.Lg.add("Comment",t),t=new Xn,t.selectable=!1,t.avoidable=!1,n=new hr,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new mi(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new Zn,t=new nr,t.selectionObjectName="GROUPPANEL",t.type=An.Vertical,n=new Po,n.font="bold 12pt sans-serif",n.bind(new Wa("text","",fn)),t.add(n),n=new An(An.Auto),n.name="GROUPPANEL";var i=new hr;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new wl,i.padding=new vi(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new Zn,t=new Fn,n=new hr,n.isPanelMain=!0,t.add(n),n=new hr,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new Fn,n=new hr,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Xr,t.type=An.Auto,n=new hr,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new wl,n.margin=new vi(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Xr,t.type=An.Link,n=new hr,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new ho,e.toolManager=new To,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new c,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Qn(),e.eq=null,e.fq=Wi,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new ce,e.zy=500,e.wp=new ce,e.wq=!1}Y.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),dd=null,Uh="",_n(this,!1),this.Xn.clear(),Af(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function _n(e,t){e.animationManager.Cc(!0),e.Hw=new Zt().freeze(),e.nw=new Zt().freeze();var n=e.skipsUndoManager,i=e.cc!==null&&e.cc!==void 0;i&&(e.skipsUndoManager=!0);var r=null;e.fe!==null&&(r=e.fe.part,r!==null&&e.remove(r));var o=[],a=e.Wa.length;if(t){for(t=0;t<a;t++)for(var l=e.Wa.s[t].parts;l.next();){var u=l.value;u!==r&&u.data===null&&o.push(u)}for(t=0;t<o.length;t++)e.remove(o[t])}for(t=0;t<a;t++)e.Wa.s[t].clear();return e.partManager.clear(),e.De.clear(),e.Eh.clear(),e.ai.clear(),e.Ck=null,e.Xn.clear(),Af(),e.Og.clear(),Qi=[],r!==null&&(e.add(r),e.partManager.parts.remove(r)),i&&(e.skipsUndoManager=n),o}function Qn(){return null}Y.prototype.reset=function(){this.clear(),this.vb=!0,bn(this),Ac(this),this.Wg=!0,Hr(this),this.layout=new Qo,this.Wg=!1,this.model=bv(),this.model.undoManager=new _o,this.vb=this.rn=!1,this.N()},Y.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=Ve.document.body);var t=Ct("div");t.dir="rtl",t.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",t.textContent="A",e.appendChild(t);var n="reverse";0<t.scrollLeft?n="default":(t.scrollLeft=1,t.scrollLeft===0&&(n="negative")),e.removeChild(t),this.bu=n},Y.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=Ve.document.body);var t=0;if(Ca){var n=v0;t=ut,n===null&&(n=v0=Ct("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=ut=Ct("div"),t.style.position="absolute",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.boxSizing="content-box",t.appendChild(n)),t.style.overflow="hidden",e.appendChild(t);var i=n.offsetWidth;t.style.overflow="scroll",n=n.offsetWidth,i===n&&(n=t.clientWidth),e.removeChild(t),t=i-n,t!==0||Oi||(t=11)}this.Db=t,this.Gw=!0},Y.prototype.qb=function(e){e.classType===Y&&(this.autoScale=e)},Y.prototype.toString=function(e){e===void 0&&(e=0);var t="";if(this.div&&this.div.id&&(t=this.div.id),t='Diagram "'+t+'"',0>=e)return t;for(var n=this.Wa.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1);return t};function ki(e,t){if(Ca){if(t!=null||Ke("Diagram setup requires an argument DIV."),e.Ka!==null&&Ke("Diagram has already completed setup."),typeof t=="string"?e.Ka=Ve.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:Ke("No DIV or DIV id supplied: "+t),e.Ka===null&&Ke("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&Ke("Invalid div id; div already has a Diagram associated with it."),!e.ol&&Ve.ResizeObserver){var n=Nn(function(){e.$b()},250);e.ol=new Ve.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}Ve.getComputedStyle(e.Ka,null).position==="static"&&(e.Ka.style.position="relative"),t=5;var i="rgba(2"+t+"5, 255, 255, 0)";t--,e.Ka.style["-webkit-tap-highlight-color"]=i,e.Ka.innerHTML="",e.Ka.H=e,e.Ka.goDiagram=e,e.Ka.go=Ve.go;var r=new Hu(e);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",Ve.getComputedStyle(e.Ka,null).getPropertyValue("direction")==="rtl"&&(e.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"),e.ta=r,e.ib=r.context,i=e.ib,e.Mb=e.computePixelRatio(),e.viewSize.w()||(e.Aa=e.Ka.clientWidth||1,e.ya=e.Ka.clientHeight||1),Cc(e,e.Aa,e.ya),e.Ka.insertBefore(r.Oa,e.Ka.firstChild),r=new Hu(null),r.width=1,r.height=1,e.jw=r,e.oy=r.context,Ca){r=Ct("div");var o=Ct("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=e.Aa+"px",r.style.height=e.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",e.Ka.appendChild(r),r.appendChild(o),r.onscroll=Go,r.addEventListener("pointerdown",Da),r.H=e,r.uy=!0,r.vy=!0,e.ku=r,e.hu=o}e.hk=Nn(function(){e.Yh=null,e.N()},300),e.Ov=Nn(function(){Ur(e)},250),e.preventDefault=function(a){return a.preventDefault(),!1},e.$j=function(a){if(e.isEnabled){var l=Is(e,a,!0);l.bubbles=!0;var u=0,f=0;l.delta=0,a.deltaX!==void 0?(a.deltaX!==0&&(u=0<a.deltaX?1:-1),a.deltaY!==0&&(f=0<a.deltaY?1:-1),l.delta=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-u:-f):a.wheelDeltaX!==void 0?(a.wheelDeltaX!==0&&(u=0<a.wheelDeltaX?-1:1),a.wheelDeltaY!==0&&(f=0<a.wheelDeltaY?-1:1),l.delta=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-u:-f):a.wheelDelta!==void 0&&a.wheelDelta!==0&&(l.delta=0<a.wheelDelta?1:-1),e.doMouseWheel(),_s(l,a)}},e.aA=function(a){e.isEnabled&&(e.Vk=!1,Is(e,a,!0),a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())},e.ui=function(a){if(e.isEnabled){e.Vk=!0;var l=e.Yt;l[a.pointerId]===void 0&&(l[a.pointerId]=a),l=e.oj;var u=!1;if(l[0]===null||l[0].pointerId!==a.pointerId&&l[0].pointerType===a.pointerType)if(l[1]!==null&&l[1].pointerId===a.pointerId)l[1]=a,u=!0;else if(l[0]===null)l[0]=a;else if(l[1]===null)l[1]=a,u=!0;else{a.preventDefault();return}else l[0]=a;(l=a.pointerType==="touch"||a.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var f=u;u=Kl(e,a,!0,!1,!0,f),Au(e,a,u),u.targetDiagram=ul(a,a.target),u.targetObject=null,f||u.clone(e.bq),f=e.uw,l=l?25:10,a.timeStamp-e.tw<e.zy&&!(Math.abs(f.x-a.screenX)>l||Math.abs(f.y-a.screenY)>l)?e.yq++:e.yq=1,u.clickCount=e.yq,e.tw=a.timeStamp,e.uw.sg(a.screenX,a.screenY),e.doMouseDown(),a.button===1?a.preventDefault():_s(u,a)}},e.dk=function(a){if(e.isEnabled){e.Vk=!0;var l=e.oj;if(l[0]===null||l[0].pointerId!==a.pointerId&&l[0].pointerType===a.pointerType){if(l[1]!==null&&l[1].pointerId===a.pointerId){l[1]=a;return}if(l[0]===null)l[0]=a;else return}else l[0]=a;if(l[0].pointerId===a.pointerId){l=Kl(e,a,!1,!1,!1,l[1]!==null);var u=Ve.document.elementFromPoint(a.clientX,a.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(a.clientX,a.clientY));var f=e,p=a;u&&u.H&&(p=a,f=u.H),l.targetDiagram=f,Au(e,p,l),l.targetObject=null,e.doMouseMove(),_s(l,a)}}},e.fk=function(a){if(e.isEnabled){e.Vk=!0;var l=a.pointerType==="touch"||a.pointerType==="pen",u=e.Yt;if(l&&e.qu)delete u[a.pointerId],a.preventDefault();else if(u=e.oj,u[0]===null||u[0].pointerId!==a.pointerId&&u[0].pointerType===a.pointerType)u[1]!==null&&u[1].pointerId===a.pointerId&&(u[1]=null);else{u[0]=null,u=Kl(e,a,!1,!0,!0,!1);var f=Ve.document.elementFromPoint(a.clientX,a.clientY)||null;f!==null&&f.shadowRoot!==void 0&&f.shadowRoot!==null&&(f=f.shadowRoot.elementFromPoint(a.clientX,a.clientY)),f!==null&&f.H instanceof Y&&f.H!==e&&Au(f.H,a,u),f===null&&(f=a.target),Au(e,a,u),u.clickCount=e.yq,u.targetDiagram=ul(a,f),u.targetObject=null,e.doMouseUp(),_s(u,a),l&&(e.wq=!1)}}},e.ek=function(a){if(e.isEnabled){e.Vk=!1;var l=e.Yt;l[a.pointerId]&&delete l[a.pointerId],l=e.oj,l[0]!==null&&l[0].pointerId===a.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===a.pointerId&&(l[1]=null),a.pointerType!=="touch"&&a.pointerType!=="pen"&&(a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())}},e.ck=function(a){var l=e.oj;l[0]!==null&&l[0].pointerId===a.pointerId?(l[0]=null,e.wq=!1):l[1]!==null&&l[1].pointerId===a.pointerId&&(l[1]=null)},e.Vp=i.Z["d"+_d[1]+_d[2]+"wI"+pd.slice(1,5)]["b"+Vb.slice(1,t)](i.Z,Bd,t,t),i.Vc(!0),Ii(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}Y.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Y.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})};function Ii(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",function(n){return n.preventDefault(),!1},!1),e.addEventListener(t,"contextmenu",function(n){return n.preventDefault(),!1},!1),e.addEventListener(Ve,"resize",e.Ov,!1)}function $i(e){30<e.Sq&&(e.Yh=1)}function Nr(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Hn&&Hn.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}Y.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ve.devicePixelRatio||1},Y.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Y.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Y.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Y.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Y.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Y.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Y.prototype.doFocus=function(){this.focus()},Y.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=Ve.scrollX||Ve.pageXOffset,t=Ve.scrollY||Ve.pageYOffset;this.ta.focus(),Ve.scrollTo(e,t)}},Y.prototype.Oy=function(){this.H.R("GainedFocus")},Y.prototype.Ny=function(){this.H.R("LostFocus")};function Ur(e){if(e.ta!==null){var t=e.Ka;if(t!==null&&t.clientWidth!==0&&t.clientHeight!==0){e.Gw||e.setScrollWidth();var n=e.gf?e.Db:0,i=e.Be?e.Db:0,r=e.Mb;e.Mb=e.computePixelRatio(),e.Mb!==r&&(e.pn=!0,e.$b()),(t.clientWidth!==e.Aa+n||t.clientHeight!==e.ya+i)&&(e.Ee=!0,e.Fc=!0,t=e.layout,t!==null&&t.isViewportSized&&e.autoScale===cl&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function Hr(e){var t=new m;t.name="Background",e.Al(t),t=new m,t.name="",e.Al(t),t=new m,t.name="Foreground",e.Al(t),t=new m,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new m,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new m,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function Ao(e){var t=new An(An.Grid);t.name="GRID";var n=new hr;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new hr,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new hr,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new hr,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new hr,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new hr,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Ai,n.add(t),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",e.add(n),e.partManager.parts.remove(n),t.visible=!1,t}function Go(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ku(this.H)}function Da(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):ku(this.H)}Y.prototype.kx=function(e){if(this.ta!==null){var t=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,a=i.x-o.left,l=i.y-o.top,u=i.width+o.left+o.right,f=i.height+o.top+o.bottom,p=i.right+o.right;o=i.bottom+o.bottom;var x=r.x;i=r.y;var A=r.width,R=r.height,z=r.right,V=r.bottom;r=this.scale;var ye=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":ye=ye+e.scrollWidth-e.clientWidth;break;case"reverse":ye=e.scrollWidth-ye-e.clientWidth}var se=ye;A<u||R<f?(ye=ce.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==se&&(ye.x=se/r+a,this.ju=se),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(ye.y=e.scrollTop/r+l,this.lu=e.scrollTop),this.position=ye,ce.free(ye),this.Ee=this.qr=!1):(ye=ce.alloc(),e.uy&&this.allowHorizontalScroll&&(a<x&&(this.position=ye.h(se+a,this.position.y)),p>z&&(this.position=ye.h(-(t.scrollWidth-this.Aa)+se-this.Aa/r+p,this.position.y))),e.vy&&this.allowVerticalScroll&&(l<i&&(this.position=ye.h(this.position.x,e.scrollTop+l)),o>V&&(this.position=ye.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),ce.free(ye),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,p=i.right,z=r.right,o=i.bottom,V=r.bottom,a=i.x,x=r.x,l=i.y,i=r.y,A>=u&&a>=x&&p<=z&&(n.style.width="1px"),R>=f&&l>=i&&o<=V&&(n.style.height="1px"))}},Y.prototype.computeBounds=function(e){return e===void 0&&(e=new Wt),Qa(this),na(this,e)};function na(e,t){if(e.fixedBounds.w())return t.assign(e.fixedBounds),t.Co(e.yb),t;for(var n=!0,i=e.Wa.s,r=i.length,o=0;o<r;o++){var a=i[o];if(a.visible&&a.isInDocumentBounds){a=a.Pa.s;for(var l=a.length,u=0;u<l;u++){var f=a[u];f.isInDocumentBounds&&f.isVisible()&&(f=f.actualBounds,f.w()&&(n?(n=!1,t.assign(f)):t.ed(f)))}}}return n&&t.h(0,0,0,0),t.Co(e.yb),t}Y.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(hn(e))for(var i=0;i<e.length;i++){var r=e[i];!t&&r instanceof Fn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(e=e.iterator;e.next();)i=e.value,!t&&i instanceof Fn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new Wt(NaN,NaN,0,0):n};function Ko(e,t){if((t||e.hf)&&!e.vb&&e.ta!==null&&e.documentBounds.w()){if(e.vb=!0,t){var n=e.initialPosition;if(n.w()){e.vb=!1,e.position=n;return}n=ce.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var i=e.viewportBounds;i=Wt.allocAt(0,0,i.width,i.height);var r=ce.alloc();r.xi(i,e.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),e.position=r,Wt.free(i),ce.free(r),ce.free(n)}n=e.yh,t&&e.Fg!==cl&&(n=e.Fg);var o=n!==cl?pa(e,n):e.scale;n=e.pa.x,i=e.pa.y,r=e.Aa/o;var a=e.ya/o,l=e.zk,u=e.pq;t&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?Lr:u),hs(e,e.documentBounds,r,a,l,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,et.B(o.x,n)&&et.B(o.y,i)&&et.B(o.width,r)&&et.B(o.height,a)||e.onViewportBoundsChanged(new Wt(n,i,r,a),o,t,!1)}}function pa(e,t){var n=e.Pp;if(e.ta===null)return n;e.Va();var i=e.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=e.Aa+(e.gf?e.Db:0),a=e.ya+(e.Be?e.Db:0),l=o/r,u=a/i;return t===gu?(t=Math.min(u,l),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===Hh?(t=u>l?(a-e.Db)/i:(o-e.Db)/r,t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):e.scale}Y.prototype.zoomToFit=function(){var e=this.sj;this.sj=ph,this.scale=pa(this,gu),e!==ph&&(Ko(this,!1),hs(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},U=Y.prototype,U.BA=function(e,t){t===void 0&&(t=gu);var n=e.width,i=e.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(t===gu||t===Hh)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=t===Hh?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 ce(e.x,e.y)}},U.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new ce(n.x+(e.x*n.width+e.offsetX)-(t.x*i.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*i.height-t.offsetY))},U.zz=function(e){if(e instanceof st){this.eq=e;var t=ce.alloc();this.fq=this.op(e.ga(ta,t)),ce.free(t)}else this.eq=null,this.fq=Wi};function hs(e,t,n,i,r,o){var a=ce.allocAt(e.pa.x,e.pa.y),l=a.x,u=a.y;if(e.eq!==null){var f=ce.alloc();f=e.eq.ga(ta,f),l=f.x-e.fq.x/e.scale,u=f.y-e.fq.y/e.scale,r=Hi,ce.free(f)}(o||e.scrollMode===ph)&&(r.sb()&&(n>t.width&&(l=t.x+(r.x*t.width+r.offsetX)-(r.x*n-r.offsetX)),i>t.height&&(u=t.y+(r.y*t.height+r.offsetY)-(r.y*i-r.offsetY))),r=e.rj,o=n-t.width,n<t.width+r.left+r.right?(l=Math.min(l+n/2,t.right+Math.max(o,r.right)-n/2),l=Math.max(l,t.left-Math.max(o,r.left)+n/2),l-=n/2):l>t.left?l=t.left:l<t.right-n&&(l=t.right-n),n=i-t.height,i<t.height+r.top+r.bottom?(u=Math.min(u+i/2,t.bottom+Math.max(n,r.bottom)-i/2),u=Math.max(u,t.top-Math.max(n,r.top)+i/2),u-=i/2):u>t.top?u=t.top:u<t.bottom-i&&(u=t.bottom-i)),a.x=isFinite(l)?l:-e.yb.left,a.y=isFinite(u)?u:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,a),a.x=t.x,a.y=t.y),ja(e.Yd,e.pa,a),e.pa.h(a.x,a.y),Ac(e),ce.free(a)}U.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=ha(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Ai)return e}else if(e=ha(this,e,function(n){return n.part}),e instanceof Ai)return e;return null},U.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Qa(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&(r=r.ic(e,t,n),r!==null))return r}return null};function ha(e,t,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),Qa(e),e=e.Wa.iteratorBackwards;e.next();){var r=e.value;if(r.visible&&!r.isTemporary&&(r=r.ic(t,n,i),r!==null))return r}return null}U.lz=function(e,t,n){return t===void 0&&(t=!0),bl(this,e,function(i){return i.part},t?function(i){return i instanceof Ai&&i.canSelect()}:null,n)};function bl(e,t,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof Xt||r instanceof Zt||(r=new Zt),Qa(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,i,r)}return r}U.ji=function(e,t,n,i){t===void 0&&(t=null),n===void 0&&(n=null),i instanceof Xt||i instanceof Zt||(i=new Zt),Qa(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(e,t,n,i)}return i},U.ux=function(e,t,n,i){return t===void 0&&(t=!1),n===void 0&&(n=!0),Us(this,e,function(r){return r instanceof Ai&&(!n||r.canSelect())},t,i)},U.Cf=function(e,t,n,i,r){t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Zt||(r=new Zt),Qa(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,i,r)}return r},U.Nu=function(e,t,n,i,r,o){var a=new Zt;Qa(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(e,t,n,i,a,r,o)}return a};function Us(e,t,n,i,r){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Zt||(r=new Zt),Qa(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,i,r)}return r}U.mz=function(e,t,n,i,r){return n===void 0&&(n=!0),i===void 0&&(i=!0),ds(this,e,t,function(o){return o instanceof Ai&&(!i||o.canSelect())},n,r)},U.og=function(e,t,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 Xt||r instanceof Zt)&&(o=r),r=!0),o instanceof Xt||o instanceof Zt||(o=new Zt),Qa(this);for(var a=this.Wa.iteratorBackwards;a.next();){var l=a.value;l.visible&&l.og(e,t,n,i,r,o)}return o};function ds(e,t,n,i,r,o){var a=null;for(a===void 0&&(a=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Xt||r instanceof Zt)&&(o=r),r=!0),o instanceof Xt||o instanceof Zt||(o=new Zt),Qa(e),e=e.Wa.iteratorBackwards;e.next();){var l=e.value;l.visible&&!l.isTemporary&&l.og(t,n,a,i,r,o)}return o}Y.prototype.acceptEvent=function(e){return Is(this,e,e instanceof MouseEvent)};function Is(e,t,n){var i=e.Qg;return e.Qg=e.cj,e.cj=i,i.diagram=e,i.event=t,n?Au(e,t,i):(i.viewPoint=e.Qg.viewPoint,i.documentPoint=e.Qg.documentPoint),e=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),i.modifiers=e,i.button=t.button,t.buttons!==void 0&&(i.buttons=t.buttons),Oi&&t.button===0&&t.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=t.timeStamp,i.isMultiTouch=!1,i.targetDiagram=ul(t,t.target),i.targetObject=null,i}function ul(e,t){return t===null?null:(t=t.H)?t:((t=e.path)||typeof e.composedPath!="function"||(t=e.composedPath()),t&&t[0]&&t[0].H?t[0].H:null)}function Kl(e,t,n,i,r,o){var a=e.Qg;return e.Qg=e.cj,e.cj=a,a.diagram=e,a.clickCount=1,e=a.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),a.modifiers=e,a.event=t,a.timestamp=t.timeStamp,a.button=t.button,a.buttons=t.buttons,Oi&&t.button===0&&t.ctrlKey&&(a.button=2),a.down=n,a.up=i,a.handled=!1,a.bubbles=r,a.isMultiTouch=o,a}function _s(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}Y.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Is(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.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 t.doKeyDown(),_s(n,e)},Y.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Is(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.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 t.doKeyUp(),_s(n,e)},Y.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Is(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),_s(n,e)},Y.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Is(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),_s(n,e)},Y.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new ce(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,this.Ab!==null?Di(new ce(t,e),this.Ab):new ce(t,e)};function Au(e,t,n){var i=e.ta,r=e.Aa,o=e.ya,a=0,l=0;i!==null&&(i=i.getBoundingClientRect(),a=t.clientX-r/i.width*i.left,l=t.clientY-o/i.height*i.top),n.viewPoint.h(a,l),e.Ab!==null?(t=ce.allocAt(a,l),e.Ab.Cd(t),n.documentPoint.assign(t),ce.free(t)):n.documentPoint.h(a,l)}function ec(e,t,n){if(e.oj[0]!==null){t=e.oj[t];var i=e.ta;i!==null&&(i=i.getBoundingClientRect(),n.h(t.clientX-e.Aa/i.width*i.left,t.clientY-e.ya/i.height*i.top))}}Y.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Pc(e){e.ld||Qa(e),e.Va()}Y.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},U=Y.prototype,U.Pz=function(){return this.kg},U.Xy=function(e){e===void 0&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,bs(this),this.hf=!1,this.du=new ce(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;e!==null&&on(function(){i.ld=!1,_a(t,"Model"),e(i)},1)},U.$b=function(e){if(e===void 0&&(e=!1),this.kg!==!0&&!(this.vb||e===!1&&this.ld)){this.kg=!0;var t=this;Ve.requestAnimationFrame(function(){t.kg&&t.bd()})}},U.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),bs(this))};function Fl(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||ku(e)||(t&&Qa(e),n&&Ko(e,!1))}function bs(e,t){if(!e.ld&&(e.kg=!1,e.Ka!==null||e.wo.w())){e.ld=!0;var n=e.animationManager,i=e.Xn;if(!n.isAnimating&&i.length!==0){for(var r=i.s,o=r.length,a=0;a<o;a++){var l=r[a];qa(l,!1),l.v()}i.clear()}i=e.ow,0<i.count&&(i.each(function(u){u.Nv()}),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||Ur(e),Fl(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Nc(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Qa(e),o=!1,(!e.hf||e.xh)&&(e.hf?ap(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),ap(e,!1)),o=!0),e.Jk=!1,Qa(e),e.ou||Pc(e),Fl(e,!0,!1),a=!1,o?(n=Wt.alloc(),n.assign(e.viewportBounds),e.hf||(a=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Bl(e)),e.R("LayoutCompleted"),Fl(e,!0,!1),Wt.free(n)):n.Ok&&n.Qw&&(e.Fg!==cl?e.scale=pa(e,e.Fg):e.yh!==cl?e.scale=pa(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),Ko(e,!0)),o&&a&&e.eb("Initial Layout"),Qa(e),t||e.gc(e.ib),r&&(e.skipsUndoManager=i),e.ld=!1}}function Bl(e){if(e.Fg!==cl)e.scale=pa(e,e.Fg);else if(e.yh!==cl)e.scale=pa(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}Ko(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Nc(e)}function Qa(e){if(e.De.count!==0&&(e.ld||!e.animationManager.isTicking)){for(var t=0;23>t;t++){var n=e.De.iterator;if(n===null||e.De.count===0)break;e.De=new Zt,e.Nv(n,e.De)}e.nodes.each(function(i){i instanceof nr&&i.U&65536&&(i.U=i.U^65536)})}}U.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof nr||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof nr&&n.isVisible()&&ea(this,n);for(e.reset();e.next();)n=e.value,n instanceof Fn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)n=e.value,n instanceof Xr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function ea(e,t){for(var n=Dt(),i=Dt(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof nr?(yu(o)||Sl(o)||jh(o))&&ea(e,o):o instanceof Fn?o.fromNode===t||o.toNode===t?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,r=0;r<e;r++)o=n[r],o.measure(1/0,1/0),o.arrange();for(Jt(n),t.measure(1/0,1/0),t.arrange(),e=i.length,t=0;t<e;t++)n=i[t],n.measure(1/0,1/0),n.arrange();Jt(i)}U.Fd=function(e,t,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<t;r++)e[r].Fd(n,i)},U.gc=function(e){if(this.Ka!==null){if(this.ta===null&&Ke("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){el(this);var n=this.Aa,i=this.ya;if(e.Gv.resize(n,i,n,i),n=this.Wa.s,i=n.length,this.Fd(n,i,this,this.viewportBounds),this.Fc||t.isAnimating){t=this.pa;var r=this.Ca,o=Math.round(t.x*r)/r,a=Math.round(t.y*r)/r,l=this.Ab;for(l.reset(),r!==1&&l.scale(r),t.x===0&&t.y===0||l.translate(-o,-a),e.ti=null,oy(e,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(e.globalAlpha=this.pb),Hs(this,e),t=this.Mb,this.ta.context.setTransform(t,0,0,t,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),t=0;t<i;t++)n[t].gc(e,this);e=!1,this.Yf?md(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(sr.prototype.Cd=sr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,el(this),this.Ka.style.opacity!=="0")){if(i=e!==this.ib,t=this.Wa.s,r=t.length,this.Fd(t,r,this,this.viewportBounds),i)e.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break e;o=this.Ab,o.reset(),a=this.Mb,l=this.pa;var u=this.Ca,f=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(-f,-p),e.setTransform(a,0,0,a,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),Hs(this,e),l=0;l<r;l++)e.setTransform(a,0,0,a,0,0),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),e.yc(),t[l].gc(e,this);if(t=!1,this.Yf?md(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(sr.prototype.Cd=sr.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,i=Hn&&Hn.nx,n=this.zw,i||this.Yh===null){for(n[this.Tq]=t,this.Tq=(this.Tq+1)%n.length,r=t=0;r<n.length;r++)t+=n[r];this.Sq=t/n.length}if(this.pb!==1&&(e.globalAlpha=1),i)for(e.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)e.fillText(n[i].toString(),20,150+ +(20*i))}}};function xa(e,t,n,i,r,o,a,l,u,f){if(e.Ka!==null){e.ta===null&&Ke("No canvas specified"),a===void 0&&(a=null),l===void 0&&(l=null),u===void 0&&(u=!1),f===void 0&&(f=!1),el(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var p=e.Ca;e.Ca=r;var x=e.Wa.s,A=x.length;try{var R=new Wt(o.x,o.y,i.width/r,i.height/r),z=R.copy();z.Co(n),Nc(e,z),Qa(e),e.Fd(x,A,e,R),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,i.width,i.height),l!==null&&l!==""&&(t.fillStyle=l,t.ox(0,0,i.width,i.height));var V=e.Mb;t.scale(V,V);var ye=sr.alloc();ye.reset(),ye.translate(n.left,n.top),ye.scale(r),o.x===0&&o.y===0||ye.translate(-o.x,-o.y),t.setTransform(ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),t.yc(),t instanceof nu&&oy(t,ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),sr.free(ye),Hs(e,t),t.globalAlpha=e.pb;var se=e.Qj("Grid");if(a){var De=new Zt,ze=a.iterator;for(ze.reset();ze.next();){var je=ze.value;je instanceof Ai&&(f||je.layer!==se)&&(je.Gj(),De.add(je))}for(f=0;f<A;f++)D(x[f],t,e,De,u);De.each(function(Nt){return Nt.Gj()})}else for(De=0;De<A;De++){var ot=x[De];ot===se?f&&ot.gc(t,e,!0):ot.gc(t,e,u)}e.$i=!1,e.Yf&&md(e.Yf,e)&&e.Vp()}finally{e.Ca=p,e.ib.Vc(!0),e.vd=!0,e.Fd(x,A,e,e.viewportBounds),Nc(e),e.ib instanceof nu&&(e.ib.Nj.PA(),e.redraw())}}}U.Gf=function(e){return this.Rg[e]},U.Xx=function(e,t){e==="minDrawingLength"&&(this.Oq=t),this.Rg[e]=t,this.redraw()},U.Tx=function(){this.Rg=new re,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Oi||rt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Hs(e,t){e=e.Rg,e!==null&&(e.imageSmoothingEnabled!==void 0&&t.Wx(!!e.imageSmoothingEnabled),e=e.defaultFont,e!=null&&(t.font=e))}U.Ql=function(e){return this.on[e]},U.sA=function(e,t){this.on[e]=t},U.Sx=function(){this.on=new re,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},U.set=function(e){return Object.assign(this,e),this},U.Du=function(e){return this.nm(e)},U.nm=function(e){return qs(this,e),this};function qs(e,t){var n=e instanceof An,i=e instanceof Y,r;for(r in t){r===""&&Ke("Setting properties requires non-empty property names");var o=e,a=r;if(n||i){var l=r.indexOf(".");if(0<l){var u=r.substring(0,l);n?o=e.fb(u):(o=e[u],o==null&&(o=e.toolManager[u])),at(o)?a=r.substr(l+1):Ke("Unable to find object named: "+u+" in "+e.toString()+" when trying to set property: "+r)}}if(a[0]!=="_"&&!Cn(o,a))if(i&&a==="ModelChanged"){e.Yw(t[a]);continue}else if(i&&a==="Changed"){e.Pe(t[a]);continue}else if(i&&Cn(e.toolManager,a))o=e.toolManager;else if(i&&p0(e,a)){e.Bj(a,t[a]);continue}else if(e instanceof pi&&a==="Changed"){e.Pe(t[a]);continue}else Ke('Trying to set undefined property "'+a+'" on object: '+o.toString());o[a]=t[r],a[0]==="_"&&o instanceof st&&o.Vw(a)}}U.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var e=this.Eh;for(this.Eh=new Zn,e=e.iterator;e.next();){var t=e.key;t.Xo(e.value),t.qc()}}this.N()}},U.N=function(e){if(e===void 0)this.Fc=!0,this.$b();else{var t=this.viewportBounds;e.w()&&t.Yc(e)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Y.prototype.invalidateViewport=function(e,t){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!==Fd&&this.rj.hi(0,0,0,0)&&t.width===e.width&&t.height===e.height){var i=this.scale,r=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);if(0<Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.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=Wt.alloc(),op(this,this.computeBounds(i)),Wt.free(i)),i=this.ta,i===null||i instanceof kc)))){var a=this.Mb;r=this.Aa*a;var l=this.ya*a,u=this.scale*a;o=Math.round(Math.round(t.x*u)-Math.round(e.x*u)),t=Math.round(Math.round(t.y*u)-Math.round(e.y*u)),u=this.jw,e=this.oy,u.width!==r&&(u.width=r),u.height!==l&&(u.height=l),e.clearRect(0,0,r,l),u=190*a;var f=70*a,p=Math.max(o,0),x=Math.max(t,0),A=Math.floor(r-p),R=Math.floor(l-x);e.drawImage(i.Oa,p,x,A,R,0,0,A,R),md(this.Yf,this)&&e.clearRect(0,0,u,f),i=Dt(),e=Dt(),R=Math.abs(o),A=Math.abs(t);var z=p===0?0:r-R;p=ce.allocAt(z,0),R=ce.allocAt(R+z,l),e.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y)));var V=this.Ab;if(V.reset(),V.scale(a,a),this.Ca!==1&&V.scale(this.Ca),a=this.pa,(a.x!==0||a.y!==0)&&isFinite(a.x)&&isFinite(a.y)&&V.translate(-a.x,-a.y),Di(p,V),Di(R,V),i.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),z=x===0?0:l-A,p.h(0,z),R.h(r,A+z),e.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),Di(p,V),Di(R,V),i.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),md(this.Yf,this)&&(r=0<o?0:-o,l=0<t?0:-t,p.h(r,l),R.h(u+r,f+l),e.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),Di(p,V),Di(R,V),i.push(new Wt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y)))),ce.free(p),ce.free(R),Fl(this,!1,!0),this.Ka===null&&Ke("No div specified"),this.ta===null&&Ke("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(el(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<t?0:Math.round(-t)),o=this.pa,a=this.Ca,u=Math.round(o.x*a)/a,f=Math.round(o.y*a)/a,t=this.Ab,t.reset(),a!==1&&t.scale(a),o.x===0&&o.y===0||t.translate(-u,-f),r.save(),r.beginPath(),o=e.length,a=0;a<o;a++)u=e[a],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(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),r.yc(),t=this.Wa.s,o=t.length,this.Fd(t,o,this,this.viewportBounds),Hs(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(a=t[l],u=i,a.visible&&a.pb!==0){f=S(a,r),x=a.Zq,x.length=0,p=this.scale,A=Wt.alloc(),R=a.Pa.s,V=R.length,z=u.length;for(var ye=0;ye<V;ye++){var se=R[ye],De=Ed(se,se.actualBounds);e:{for(var ze=2/p,je=4/p,ot=0;ot<z;ot++){var Nt=u[ot];if(Nt.width!==0&&Nt.height!==0&&De.Vu(Nt.x-ze,Nt.y-ze,Nt.width+je,Nt.height+je)){De=!0;break e}}De=!1}De&&a.Oj(r,se,this,x,p,A,!0)}Wt.free(A),r.globalAlpha=f}r.restore(),r.Vc(!0),this.Yf&&md(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Jt(i),Jt(e),this.ld=!1}}else this.bd();n&&($i(this),this.bd(),Nr(this,!0))}else n?($i(this),this.bd(),Nr(this,!0)):this.bd()}};function el(e){e.pn!==!1&&(e.pn=!1,Cc(e,e.Aa,e.ya))}function Cc(e,t,n){Ac(e);var i=e.Mb;e.ta.resize(t*i,n*i,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function ku(e){var t=e.ta;if(t===null||e.wo.w())return!0;var n=e.Aa,i=e.ya,r=e.Ka,o=!1,a=e.gf?e.Db:0,l=e.Be?e.Db:0,u=r.clientWidth||n+a,f=r.clientHeight||i+l,p=e.viewportBounds;r=p.x;var x=p.y,A=p.width,R=p.height;if((u!==n+a||f!==i+l)&&(e.gf=!1,e.Be=!1,l=a=0,e.Aa=u,e.ya=f,o=e.pn=!0,Ac(e)),!e.hf||!e.viewportBounds.w())return!0;var z=e.ku,V=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var ye=e.documentBounds,se=0,De=0,ze=0,je=0,ot=p.width,Nt=p.height,Vn=e.rj;e.contentAlignment.sb()?(ye.width>ot&&(se=Vn.left,De=Vn.right),ye.height>Nt&&(ze=Vn.top,je=Vn.bottom)):(se=Vn.left,De=Vn.right,ze=Vn.top,je=Vn.bottom);var oi=ye.width+se+De,ei=ye.height+ze+je;Vn=e.scale;var Dn=oi>u/Vn,pn=ei>f/Vn;if(!(o||e.gf||e.Be||Dn||pn))return!0;se=ye.x-se,u=p.x,De=ye.right+De,f=p.right+a,ze=ye.y-ze;var er=p.y;ye=ye.bottom+je,p=p.bottom+l;var Vi="1px";if(je="1px",e.scrollMode===ph&&(Dn||pn)&&(Dn&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(Dn=1,se+1<u&&(Dn=Math.max((u-se)*Vn+e.Aa,Dn)),De>f+1&&(Dn=Math.max((De-f)*Vn+e.Aa,Dn)),ot+a+1<oi&&(Dn=Math.max((oi-ot)*Vn+e.Aa,Dn)),Vi=Dn.toString()+"px"),pn&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(Dn=1,ze+1<er&&(Dn=Math.max((er-ze)*Vn+e.ya,Dn)),ye>p+1&&(Dn=Math.max((ye-p)*Vn+e.ya,Dn)),Nt+l+1<ei&&(Dn=Math.max((ei-Nt)*Vn+e.ya,Dn)),je=Dn.toString()+"px")),Dn=Vi!=="1px",pn=je!=="1px",Dn&&pn||!Dn&&!pn||(pn&&(f-=e.Db),Dn&&(p-=e.Db),oi<ot+a||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(a=1,se+1<u&&(a=Math.max((u-se)*Vn+e.Aa,a)),De>f+1&&(a=Math.max((De-f)*Vn+e.Aa,a)),ot+1<oi&&(a=Math.max((oi-ot)*Vn+e.Aa,a)),Vi=a.toString()+"px"),Dn=Vi!=="1px",a=e.ya,Dn!==e.Be&&(a=Dn?e.ya-e.Db:e.ya+e.Db),ei<Nt+l||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(l=1,ze+1<er&&(l=Math.max((er-ze)*Vn+a,l)),ye>p+1&&(l=Math.max((ye-p)*Vn+a,l)),Nt+1<ei&&(l=Math.max((ei-Nt)*Vn+a,l)),je=l.toString()+"px"),pn=je!=="1px"),e.qr&&Dn===e.Be&&pn===e.gf)return n===e.Aa&&i===e.ya||e.bd(),!1;if(Dn!==e.Be&&(Vi==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=Dn,V.style.width=Vi,pn!==e.gf&&(je==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(l=ce.alloc(),pn?(t.style.left=e.Db+"px",e.position=l.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=l.h(e.pa.x-e.Db/e.scale,e.pa.y)),ce.free(l))),o&&Ac(e),e.gf=pn,V.style.height=je,e.gu=!0,o&&(e.pn=!0),t=z.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(ot+1<oi?t=(e.position.x-se)*Vn:se+1<u?t=z.scrollWidth-z.clientWidth:De>f+1&&(t=e.position.x*Vn)),e.tn)switch(e.bu){case"negative":t=-(z.scrollWidth-t-z.clientWidth);break;case"reverse":t=z.scrollWidth-t-z.clientWidth}return z.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(Nt+1<ei?z.scrollTop=(e.position.y-ze)*Vn:ze+1<er?z.scrollTop=z.scrollHeight-z.clientHeight:ye>p+1&&(z.scrollTop=e.position.y*Vn)),u=e.Aa,f=e.ya,z.style.width=u+(e.gf?e.Db:0)+"px",z.style.height=f+(e.Be?e.Db:0)+"px",n!==u||i!==f||e.animationManager.zb?(n=Wt.allocAt(r,x,A,R),e.onViewportBoundsChanged(n,e.viewportBounds,Vn,o),Wt.free(n),!1):!0}U=Y.prototype,U.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&Ke("Cannot add part "+e.toString()+" to "+this.toString()+". It is already a part of "+t.toString()),t=this.Qj(e.layerName),t===null&&(t=this.Qj("")),t===null&&Ke('Cannot add a Part when unable find a Layer named "'+e.layerName+'" and there is no default Layer'),e.layer!==t)){var n=t.oi(99999999,e,e.diagram===this);0<=n&&this.cb(qo,"parts",t,null,e,null,n),t.isTemporary||this.Ya(),e.C(1),n=e.layerChanged,n!==null&&n(e,null,t)}},U.oi=function(e){this.partManager.oi(e);var t=this;bd(e,function(n){hd(t,n)}),(e instanceof Xr||e instanceof nr&&e.placeholder!==null)&&e.v(),e.data!==null&&bd(e,function(n){gv(t.partManager,n)}),Sl(e)!==!0&&jh(e)!==!0||this.De.add(e),Zy(e,!0,this),Xy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},U.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&bd(e,function(n){vv(t.partManager,n,t)}),this.De.remove(e),Xy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},U.remove=function(e){Xc(this,e,!0)};function Xc(e,t,n){var i=t.layer;i!==null&&i.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),n=i.pc(-1,t,!1),0<=n&&e.cb(ia,"parts",i,t,null,n,null),e=t.layerChanged,e!==null&&e(t,i,null))}U.Is=function(e,t){if(t===void 0&&(t=!1),hn(e))for(var n=e.length,i=0;i<n;i++){var r=e[i];t&&!r.canDelete()||this.remove(r)}else for(n=new Zt,n.addAll(e),e=n.iterator;e.next();)n=e.value,t&&!n.canDelete()||this.remove(n)},U.Kj=function(e,t,n){return n===void 0&&(n=!1),this.partManager.Kj(e,t,n)},Y.prototype.moveParts=function(e,t,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=ch(this)),this.toolManager!==null){var r=new Zn;if(e!==null)if(hn(e))for(var o=0;o<e.length;o++)mu(this,r,e[o],n,i);else for(e=e.iterator;e.next();)mu(this,r,e.value,n,i);else{for(e=this.parts;e.next();)mu(this,r,e.value,n,i);for(e=this.nodes;e.next();)mu(this,r,e.value,n,i);for(e=this.links;e.next();)mu(this,r,e.value,n,i)}tc(this,r,t,i,n)}};function mu(e,t,n,i,r,o){if(!t.contains(n)&&(o===void 0&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(r===void 0&&(r=ch(e)),n instanceof Xn){if(t.add(n,e.Pd(r,n,n.location)),n instanceof nr&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)mu(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var l=a.fromNode,u=a.toNode;l!==null&&t.contains(l)&&u!==null&&t.contains(u)&&mu(e,t,a,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)mu(e,t,n.value,i,r)}else if(n instanceof Fn)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)mu(e,t,n.value,i,r);else n instanceof Xr||t.add(n,e.Pd(r,n,n.location))}function tc(e,t,n,i,r){if(t!==null&&t.count!==0){var o=ce.alloc(),a=ce.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||_h(e,t);for(var l=Dt(),u=Dt(),f=t.iterator,p=ce.alloc();f.next();){var x=f.key,A=f.value;if(x.Zc()){var R=hh(e,x,t);R!==null?l.push(new s(x,A,R)):(!r||x.canMove())&&(R=A.point,o.assign(R),e.computeMove(x,o.add(a),i,p),x.location=p,A.shifted===void 0&&(A.shifted=new ce),A.shifted.assign(p.re(R)))}else f.key instanceof Fn&&u.push(f.sa)}for(ce.free(p),r=l.length,f=0;f<r;f++)x=l[f],o.assign(x.info.point),x.Su.shifted===void 0&&(x.Su.shifted=new ce),x.node.location=o.add(x.Su.shifted);for(r=ce.alloc(),f=ce.alloc(),x=u.length,A=0;A<x;A++){var z=u[A];if(R=z.key,R instanceof Fn)if(R.suspendsRouting){R.Tg=null,p=R.fromNode;var V=R.toNode;if(e.draggedLink!==null&&i.dragsLink)if(V=z.value.point,R.dragComputation===null)t.add(R,e.Pd(i,R,a)),Eh(R,a.x-V.x,a.y-V.y);else{z=ce.allocAt(0,0),(p=R.i(0))&&p.w()&&z.assign(p);var ye=p=ce.alloc().assign(z).add(a);i.isGridSnapEnabled&&(i.isGridSnapRealtime||e.lastInput.up)&&(ye=ce.alloc(),Bh(e,R,p,ye,i)),p.assign(R.dragComputation(R,p,ye)).re(z),t.add(R,e.Pd(i,R,p)),Eh(R,p.x-V.x,p.y-V.y),ce.free(z),ce.free(p),ye!==p&&ce.free(ye)}else p!==null&&(r.assign(p.location),ye=t.I(p),ye!==null&&r.re(ye.point)),V!==null&&(f.assign(V.location),ye=t.I(V),ye!==null&&f.re(ye.point)),p!==null&&V!==null?r.Xa(f)?(p=z.value.point,V=o,V.assign(r),V.re(p),t.add(R,e.Pd(i,R,r)),Eh(R,V.x,V.y)):(R.suspendsRouting=!1,R.bb()):(z=z.value.point,p=p!==null?r:V!==null?f:a,t.add(R,e.Pd(i,R,p)),Eh(R,p.x-z.x,p.y-z.y))}else(R.fromNode===null||R.toNode===null)&&(p=z.value.point,t.add(R,e.Pd(i,R,a)),Eh(R,a.x-p.x,a.y-p.y))}ce.free(o),ce.free(a),ce.free(r),ce.free(f),Jt(l),Jt(u),n||(Qa(e),Tc(e,t))}}Y.prototype.computeMove=function(e,t,n,i){if(i===void 0&&(i=new ce),i.assign(t),e===null)return i;var r=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=ce.alloc(),Bh(this,e,t,r,n)),n=e.dragComputation!==null?e.dragComputation(e,t,r):r;var a=e.minLocation,l=a.x;isNaN(l)&&(l=o?Math.round(1e3*e.location.x)/1e3:e.location.x),a=a.y,isNaN(a)&&(a=o?Math.round(1e3*e.location.y)/1e3:e.location.y);var u=e.maxLocation,f=u.x;return isNaN(f)&&(f=o?Math.round(1e3*e.location.x)/1e3:e.location.x),u=u.y,isNaN(u)&&(u=o?Math.round(1e3*e.location.y)/1e3:e.location.y),i.h(Math.max(l,Math.min(n.x,f)),Math.max(a,Math.min(n.y,u))),r!==t&&ce.free(r),i};function ch(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function Bh(e,t,n,i,r){if(r===void 0&&(r=ch(e)),i.assign(n),t!==null){var o=e.grid;t=r.gridSnapCellSize,e=t.width,t=t.height;var a=r.gridSnapOrigin,l=a.x;if(a=a.y,r=r.gridSnapCellSpot,o!==null){var u=o.gridCellSize;isNaN(e)&&(e=u.width),isNaN(t)&&(t=u.height),o=o.gridOrigin,isNaN(l)&&(l=o.x),isNaN(a)&&(a=o.y)}o=ce.allocAt(0,0),o.yi(0,0,e,t,r),et.No(n.x,n.y,l+o.x,a+o.y,e,t,i),ce.free(o)}}function _h(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof Fn&&(t.suspendsRouting=!0)}function Tc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof Fn&&(n.suspendsRouting=!1,nv(n)&&n.bb())}e.Mr=!1}}function hh(e,t,n){return t=t.containingGroup,t!==null&&(e=hh(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}U=Y.prototype,U.Pd=function(e,t,n){if(n===void 0)return new Qc(mr);var i=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(i=!1),i?new Qc(new ce(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new Qc(n.copy())};function dh(e,t,n){if(t.diagram!==null&&t.diagram!==e&&Ke("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&Ke("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&Ke("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&Ke("Cannot move a Layer before or after itself: "+t)),t.diagram!==e){t=t.name,e=e.Wa,n=e.count;for(var i=0;i<n;i++)e.M(i).name===t&&Ke("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}U.Al=function(e){dh(this,e,null),e.Xe(this);var t=this.Wa,n=t.count-1;if(!e.isTemporary)for(;0<=n&&t.M(n).isTemporary;)n--;return t.Gb(n+1,e),this.cc!==null&&this.cb(qo,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},U.Ww=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(ia,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o,e);break}return this.cc!==null&&this.cb(qo,"layers",this,null,e,null,o),this.N(),0>i&&this.Ya(),this},U.Cy=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(ia,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o+1,e);break}return this.cc!==null&&this.cb(qo,"layers",this,null,e,null,o+1),this.N(),0>i&&this.Ya(),this},U.kA=function(e){if(e.diagram!==this&&Ke("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),e.name!==""){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var i=t.value,r=i.layerName;r!==e.name?i.layerName=r:i.layerName=""}this.cc!==null&&this.cb(ia,"layers",this,e,null,n,null),this.N(),this.Ya()}}},U.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},U.Yw=function(e){return this.pf===null&&(this.pf=new Xt),this.pf.add(e),this.model.Pe(e),this},U.mA=function(e){this.pf!==null&&(this.pf.remove(e),this.pf.count===0&&(this.pf=null)),this.model.ik(e)},U.Pe=function(e){return this.zg===null&&(this.zg=new Xt),this.zg.add(e),this},U.ik=function(e){this.zg!==null&&(this.zg.remove(e),this.zg.count===0&&(this.zg=null))},U.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==Es&&(this.isModified=!0),this.zg!==null)for(var t=this.zg,n=t.length,i=0;i<n;i++)t.M(i)(e)},U.cb=function(e,t,n,i,r,o,a){o===void 0&&(o=null),a===void 0&&(a=null);var l=new Bo;l.diagram=this,l.change=e,l.propertyName=t,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=a,this.ds(l)},U.g=function(e,t,n,i,r){this.cb(Eo,e,this,t,n,i,r)},Y.prototype.changeState=function(e,t){if(e!==null&&e.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=e.change;if(i===Eo){var r=e.object;if(Zo(r,e.propertyName,e.I(t)),r instanceof st){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===qo){var a=e.object,l=e.newParam,u=e.newValue;if(a instanceof An)if(typeof l=="number"&&u instanceof st){t?a.pc(l):a.Gb(l,u);var f=a.part;f!==null&&f.Wb()}else typeof l=="number"&&u instanceof es&&(u.isRow?Sy(a,l,t?void 0:u):Ey(a,l,t?void 0:u));else if(a instanceof m){var p=e.oldParam===!0;typeof l=="number"&&u instanceof Ai&&(t?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),a.pc(p?l:-1,u,p)):a.oi(l,u,p))}else a instanceof Y?typeof l=="number"&&u instanceof m&&(t?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):Ke("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(i===ia){var x=e.object,A=e.oldParam,R=e.oldValue;if(x instanceof An)typeof A=="number"&&R instanceof st?t?x.Gb(A,R):x.pc(A):typeof A=="number"&&R instanceof es&&(R.isRow?Sy(x,A,t?R:void 0):Ey(x,A,t?R:void 0));else if(x instanceof m){var z=e.newParam===!0;typeof A=="number"&&R instanceof Ai&&(t?0>x.Pa.indexOf(R)&&x.oi(A,R,z):(R.isSelected=!1,R.isHighlighted=!1,R.Wb(),x.pc(z?A:-1,R,z)))}else x instanceof Y?typeof A=="number"&&R instanceof m&&(t?(R.Xe(this),this.Wa.Gb(A,R)):this.Wa.mb(A)):Ke("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==Es&&Ke("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Y.prototype.Ea=function(e){return this.undoManager.Ea(e)},Y.prototype.eb=function(e){return this.undoManager.eb(e)},Y.prototype.Kf=function(){return this.undoManager.Kf()},Y.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Y.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Y.prototype.rp=function(){this.partManager.rp()};function np(e,t,n){var i=e.animationManager;if(e.vb||e.ld)e.Ca=n,Ac(e),e.N(),e.Ee=!0,i.zb&&(za(i)||i.ce.add(i.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Ac(e);else{e.vb=!0;var r=e.viewportBounds.copy(),o=e.Aa,a=e.ya,l=e.zoomPoint.x,u=e.zoomPoint.y,f=e.contentAlignment;isNaN(l)&&(f.$c()?f.Hf(Ol)?l=0:f.Hf(Xa)&&(l=o-1):l=f.sb()?f.x*(o-1):o/2),isNaN(u)&&(f.$c()?f.Hf(os)?u=0:f.Hf(Oa)&&(u=a-1):u=f.sb()?f.y*(a-1):a/2),e.scaleComputation===null||e.animationManager.defaultAnimation.isAnimating||(n=e.scaleComputation(e,n)),n<e.minScale&&(n=e.minScale),n>e.maxScale&&(n=e.maxScale),o=ce.allocAt(e.pa.x+l/t-l/n,e.pa.y+u/t-u/n),e.position=o,ce.free(o),e.Ca=n,Ac(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),Ko(e,!1),i.zb&&(za(i)||i.ce.add(i.H,"scale",t,e.Ca))}}Y.prototype.onViewportBoundsChanged=function(e,t,n,i){if(!e.D(t)){i===void 0&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;r===null||!r.isViewportSized||this.autoScale!==cl||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof To&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Qu(r,this)),this.vb||this.invalidateViewport(e,t),Nc(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(t)&&o.bb()})}};function Nc(e,t){var n=e.fe;if(n!==null&&n.visible){for(var i=mi.alloc(),r=1,o=1,a=n.O.s,l=a.length,u=0;u<l;u++){var f=a[u],p=Math.abs(f.interval);2>p||(Cg(f.figure)?o=o*p/et.vx(o,p):r=r*p/et.vx(r,p))}if(a=n.gridCellSize,i.h(o*a.width,r*a.height),t!==void 0)r=t.width,o=t.height,e=t.x,a=t.y;else{if(t=Wt.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Wt.free(t);return}r=t.width,o=t.height,e=t.x,a=t.y,Wt.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=ce.alloc(),et.No(e,a,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),mi.free(i),n.part.location=t,ce.free(t)}}Y.prototype.clearSelection=function(e){e===void 0&&(e=!1);var t=this.selection;if(t.count!==0){e||this.R("ChangingSelection",t);for(var n=t.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;t.ka(),t.clear(),t.freeze(),e||this.R("ChangedSelection",t)}},Y.prototype.select=function(e){e!==null&&e.diagram===this&&(!e.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),e.isSelected=!0,this.R("ChangedSelection",this.selection))},Y.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),hn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];i instanceof Ai||Ke("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(e=e.iterator;e.next();)t=e.value,t instanceof Ai||Ke("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},Y.prototype.clearHighlighteds=function(){var e=this.highlighteds;if(0<e.count){for(var t=e.Fa(),n=t.length,i=0;i<n;i++)t[i].isHighlighted=!1;e.ka(),e.clear(),e.freeze()}},U=Y.prototype,U.Iz=function(e){e!==null&&e.diagram===this&&(!e.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),e.isHighlighted=!0)},U.Jz=function(e){e=new Zt().addAll(e);for(var t=this.highlighteds.copy().hp(e).iterator;t.next();)t.value.isHighlighted=!1;for(e=e.iterator;e.next();)t=e.value,t instanceof Ai||Ke("Diagram.highlightCollection given something that is not a Part: "+t),t.isHighlighted=!0},U.scroll=function(e,t,n){n===void 0&&(n=1);var i=t==="up"||t==="down",r=0,o=ce.alloc();if(e==="pixel")r=n;else if(e==="line")r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(e==="page")e=i?this.viewportBounds.height:this.viewportBounds.width,e*=this.scale,e!==0&&(r=n*Math.max(e-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(e==="document"){r=this.documentBounds,n=this.viewportBounds,t==="up"?this.position=o.h(n.x,r.y):t==="left"?this.position=o.h(r.x,n.y):t==="down"?this.position=o.h(n.x,r.bottom-n.height):t==="right"&&(this.position=o.h(r.right-n.width,n.y)),ce.free(o);return}Ke("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+e)}r/=this.scale,n=this.position,t==="up"?this.position=o.h(n.x,n.y-r):t==="down"?this.position=o.h(n.x,n.y+r):t==="left"?this.position=o.h(n.x-r,n.y):t==="right"?this.position=o.h(n.x+r,n.y):Ke("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),ce.free(o)},U.tv=function(e){var t=this.viewportBounds;t.Re(e)||(e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e)},U.es=function(e){var t=this.viewportBounds;e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e},U.op=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),e.copy().transform(this.Ab)},U.zA=function(e){var t=this.Ab,n=e.x,i=e.y,r=n+e.width,o=i+e.height,a=t.m11,l=t.m12,u=t.m21,f=t.m22,p=t.dx,x=t.dy,A=n*a+i*u+p;t=n*l+i*f+x;var R=r*a+i*u+p;return e=r*l+i*f+x,i=n*a+o*u+p,n=n*l+o*f+x,a=r*a+o*u+p,r=r*l+o*f+x,o=Math.min(A,R),A=Math.max(A,R),R=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,i),A=Math.max(A,i),R=Math.min(R,n),t=Math.max(t,n),o=Math.min(o,a),A=Math.max(A,a),R=Math.min(R,r),t=Math.max(t,r),new Wt(o,R,A-o,t-R)},U.Ps=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),Di(e.copy(),this.Ab)};function d0(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function ip(e){return e=pf.get(e),e!==null?new e:new ho}Y.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,i=e.propertyName;if(n===Es&&i[0]==="S")if(i==="StartingFirstTransaction"){var r=this;e=this.toolManager,e.mouseDownTools.each(function(u){return u.diagram=r}),e.mouseMoveTools.each(function(u){return u.diagram=r}),e.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"?(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc(),this.R("ChangingSelection",this.selection)):i==="StartedTransaction"&&(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc());else if(this.aa){this.aa=!1;try{if(e.modelChange===""&&n===Es){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Qa(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ua(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(){t.isModified=!1},1);var a=e.isTransactionFinished;if(a&&(d0(this),this.As.clear(),No(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;on(function(){l.currentTool.standardMouseOver(),l.Rt=!1},10)}}}finally{this.aa=!0}}}};function hd(e,t){t=t.O.s;for(var n=t.length,i=0;i<n;i++)zh(e,t[i])}function zh(e,t){if(t instanceof Hl){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Zt&&n.Bg.add(e);var i=t.Eg;if(i!==null&&i.sq===!0&&t.diagram!==null&&t.diagram.Xn.add(t),n.hn)if(n=n.getAttribute("src")||"",i=e.Og.I(n),i===null)i=[],i.push(t),e.Og.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}}function rp(e,t){if(t instanceof Hl){var n=t.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=e.Og.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&(e.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 Zt&&n.Bg.remove(e),Af(i));break}}}}}Y.prototype.Wd=function(){this.partManager.Wd()},Y.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},Y.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},Y.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},Y.prototype.Vb=function(e){return this.partManager.Vb(e)},Y.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},U=Y.prototype,U.Lc=function(e){return this.partManager.Lc(e)},U.ii=function(e){return this.partManager.ii(e)},U.Kc=function(e){return this.partManager.Kc(e)},U.ms=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ms.apply(this.partManager,t instanceof Array?t:Fr(fr(t)))},U.ls=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ls.apply(this.partManager,t instanceof Array?t:Fr(fr(t)))};function Ac(e){var t=e.pa,n=e.Ca;e.Rw.h(t.x,t.y,Math.max(e.Aa,0)/n,Math.max(e.ya,0)/n),e.vd=!0}function op(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),Ko(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}U.Va=function(){if(this.Zi){var e=Wt.alloc();op(this,this.computeBounds(e)),Wt.free(e)}},U.rz=function(){for(var e=new Zt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&e.add(n)}for(t=this.links;t.next();)n=t.value,n.isTopLevel&&e.add(n);return e.iterator},U.qz=function(){return this.ai.iterator},U.Uz=function(e){Qa(this),e&&uf(this,!0),this.ld?ap(this,!1):(this.Jk=!0,bs(this))};function uf(e,t){for(var n=e.ai.iterator;n.next();)f0(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function f0(e,t,n){if(t!==null){for(var i=t.gl.iterator;i.next();)f0(e,i.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function ap(e,t){if(e.xh&&!e.lt){var n=e.aa;e.aa=!0;var i=e.undoManager.transactionLevel,r=e.layout,o=e.animationManager;try{i===0&&(e.undoManager.isInternalTransaction=!0,e.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||_a(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)sp(e,a.value,t,i);r.isValidLayout||(!t||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(e),Qa(e),r.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,i===0&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||i!==0&&i!==1||ua(o),e.aa=n}}}function sp(e,t,n,i){if(t!==null){for(var r=t.gl.iterator;r.next();)sp(e,r.value,n,i);r=t.layout,r===null||r.isValidLayout||(!n||r.isRealtime||i===0?(t.rh=!t.location.w(),r.doLayout(t),t.C(32),ea(e,t),r.isValidLayout=!0):e.xh=!0)}}U.yz=function(){for(var e=new Xt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&n.kh()===null&&e.add(n)}return e.iterator};function cg(e){function t(r){var o=r.toLowerCase(),a=new Xt;n.add(r,a),n.add(o,a),i.add(r,r),i.add(o,r)}var n=new Zn,i=new Zn;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=i}function p0(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function cf(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;Ke("Unknown DiagramEvent name: "+t)}U.Bj=function(e,t){return e=cf(this,e),e!==null&&e.add(t),this},U.am=function(e,t){e=cf(this,e),e!==null&&e.remove(t)},U.R=function(e,t,n){var i=cf(this,e),r=new hu;if(r.diagram=this,e=p0(this,e),e!==null&&(r.name=e),t!==void 0&&(r.subject=t),n!==void 0&&(r.parameter=n),t=i.length,t===1)i.M(0)(r);else if(t!==0)for(i=i.Fa(),n=0;n<t;n++)(0,i[n])(r)};function hf(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t===e.toolManager.findTool("Dragging")?!e.Mr||t.isComplexRoutingRealtime:!0}U.Yj=function(e,t){return df(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},Y.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?na(this,e):e.assign(this.documentBounds)};function df(e,t,n,i){var r=e.Xh;if(r===null&&(e.Xh=r=new Fp(e.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),n!==null&&(n=m0(e,n)),n===null){t=Wt.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,l=a.layer;l!==null&&l.visible&&!l.isTemporary&&ff(e,a,i,t)}Wt.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),r.initialize(t)),t=Wt.alloc(),o=n.memberParts;o.next();)a=o.value,a instanceof Xn&&ff(e,a,i,t);Wt.free(t)}r.group=n,r.Yx=i,r.vs=!1}else t&&m1(r);return r}function m0(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?m0(e,t.containingGroup):null}function ff(e,t,n,i){if(t!==n&&t.isVisible()){if(t.avoidable&&!t.isLinkLabel){t=t.getAvoidableRect(i),e=e.Xh;var r=t.x,o=t.y;if(Rf(e,r,o))for(n=(o-e.Od)/e.sc|0,i=Math.min((r+t.width-e.Nd)/e.rc|0,e.di),t=Math.min((o+t.height-e.Od)/e.sc|0,e.ei),r=(r-e.Nd)/e.rc|0;r<=i;r++)if(o=e.ac[r],o.fill)o.fill(Ch,n,t+1);else for(var a=n;a<=t;a++)o[a]=Ch}else if(t instanceof nr)for(t=t.memberParts;t.next();)r=t.value,r instanceof Xn&&ff(e,r,n,i)}}function fh(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}Y.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():lp(this)};function lp(e){e.vk===-1&&(e.vk=on(function(){if(e.vk!==-1&&(e.ug(),e.lastInput.event!==null)){var t=e.computeAutoScrollPosition(e.wp);t.Xa(e.position)||(e.position=t,e.lastInput.documentPoint=e.Ps(e.wp),e.doMouseMove(),e.Zi=!0,t=Wt.alloc(),e.computeBounds(t),t.ed(e.documentBounds),op(e,t),Wt.free(t),e.Fc=!0,e.bd(),lp(e))}},e.vp))}Y.prototype.ug=function(){this.vk!==-1&&(Ve.clearTimeout(this.vk),this.vk=-1)},Y.prototype.computeAutoScrollPosition=function(e){var t=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var i=this.viewportBounds,r=this.scale;i=Wt.allocAt(0,0,i.width*r,i.height*r);var o=ce.allocAt(0,0);if(e.x>=i.x&&e.x<i.x+n.left&&this.allowHorizontalScroll){var a=Math.max(this.scrollHorizontalLineChange,1);a|=0,o.x-=a,e.x<i.x+n.left/2&&(o.x-=a),e.x<i.x+n.left/4&&(o.x-=4*a)}else e.x<=i.x+i.width&&e.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>i.x+i.width-n.right/2&&(o.x+=a),e.x>i.x+i.width-n.right/4&&(o.x+=4*a));return e.y>=i.y&&e.y<i.y+n.top&&this.allowVerticalScroll?(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y-=a,e.y<i.y+n.top/2&&(o.y-=a),e.y<i.y+n.top/4&&(o.y-=4*a)):e.y<=i.y+i.height&&e.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>i.y+i.height-n.bottom/2&&(o.y+=a),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*a)),o.Xa(mr)||(t=new ce(t.x+o.x/r,t.y+o.y/r)),Wt.free(i),ce.free(o),t},U=Y.prototype,U.Cs=function(){return null},U.av=function(){return null},U.bs=function(e,t){this.pj.add(e,t)},U.Fu=function(e){(this.Pw=e)||this.nodes.each(function(t){t instanceof nr&&(t.$p=null)})};function Dd(e,t,n){function i(){var p=+new Date;for(o=!0,a.reset();a.next();)if(!a.value[0].al){o=!1;break}o||p-f>u?t(n,r,l):Ve.requestAnimationFrame(i)}for(var r=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if(typeof r!="function"||o)return t(n,r,e);var l=e,u=n.callbackTimeout||300,f=+new Date;return Ve.requestAnimationFrame(function(){i()}),null}U.Wz=function(e){return Ca?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},U.Jx=function(e){return e===void 0&&(e={}),Dd(this,this.Xz,e)},U.Xz=function(e,t,n){var i=g0(n,e,"canvas",null);if(i===null)return null;n=i.Z.canvas;var r=null;if(n!==null)switch(r=e.returnType,r===void 0?r="string":r=r.toLowerCase(),r){case pd+"data":r=i.getImageData(0,0,n.width,n.height);break;case pd:i=(e.document||document).createElement("img"),i.src=n.toDataURL(e.type,e.details),r=i;break;case"blob":return typeof t!="function"&&Ke('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:r=n.toDataURL(e.type,e.details)}return typeof t=="function"?(t(r),null):r};function g0(e,t,n,i){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&Ke("properties argument must be an Object.");var r=t.size||null,o=t.scale||null;t.scale!==void 0&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;t.maxSize===void 0&&(a=n==="SVG"?new mi(1/0,1/0):new mi(2e3,2e3));var l=t.position||null,u=t.parts||null,f=t.padding===void 0?1:t.padding,p=t.background||null,x=t.omitTemporary;x===void 0&&(x=!0);var A=t.document||document,R=t.elementFinished||null,z=t.showTemporary;z===void 0&&(z=!x),t=t.showGrid,t===void 0&&(t=z),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof f=="number"?f=new vi(f):f instanceof vi||Ke("MakeImage padding must be a Margin or a number."),f.left=Math.max(f.left,0),f.right=Math.max(f.right,0),f.top=Math.max(f.top,0),f.bottom=Math.max(f.bottom,0),e.ib.Vc(!0),x=new Hu(null,A,void 0,!0);var V=x.context;if(!(r||o||u||l))return x.width=e.Aa+Math.ceil(f.left+f.right),x.height=e.ya+Math.ceil(f.top+f.bottom),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=A,i.hs=R,xa(e,i.context,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,z,t),i.context):(e.Xm=!1,xa(e,V,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,z,t),e.Xm=!0,x.context);var ye=e.Pp,se=e.documentBounds.copy();if(se.Fv(e.yb),z)for(var De=e.Wa.s,ze=De.length,je=0;je<ze;je++){var ot=De[je];if(ot.visible&&ot.isTemporary){ot=ot.Pa.s;for(var Nt=ot.length,Vn=0;Vn<Nt;Vn++){var oi=ot[Vn];oi.isInDocumentBounds&&oi.isVisible()&&(oi=oi.actualBounds,oi.w()&&se.ed(oi))}}}if(De=new ce(se.x,se.y),u!==null){for(ze=new Wt(0,0,0,0),je=!0,ot=u.iterator,ot.reset();ot.next();)Nt=ot.value,Nt instanceof Ai&&(Vn=Nt.layer,Vn!==null&&!Vn.visible||Vn!==null&&!z&&Vn.isTemporary||!Nt.isVisible()||(Nt=Nt.actualBounds,Nt.w()&&(je?(je=!1,ze.assign(Nt)):ze.ed(Nt))));se.width=ze.width,se.height=ze.height,De.x=ze.x,De.y=ze.y}return l!==null&&l.w()&&(De=l,o||(o=ye)),ze=l=0,f!==null&&(l=f.left+f.right,ze=f.top+f.bottom),je=ot=0,r!==null&&(ot=r.width,je=r.height,isFinite(ot)&&(ot=Math.max(0,ot-l)),isFinite(je)&&(je=Math.max(0,je-ze))),r!==null&&o!==null?(o==="NaN"&&(o=ye),r.w()?(r=ot,se=je):isNaN(je)?(r=ot,se=se.height*o):(r=se.width*o,se=je)):r!==null?r.w()?(o=Math.min(ot/se.width,je/se.height),r=ot,se=je):isNaN(je)?(o=ot/se.width,r=ot,se=se.height*o):(o=je/se.height,r=se.width*o,se=je):o!==null?o==="NaN"&&a.w()?(o=Math.min((a.width-l)/se.width,(a.height-ze)/se.height),o>ye?(o=ye,r=se.width,se=se.height):(r=a.width,se=a.height)):(r=se.width*o,se=se.height*o):(o=ye,r=se.width,se=se.height),f!==null?(r+=l,se+=ze):f=new vi(0),a!==null&&(ye=a.width,a=a.height,isNaN(ye)&&(ye=2e3),isNaN(a)&&(a=2e3),isFinite(ye)&&(r=Math.min(r,ye)),isFinite(a)&&(se=Math.min(se,a))),x.width=Math.ceil(r),x.height=Math.ceil(se),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=A,i.hs=R,xa(e,i.context,f,new mi(Math.ceil(r),Math.ceil(se)),o,De,u,p,z,t),i.context):(e.Xm=!1,xa(e,V,f,new mi(Math.ceil(r),Math.ceil(se)),o,De,u,p,z,t),e.Xm=!0,x.context)}ft.Object.defineProperties(Y.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof w||(e===""&&(e="default"),e=e.toLowerCase(),e!==this.nl&&(this.nl=e,e==="default"||e==="canvas"?(e=this.pj.get("svg"),e!==null&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):e==="svg"?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new kc(this,Ve.document),this.bs("svg",e)),this.div!==null&&this.div.appendChild(e.Oa),this.ib=e.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))):e!=="debug"||this.pj.contains("SVG")||(e=new kc(this,Ve.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;t!==null?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",this.ta!==null&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),t=this.toolManager,t!==null&&(t.mouseDownTools.each(function(n){n.cancelWaitAfter()}),t.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),t.mouseUpTools.each(function(n){n.cancelWaitAfter()})),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ve,"resize",this.Ov,!1),this.removeEventListener(Ve,"wheel",this.$j,!0),pt===this&&(pt=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),ki(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,e!==null&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Rt(e,"0 <= value <= 1",Y,"opacity"),this.pb=e,this.g("opacity",t,e),this.N())}},validCycle:{get:function(){return this.wu},set:function(e){var t=this.wu;t!==e&&(this.wu=e,this.g("validCycle",t,e))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var e=this.cc;return e===null?!1:e.isReadOnly},set:function(e){var t=this.cc;t!==null&&(t.isReadOnly=e)}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},isEnabled:{get:function(){return this.Jd},set:function(e){var t=this.Jd;t!==e&&(this.Jd=e,this.g("isEnabled",t,e))}},allowClipboard:{get:function(){return this.Us},set:function(e){var t=this.Us;t!==e&&(this.Us=e,this.g("allowClipboard",t,e))}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowDragOut:{get:function(){return this.Vs},set:function(e){var t=this.Vs;t!==e&&(this.Vs=e,this.g("allowDragOut",t,e))}},allowDrop:{get:function(){return this.Ws},set:function(e){var t=this.Ws;t!==e&&(this.Ws=e,this.g("allowDrop",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowInsert:{get:function(){return this.Ys},set:function(e){var t=this.Ys;t!==e&&(this.Ys=e,this.g("allowInsert",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}},allowUndo:{get:function(){return this.Zs},set:function(e){var t=this.Zs;t!==e&&(this.Zs=e,this.g("allowUndo",t,e))}},allowZoom:{get:function(){return this.at},set:function(e){var t=this.at;t!==e&&(this.at=e,this.g("allowZoom",t,e))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(e){var t=this.nn;t!==e&&(this.nn=e,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",t,e),Ko(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(e){var t=this.mn;t!==e&&(this.mn=e,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",t,e),Ko(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(e){var t=this.Xs;t!==e&&(this.Xs=e,this.g("allowHorizontalScroll",t,e),Ko(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(e){var t=this.$s;t!==e&&(this.$s=e,this.g("allowVerticalScroll",t,e),Ko(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&Rt(e,">= 0",Y,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&Rt(e,">= 0",Y,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(e===""&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(t!==null&&n!==null){this.it=e;var i=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===i&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===i&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===i&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){e===""&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),e===null&&(e=this.defaultTool),e!==null&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&(e=this.selection.count-e,0<e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n<e;n++)t[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Rt(e,">= 0",Y,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?e.currentTransaction!==null?!0:this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||d0(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&Ke("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=_n(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,_a(this.animationManager,"Model"),t&&(this.pf!==null&&this.pf.each(function(o){return t.ik(o)}),t.ik(this.Oc)),this.cc=e,this.partManager=ip(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);e.Pe(this.Hb),this.partManager.addAllModeledParts(),e.ik(this.Hb),e.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return e.Pe(o)}),this.vb=i,this.Ya(),this.vb||this.N(),t&&e.undoManager.copyProperties(t.undoManager)}}},aa:{get:function(){return this.rw},set:function(e){this.rw=e}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(e){this.Iw=e}},Ns:{get:function(){return this.ou},set:function(e){this.ou=e}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(e){var t=this.Lg.I("");t!==e&&(this.Lg.add("",e),this.g("nodeTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(e){var t=this.Lg;t!==e&&(this.Lg=e,this.g("nodeTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(e){var t=this.Yi.I("");t!==e&&(this.Yi.add("",e),this.g("groupTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(e){var t=this.Yi;t!==e&&(this.Yi=e,this.g("groupTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(e){var t=this.Kh.I("");t!==e&&(this.Kh.add("",e),this.g("linkTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(e){var t=this.Kh;t!==e&&(this.Kh=e,this.g("linkTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(e){var t=this.ta;t!==null&&(t=t.Oa,t instanceof SVGElement||(e?(this.lastInput.bubbles=!1,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.addEventListener(Ve,"pointermove",this.dk,!0),this.addEventListener(Ve,"pointerdown",this.ui,!0),this.addEventListener(Ve,"pointerup",this.fk,!0),this.addEventListener(Ve,"pointerout",this.ek,!0),this.addEventListener(Ve,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(Ve,"wheel",this.$j,!0),this.addEventListener(Ve,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ve,"pointermove",this.dk,!0),this.removeEventListener(Ve,"pointerdown",this.ui,!0),this.removeEventListener(Ve,"pointerup",this.fk,!0),this.removeEventListener(Ve,"pointerout",this.ek,!0),this.removeEventListener(Ve,"pointercancel",this.ck,!0),this.addEventListener(t,"pointermove",this.dk,!1),this.addEventListener(t,"pointerdown",this.ui,!1),this.addEventListener(t,"pointerup",this.fk,!1),this.addEventListener(t,"pointerout",this.ek,!1),this.addEventListener(t,"pointercancel",this.ck,!1),this.removeEventListener(Ve,"wheel",this.$j,!0),this.removeEventListener(Ve,"selectstart",this.preventDefault,!1),this.addEventListener(t,"wheel",this.$j,!1)),this.qw=e))}},position:{get:function(){return this.pa},set:function(e){var t=ce.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),ja(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ac(this):(this.vb=!0,e=this.scale,hs(this,this.Sp,this.Aa/e,this.ya/e,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}ce.free(t)}},initialPosition:{get:function(){return this.zt},set:function(e){this.zt.D(e)||(this.zt=e.J())}},initialScale:{get:function(){return this.At},set:function(e){this.At!==e&&(this.At=e)}},grid:{get:function(){return this.fe===null&&(this.fe=Ao(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=Ao(this)),e.type!==An.Grid&&Ke("Diagram.grid must be a Panel of type Panel.Grid");var n=t.panel;n!==null&&n.remove(t),this.fe=e,e.name="GRID",n!==null&&n.add(e),Nc(this),this.N(),this.g("grid",t,e)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(e){var t=this.viewSize;t.D(e)||(this.wo=e=e.J(),this.ya=this.Aa=0,e.w()?(this.Aa=e.width,this.ya=e.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ac(this),this.Ya(),this.g("viewSize",t,e),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(e){var t=this.ut;t.D(e)||(e.width!==-1/0&&e.height!==1/0&&e.height!==-1/0||Ke("fixedBounds width/height must not be Infinity"),this.ut=e=e.J(),this.Ya(),this.g("fixedBounds",t,e))}},scrollMargin:{get:function(){return this.rj},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.rj;t.D(e)||(this.rj=e=e.J(),this.g("scrollMargin",t,e),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(e){var t=this.sj;t!==e&&(this.sj=e,e===ph&&Ko(this,!1),this.g("scrollMode",t,e),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(e){var t=this.nu;t!==e&&(this.nu=e,this.g("scrollsPageOnFocus",t,e))}},positionComputation:{get:function(){return this.Zt},set:function(e){var t=this.Zt;t!==e&&(this.Zt=e,Ko(this,!1),this.g("positionComputation",t,e))}},scaleComputation:{get:function(){return this.fu},set:function(e){var t=this.fu;t!==e&&(this.fu=e,np(this,this.scale,this.scale),this.g("scaleComputation",t,e))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(e){var t=this.It;t!==e&&(this.It=e,this.g("isVirtualized",t,e))}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&np(this,t,e)}},defaultScale:{get:function(){return this.Pp},set:function(e){this.Pp=e}},autoScale:{get:function(){return this.yh},set:function(e){var t=this.yh;t!==e&&(this.yh=e,this.g("autoScale",t,e),e!==cl&&Ko(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(e){var t=this.Fg;t!==e&&(this.Fg=e,this.g("initialAutoScale",t,e))}},initialViewportSpot:{get:function(){return this.Bt},set:function(e){var t=this.Bt;t!==e&&(e.sb()||Ke("initialViewportSpot must be a specific Spot: "+e),this.Bt=e,this.g("initialViewportSpot",t,e))}},initialDocumentSpot:{get:function(){return this.yt},set:function(e){var t=this.yt;t!==e&&(e.sb()||Ke("initialViewportSpot must be a specific Spot: "+e),this.yt=e,this.g("initialDocumentSpot",t,e))}},minScale:{get:function(){return this.Ot},set:function(e){var t=this.Ot;t!==e&&(0<e?(this.Ot=e,this.g("minScale",t,e),e>this.scale&&(this.scale=e)):Rt(e,"> 0",Y,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0<e?(this.Mt=e,this.g("maxScale",t,e),e<this.scale&&(this.scale=e)):Rt(e,"> 0",Y,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),Ko(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(e.diagram!==null&&Ke("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.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(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)Np(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==mh&&e!==Ja&&e!==mf&&Ke("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new mi(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),ft.Object.defineProperties(Y,{licenseKey:{get:function(){return pp.jc()},set:function(e){pp.add(e.replace(/\s/g,""))}},version:{get:function(){return fd}}}),Y.prototype.makeImageData=Y.prototype.Jx,Y.prototype.makeImage=Y.prototype.Wz,Y.prototype.cacheGroupExternalLinks=Y.prototype.Fu,Y.prototype.addRenderer=Y.prototype.bs,Y.prototype.makeSVG=Y.prototype.av,Y.prototype.makeSvg=Y.prototype.Cs,Y.prototype.stopAutoScroll=Y.prototype.ug,Y.prototype.doAutoScroll=Y.prototype.gs,Y.prototype.isUnoccupied=Y.prototype.Yj,Y.prototype.raiseDiagramEvent=Y.prototype.R,Y.prototype.removeDiagramListener=Y.prototype.am,Y.prototype.addDiagramListener=Y.prototype.Bj,Y.prototype.findTreeRoots=Y.prototype.yz,Y.prototype.layoutDiagram=Y.prototype.Uz,Y.prototype.findTopLevelGroups=Y.prototype.qz,Y.prototype.findTopLevelNodesAndLinks=Y.prototype.rz,Y.prototype.ensureBounds=Y.prototype.Va,Y.prototype.findLinksByExample=Y.prototype.ls,Y.prototype.findNodesByExample=Y.prototype.ms,Y.prototype.findLinkForData=Y.prototype.Kc,Y.prototype.findNodeForData=Y.prototype.ii,Y.prototype.findPartForData=Y.prototype.Lc,Y.prototype.findLinkForKey=Y.prototype.findLinkForKey,Y.prototype.findNodeForKey=Y.prototype.Vb,Y.prototype.findPartForKey=Y.prototype.findPartForKey,Y.prototype.rebuildParts=Y.prototype.Wd,Y.prototype.transformViewToDoc=Y.prototype.Ps,Y.prototype.transformRectDocToView=Y.prototype.zA,Y.prototype.transformDocToView=Y.prototype.op,Y.prototype.centerRect=Y.prototype.es,Y.prototype.scrollToRect=Y.prototype.tv,Y.prototype.scroll=Y.prototype.scroll,Y.prototype.highlightCollection=Y.prototype.Jz,Y.prototype.highlight=Y.prototype.Iz,Y.prototype.selectCollection=Y.prototype.rA,Y.prototype.select=Y.prototype.select,Y.prototype.updateAllRelationshipsFromData=Y.prototype.rp,Y.prototype.updateAllTargetBindings=Y.prototype.updateAllTargetBindings,Y.prototype.commit=Y.prototype.commit,Y.prototype.rollbackTransaction=Y.prototype.Kf,Y.prototype.commitTransaction=Y.prototype.eb,Y.prototype.startTransaction=Y.prototype.Ea,Y.prototype.raiseChanged=Y.prototype.g,Y.prototype.raiseChangedEvent=Y.prototype.cb,Y.prototype.removeChangedListener=Y.prototype.ik,Y.prototype.addChangedListener=Y.prototype.Pe,Y.prototype.removeModelChangedListener=Y.prototype.mA,Y.prototype.addModelChangedListener=Y.prototype.Yw,Y.prototype.findLayer=Y.prototype.Qj,Y.prototype.removeLayer=Y.prototype.kA,Y.prototype.addLayerAfter=Y.prototype.Cy,Y.prototype.addLayerBefore=Y.prototype.Ww,Y.prototype.addLayer=Y.prototype.Al,Y.prototype.moveParts=Y.prototype.moveParts,Y.prototype.copyParts=Y.prototype.Kj,Y.prototype.removeParts=Y.prototype.Is,Y.prototype.remove=Y.prototype.remove,Y.prototype.add=Y.prototype.add,Y.prototype.clearDelayedGeometries=Y.prototype.bx,Y.prototype.setProperties=Y.prototype.nm,Y.prototype.attach=Y.prototype.Du,Y.prototype.set=Y.prototype.set,Y.prototype.resetInputOptions=Y.prototype.Sx,Y.prototype.setInputOption=Y.prototype.sA,Y.prototype.getInputOption=Y.prototype.Ql,Y.prototype.resetRenderingHints=Y.prototype.Tx,Y.prototype.setRenderingHint=Y.prototype.Xx,Y.prototype.getRenderingHint=Y.prototype.Gf,Y.prototype.maybeUpdate=Y.prototype.bd,Y.prototype.requestUpdate=Y.prototype.$b,Y.prototype.delayInitialization=Y.prototype.Xy,Y.prototype.isUpdateRequested=Y.prototype.Pz,Y.prototype.invalidateDocumentBounds=Y.prototype.Ya,Y.prototype.findObjectsNear=Y.prototype.og,Y.prototype.findPartsNear=Y.prototype.mz,Y.prototype.findObjectsIn=Y.prototype.Cf,Y.prototype.findPartsIn=Y.prototype.ux,Y.prototype.findObjectsAt=Y.prototype.ji,Y.prototype.findPartsAt=Y.prototype.lz,Y.prototype.findObjectAt=Y.prototype.ic,Y.prototype.findPartAt=Y.prototype.Ol,Y.prototype.focusObject=Y.prototype.zz,Y.prototype.alignDocument=Y.prototype.Jy,Y.prototype.zoomToRect=Y.prototype.BA,Y.prototype.zoomToFit=Y.prototype.zoomToFit,Y.prototype.diagramScroll=Y.prototype.kx,Y.prototype.focus=Y.prototype.focus;var pf=new Zn,v0=null,Ca=Ve.document!==void 0,dd=null,Uh="",cl=new Kt(Y,"None",0),gu=new Kt(Y,"Uniform",1),Hh=new Kt(Y,"UniformToFill",2),Pd=new Kt(Y,"CycleAll",10),up=new Kt(Y,"CycleNotDirected",11),cp=new Kt(Y,"CycleNotDirectedFast",12),hp=new Kt(Y,"CycleNotUndirected",13),dp=new Kt(Y,"CycleDestinationTree",14),fp=new Kt(Y,"CycleSourceTree",15),ph=new Kt(Y,"DocumentScroll",1),Fd=new Kt(Y,"InfiniteScroll",2),mh=new Kt(Y,"TreeParentCollapsed",21),Ja=new Kt(Y,"AllParentsCollapsed",22),mf=new Kt(Y,"AnyParentsCollapsed",23),pp=new Xt,fd="2.3.10",pd="image",Bd=null,y0=!1;function tl(){if(Ca){var e=Ve.document.createElement("canvas"),t=e.getContext("2d"),n=Ln("7ca11abfd022028846");t[n]=Ln("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",vn.Dx+"4ae6247590da4bb21c324ba3a84e385776",sr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",et.za],r=1;5>r;r++)t[Ln("7ca11abfd7330390")](Ln(i[r-1]),10,15*r);for(t[n]=Ln("39f046ebb36e4b"),n=1;5>n;n++)t[Ln("7ca11abfd7330390")](Ln(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(sr.prototype.Cd=sr.prototype.Eu),Bd=e}}Y.className="Diagram",Y.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=Ve.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof Y?t.H:null},Y.inherit=function(e,t){function n(){}if(Object.getPrototypeOf(e).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+e);n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Y.useDOM=function(e){Ca=e?Ve.document!==void 0:!1},Y.isUsingDOM=function(){return Ca},Y.None=cl,Y.Uniform=gu,Y.UniformToFill=Hh,Y.CycleAll=Pd,Y.CycleNotDirected=up,Y.CycleNotDirectedFast=cp,Y.CycleNotUndirected=hp,Y.CycleDestinationTree=dp,Y.CycleSourceTree=fp,Y.DocumentScroll=ph,Y.InfiniteScroll=Fd,Y.TreeParentCollapsed=mh,Y.AllParentsCollapsed=Ja,Y.AnyParentsCollapsed=mf;function b0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function md(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),e.Rc===null)e:{t="f";var n=Ve[Ln("76a715b2f73f148a")][Ln("72ba13b5")]||"";if(e.Rc=!0,Ca){var i=Y[Ln("76a115b6ed251eaf4692")];if(i)for(var r=pp.iterator;r.next()&&(i=r.value,i=Ln(i).split(Ln("39e9")),!(6>i.length));){var o=Ln(i[1]).split(".");if(i[4]!=="7da71ca0")break;var a=Ln(vn[Ln("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var l=Ve[Ln("74a900bae4370f8b51")][Ln("6fbb13a1c2311e8a57")].toLowerCase();if(a=l[Ln("73a612b6fb191d")](Ln("3aad1ab6e022098b4dc4")),o=Ln(i[2]),-1<a&&(l=l[Ln("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<l&&l<a),!e.Rc))break;for(a=n[Ln("76ad18b4f73e")],l=n[Ln("73a612b6fb191d")](Ln("35e7"))+2;l<a;l++)t+=n[l];if(a=t[Ln("73a612b6fb191d")](o),0>a&&o!==Ln("7da71ca0ad381e90")&&(a=t[Ln("73a612b6fb191d")](Ln("76a715b2ef3e149757"))),0>a&&(a=t[Ln("73a612b6fb191d")](Ln("76a715b2ef3e149757"))),0>a&&(a=t[Ln("73a612b6fb191d")](Ln("2bfa41fdb3784bca12"))),0>a&&(a=n[Ln("73a612b6fb191d")](Ln("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&a<t[Ln("73a612b6fb191d")](Ln("35"))||t[Ln("73a612b6fb191d")](Ln("35"))===-1),!e.Rc||n[Ln("73a612b6fb191d")](Ln("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[Ln("73a612b6fb191d")](o)),!e.Rc)||(a=Ve[Ln("76a715b2f73f148a")][Ln("69ad17a1e03e")],l=a[Ln("73a612b6fb191d")](Ln("7fb002b6ed25128b4da25b2e")),-1<l&&(e.Rc=!(a[Ln("73a612b6fb191d")](o)>l),!e.Rc)))break;if(o[0]==="#"){a=Ve.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],a[Ln("79a417a0f0181a8946")]=i,Ve.document[Ln("78a712aa")]){Ve.document[Ln("78a712aa")][Ln("7bb806b6ed32388c4a875b")](a),u=Ve.getComputedStyle(a).getPropertyValue(Ln("78a704b7e62456904c9b12701b6532a8"));var f=Ve.getComputedStyle(a).getPropertyValue(Ln("75b817b0ea2202"));if(Ve.document[Ln("78a712aa")][Ln("68ad1bbcf533388c4a875b")](a),u){if(a=Ve[Ln("77a902b0eb1b1e804a8a")],f==="0."+parseInt(l,10)%100||u.indexOf(parseInt(o[1]+o[2],16))!==-1&&u.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(a&&a(Ln("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){a=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var p in a)if(i===a[p].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(p=n[Ln("76ad18b4f73e")],r=n[Ln("73a612b6fb191d")](Ln("35e7"))+2;r<p;r++)t+=n[r];n=t[Ln("73a612b6fb191d")](Ln("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[Ln("73a612b6fb191d")](Ln("35")))}}}return 0<e.Rc&&e!==e.wy}b0.className="DiagramHelper";function Qc(e){this.j=e===void 0?new ce:e,this.o=new ce}ft.Object.defineProperties(Qc.prototype,{point:{get:function(){return this.j},set:function(e){this.j=e}},shifted:{get:function(){return this.o},set:function(e){this.o=e}}});var _d="DraggingInfo";Qc.className="DraggingInfo";function s(e,t,n){this.node=e,this.info=t,this.Su=n}s.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new mi(NaN,NaN).freeze(),this.gridSnapCellSpot=ta,this.gridSnapOrigin=new ce(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function b(e,t){if(typeof e=="string"||Ve.Element&&e instanceof Element)var n=Y.call(this,e)||this;else n=Y.call(this)||this,t=e;return y(n),t&&n.nm(t),n}di(b,Y);function y(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=As,e.layout=new Os}b.prototype.reset=function(){Y.prototype.reset.call(this),y(this)},b.className="Palette";function w(e,t){if(typeof e=="string"||Ve.Element&&e instanceof Element)var n=Y.call(this,e)||this;else n=Y.call(this)||this,t=e;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),e=new Ai;var r=new hr;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName="BOXSHAPE",e.locationObjectName="BOXSHAPE",e.resizeObjectName="BOXSHAPE",e.cursor="move",e.add(r),n.j=e,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new vi(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new Se,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var a=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new ce(l.x-a.width/2,l.y-a.height/2)}},n.Pf=function(){i.Ya(),ne(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&&ne(i)},n.autoScale=gu,n.vb=!1,t&&Object.assign(n,t),n}di(w,Y),w.prototype.computePixelRatio=function(){return 1},w.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(e!==null&&t!==null){if(el(this),this.ql===null){var n=new Hu(null);n.width=e.width,n.height=e.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),H(this)}finally{this.ta=e,this.ib=t}}}Y.prototype.redraw.call(this)},w.prototype.gc=function(){if(this.Ka===null&&Ke("No div specified"),this.ta===null&&Ke("No canvas specified"),!(this.ta instanceof kc)&&(Gg(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){el(this);var t=this.ta;e=this.ib,e.Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?H(this):this.ql!==null&&(e.drawImage(this.ql.Oa,0,0),t=this.Ab,t.reset(),this.scale!==1&&t.scale(this.scale),this.position.x===0&&this.position.y===0||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc()),t=this.Wa.s;for(var n=t.length,i=0;i<n;i++)t[i].gc(e,this);this.Fc=this.vd=!1}}};function H(e){var t=e.observed;if(t!==null){var n=e.drawsTemporaryLayers,i=e.drawsGrid&&n,r=t.grid;i&&r!==null&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(r=Wt.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Nc(t,r),Wt.free(r),Qa(t));var o=e.Ab;o.reset(),e.scale!==1&&o.scale(e.scale),e.position.x===0&&e.position.y===0||o.translate(-e.position.x,-e.position.y),r=e.ib,r.scale(e.Mb,e.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),t=t.Wa.s,o=t.length;for(var a=0;a<o;a++){var l=t[a],u=e;if(l.visible&&l.opacity!==0){var f=l.diagram.grid.part;if(!n&&l.isTemporary)i&&f.layer===l&&(l=S(l,r),f.gc(r,u),r.globalAlpha=l);else{for(var p=S(l,r),x=u.scale,A=Wt.alloc(),R=l.Pa.s,z=R.length,V=0;V<z;V++){var ye=R[V];(i||ye!==f)&&l.Oj(r,ye,u,null,x,A,!1)}Wt.free(A),r.globalAlpha=p}}}}}function ne(e){var t=e.box;if(t!==null){var n=e.observed;if(n!==null){e.Fc=!0,n=n.viewportBounds;var i=t.selectionObject,r=mi.alloc();r.h(n.width,n.height),i.desiredSize=r,mi.free(r),e=2/e.scale,i instanceof hr&&(i.strokeWidth=e),t.location=new ce(n.x-e/2,n.y-e/2),t.isSelected=!0}}}w.prototype.computeBounds=function(){var e=this.observed;if(e===null)return xr;var t=e.documentBounds.copy();return t.ed(e.viewportBounds),t},w.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},w.prototype.onViewportBoundsChanged=function(e,t,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ne(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,e))},ft.Object.defineProperties(w.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof w&&Ke("Overview.observed Diagram may not be an Overview itself: "+e),t!==e){if(t!==null&&(this.remove(this.box),t.am("ViewportBoundsChanged",this.Pf),t.am("DocumentBoundsChanged",this.Xd),t.am("InvalidateDraw",this.Ha),t.am("AnimationFinished",this.Of)),this.V=e,e!==null&&(e.Bj("ViewportBoundsChanged",this.Pf),e.Bj("DocumentBoundsChanged",this.Xd),e.Bj("InvalidateDraw",this.Ha),e.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),e===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),ne(this),this.N();this.g("observed",t,e)}}},box:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.remove(t),this.add(this.j),ne(this),this.g("box",t,e))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(e){0>e&&(e=0),this.ia!==e&&(this.ia=e)}}}),w.className="Overview";function Se(){Io.call(this),this.j=null}di(Se,Io),Se.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(t===null)return!1;var n=e.lastInput;return!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=t.viewportBounds,this.j=new ce(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)),!0)},Se.prototype.doActivate=function(){this.j=null,Io.prototype.doActivate.call(this)},Se.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},Se.prototype.moveParts=function(){var e=this.diagram,t=e.observed;if(t!==null){var n=e.box;if(n!==null){if(this.j===null){var i=e.firstInput.documentPoint;n=n.location,this.j=new ce(i.x-n.x,i.y-n.y)}e=e.lastInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)}}},Se.className="OverviewDraggingTool";function ve(){Bi(this),this.H=pt,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=xr,this.hb=!0,this.cg=null,this.ob=200}ve.prototype.toString=function(){return"CommandHandler"},ve.prototype.Xe=function(e){this.H=e},ve.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=Oi?t.meta:t.control,i=t.shift,r=t.alt,o=t.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"?e.allowVerticalScroll&&(n?e.scroll("pixel","up"):e.scroll("line","up")):o==="Down"?e.allowVerticalScroll&&(n?e.scroll("pixel","down"):e.scroll("line","down")):o==="Left"?e.allowHorizontalScroll&&(n?e.scroll("pixel","left"):e.scroll("line","left")):o==="Right"?e.allowHorizontalScroll&&(n?e.scroll("pixel","right"):e.scroll("line","right")):o==="PageUp"?i&&e.allowHorizontalScroll?e.scroll("page","left"):e.allowVerticalScroll&&e.scroll("page","up"):o==="PageDown"?i&&e.allowHorizontalScroll?e.scroll("page","right"):e.allowVerticalScroll&&e.scroll("page","down"):o==="Home"?n&&e.allowVerticalScroll?e.scroll("document","up"):!n&&e.allowHorizontalScroll&&e.scroll("document","left"):o==="End"?n&&e.allowVerticalScroll?e.scroll("document","down"):!n&&e.allowHorizontalScroll&&e.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"||t.event&&t.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||t.event&&t.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():t.bubbles=!0:this.canCopySelection()&&this.copySelection()},ve.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ve.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof To&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},ve.prototype.canStopCommand=function(){return!0},ve.prototype.selectAll=function(){var e=this.diagram;e.N();try{e.currentCursor="wait",e.R("ChangingSelection",e.selection);for(var t=e.parts;t.next();)t.value.isSelected=!0;for(var n=e.nodes;n.next();)n.value.isSelected=!0;for(var i=e.links;i.next();)i.value.isSelected=!0}finally{e.R("ChangedSelection",e.selection),e.currentCursor=""}},ve.prototype.canSelectAll=function(){return this.diagram.allowSelect},ve.prototype.deleteSelection=function(){var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Delete"),e.R("SelectionDeleting",e.selection);for(var t=new Zt,n=e.selection.iterator;n.next();)Wh(t,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(i){return i.canDelete()});e.Is(t,!0),e.R("SelectionDeleted",t)}finally{e.eb("Delete"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},ve.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},ve.prototype.copySelection=function(){var e=this.diagram,t=new Zt;for(e=e.selection.iterator;e.next();)Wh(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},ve.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},ve.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ve.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},ve.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)dd=null,Uh="";else{n=t.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=t.Kj(e,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),n=new Xt,n.addAll(o),dd=n,Uh=t.model.dataFormat}}t.R("ClipboardChanged",n)},ve.prototype.pasteFromClipboard=function(){var e=new Zt,t=dd;if(t===null)return e;var n=this.diagram;if(Uh!==n.model.dataFormat)return e;var i=n.model,r=!1,o=!1,a=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),a=n.Kj(t,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),t=a.iterator;t.next();)n=t.value,i=t.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),e.add(n)}return e},ve.prototype.pasteSelection=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&t.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(e!==null){var r=t.computePartsBounds(t.selection);if(r.w()){var o=this.computeEffectiveCollection(t.selection,t.Wm);tc(t,o,new ce(e.x-r.centerX,e.y-r.centerY),t.Wm,!1)}}t.R("ClipboardPasted",n)}finally{t.eb("Paste"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},ve.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||dd===null||dd.count===0||Uh!==e.model.dataFormat)},ve.prototype.undo=function(){this.diagram.undoManager.undo()},ve.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},ve.prototype.redo=function(){this.diagram.undoManager.redo()},ve.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},ve.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===cl&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==cl?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===cl&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==cl?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},ve.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},ve.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;_a(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=xr):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),ua(t)},ve.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ve.prototype.scrollToPart=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.Va(),e===null){try{this.cg!==null&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(u){this.cg=null}e===null&&(0<t.highlighteds.count?this.cg=t.highlighteds.iterator:0<t.selection.count&&(this.cg=t.selection.iterator),this.cg!==null&&this.cg.next()&&(e=this.cg.value))}if(e!==null){var n=t.animationManager;_a(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Ze(this,e,[e]);if(r.length===1)t.Ea(),t.es(e.actualBounds),t.eb("Scroll To Part");else{var o=function(){t.Ea();for(var u=r.pop();0<r.length&&u instanceof Xn&&u.isTreeExpanded&&(!(u instanceof nr)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof Ai&&t.tv(u.actualBounds),u instanceof Xn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof nr&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof Ai&&t.es(u.actualBounds),t.am("LayoutCompleted",a)),t.eb("Scroll To Part")},a=function(){on(o,(n.isEnabled?n.duration:0)+i)};t.Bj("LayoutCompleted",a),o()}}else{var l=t.position.copy();t.es(e.actualBounds),l.Xa(t.position)&&n.Cc()}}};function Ze(e,t,n){if(t.isVisible())return n;if(t instanceof Xr)Ze(e,t.adornedPart,n);else if(t instanceof Fn){var i=t.fromNode;i!==null&&Ze(e,i,n),t=t.toNode,t!==null&&Ze(e,t,n)}else t instanceof Xn&&(i=t.labeledLink,i!==null&&Ze(e,i,n),i=t.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Ze(e,i,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),Ze(e,t,n));return n}ve.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Ai)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},ve.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),_a(t.animationManager,"Collapse Tree");var n=new Xt;if(e!==null&&e.isTreeExpanded)e.collapseTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},ve.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Xn&&e.isTreeExpanded))return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),_a(t.animationManager,"Expand Tree");var n=new Xt;if(e!==null&&!e.isTreeExpanded)e.expandTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},ve.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Xn)||e.isTreeExpanded)return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.prototype.groupSelection=function(){var e=this.diagram,t=e.model;if(t.Xj()){var n=this.archetypeGroupData;if(n!==null){var i=null;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Group");for(var r=new Xt,o=e.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&r.add(a)}for(var l=new Xt,u=r.iterator;u.next();){var f=u.value;o=!1;for(var p=r.iterator;p.next();)if(f.Td(p.value)){o=!0;break}o||l.add(f)}if(0<l.count){var x=l.first().containingGroup;if(x!==null)for(;x!==null;){r=!1;for(var A=l.iterator;A.next();)if(!A.value.Td(x)){r=!0;break}if(r)x=x.containingGroup;else break}if(n instanceof nr)$u(n),i=n.copy(),i!==null&&e.add(i);else if(t.Yu(n)){var R=t.copyNodeData(n);at(R)&&(t.xf(R),i=e.ii(R))}if(i!==null){x!==null&&this.isValidMember(x,i)&&(i.containingGroup=x);for(var z=l.iterator;z.next();){var V=z.value;this.isValidMember(i,V)&&(V.containingGroup=i)}e.clearSelection(!0),i.isSelected=!0}}e.R("SelectionGrouped",i)}finally{e.eb("Group"),e.R("ChangedSelection",e.selection),e.currentCursor=""}}}},ve.prototype.canGroupSelection=function(){var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowGroup||!e.model.Xj()||this.archetypeGroupData===null)return!1;for(e=e.selection.iterator;e.next();){var t=e.value;if(t.Zc()&&t.canGroup())return!0}return!1};function Gt(e){var t=Dt();for(e=e.iterator;e.next();){var n=e.value;n instanceof Fn||t.push(n)}e=new Zt,n=t.length;for(var i=0;i<n;i++){for(var r=t[i],o=!0,a=0;a<n;a++)if(r.Td(t[a])){o=!1;break}o&&e.add(r)}return Jt(t),e}ve.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof Fn)return!1;if(e!==null){if(e===t||e.Td(t))return!1;var n=e.memberValidation;if(n!==null&&!n(e,t)||e.data===null&&t.data!==null||e.data!==null&&t.data===null)return!1}return n=this.memberValidation,n!==null?n(e,t):!0},ve.prototype.ungroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.model;if(n.Xj())try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Ungroup");var i=new Xt;if(e!==null)i.add(e);else for(var r=t.selection.iterator;r.next();){var o=r.value;o instanceof nr&&o.canUngroup()&&i.add(o)}var a=new Xt;if(0<i.count){t.clearSelection(!0);for(var l=i.iterator;l.next();){var u=l.value;u.expandSubGraph();var f=u.containingGroup,p=f!==null&&f.data!==null?n.wa(f.data):void 0;a.addAll(u.memberParts);for(var x=a.iterator;x.next();){var A=x.value;if(A.isSelected=!0,!(A instanceof Fn)){var R=A.data;R!==null?n.mp(R,p):A.containingGroup=f}}t.remove(u)}}t.R("SelectionUngrouped",i,a)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},ve.prototype.canUngroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||!t.allowUngroup||!t.model.Xj())return!1;if(e!==null){if(!(e instanceof nr))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof nr&&t.canUngroup())return!0;return!1},ve.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Gt(e).iterator;e.next();){var i=e.value;i.containingGroup!==null&&(!t||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},ve.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),_a(t.animationManager,"Collapse SubGraph");var n=new Xt;if(e!==null&&e.isSubGraphExpanded)e.collapseSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof nr&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},ve.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof nr&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof nr&&t.isSubGraphExpanded)return!0;return!1},ve.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),_a(t.animationManager,"Expand SubGraph");var n=new Xt;if(e!==null&&!e.isSubGraphExpanded)e.expandSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof nr&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},ve.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof nr&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof nr&&!t.isSubGraphExpanded)return!0;return!1},ve.prototype.editTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.toolManager.findTool("TextEditing");if(n!==null){if(e===null){e=null;for(var i=t.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){e=r;break}}if(e===null)return;e=e.Nl(function(o){return o instanceof Po&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},ve.prototype.canEditTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowTextEdit||t.toolManager.findTool("TextEditing")===null)return!1;if(e!==null){if(!(e instanceof Po))return!1;if(e=e.part,e!==null&&e.canEdit())return!0}else for(t=t.selection.iterator;t.next();)if(e=t.value,e.canEdit()&&(e=e.Nl(function(n){return n instanceof Po&&n.editable}),e!==null))return!0;return!1},ve.prototype.showContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");if(n!==null&&(e===void 0&&(e=0<t.selection.count?t.selection.first():t),e=n.findObjectWithContextMenu(e),e!==null)){var i=t.lastInput,r=null;e instanceof st?r=e.ga(Lr):t.viewportBounds.ca(i.documentPoint)||(r=t.viewportBounds,r=new ce(r.x+r.width/2,r.y+r.height/2)),r!==null&&(i.viewPoint=t.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),t.currentTool=n,Ni(n,!1,e)}},ve.prototype.canShowContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");return n===null?!1:(e===void 0&&(e=0<t.selection.count?t.selection.first():t),n.findObjectWithContextMenu(e)!==null)},ve.prototype.computeEffectiveCollection=function(e,t){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(t===void 0&&(t=r?i.dragOptions:n.Wm),i=new Zn,e===null)return i;for(var o=e.iterator;o.next();)mu(n,i,o.value,r,t);if(n.draggedLink!==null&&t.dragsLink)return i;for(o=e.iterator;o.next();)e=o.value,e instanceof Fn&&(t=e.fromNode,t===null||i.contains(t)?(t=e.toNode,t===null||i.contains(t)||i.remove(e)):i.remove(e));return i},ft.Object.defineProperties(ve.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(e){this.o=e}},copiesConnectedLinks:{get:function(){return this.u},set:function(e){this.u=e}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(e){this.Ha=e}},copiesTree:{get:function(){return this.ia},set:function(e){this.ia=e}},deletesTree:{get:function(){return this.nb},set:function(e){this.nb=e}},copiesParentKey:{get:function(){return this.V},set:function(e){this.V=e}},copiesGroupKey:{get:function(){return this.F},set:function(e){this.F=e}},archetypeGroupData:{get:function(){return this.j},set:function(e){this.j=e}},memberValidation:{get:function(){return this.ij},set:function(e){this.ij=e}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(e){this.diagram.defaultScale=e}},zoomFactor:{get:function(){return this.Hb},set:function(e){1<e||Ke("zoomFactor must be larger than 1.0, not: "+e),this.Hb=e}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(e){this.hb=e}},scrollToPartPause:{get:function(){return this.ob},set:function(e){this.ob=e}}}),ve.className="CommandHandler",Qn=function(){return new ve};function st(){Bi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ce(NaN,NaN).freeze(),this.jd=Na,this.Ab=new sr,this.wh=new sr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=is,this.uc=new Wt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Wt(NaN,NaN,NaN,NaN).freeze(),this.dc=new Wt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Vr,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 Tn,xn,fi,xi,Fi,or,Pr,Sr,$r,vo;st.prototype.cloneProtected=function(e){e.l=this.l|6144,e.pb=this.pb,e.bn=this.bn,e.Ma=this.Ma,e.pa.assign(this.pa),e.jd=this.jd.J(),this.Lb!==null?e.Lb=this.Lb.copy():e.Lb=null,e.Ca=this.Ca,e.Kb=this.Kb,e.Kg=this.Kg.J(),e.uc.assign(this.uc),e.Ib.assign(this.Ib),e.dc.assign(this.dc),e.Yn=this.Yn,this.ba!==null&&(e.ba=this.ba.copy()),e.Jb=this.Jb.J(),e.sk=this.sk.J(),e.io=this.io,e.Ag=this.Ag,this.Ua!==null&&(e.Ua=this.Ua.copy()),this.A!==null&&(e.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(e.Dh=yt(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},st.prototype.Vw=function(e){var t=this.Dh;if(hn(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},st.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},st.prototype.clone=function(){var e=new this.constructor;if(this.cloneProtected(e),this.Dh!==null)for(var t=0;t<this.Dh.length;t++){var n=this.Dh[t];e[n]=this[n]}return e},st.prototype.copy=function(){return this.clone()},U=st.prototype,U.qb=function(e){e.classType===Fn?e.name.indexOf("Orient")===0?this.segmentOrientation=e:Ke("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===st&&(this.stretch=e)},U.toString=function(){return gt(this.constructor)+"#"+At(this)},U.th=function(){this.A!==null&&(this.A.nc=!0)};function yr(e){e.A===null?e.A=new Ud:e.A.nc&&(e.A=e.A.copy())}U.Xc=function(){if(this.ba===null){var e=new mp;e.Xi=Hi,e.yj=Hi,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},U.cb=function(e,t,n,i,r,o,a){var l=this.part;if(l!==null&&(l.gk(e,t,n,i,r,o,a),n===this&&e===Eo&&zs(this)&&$o(this,l,t),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(e=this.animationTriggers.get(t),e!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new Zn),a=o.undoManager.transactionLevel===0,e.startCondition===Ga?a=!0:e.startCondition===N&&(a=!1),a?(o=new Yr,wo(e,o),a=this.jo.get(e),a!==null&&a.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,i,r),o.start()):(_a(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,i,r)))),this instanceof An&&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 An&&bd(l,function(u){u.data!==null&&u.l&16777216&&u.La(t)})};function $o(e,t,n){var i=e.ih();if(i!==null)for(var r=e.localBindings.iterator;r.next();){var o=r.value,a=null;if(o.sourceName!==null){if(a=B1(o,i,e),a===null)continue;o.sp(e,a,n,null)}else if(o.isToModel){var l=t.diagram;l===null||l.skipsModelSourceBindings||o.sp(e,l.model.modelData,n,i)}else{if(l=i.data,l===null)continue;var u=t.diagram;u===null||u.skipsModelSourceBindings||o.sp(e,l,n,i)}a===e&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,a,n))}}U.ks=function(e){return this.bindingId===e?this:null},U.g=function(e,t,n){this.cb(Eo,e,this,t,n)},U.Ge=function(e,t,n,i){var r=this.uc;if(r.h(e,t,n,i),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new sr);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),o.pp(r)}};function fs(e,t,n,i){return e.pickable===!1?!1:(i.multiply(e.transform),n?e.Yc(t,i):e.fh(t,i))}U.tx=function(e,t,n){if(this.pickable===!1)return!1;var i=this.naturalBounds;return t=e.Bf(t),n?Cr(e.x,e.y,0,0,0,i.height)<=t||Cr(e.x,e.y,0,i.height,i.width,i.height)<=t||Cr(e.x,e.y,i.width,i.height,i.width,0)<=t||Cr(e.x,e.y,i.width,0,0,0)<=t:e.zd(0,0)<=t&&e.zd(0,i.height)<=t&&e.zd(i.width,0)<=t&&e.zd(i.width,i.height)<=t},U.se=function(){return!0},U.ca=function(e){var t=ce.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return ce.free(t),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),a=o/2,l=this.naturalBounds;i=this.Df()*i.scale;var u=1/i;if(l.width*i<r&&l.height*i<r)return e=mo(n.x-a*u,n.y-a*u,n.width+o*u,n.height+o*u,t.x,t.y),ce.free(t),e}return r=!1,(this instanceof Xr||this instanceof hr?mo(n.x-5,n.y-5,n.width+10,n.height+10,t.x,t.y):n.ca(t))&&(this.tb&&!this.tb.ca(t)?r=!1:this.areaBackground!==null&&n.ca(t)||this.Ma!==null&&this.dc.ca(e)?r=!0:r=this.gh(e)),ce.free(t),r},U.gh=function(e){var t=this.naturalBounds;return mo(0,0,t.width,t.height,e.x,e.y)},U.Re=function(e){if(this.angle===0)return this.actualBounds.Re(e);var t=this.naturalBounds;t=Wt.allocAt(0,0,t.width,t.height);var n=this.transform,i=!1,r=ce.allocAt(e.x,e.y);return t.ca(n.Cd(r))&&(r.h(e.x,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.y),t.ca(n.Cd(r))&&(i=!0)))),ce.free(r),Wt.free(t),i},U.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=ce.allocAt(0,0);return e.ca(t.Ga(r))&&(r.h(0,n.height),e.ca(t.Ga(r))&&(r.h(n.width,n.height),e.ca(t.Ga(r))&&(r.h(n.width,0),e.ca(t.Ga(r))&&(i=!0)))),ce.free(r),i},U.Yc=function(e,t){if(t===void 0&&(t=this.transform,this.angle===0))return e.Yc(this.actualBounds);var n=this.naturalBounds,i=ce.allocAt(0,0),r=ce.allocAt(0,n.height),o=ce.allocAt(n.width,n.height),a=ce.allocAt(n.width,0),l=!1;if(e.ca(t.Ga(i))||e.ca(t.Ga(r))||e.ca(t.Ga(o))||e.ca(t.Ga(a)))l=!0;else{n=Wt.allocAt(0,0,n.width,n.height);var u=ce.allocAt(e.x,e.y);n.ca(t.Cd(u))?l=!0:(u.h(e.x,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.y),n.ca(t.Cd(u))&&(l=!0)))),ce.free(u),Wt.free(n),!l&&(et.us(e,i,r)||et.us(e,r,o)||et.us(e,o,a)||et.us(e,a,i))&&(l=!0)}return ce.free(i),ce.free(r),ce.free(o),ce.free(a),l},U.ga=function(e,t){if(t===void 0&&(t=new ce),e instanceof si){var n=this.naturalBounds;t.h(e.x*n.width+e.offsetX,e.y*n.height+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},U.mi=function(e){e===void 0&&(e=new Wt);var t=this.naturalBounds,n=this.oe,i=ce.allocAt(0,0).transform(n);return e.h(i.x,i.y,0,0),i.h(t.width,0).transform(n),Dr(e,i.x,i.y,0,0),i.h(t.width,t.height).transform(n),Dr(e,i.x,i.y,0,0),i.h(0,t.height).transform(n),Dr(e,i.x,i.y,0,0),ce.free(i),e},U.li=function(){var e=this.oe;return e.m11===1&&e.m12===0?e=0:(e=180*Math.atan2(e.m12,e.m11)/Math.PI,0>e&&(e+=360)),e},U.Df=function(){if(!(this.l&4096))return this.Kk;var e=this.Ca;return this.panel!==null?e*this.panel.Df():e},U.qs=function(e,t){return t===void 0&&(t=new ce),t.assign(e),this.oe.Cd(t),t},U.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},U.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*a,u=-o.m12*a,f=-o.m21*a,p=o.m11*a,x=a*(o.m21*o.dy-o.m22*o.dx),A=a*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,et.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(a=e*l+t*f+x,e=e*u+t*p+A,t=n*l+i*f+x,n=n*u+i*p+A,r.h(0,0),i=this.naturalBounds,n=et.Ff(0,0,i.width,i.height,a,e,t,n,r),r.transform(o),n)},st.prototype.measure=function(e,t,n,i){if(yu(this)!==!1){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,e=Math.max(e-o,0),t=Math.max(t-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var a=this.kq();o===90||o===270?(e=isFinite(r.height)?r.height+a:e,t=isFinite(r.width)?r.width+a:t):(e=isFinite(r.width)?r.width+a:e,t=isFinite(r.height)?r.height+a:t),r=n||0,a=i||0;var l=this instanceof An;switch(zl(this,!0)){case xn:a=r=0,l&&(t=e=1/0);break;case Tn:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(a=t);break;case xi:isFinite(e)&&e>n&&(r=e),a=0,l&&(t=1/0);break;case Fi:isFinite(t)&&t>i&&(a=t),r=0,l&&(e=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),a>l.height&&u.height<l.height&&(a=l.height),n=Math.max(r,u.width),i=Math.max(a,u.height),l.width<n&&(n=Math.min(u.width,n)),l.height<i&&(i=Math.min(u.height,i)),e=Math.min(l.width,e),t=Math.min(l.height,t),e=Math.max(n,e),t=Math.max(i,t),(o===90||o===270)&&(o=e,e=t,t=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(e,t,n,i),this.uc.freeze(),this.uc.w()||Ke("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),qa(this,!1)}},st.prototype.Wl=function(){},st.prototype.Dd=function(){return!1},st.prototype.arrange=function(e,t,n,i,r){this.Uk();var o=Wt.alloc();o.assign(this.Ib),this.Ib.ka(),Sl(this)===!1?this.Ib.h(e,t,n,i):this.eh(e,t,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&&yh(r)&&(r=r.panel),r!==null&&(r=r.dc,i=this.measuredBounds,this.areaBackground!==null&&(i=this.Ib),n=t+i.height,i=e+i.width,n=!(0<=e+.05&&i<=r.width+.05&&0<=t+.05&&n<=r.height+.05),this instanceof Po&&(e=this.naturalBounds,this.Lq>e.height||this.Cb>e.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||Ke("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Fc(this,!1),Wt.free(o)},U=st.prototype,U.eh=function(){};function hl(e,t,n,i,r){if(e.Ib.h(t,n,i,r),!e.desiredSize.w()){var o=e.uc;n=e.Kg,t=n.right+n.left;var a=n.top+n.bottom;switch(n=o.width+t,o=o.height+a,i+=t,r+=a,t=zl(e,!0),n===i&&o===r&&(t=xn),t){case xn:(n>i||o>r)&&(qa(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case Tn:qa(e,!0),e.measure(i,r,0,0);break;case xi:qa(e,!0),e.measure(i,o,0,0);break;case Fi:qa(e,!0),e.measure(n,r,0,0)}}}U.Xl=function(e,t){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Kg(n,!0),this.N(),po(e,t)||(n.oh(),this.Pn(n)))},U.Pn=function(e){this.portId!==null&&(Kg(e,!0),e instanceof Xn&&e1(e,this))},U.gc=function(e,t){if(!Iu(this,e,t)&&this.visible){var n=this.opacity;if(n!==0){var i=1;n!==1&&(i=e.globalAlpha,e.globalAlpha=i*n);var r="";this.filter!==""&&(r=e.filter,e.filter=this.filter);var o=this instanceof An&&yh(this),a=this.Ib;if(o){var l=this.Ib,u=this.dc,f=this.areaBackground,p=this.Ma;f===null&&p===null||e.yc(),f!==null&&(Ma(this,e,f,!0,!0,u,l),f instanceof ao&&f.type===Lu?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(f)):e.fillRect(l.x,l.y,l.width,l.height)),p!==null&&(Ma(this,e,p,!0,!1,u,l),p instanceof ao&&p.type===Lu?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(p)):e.fillRect(l.x,l.y,l.width,l.height)),this.hh(e,t)}if(!o&&(o||a.width!==0&&a.height!==0&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,l=this.panel,this.l&4096&&Ms(this),f=this.part,u=!1;var x=0;f&&t.Gf("drawShadows")&&(u=f.isShadowed)&&(p=f.shadowOffset,x=Math.max(p.y,p.x)*t.scale*t.Mb),p=this.Dd();var A;if(!(A=t.$i||!p)){var R=this.naturalBounds;A=this.wh;var z=A.m11,V=A.m21,ye=A.dx,se=A.m12,De=A.m22,ze=A.dy,je,ot=je=0;A=je*z+ot*V+ye;var Nt=je*se+ot*De+ze;je=R.width+x,ot=0;var Vn=je*z+ot*V+ye;je=je*se+ot*De+ze,ot=Math.min(A,Vn);var oi=Math.min(Nt,je),ei=Math.max(A+0,Vn)-ot,Dn=Math.max(Nt+0,je)-oi;A=ot,Nt=oi,je=R.width+x,ot=R.height+x,Vn=je*z+ot*V+ye,je=je*se+ot*De+ze,ot=Math.min(A,Vn),oi=Math.min(Nt,je),ei=Math.max(A+ei,Vn)-ot,Dn=Math.max(Nt+Dn,je)-oi,A=ot,Nt=oi,je=0,ot=R.height+x,Vn=je*z+ot*V+ye,je=je*se+ot*De+ze,ot=Math.min(A,Vn),oi=Math.min(Nt,je),ei=Math.max(A+ei,Vn)-ot,Dn=Math.max(Nt+Dn,je)-oi,A=ot,Nt=oi,x=t.viewportBounds,R=x.x,z=x.y,A=!(A>x.width+R||R>ei+A||Nt>x.height+z||z>Dn+Nt)}if(A){if(A=(this.l&256)!==0,e.clipInsteadOfFill&&(A=!1),this instanceof Po&&(e.font=this.font),A){if(Nt=l.se()?l.naturalBounds:l.actualBounds,ei=Math.max(a.x,Nt.x),Dn=Math.max(a.y,Nt.y),x=Math.min(a.right,Nt.right)-ei,R=Math.min(a.bottom,Nt.bottom)-Dn,z=this.tb,z!==null&&(ei=z.x,Dn=z.y,x=z.width,R=z.height),ei>a.width+a.x||a.x>Nt.width+Nt.x){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}e.save(),e.beginPath(),e.rect(ei,Dn,x,R),e.clip()}if(p){if(!f.isVisible()){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}u&&(Nt=f.shadowOffset,e.Ev(Nt.x*t.scale*this.scale*t.Mb,Nt.y*t.scale*this.scale*t.Mb,f.shadowBlur),Jc(e),e.shadowColor=f.shadowColor)}u&&this.shadowVisible===!0?Jc(e):u&&this.shadowVisible===!1&&Bc(e),f=this.naturalBounds,this.areaBackground!==null&&(e.yc(),vu(this,e,f,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&Cs(this,l)&&this.shadowVisible===null&&Bc(e),this.Ma!==null&&(e.yc(),Zl(this,e,f,a)),u&&(this.Ma!==null||this.areaBackground!==null||Cs(this,l))?(nc(this,!0),this.shadowVisible===null&&Bc(e)):nc(this,!1),this.hh(e,t),u&&this.l&512&&Jc(e),p&&u&&Bc(e),A&&(e.restore(),e.Vc(this instanceof An)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r)}}};function Cs(e,t){return t===null?!1:(yh(t)&&(t=t.panel),(t.l&512)!==0||(t.type===An.Auto||t.type===An.Spot)&&t.Pb()!==e)}U.Dv=function(){};function vu(e,t,n,i){Ma(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof ao&&e.areaBackground.type===Lu?(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.ng(e.areaBackground)):t.fillRect(i.x,i.y,i.width,i.height)}function Zl(e,t,n,i){var r=e.kq(),o=n.x,a=n.y,l=n.width+r,u=n.height+r;Ma(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof ao&&e.Ma.type===Lu?(t.beginPath(),t.rect(o-r/2,a-r/2,l,u),t.ng(e.Ma)):t.fillRect(o-r/2,a-r/2,l,u)}function nl(e,t,n){for(var i=t.O.s,r=i.length,o=-1,a=0;a<r;a++)if(i[a]===e){o=a;break}if(e=o,e!==-1)if(e===0)t.svg.gd?t.svg.gd.after(n):t.svg.Ma?t.svg.Ma.after(n):t.type===An.Table?(t=t.svg.getElementsByClassName("gojs-ts"),t=t.length!==0?t[0]:null,t!==null&&t.after(n)):t.svg.prepend(n);else{for(;e!==0&&!t.M(e-1).Ed();)e--;e===0?t.svg.prepend(n):(e=t.M(e-1).svg,e!==null?e.after(n):t.svg.appendChild(n))}}function Iu(e,t,n){if(!(t instanceof nu))return!1;if(!e.visible||e.opacity===0||e.Dd()&&!e.isVisible())return e.svg!==null&&e.svg.parentNode!==null&&e.svg.remove(),!0;var i=e.panel,r=e.nk(t);if(e.kk(t,n,r))return e.svg.parentElement!==null?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(t.ti!==null?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):i&&nl(e,i,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),Jc(t),t.shadowColor=e.shadowColor}e instanceof Po&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof An;var l=e instanceof An?yh(e):!1;e.l&4096&&Ms(e);var u=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,r&&(t.o=!0,o&&l?(gp(t,1,0,0,1,0,0),e.svg=t.ad):o?(gp(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):gp(t,1,0,0,1,0,0)),r=e.naturalBounds,e.areaBackground!==null){var f=a.copy().Vj();t.rb.ha=[f.m11,f.m12,f.m21,f.m22,f.dx,f.dy],vu(e,t,r,u),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),e.background!==null&&(o?(l&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Zl(e,t,r,u),l&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Zl(e,t,r,u)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,r=e.part,l=!1,r&&n.Gf("drawShadows")&&(l=r.isShadowed),t.clipInsteadOfFill&&(l=!1),e.Dd()&&l&&Jc(t),l&&e.shadowVisible===!0?Jc(t):l&&e.shadowVisible===!1&&Bc(t),r=e.panel,l&&Cs(e,r)&&e.shadowVisible===null&&Bc(t),t.Il&&(f=n.computePixelRatio(),f="drop-shadow("+t.shadowOffsetX/f+"px "+t.shadowOffsetY/f+"px "+t.shadowBlur/f/2+"px "+t.shadowColor+")",e.background!==null&&a.Ma.setAttributeNS(null,"filter",f),e.areaBackground!==null&&a.gd.setAttributeNS(null,"filter",f)),l&&(e.Ma!==null||e.areaBackground!==null||Cs(e,r))?(nc(e,!0),e.shadowVisible===null&&Bc(t)):nc(e,!1),r=l,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,l=o?e.svg:t.yd,f=e.svg,!o&&f!==null&&l!==f&&f.parentNode===e.panel.svg?(e.svg.replaceWith(l),e.svg=l,l!==null&&e.$o(t,i,u,l),_l(t,f),!0):(e.svg=l,a!==null&&l===null&&(S0(t),t.nh.pop()),l===null||(e.$o(t,i,u,l),t.Il&&(n=n.computePixelRatio(),e.Dv(l,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),r&&e.l&512&&Jc(t),e.Dd()&&Bc(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&l.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&l.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(l):t.Nj.prepend(l),t.ti=l):i!==null&&nl(e,i,l),a!==null&&a(e,l)),!0)}U.$o=function(e,t,n,i){var r=(this.l&256)!==0;if(e.clipInsteadOfFill&&(r=!1),r){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-r,o=this.tb,o!==null&&(t=o.x,r=o.y,a=o.width,n=o.height),o=i.getAttribute("clip-path");var l=null;o!==null&&(l=e.svg.getElementById(o.split("#")[1].slice(0,-1))),l===null?(o="CLIP"+eo++,l=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:a,height:n}),this instanceof An&&(r=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),l.appendChild(t),e.svg.appendChild(l),i.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=l.firstElementChild,e.setAttribute("x",t.toString()),e.setAttribute("y",r.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),_l(e,i)};function _l(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function il(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=fr(t);for(var i=t.next();!i.done;i=t.next())i=n.getElementById(i.value.split("#")[1].slice(0,-1)),i!==null&&i.remove()}e.svg.remove()}}U.hh=function(){},U.lv=function(){this.Uc=!0},U.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(t=this.svg,t===null)return!1;if(!this.visible)return t.remove(),!1;if(t.nodeName!=="g"&&n||t.nodeName==="g"&&!n)return!1;var i=this.transform,r=this instanceof An?yh(this):!1;if(!(this instanceof An&&r))if(this instanceof Hl){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&ay(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",sy(e)):t.setAttributeNS(null,"transform",sy(e))}else if(!n||this instanceof An)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof hr){o=t.getElementsByTagName("path");for(var a=0;a<o.length;a++)o[a].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else t.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return o=this.Dd()?this.opacity*e.globalAlpha:this.opacity,o===1?t.removeAttribute("opacity"):t.setAttributeNS(null,"opacity",o.toString()),e.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||t.gd!==void 0)&&(o=t.gd,this.areaBackground===null?(t.gd.remove(),t.gd=void 0):(a=i.copy().Vj(),e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],vu(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(a=t.gd.getAttribute("filter"),a!==null&&e.ad.setAttribute("filter",a),t.gd.replaceWith(e.ad)):t.prepend(e.ad),t.gd=e.ad),o&&E0(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(E0(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((r||n&&!(this instanceof An))&&(e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Zl(this,e,this.naturalBounds,this.actualBounds),t.Ma?(E0(e,t.Ma),n=t.Ma.getAttribute("filter"),n!==null&&e.ad.setAttribute("filter",n),t.Ma.replaceWith(e.ad)):t.prepend(e.ad),t.Ma=e.ad),o&&E0(e,o)),this.$o(e,this.panel,this.actualBounds,t),!0},U.nk=function(e){if(this.background!==null||this.areaBackground!==null)return!0;var t=(this.l&256)!==0;return e.clipInsteadOfFill&&(t=!1),!!t};function Ma(e,t,n,i,r,o,a){if(n!==null){var l=1,u=1;if(typeof n=="string")i?t.fillStyle=n:t.strokeStyle=n;else if(n.type===vh)i?t.fillStyle=n.color:t.strokeStyle=n.color;else{var f=e.kq();if(l=o.width,u=o.height,r?(l=a.width,u=a.height):i||(l+=f,u+=f),(o=t instanceof yd)&&n.xe&&(n.type===Ef||n.yk===l&&n.ft===u))var p=n.xe;else{var x=0,A=0,R=0,z=0,V=0,ye=0;if(ye=V=0,r?(V=a.x,ye=a.y):i||(V-=f/2,ye-=f/2),x=n.start.x*l+n.start.offsetX,A=n.start.y*u+n.start.offsetY,R=n.end.x*l+n.end.offsetX,z=n.end.y*u+n.end.offsetY,x+=V,R+=V,A+=ye,z+=ye,n.type===eh)p=t.createLinearGradient(x,A,R,z);else if(n.type===Lu)ye=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(V=0,ye=Math.max(l,u)/2):V=n.startRadius,p=t.createRadialGradient(x,A,V,R,z,ye);else if(n.type===Ef)try{p=t.createPattern(n.pattern,"repeat")}catch(De){p=null}if(n.type!==Ef&&(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===Ef&&n.yk!==-1)){n.yk=-1;var se=e.diagram;se!==null&&n.yk===-1&&on(function(){se.redraw()},600)}}i?t.fillStyle=p:t.strokeStyle=p}}}U.rg=function(e){if(e instanceof An)e:{if(this!==e&&e!==null)for(var t=this.panel;t!==null;){if(t===e){e=!0;break e}t=t.panel}e=!1}else e=!1;return e},U.Ed=function(){if(!this.visible)return!1;var e=this.panel;return e!==null?e.Ed():!0},U.If=function(){for(var e=this instanceof An?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function Ms(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){Uu(e,!1);return}if(t.translate(e.Ib.x-e.uc.x,e.Ib.y-e.uc.y),e.scale!==1||e.angle!==0){var n=e.naturalBounds;e.no(t,n.x,n.y,n.width,n.height)}Uu(e,!1),Mu(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Mu(e,!1)):t.oe!==null&&(n=e.wh,n.reset(),t.se()?n.multiply(t.wh):t.panel!==null&&n.multiply(t.panel.wh),n.multiply(e.Ab),e.Kk=e.scale*t.Kk,Mu(e,!1)))}U.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=ce.alloc();o.yi(t,n,i,r,Lr),e.rotate(this.Kb,o.x,o.y),ce.free(o)}},U.v=function(e){if(!yu(this)){e===void 0&&(e=!1),qa(this,!0),Fc(this,!0);var t=this.panel;t===null||e||t.v()}},U.Uj=function(){yu(this)||(qa(this,!0),Fc(this,!0))};function xl(e){if(!Sl(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof Xn&&e.Bd(),t.$b())),Fc(e,!0)}}U.Uk=function(){!(this.l&2048)&&(Uu(this,!0),Mu(this,!0))},U.Wu=function(){Mu(this,!0)},U.N=function(){var e=this.part;e!==null&&e.N()};function zl(e,t){var n=e.stretch,i=e.panel;return i!==null&&i.type===An.Table?fc(e,i.Fb(e.row),i.Eb(e.column),t):i!==null&&i.type===An.Auto&&i.Pb()===e?Ts(e,Tn,t):n===or?i!==null?i.type===An.Spot&&i.Pb()===e?Ts(e,Tn,t):(n=i.defaultStretch,n===or?Ts(e,xn,t):Ts(e,n,t)):Ts(e,xn,t):Ts(e,n,t)}function fc(e,t,n,i){var r=e.stretch;if(r!==or)return Ts(e,r,i);var o=r=null;switch(t.stretch){case Fi:o=!0;break;case Tn:o=!0}switch(n.stretch){case xi:r=!0;break;case Tn:r=!0}return t=e.panel.defaultStretch,r===null&&(r=t===xi||t===Tn),o===null&&(o=t===Fi||t===Tn),r===!0&&o===!0?Ts(e,Tn,i):r===!0?Ts(e,xi,i):o===!0?Ts(e,Fi,i):Ts(e,xn,i)}function Ts(e,t,n){if(n)return t;if(t===xn||(n=e.desiredSize,n.w()))return xn;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===xi)return xn;if(t===Tn)return Fi}else{if(t===Fi)return xn;if(t===Tn)return xi}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Fi)return xn;if(t===Tn)return xi}else{if(t===xi)return xn;if(t===Tn)return Fi}return t}function nc(e,t){e.l=t?e.l|512:e.l&-513}function zs(e){return(e.l&1024)!==0}function zd(e,t){e.l=t?e.l|1024:e.l&-1025}function Uu(e,t){e.l=t?e.l|2048:e.l&-2049}function Mu(e,t){e.l=t?e.l|4096:e.l&-4097}function yu(e){return(e.l&8192)!==0}function qa(e,t){e.l=t?e.l|8192:e.l&-8193}function Sl(e){return(e.l&16384)!==0}function Fc(e,t){e.l=t?e.l|16384:e.l&-16385}U.Gj=function(){this.svg=null},U.wi=function(e){this.Me=e,this.svg!==null&&this.svg.remove()},U.Av=function(){},U.zv=function(e){return this.pa=e,xl(this),!0},U.mm=function(e,t){(this.pa.x!==e||this.pa.y!==t)&&(this.pa.h(e,t),this.Uk())},U.kq=function(){return 0};function gd(e){var t=e.part;if(t instanceof Xn&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||e1(t,e)}}function ry(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof An?e instanceof Xn?e.Bd():e.qm(e,function(n){gd(n)}):gd(e))}U.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Wa(e,t,n,i):r=e,r.xd=this,e=this.ih(),e!==null&&wy(e)&&Ke("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new Xt),this.localBindings.add(r),this},U.set=function(e){return Object.assign(this,e),this},U.Du=function(e){return hg(this,e),this},U.apply=function(e){return e(this),this},U.nm=function(e){return qs(this,e),this},U.pz=function(){return this.ih()},U.ih=function(){for(var e=this instanceof An?this:this.panel;e!==null;){if(e.allBindings!==null)return e;e=e.panel}return null},U.Jv=function(e){return e.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Zn),this.animationTriggers.add(e.propertyName,e),this};function Ou(e,t){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if(typeof e=="function")r=e;else if(typeof e=="string"){var o=gf.I(e);typeof o=="function"?(n=yt(arguments),i=o(n),at(i)||Ke('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):r=Ve.go[e]}if(i===null&&(r!=null&&r.constructor||Ke("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+e),i=new r),r=1,i instanceof Y&&1<n.length){o=i;var a=n[1];(typeof a=="string"||a instanceof HTMLDivElement)&&(ki(o,a),r++)}for(;r<n.length;r++)o=n[r],o===void 0?Ke("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):hg(i,o);return i}function hg(e,t){if(typeof t=="string")if(e instanceof Po)e.text=t;else if(e instanceof hr)e.figure=t;else if(e instanceof Hl)e.source=t;else if(e instanceof An)t=ic.I(t),t!==null&&(e.type=t);else if(e instanceof ao){var n=zi(ao,t);n!==null?e.type=n:Ke("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof Pn?(t=zi(Pn,t),t!==null&&(e.type=t)):e instanceof Or&&(t=zi(Or,t),t!==null&&(e.type=t));else if(t instanceof st)e instanceof An||Ke("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof es){var i;t.isRow&&typeof e.getRowDefinition=="function"?i=e.getRowDefinition(t.index):t.isRow||typeof e.getColumnDefinition!="function"||(i=e.getColumnDefinition(t.index)),i instanceof es?_0(i,t):Ke("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof Kt)typeof e.qb=="function"&&e.qb(t);else if(t instanceof ls)e.type=t;else if(t instanceof Wa)e instanceof st||e instanceof es?e.bind(t):Ke("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof ys)e instanceof st?e.Jv(t):Ke("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof Ia)e instanceof Pn&&e.type===Pn.o?e.figures.add(t):Ke("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof Or)e instanceof Ia?e.segments.add(t):Ke("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof Qo)e instanceof Y||e instanceof nr?e.layout=t:Ke("A Layout can only be assigned to a Diagram or a Group, not to: "+e);else if(Array.isArray(t))for(n=0;n<t.length;n++)hg(e,t[n]);else if(typeof t=="object"&&t!==null)if(e instanceof ao){n=new re;for(var r in t)i=parseFloat(r),isNaN(i)?n[r]=t[r]:e.addColorStop(i,t[r]);qs(e,n)}else if(e instanceof es){t.row!==void 0?(r=t.row,(r==null||r===1/0||isNaN(r)||0>r)&&Ke("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+r),e.isRow=!0,e.index=r):t.column!==void 0&&(r=t.column,(r==null||r===1/0||isNaN(r)||0>r)&&Ke("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new re;for(n in t)n!=="row"&&n!=="column"&&(r[n]=t[n]);qs(e,r)}else qs(e,t);else Ke('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function gh(e,t){gf.add(e,t)}function x0(e,t,n){n===void 0&&(n=null);var i=e[1];if(typeof n=="function"?n(i):typeof i=="string")return e.splice(1,1),i;if(t===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}ft.Object.defineProperties(st.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new Ud),this.A.zp=e)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.te=e)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(e){this.srcBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(yr(this),this.A.Ci=e,this.Uc=!0,this.N(),this.g("shadowVisible",t,e))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(e){var t=this.enabledChanged;t!==e&&(yr(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Cl},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===Cl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(e){e=Math.round(e);var t=this.segmentIndex;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.u=e,this.v(),this.g("segmentIndex",t,e))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(e){isNaN(e)||0>e?e=0:1<e&&(e=1);var t=this.segmentFraction;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:mr},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new $h),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:or},set:function(e){var t=this.stretch;t!==e&&(yr(this),this.A.hg=e,this.v(),this.g("stretch",t,e))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(e){var t=this.name;t!==e&&(yr(this),this.A.xa=e,this.part!==null&&(this.part.Rh=null),this.g("name",t,e))}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Rt(e,"0 <= value <= 1",st,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},filter:{get:function(){return this.bn},set:function(e){var t=this.bn;t!==e&&(this.bn=e,this.Uc=!0,this.g("filter",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(e){var t=(this.l&1)!==0;t!==e&&(this.l^=1,this.g("visible",t,e),t=this.panel,t!==null?t.v():this.Dd()&&this.Zb(e),this.N(),ry(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(e){var t=(this.l&2)!==0;t!==e&&(this.l^=2,this.g("pickable",t,e))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(e){var t=(this.l&4)!==0;t!==e&&(this.l^=4,this.g("fromLinkableDuplicates",t,e))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(e){var t=(this.l&8)!==0;t!==e&&(this.l^=8,this.g("fromLinkableSelfNode",t,e))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(e){var t=(this.l&16)!==0;t!==e&&(this.l^=16,this.g("toLinkableDuplicates",t,e))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(e){var t=(this.l&32)!==0;t!==e&&(this.l^=32,this.g("toLinkableSelfNode",t,e))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(e){var t=(this.l&64)!==0;t!==e&&(this.l^=64,this.v(),this.g("isPanelMain",t,e))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(e){var t=(this.l&128)!==0;t!==e&&(this.l^=128,this.g("isActionable",t,e))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(e){var t=this.areaBackground;t!==e&&(e!==null&&$d(e,"GraphObject.areaBackground"),e instanceof ao&&e.freeze(),yr(this),this.A.gd=e,this.N(),this.g("areaBackground",t,e))}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"GraphObject.background"),e instanceof ao&&e.freeze(),this.Ma=e,this.N(),this.g("background",t,e))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var e;for(e=this.panel;e;){if(e instanceof Ai)return this.Ng=e;e=e.panel}return null}},svg:{get:function(){return this.V},set:function(e){this.V=e}},panel:{get:function(){return this.Me}},layer:{get:function(){var e=this.part;return e!==null?e.layer:null}},diagram:{get:function(){var e=this.part;return e!==null?e.diagram:null}},position:{get:function(){return this.pa},set:function(e){var t=e.x,n=e.y,i=this.pa,r=i.x;i=i.y,(r===t||isNaN(r)&&isNaN(t))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(e=e.copy(),this.zv(e,r,i)&&this.g("position",new ce(r,i),e))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&(0>=e&&Ke("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(e%=360,0>e&&(e+=360),t!==e&&(this.Kb=e,ry(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,i=this.jd,r=i.width,o=i.height;(r===t||isNaN(r)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",i,e),zs(this)&&(e=this.part,e!==null&&($o(this,e,"width"),$o(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mi(e,this.jd.height).freeze(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",t,e),zs(this)&&(e=this.part,e!==null&&$o(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mi(this.jd.width,e).freeze(),this.v(),this instanceof hr&&this.qc(),this.g("desiredSize",t,e),zs(this)&&(e=this.part,e!==null&&$o(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Sa},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),yr(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:ns},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),yr(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return this.l&2048&&Ms(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ms(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(yr(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:xn},set:function(e){this.reshapingBehavior!==e&&(yr(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&Ke("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),xl(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&Rt(e,">= 0",st,"column"),this.Ag=e,this.v(),this.g("column",t,e),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&Rt(e,">= 1",st,"columnSpan"),yr(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&Rt(e,">= 0",st,"row"),this.io=e,this.v(),this.g("row",t,e),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&Rt(e,">= 1",st,"rowSpan"),yr(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(yr(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;n===null||n instanceof Xn||Ke("Cannot set portID on a Link: "+e),t!==null&&n!==null&&Qg(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,i1(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Hi},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),gd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&Rt(e,">= 0",st,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),gd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),gd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&Rt(e,">= 0",st,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Hi},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),gd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&Rt(e,">= 0",st,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),gd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),gd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&Rt(e,">= 0",st,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(yr(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(yr(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(yr(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(yr(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(yr(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(yr(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(yr(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(yr(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(yr(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(yr(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(yr(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(yr(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(yr(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(yr(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(yr(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(yr(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(yr(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(yr(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),st.prototype.trigger=st.prototype.Jv,st.prototype.findBindingPanel=st.prototype.ih,st.prototype.findTemplateBinder=st.prototype.pz,st.prototype.setProperties=st.prototype.nm,st.prototype.apply=st.prototype.apply,st.prototype.attach=st.prototype.Du,st.prototype.set=st.prototype.set,st.prototype.isEnabledObject=st.prototype.If,st.prototype.isVisibleObject=st.prototype.Ed,st.prototype.isContainedBy=st.prototype.rg,st.prototype.getNearestIntersectionPoint=st.prototype.rs,st.prototype.getLocalPoint=st.prototype.qs,st.prototype.getDocumentScale=st.prototype.Df,st.prototype.getDocumentAngle=st.prototype.li,st.prototype.getDocumentBounds=st.prototype.mi,st.prototype.getDocumentPoint=st.prototype.ga,st.prototype.intersectsRect=st.prototype.Yc,st.prototype.containedInRect=st.prototype.fh,st.prototype.containsRect=st.prototype.Re,st.prototype.containsPoint=st.prototype.ca,st.prototype.raiseChanged=st.prototype.g,st.prototype.raiseChangedEvent=st.prototype.cb,st.prototype.addCopyProperty=st.prototype.Vw;var gf=null;st.className="GraphObject",gf=new Zn,gh("Button",function(){function e(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 t=Ou(An,An.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof An){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"},Ou(hr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new si(0,0,2.76142374915397,2.761423749153969),spot2:new si(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return t.mouseEnter=function(n,i){if(i.If()&&i instanceof An&&(n=i.fb("ButtonBorder"),n instanceof hr)){var r=i._buttonFillOver;i._buttonFillNormal=n.fill,n.fill=r,r=i._buttonStrokeOver,i._buttonStrokeNormal=n.stroke,n.stroke=r}},t.mouseLeave=function(n,i){i.If()&&i instanceof An&&(n=i.fb("ButtonBorder"),n instanceof hr&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},t.actionDown=function(n,i){if(i.If()&&i instanceof An&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof hr){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var a=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=a,a=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=a,n.skipsUndoManager=o}}},t.actionUp=function(n,i){if(i.If()&&i instanceof An&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof hr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionCancel=function(n,i){if(i.If()&&i instanceof An&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof hr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionMove=function(n,i){if(i.If()&&i instanceof An&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),e(n,i)&&(n=i.fb("ButtonBorder"),n instanceof hr))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var a=i._buttonFillPressed;n.fill!==a&&(n.fill=a),a=i._buttonStrokePressed,n.stroke!==a&&(n.stroke=a),r.skipsUndoManager=o}}},t}),gh("TreeExpanderButton",function(){var e=Ou("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ou(hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ta},new Wa("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Wa("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Xr&&(n=n.adornedPart),n instanceof Xn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isTreeExpanded){if(!i.canCollapseTree(n))return}else if(!i.canExpandTree(n))return;t.handled=!0,n.isTreeExpanded?i.collapseTree(n):i.expandTree(n)}}},e}),gh("SubGraphExpanderButton",function(){var e=Ou("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ou(hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ta},new Wa("figure","isSubGraphExpanded",function(t,n){return n=n.panel,t?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return e.click=function(t,n){if(n=n.part,n instanceof Xr&&(n=n.adornedPart),n instanceof nr){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isSubGraphExpanded){if(!i.canCollapseSubGraph(n))return}else if(!i.canExpandSubGraph(n))return;t.handled=!0,n.isSubGraphExpanded?i.collapseSubGraph(n):i.expandSubGraph(n)}}},e}),gh("ToolTip",function(){return Ou(Xr,An.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},Ou(hr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new si(0,0,4,6),spot2:new si(1,1,-4,-4)}))}),gh("ContextMenu",function(){return Ou(Xr,An.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},new Wa("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),gh("ContextMenuButton",function(){var e=Ou("Button");e.stretch=xi;var t=e.fb("ButtonBorder");return t instanceof hr&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new si(0,0,2,3),t.spot2=new si(1,1,-2,-2)),e}),gh("PanelExpanderButton",function(e){var t=x0(e,"COLLAPSIBLE"),n=Ou("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},Ou(hr,{name:"ButtonIcon",strokeWidth:2},new Wa("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof hr&&(e.stroke=null,e.fill="rgba(0, 0, 0, 0)"),n.click=function(i,r){var o=r.diagram;if(o!==null&&!o.isReadOnly){var a=r.ih();a===null&&(a=r.part),a!==null&&(r=a.fb(t),r!==null&&(i.handled=!0,o.Ea("Collapse/Expand Panel"),r.visible=!r.visible,o.eb("Collapse/Expand Panel")))}},n}),gh("CheckBoxButton",function(e){var t=x0(e);return e=Ou("Button",{desiredSize:new mi(14,14)},Ou(hr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Tn,geometryStretch:fi,visible:!1},t!==""?new Wa("visible",t).Kx():[])),e.click=function(n,i){if(i instanceof An){var r=n.diagram;if(!(r===null||r.isReadOnly||t!==""&&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")}}},e}),gh("CheckBox",function(e){e=x0(e),e=Ou("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new vi(0,1,0,0)});var t=Ou(An,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new vi(1),_buttonFillNormal:e._buttonFillNormal,_buttonStrokeNormal:e._buttonStrokeNormal,_buttonFillOver:e._buttonFillOver,_buttonStrokeOver:e._buttonStrokeOver,_buttonFillPressed:e._buttonFillPressed,_buttonStrokePressed:e._buttonStrokePressed,_buttonFillDisabled:e._buttonFillDisabled,mouseEnter:e.mouseEnter,mouseLeave:e.mouseLeave,actionDown:e.actionDown,actionUp:e.actionUp,actionCancel:e.actionCancel,actionMove:e.actionMove,click:e.click,_buttonClick:e.click});return e.mouseEnter=null,e.mouseLeave=null,e.actionDown=null,e.actionUp=null,e.actionCancel=null,e.actionMove=null,e.click=null,t}),st.None=xn=new Kt(st,"None",0),st.Default=or=new Kt(st,"Default",0),st.Vertical=Fi=new Kt(st,"Vertical",4),st.Horizontal=xi=new Kt(st,"Horizontal",5),st.Fill=Tn=new Kt(st,"Fill",3),st.Uniform=fi=new Kt(st,"Uniform",1),st.UniformToFill=Pr=new Kt(st,"UniformToFill",2),st.FlipVertical=Sr=new Kt(st,"FlipVertical",1),st.FlipHorizontal=$r=new Kt(st,"FlipHorizontal",2),st.FlipBoth=vo=new Kt(st,"FlipBoth",3),st.make=Ou,st.getBuilders=function(){var e=new Zn,t;for(t in gf)if(t!==t.toLowerCase()){var n=gf.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},st.defineBuilder=gh,st.build=function(e,t,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if(r=gf.I(e),typeof r=="function"&&(i=r([e].concat(i)),i instanceof st))return t&&i.set(t),i;Ke('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},st.takeBuilderArgument=x0;function Ud(){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=Sa,this.o=ns,this.hg=or,this.ob=this.Bi=1,this.Pf=xn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Ud.prototype.copy=function(){var e=new Ud;return e.xa=this.xa,e.zp=this.zp,e.te=this.te,e.nb=this.nb,e.j=this.j,e.zh=this.zh,e.Fh=this.Fh,e.Bh=this.Bh,e.Mh=this.Mh,e.Ph=this.Ph,e.Qh=this.Qh,e.Oh=this.Oh,e.Nh=this.Nh,e.Of=this.Of,e.Xd=this.Xd,e.Lh=this.Lh,e.V=this.V,e.ia=this.ia,e.Ha=this.Ha,e.F=this.F,e.$h=this.$h,e.Ch=this.Ch,e.Hb=this.Hb,e.Di=this.Di,e.hb=this.hb,e.u=this.u.J(),e.o=this.o.J(),e.hg=this.hg,e.Bi=this.Bi,e.ob=this.ob,e.Pf=this.Pf,e.gd=this.gd,e.Ci=this.Ci,e.Pc=this.Pc,e.Oc=this.Oc,e};function $h(){this.u=-1/0,this.o=0,this.F=mr,this.rr=Cl,this.j=this.V="None"}$h.prototype.copy=function(){var e=new $h;return e.u=this.u,e.o=this.o,e.F=this.F.J(),e.rr=this.rr,e.V=this.V,e.j=this.j,e},$h.className="LinkElementSettings";function mp(){this.yj=this.Xi=Vr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var e=new mp;return e.Xi=this.Xi.J(),e.yj=this.yj.J(),e.Vi=this.Vi,e.wj=this.wj,e.Wi=this.Wi,e.xj=this.xj,e.hq=this.hq,e.Tr=this.Tr,e.iq=this.iq,e.Ur=this.Ur,e},mp.className="LinkSettings";function vd(){this.ha=[1,0,0,1,0,0]}vd.prototype.copy=function(){var e=new vd;return e.ha[0]=this.ha[0],e.ha[1]=this.ha[1],e.ha[2]=this.ha[2],e.ha[3]=this.ha[3],e.ha[4]=this.ha[4],e.ha[5]=this.ha[5],e},vd.prototype.translate=function(e,t){this.ha[4]+=this.ha[0]*e+this.ha[2]*t,this.ha[5]+=this.ha[1]*e+this.ha[3]*t},vd.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},vd.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e!==0){if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*e+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*e,a=this.ha[1]*-i+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},vd.className="STransform";function Hd(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Hd.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},Hd.className="SGradient";function kc(e,t,n){this.ownerDocument=e=t===void 0?Ve.document:t,this.cA="http://www.w3.org/2000/svg",e!==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 nu(this,n)}kc.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,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(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),at(t))for(var i in t)e.setAttributeNS(i==="href"?"http://www.w3.org/1999/xlink":"",i,t[i]);return n!==void 0&&(e.textContent=n),e},kc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kc.prototype.focus=function(){this.Oa.focus()},kc.prototype.mx=function(){this.ownerDocument=null},ft.Object.defineProperties(kc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),kc.className="SVGSurface";function nu(e,t){this.Gv=e,this.svg=e.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 vd,this.j=S0(this),this.Nj=S0(this,"gojs-diagram"),this.Hl=this.ti=null;var n=eo++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.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=!!t,this.filter="",this.bk=null}function oy(e,t,n,i,r,o,a){e.Nj===void 0?gp(e,t,n,i,r,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+a+")")}U=nu.prototype,U.arc=function(e,t,n,i,r,o,a,l){var u=2*Math.PI,f=u-1e-6,p=n*Math.cos(i),x=n*Math.sin(i),A=e+p,R=t+x,z=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(a-A)||1e-6<Math.abs(l-R))&&this.path.push(["L",A,+R]),0>i&&(i=i%u+u),i>f?(this.path.push(["A",n,n,0,1,z,e-p,t-x]),this.path.push(["A",n,n,0,1,z,A,R])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),z,e+n*Math.cos(r),t+n*Math.sin(r)])},U.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},U.Se=function(e){this.addPath(this.path,this.rb,e||0)},U.bezierCurveTo=function(e,t,n,i,r,o){this.path.push(["C",e,t,n,i,r,o])},U.clearRect=function(){},U.clip=function(){this.Yl.clipPath=!0},U.closePath=function(){this.path.push(["z"])},U.createLinearGradient=function(e,t,n,i){var r=new Hd("linear");return r.x1=e,r.y1=t,r.x2=n,r.y2=i,r},U.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var i="PATTERN"+eo++,r={x:0,y:0,width:e.width,height:e.height,href:t};return e=this.Ud("pattern",{width:e.width,height:e.height,id:i,patternUnits:"userSpaceOnUse"}),e.appendChild(this.Ud(pd,r)),this.svg.appendChild(e),n[t]=i,"url(#"+i+")"},U.createRadialGradient=function(e,t,n,i,r,o){var a=new Hd("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=i,a.y2=r,a.r2=o,a};function ay(e,t,n,i,r,o,a,l,u){i=l/i,r=u/r,o===0&&a===0||e.rb.translate(o,a),i===1&&r===1||e.rb.scale(i,r),t===0&&n===0||e.rb.translate(-t,-n)}U.drawImage=function(e,t,n,i,r,o,a,l,u){var f="";e instanceof HTMLCanvasElement&&(f=e.toDataURL()),e instanceof HTMLImageElement&&(f=e.getAttribute("src"));var p=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,i===void 0&&(o=t,a=n,l=i=p,u=r=e),i=i||0,r=r||0,l=l||0,u=u||0,ay(this,t,n,i,r,o||0,a||0,l,u),o={x:0,y:0,width:p||i,height:e||r,href:f},et.$(i,l)&&et.$(r,u)?f.toLowerCase().indexOf(".svg")===-1&&f.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(t!==0||n!==0||i!==p||r!==e)&&(i+=t,r+=n,o["clip-path"]="path('M "+t+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+t+" "+r+" z')"),vf(this,pd,o,this.rb),this.addElement(pd,o)},U.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),dg(this,this.Yl)},U.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},U.fillRect=function(e,t,n,i){e=[e,t,n,i],e={x:e[0],y:e[1],width:e[2],height:e[3]},vf(this,"fill",e,this.rb),this.addElement("rect",e)},U.ox=function(e,t,n,i){e={x:e,y:t,width:n,height:i},vf(this,"fill",e,this.rb),dg(this,e),this.svg.prepend(this.Ud("rect",e))},U.fillText=function(e,t,n){e=[e,t,n],t=this.textAlign,t==="left"?t="start":t==="right"?t="end":t==="center"&&(t="middle"),t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},vf(this,"fill",t,this.rb),this.addElement("text",t,e[0])},U.lineTo=function(e,t){this.path.push(["L",e,t])},U.moveTo=function(e,t){this.path.push(["M",e,t])},U.quadraticCurveTo=function(e,t,n,i){this.path.push(["Q",e,t,n,i])},U.rect=function(e,t,n,i){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+i],["L",e,t+i],["z"])},U.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},U.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 e=[],t=0;t<this.path.length;t++)e.push(this.path[t]);this.stack.push(e),this.stack.push(this.rb.copy())},U.setTransform=function(e,t,n,i,r,o){e===1&&t===0&&n===0&&i===1&&r===0&&o===0||gp(this,e,t,n,i,r,o)};function sy(e){return e=e.rb.ha,"matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}U.scale=function(e,t){this.rb.scale(e,t)},U.translate=function(e,t){this.rb.translate(e,t)},U.transform=function(){},U.yc=function(){},U.stroke=function(){uy(this,this.Yl)},U.jk=function(){this.clipInsteadOfFill||this.stroke()},U.Ud=function(e,t,n){return this.Gv.Ud(e,t,n)},U.addElement=function(e,t,n){return e=this.Ud(e,t,n),this.yd!==null?this.yd.appendChild(e):this.yd=e,this.ad=e};function vf(e,t,n,i){t==="fill"?dg(e,n):t==="stroke"&&uy(e,n),i!==null&&(e=i.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function dg(e,t){e.fillStyle instanceof Hd?t.fill=fg(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function ly(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof Hd?t.setAttributeNS(null,"fill",fg(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function uy(e,t){if(e.strokeStyle instanceof Hd)t.stroke=fg(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function fg(e,t,n){var i="";if(i=e.Hl!==null?e.Hl.getAttribute(n?"fill":"stroke"):null,i!==null&&i.indexOf("GRAD")!==-1?(i=i.split("#")[1].slice(0,-1),n=e.svg.getElementById(i),n!==null&&n.remove()):i="GRAD"+eo++,t.type==="linear")n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:i,gradientUnits:"userSpaceOnUse"});else if(t.type==="radial")n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:i});else throw Error("invalid gradient");var r=t.gx;t=r.length;for(var o=[],a=0;a<t;a++){var l=r[a],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(f,p){return f.offset>p.offset?1:-1}),r=0;r<t;r++)n.appendChild(e.Ud("stop",o[r]));return e.svg.appendChild(n),"url(#"+i+")"}U.addPath=function(e,t,n){for(var i=[],r=0;r<e.length;r++){var o=yt(e[r]),a=[o.shift()];if(a[0]==="A")a.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)a.push(o.shift()+","+o.shift());i.push(a.join(" "))}if(i=i.join(" "),e=this.Yl,e.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(e.d=i,vf(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var l in e)l!=="transform"&&t.setAttributeNS(null,l,e[l]);else{l=t.getElementsByTagName("path");for(var u in e)u!=="transform"&&l[n].setAttributeNS(null,u,e[u])}else this.addElement("path",e)};function gp(e,t,n,i,r,o,a){var l=new vd;l.ha=[t,n,i,r,o,a],t={},vf(e,"g",t,l),l=e.addElement("g",t),e.nh.push(l)}function S0(e,t){var n={};return t&&(n.class=t),t=e.addElement("g",n),e.nh.push(t),t}U.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n};function Bc(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function Jc(e){e.Il=!0,e.shadowOffsetX=e.Ar,e.shadowOffsetY=e.Br,e.shadowBlur=e.Vg}U.js=function(e,t){this.Ct=!0,this.Yg=e,this.uj=t},U.fs=function(){this.Ct=!1},U.Vc=function(){},U.Wx=function(){},nu.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},nu.prototype.getImageData=function(){return null},nu.prototype.measureText=function(){return null};function E0(e,t){t=t.getAttribute("fill"),t!==null&&(t=t.split("#"),t.length!==1&&(t=e.svg.getElementById(t[1].slice(0,-1)),t!==null&&e.svg.innerHTML.match(new RegExp(t.id,"g")).length===1&&t.remove()))}nu.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},nu.className="SVGContext",Y.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new kc(this,Ve.document));var t=new kc(this,Ve.document,!0);e===void 0&&(e=new re);var n=this;return Dd(this,function(i,r){return i=g0(n,i,"SVG",t),i=i!==null?i.svg:null,typeof r=="function"?(r(i),null):i},e)},Y.prototype.makeSvg=Y.prototype.Cs,Y.prototype.av=function(e){return this.Cs(e)},Y.prototype.makeSVG=Y.prototype.av;function Hu(e,t,n,i){this.ownerDocument=t=t===void 0?Ve.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new yd(t,n,i),t.H=e}Hu.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",!0):!1},Hu.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},Hu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Hu.prototype.focus=function(){this.Oa.focus()},Hu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ft.Object.defineProperties(Hu.prototype,{width:{get:function(){return this.Oa.width},set:function(e){this.Oa.width=e}},height:{get:function(){return this.Oa.height},set:function(e){this.Oa.height=e}},style:{get:function(){return this.Oa.style}}}),Hu.className="CanvasSurface";function yd(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&Ke("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 sr,this.isTemporary=!!n}U=yd.prototype,U.Wx=function(e){this.Z.imageSmoothingEnabled=e},U.arc=function(e,t,n,i,r,o){this.Z.arc(e,t,n,i,r,o)},U.beginPath=function(){this.Z.beginPath()},U.Se=function(){},U.bezierCurveTo=function(e,t,n,i,r,o){this.Z.bezierCurveTo(e,t,n,i,r,o)},U.clearRect=function(e,t,n,i){this.yc(),this.Z.clearRect(e,t,n,i)},U.clip=function(){this.Z.clip()},U.closePath=function(){this.Z.closePath()},U.createLinearGradient=function(e,t,n,i){return this.Z.createLinearGradient(e,t,n,i)},U.createPattern=function(e,t){return this.Z.createPattern(e,t)},U.createRadialGradient=function(e,t,n,i,r,o){return this.Z.createRadialGradient(e,t,n,i,r,o)},U.drawImage=function(e,t,n,i,r,o,a,l,u){i===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,i,r,o,a,l,u)},U.fill=function(e){this.Z.fill(e?"evenodd":"nonzero")},U.fillRect=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},U.ox=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},U.fillText=function(e,t,n){this.Z.fillText(e,t,n)},U.getImageData=function(e,t,n,i){return this.Z.getImageData(e,t,n,i)},U.lineTo=function(e,t){this.Z.lineTo(e,t)},U.measureText=function(e){return this.Z.measureText(e)},U.moveTo=function(e,t){this.Z.moveTo(e,t)},U.quadraticCurveTo=function(e,t,n,i){this.Z.quadraticCurveTo(e,t,n,i)},U.rect=function(e,t,n,i){this.Z.rect(e,t,n,i)},U.restore=function(){this.Z.restore()},U.save=function(){this.yc(),this.Z.save()},yd.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},U=yd.prototype,U.setTransform=function(e,t,n,i,r,o){this.El.setTransform(e,t,n,i,r,o)},U.scale=function(e,t){this.El.scale(e,t)},U.translate=function(e,t){this.El.translate(e,t)},U.stroke=function(){this.Z.stroke()},U.transform=function(e,t,n,i,r,o){if(e!==1||t!==0||n!==0||i!==1||r!==0||o!==0){var a=this.El,l=a.m11*e+a.m21*t;e=a.m12*e+a.m22*t,t=a.m11*n+a.m21*i,n=a.m12*n+a.m22*i,a.dx=a.m11*r+a.m21*o+a.dx,a.dy=a.m12*r+a.m22*o+a.dy,a.m11=l,a.m12=e,a.m21=t,a.m22=n}},U.yc=function(){var e=this.El;this.Z.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy)},U.ng=function(e,t){if(e instanceof ao&&e.type===Lu){var n=e.yk;e=e.ft,e>n?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},U.jk=function(){this.Hm||this.stroke()},U.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},U.js=function(e,t){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=t)},U.fs=function(){var e=this.Z;e.setLineDash!==void 0&&(e.setLineDash(Mb),e.lineDashOffset=0)},U.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},U.Hs=function(){},ft.Object.defineProperties(yd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=e===""?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var Mb=Object.freeze([]);yd.className="CanvasSurfaceContext";function vp(){this.F=this.o=this.u=this.j=0}vp.className="ColorNumbers";function ao(e,t){Sf||(bg(),Sf=!0),Bi(this),this._isFrozen=!1,e===void 0?(this.na=vh,this.xk="black"):typeof e=="string"?(this.na=vh,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===eh?(this.Qd=As,this.Lk=Ps):this.Lk=e===Lu?this.Qd=Lr:this.Qd=Hi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}ao.prototype.copy=function(){var e=new ao;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,this.we!==null&&(e.we=this.we.copy()),e.cr=this.cr,e},U=ao.prototype,U.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},U.ka=function(){return Object.isFrozen(this)&&Ke("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},U.qb=function(e){e.classType===ao&&(this.type=e)},U.toString=function(){var e="Brush(";if(this.type===vh)e+=this.color;else if(e=this.type===eh?e+"Linear ":this.type===Lu?e+"Radial ":this.type===Ef?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,this.colorStops!==null)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},U.addColorStop=function(e,t){return this._isFrozen&&Ht(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&Rt(e,"0 <= loc <= 1",ao,"addColorStop:loc"),this.we===null&&(this.we=new Zn),this.we.add(e,t),this.na===vh&&(this.type=eh),this.xe=null,this},U.Vz=function(e,t){if(this._isFrozen&&Ht(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(e,t);else if((this.type===eh||this.type===Lu)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(e,t));return this};function cy(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(t,n)}U.Wy=function(e,t){if(this._isFrozen&&Ht(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(-e,t);else if((this.type===eh||this.type===Lu)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(-e,t));return this};function hy(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(-t,n)}function pg(e,t,n){qc(e),e=zo.j;var i=zo.u,r=zo.o,o=zo.F;return qc(t),n===void 0&&(n=.5),"rgba("+Math.round((zo.j-e)*n+e)+", "+Math.round((zo.u-i)*n+i)+", "+Math.round((zo.o-r)*n+r)+", "+Math.round((zo.F-o)*n+o)+")"}U.Gx=function(){if(this.type===vh)return yf(this.color);if((this.type===eh||this.type===Lu)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Lu)return yf(e.first().value);if(e.get(.5)!==null)return yf(e.get(.5));if(e.count===2)return e=e.Fa(),yf(pg(e[0].value,e[1].value));for(var t=e.iterator,n=-1,i=-1,r=1,o=1;t.next();){var a=t.key,l=Math.abs(.5-t.key);r>o&&l<r?(n=a,r=l):o>=r&&l<o&&(i=a,o=l)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,yf(pg(e.get(n),e.get(i),1-o/r))}return!1};function yf(e){return e?e instanceof ao?e.Gx():(qc(e),128>(299*zo.j+587*zo.u+114*zo.o)/1e3):!1}function bf(e,t){switch(t){case wf:t=100*gg(zo.j);var n=100*gg(zo.u),i=100*gg(zo.o);return El.j=.4124564*t+.3575761*n+.1804375*i,El.u=.2126729*t+.7151522*n+.072175*i,El.o=.0193339*t+.119192*n+.9503041*i,El.F=zo.F,t=yg(El.j/xf[0]),n=yg(El.u/xf[1]),i=yg(El.o/xf[2]),_c.j=116*n-16,_c.u=500*(t-n),_c.o=200*(n-i),_c.F=El.F,_c.j=Math.min(100,Math.max(0,_c.j+100*e)),e=(_c.j+16)/116,t=e-_c.o/200,El.j=xf[0]*dy(_c.u/500+e),El.u=xf[1]*(_c.j>w0*xg?Math.pow(e,3):_c.j/w0),El.o=xf[2]*dy(t),El.F=_c.F,e=-.969266*El.j+1.8760108*El.u+.041556*El.o,t=.0556434*El.j+-.2040259*El.u+1.0572252*El.o,zo.j=255*vg((3.2404542*El.j+-1.5371385*El.u+-.4985314*El.o)/100),zo.u=255*vg(e/100),zo.o=255*vg(t/100),zo.F=El.F,zo.j=Math.round(zo.j),255<zo.j?zo.j=255:0>zo.j&&(zo.j=0),zo.u=Math.round(zo.u),255<zo.u?zo.u=255:0>zo.u&&(zo.u=0),zo.o=Math.round(zo.o),255<zo.o?zo.o=255:0>zo.o&&(zo.o=0),"rgba("+zo.j+", "+zo.u+", "+zo.o+", "+zo.F+")";case fy:return mg(),bu.o=Math.min(100,Math.max(0,bu.o+100*e)),"hsla("+bu.j+", "+bu.u+"%, "+bu.o+"%, "+bu.F+")";default:Ke("Unknown color space: "+t)}}function qc(e){Sf||(bg(),Sf=!0);var t=Sg;if(t!==null){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,zo.j=e[0],zo.u=e[1],zo.o=e[2],zo.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,zo.j=0,zo.u=0,zo.o=0,zo.F=1)}}function mg(){var e=zo.j/255,t=zo.u/255,n=zo.o/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;if(r=(i+r)/2,o===0)var a=e=0;else{switch(i){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}a*=60,0>a&&(a+=360),e=o/(1-Math.abs(2*r-1))}bu.j=Math.round(a),bu.u=Math.round(100*e),bu.o=Math.round(100*r),bu.F=zo.F}function gg(e){return e/=255,.04045>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vg(e){return .0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function yg(e){return e>xg?Math.pow(e,1/3):(w0*e+16)/116}function dy(e){var t=e*e*e;return t>xg?t:(116*e-16)/w0}function $d(e,t){typeof e!="string"&&(e instanceof ao||Ke("Value for "+t+" must be a color string or a Brush, not "+e))}function bg(){Sg=Ca?new Hu(null,void 0,{willReadFrequently:!0}).context:null}ft.Object.defineProperties(ao.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&Ht(this,e),this.na=e,this.start.Mc()&&(e===eh?this.start=As:e===Lu&&(this.start=Lr)),this.end.Mc()&&(e===eh?this.end=Ps:e===Lu&&(this.end=Lr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&Ht(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&Ht(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&Ht(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&Ht(this,e),0>e&&Rt(e,">= zero",ao,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&Ht(this,e),0>e&&Rt(e,">= zero",ao,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&Ht(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&Ht(this,e),this.cr=e,this.xe=null}}}),ao.prototype.isDark=ao.prototype.Gx,ao.prototype.darkenBy=ao.prototype.Wy,ao.prototype.lightenBy=ao.prototype.Vz,ao.prototype.addColorStop=ao.prototype.addColorStop;var xg=216/24389,w0=24389/27,xf=[95.047,100,108.883],Sg=null,zo=new vp,bu=new vp,El=new vp,_c=new vp,Sf=!1;ao.className="Brush";var vh;ao.Solid=vh=new Kt(ao,"Solid",0);var eh;ao.Linear=eh=new Kt(ao,"Linear",1);var Lu;ao.Radial=Lu=new Kt(ao,"Radial",2);var Ef;ao.Pattern=Ef=new Kt(ao,"Pattern",4);var wf;ao.Lab=wf=new Kt(ao,"Lab",5);var fy;ao.HSL=fy=new Kt(ao,"HSL",6),ao.randomColor=function(e,t){e===void 0&&(e=128),t===void 0&&(t=Math.max(e,255));var n=Math.abs(t-e);t=Math.floor(e+Math.random()*n).toString(16);var i=Math.floor(e+Math.random()*n).toString(16);return e=Math.floor(e+Math.random()*n).toString(16),2>t.length&&(t="0"+t),2>i.length&&(i="0"+i),2>e.length&&(e="0"+e),"#"+t+i+e},ao.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;Sf||(bg(),Sf=!0);var t=Sg;if(t===null)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n?!0:(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},ao.lighten=function(e){return cy(e)},ao.lightenBy=cy,ao.darken=function(e){return hy(e)},ao.darkenBy=hy,ao.mix=pg,ao.isDark=yf;function ls(){this.xa="Base"}ls.prototype.measure=function(){},ls.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},ls.prototype.arrange=function(){},ls.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},ls.prototype.iA=function(e){e.Uj()},ls.prototype.gc=function(){},ft.Object.defineProperties(ls.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return An}}}),ls.prototype.remeasureObject=ls.prototype.iA,ls.prototype.arrangeElement=ls.prototype.Ly,ls.prototype.measureElement=ls.prototype.Yz,ls.className="PanelLayout";function C0(){this.xa="Base"}di(C0,ls),C0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length;e=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===e){var p=f.margin,x=p.right+p.left;p=p.top+p.bottom,f.measure(t,n,o,a);var A=f.measuredBounds;x=Math.max(A.width+x,0),p=Math.max(A.height+p,0),A=f.position.x;var R=f.position.y;isFinite(A)||(A=0),isFinite(R)||(R=0),f instanceof hr&&f.isGeometryPositioned&&(f=f.strokeWidth/2,A-=f,R-=f),Dr(r,A,R,x,p)}}},C0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding;for(e=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=t[r],a=o.measuredBounds,l=o.margin,u=o.position.x,f=o.position.y;if(u=isNaN(u)?-e:u-e,f=isNaN(f)?-n:f-n,o instanceof hr&&o.isGeometryPositioned){var p=o.strokeWidth/2;u-=p,f-=p}o.visible&&o.arrange(u+l.left,f+l.top,a.width,a.height)}};function T0(){this.xa="Base"}di(T0,ls),T0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length;t=Dt(),o=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===o){var p=zl(f,!1);if(p!==xn&&p!==xi)t.push(f);else{f.measure(1/0,n,0,a),p=f.margin,f=f.measuredBounds;var x=Math.max(f.height+p.top+p.bottom,0);r.width+=Math.max(f.width+p.right+p.left,0),r.height=Math.max(r.height,x)}}}for(i=t.length,e.desiredSize.height?n=Math.min(e.desiredSize.height,e.maxSize.height):r.height!==0&&(n=Math.min(r.height,e.maxSize.height)),e=0;e<i;e++)u=t[e],(u.visible||u===o)&&(p=u.margin,l=p.right+p.left,p=p.top+p.bottom,u.measure(1/0,n,0,a),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));Jt(t)},T0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.top,a=e.isOpposite,l=a?n.width:r.left,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,A=p.margin,R=A.top+A.bottom,z=o+r.bottom,V=x.height,ye=zl(p,!1);(isNaN(p.desiredSize.height)&&ye===Tn||ye===Fi)&&(V=Math.max(n.height-R-z,0)),R=V+R+z,z=p.alignment,z.Xb()&&(z=e.defaultAlignment),z.sb()||(z=Lr),a&&(l-=x.width+A.left+A.right),p.arrange(l+z.offsetX+A.left,f+z.offsetY+A.top+(n.height*z.y-R*z.y),x.width,V),a||(l+=x.width+A.left+A.right)}}};function N0(){this.xa="Base"}di(N0,ls),N0.prototype.measure=function(e,t,n,i,r,o){var a=i.length;n=Dt();for(var l=th(e),u=0;u<a;u++){var f=i[u];if(f.visible||f===l){var p=zl(f,!1);if(p!==xn&&p!==Fi)n.push(f);else{var x=f.margin;p=x.right+x.left,x=x.top+x.bottom,f.measure(t,1/0,o,0),f=f.measuredBounds,Ba(r,Math.max(r.width,Math.max(f.width+p,0)),r.height+Math.max(f.height+x,0))}}}if(i=n.length,i!==0){for(e.desiredSize.width?t=Math.min(e.desiredSize.width,e.maxSize.width):r.width!==0&&(t=Math.min(r.width,e.maxSize.width)),e=0;e<i;e++)u=n[e],(u.visible||u===l)&&(f=u.margin,a=f.right+f.left,f=f.top+f.bottom,u.measure(t,1/0,o,0),u=u.measuredBounds,f=Math.max(u.height+f,0),r.width=Math.max(r.width,Math.max(u.width+a,0)),r.height+=f);Jt(n)}},N0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.left,a=e.isOpposite,l=a?n.height:r.top,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,A=p.margin,R=A.left+A.right,z=o+r.right,V=x.width,ye=zl(p,!1);(isNaN(p.desiredSize.width)&&ye===Tn||ye===xi)&&(V=Math.max(n.width-R-z,0)),R=V+R+z,z=p.alignment,z.Xb()&&(z=e.defaultAlignment),z.sb()||(z=Lr),a&&(l-=x.height+A.bottom+A.top),p.arrange(f+z.offsetX+A.left+(n.width*z.x-R*z.x),l+z.offsetY+A.top,V,x.height),a||(l+=x.height+A.bottom+A.top)}}};function A0(){this.xa="Base"}di(A0,ls),A0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length,u=e.Pb(),f=u.margin,p=f.right+f.left,x=f.top+f.bottom;u.measure(t,n,o,a);var A=u.measuredBounds;o=A.width,a=A.height;var R=Math.max(o+p,0),z=Math.max(a+x,0),V=e.isClipping,ye=Wt.allocAt(-f.left,-f.top,R,z),se=Wt.allocAt(0,0,o,a);Eg(u,se,!0),o=se.width,a=se.height;for(var De=!0,ze=th(e),je=0;je<l;je++){var ot=i[je];A=t;var Nt=n;if(ot!==u&&(ot.visible||ot===ze)){f=ot.margin;var Vn=f.left,oi=f.top;switch(R=f.right+f.left,z=f.top+f.bottom,f=zl(ot,!1),f){case Tn:A=o,Nt=a,oi=Vn=z=R=0;break;case xi:A=o,Vn=R=0;break;case Fi:Nt=a,oi=z=0}ot.measure(A,Nt,0,0),A=ot.measuredBounds,R=Math.max(A.width+R,0),z=Math.max(A.height+z,0),f=ot.alignment,f.Xb()&&(f=e.defaultAlignment),f.sb()||(f=Lr);var ei=ot.alignmentFocus;if(ei.Xb()&&(ei=Lr),Nt=null,ot instanceof An&&ot.$e!==""&&(Nt=ot.fb(ot.$e),Nt===ot&&(Nt=null)),Vn=se.x-Vn,oi=se.y-oi,Nt!==null){for(ot.arrange(0,0,A.width,A.height),A=Nt.actualBounds,A=ce.allocAt(A.x+(ei.x*A.width-ei.offsetX),A.y+(ei.y*A.height-ei.offsetY)),Nt=Nt.panel;Nt!==ot;)Nt.transform.Ga(A),Nt=Nt.panel;Vn+=f.x*o+f.offsetX-A.x,oi+=f.y*a+f.offsetY-A.y,ce.free(A)}else Vn+=f.x*o+f.offsetX-(ei.x*A.width+ei.offsetX),oi+=f.y*a+f.offsetY-(ei.y*A.height+ei.offsetY);De?(De=!1,r.h(Vn,oi,R,z)):Dr(r,Vn,oi,R,z)}}switch(De?r.assign(ye):V?r.Uu(se.x,se.y,se.width,se.height):Dr(r,ye.x,ye.y,ye.width,ye.height),Wt.free(ye),Wt.free(se),f=u.stretch,f===or&&(f=zl(u,!1)),f){case xn:return;case Tn:if(!isFinite(t)&&!isFinite(n))return;break;case xi:if(!isFinite(t))return;break;case Fi:if(!isFinite(n))return}for(A=u.measuredBounds,o=A.width,a=A.height,R=Math.max(o+p,0),z=Math.max(a+x,0),f=u.margin,se=Wt.allocAt(-f.left,-f.top,R,z),Eg(u,se,!0),o=se.width,a=se.height,t=0;t<l;t++)n=i[t],n===u||!n.visible&&n!==ze||(f=n.margin,R=f.right+f.left,z=f.top+f.bottom,A=n.measuredBounds,R=Math.max(A.width+R,0),z=Math.max(A.height+z,0),p=n.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=Lr),n=n.alignmentFocus,n.Xb()&&(n=Lr),De?(De=!1,r.h(p.x*o+p.offsetX-(n.x*A.width+n.offsetX)-f.left,p.y*a+p.offsetY-(n.y*A.height+n.offsetY)-f.top,R,z)):Dr(r,p.x*o+p.offsetX-(n.x*A.width+n.offsetX)-f.left,p.y*a+p.offsetY-(n.y*A.height+n.offsetY)-f.top,R,z));De?r.assign(ye):V?r.Uu(se.x,se.y,se.width,se.height):Dr(r,ye.x,ye.y,ye.width,ye.height),Wt.free(se)},A0.prototype.arrange=function(e,t,n){var i=t.length,r=e.Pb(),o=r.measuredBounds,a=o.width,l=o.height,u=e.padding;o=u.left,u=u.top;var f=o-n.x,p=u-n.y;for(r.arrange(f,p,a,l),a=Wt.allocAt(0,0,a,l),Eg(r,a,!1),l=0;l<i;l++){var x=t[l];if(x!==r){f=x.measuredBounds;var A=f.width,R=f.height;p=x.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=Lr);var z=x.alignmentFocus;if(z.Xb()&&(z=Lr),f=null,x instanceof An&&x.$e!==""&&(f=x.fb(x.$e),f===x&&(f=null)),f!==null){var V=f.actualBounds;for(z=ce.allocAt(V.x+(z.x*V.width-z.offsetX),V.y+(z.y*V.height-z.offsetY)),f=f.panel;f!==x;)f.transform.Ga(z),f=f.panel;f=p.x*a.width+p.offsetX-z.x,p=p.y*a.height+p.offsetY-z.y,ce.free(z)}else f=p.x*a.width+p.offsetX-(z.x*A+z.offsetX),p=p.y*a.height+p.offsetY-(z.y*R+z.offsetY);f+=a.x-n.x,p+=a.y-n.y,x.visible&&x.arrange(o+f,u+p,A,R)}}Wt.free(a)};function Eg(e,t,n){var i=null;if(e instanceof An&&e.$e!==""&&(i=e.fb(e.$e),i===e&&(i=null)),i!==null)for(n&&e.arrange(0,0,t.width,t.height),t.assign(i.actualBounds),i=i.panel;i!==e;)i.transform.pp(t),i=i.panel}function k0(){this.xa="Base"}di(k0,ls),k0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length,u=e.Pb(),f=u.margin,p=t,x=n,A=f.right+f.left,R=f.top+f.bottom;u.measure(t,n,o,a),f=u.measuredBounds;var z=0,V=null;u instanceof hr&&(V=u,z=V.strokeWidth*V.scale);var ye=Math.max(f.width+A,0);f=Math.max(f.height+R,0);var se=Ng(u),De=se.x*ye+se.offsetX;se=se.y*f+se.offsetY;var ze=Ag(u),je=ze.x*ye+ze.offsetX;for(ze=ze.y*f+ze.offsetY,isFinite(t)&&(p=Math.max(Math.abs(De-je)-z,0)),isFinite(n)&&(x=Math.max(Math.abs(se-ze)-z,0)),z=mi.alloc(),z.h(0,0),e=th(e),ze=0;ze<l;ze++)se=i[ze],se===u||!se.visible&&se!==e||(f=se.margin,ye=f.right+f.left,De=f.top+f.bottom,se.measure(p,x,0,0),f=se.measuredBounds,ye=Math.max(f.width+ye,0),f=Math.max(f.height+De,0),z.h(Math.max(ye,z.width),Math.max(f,z.height)));if(l===1)r.width=ye,r.height=f,mi.free(z);else{switch(se=Ng(u),ze=Ag(u),l=i=0,ze.x!==se.x&&ze.y!==se.y&&(i=z.width/Math.abs(ze.x-se.x),l=z.height/Math.abs(ze.y-se.y)),mi.free(z),z=0,V!==null&&(z=V.strokeWidth*V.scale,Rg(V)===fi&&(i=l=Math.max(i,l))),i+=Math.abs(se.offsetX)+Math.abs(ze.offsetX)+z,l+=Math.abs(se.offsetY)+Math.abs(ze.offsetY)+z,V=u.stretch,V===or&&(V=zl(u,!1)),V){case xn:a=o=0;break;case Tn:isFinite(t)&&(i=t),isFinite(n)&&(l=n);break;case xi:isFinite(t)&&(i=t),a=0;break;case Fi:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,a),r.width=u.measuredBounds.width+A,r.height=u.measuredBounds.height+R}},k0.prototype.arrange=function(e,t){var n=t.length,i=e.Pb(),r=i.measuredBounds,o=Wt.alloc();o.h(0,0,1,1);var a=i.margin,l=a.left;a=a.top;var u=e.padding,f=u.left;u=u.top,i.arrange(f+l,u+a,r.width,r.height);var p=Ng(i),x=Ag(i),A=p.y*r.height+p.offsetY,R=x.x*r.width+x.offsetX;for(x=x.y*r.height+x.offsetY,o.x=p.x*r.width+p.offsetX,o.y=A,Dr(o,R,x,0,0),o.x+=l+f,o.y+=a+u,r=0;r<n;r++)l=t[r],l!==i&&(f=l.measuredBounds,a=l.margin,u=Math.max(f.width+a.right+a.left,0),p=Math.max(f.height+a.top+a.bottom,0),A=l.alignment,A.Xb()&&(A=e.defaultAlignment),A.sb()||(A=Lr),u=o.width*A.x+A.offsetX-u*A.x+a.left+o.x,a=o.height*A.y+A.offsetY-p*A.y+a.top+o.y,l.visible&&(mo(o.x,o.y,o.width,o.height,u,a,f.width,f.height)?l.arrange(u,a,f.width,f.height):l.arrange(u,a,f.width,f.height,new Wt(o.x,o.y,o.width,o.height))));Wt.free(o)};function I0(){this.xa="Base",this.name="Table"}di(I0,ls),I0.prototype.measure=function(e,t,n,i,r){for(var o=i.length,a=Dt(),l=Dt(),u=0;u<o;u++){var f=i[u],p=f instanceof An?f:null;if(p!==null&&yh(p)&&f.visible){l.push(p);for(var x=p.O.s,A=x.length,R=0;R<A;R++){var z=x[R];p.type===An.TableRow?z.row=f.row:p.type===An.TableColumn&&(z.column=f.column),a.push(z)}}else a.push(f)}o=a.length,o===0&&(e.Fb(0),e.Eb(0));for(var V=[],ye=0;ye<o;ye++){var se=a[ye];se.visible&&(qa(se,!0),Fc(se,!0),V[se.row]||(V[se.row]=[]),V[se.row][se.column]||(V[se.row][se.column]=[]),V[se.row][se.column].push(se))}Jt(a);var De=Dt(),ze=Dt(),je=Dt(),ot={count:0},Nt={count:0},Vn=t,oi=n,ei=e.rowDefs,Dn=e.colDefs,pn=null;o=ei.length;for(var er=0;er<o;er++)pn=ei[er],pn!==void 0&&(pn.actual=0);o=Dn.length;for(var Vi=0;Vi<o;Vi++)pn=Dn[Vi],pn!==void 0&&(pn.actual=0);for(var Jr=V.length,Ro=0,ps=0;ps<Jr;ps++)V[ps]&&(Ro=Math.max(Ro,V[ps].length));var Ss=Math.min(e.topIndex,Jr-1),dl=Math.min(e.leftIndex,Ro-1),ms=0;Jr=V.length;for(var kh=th(e),Va=0;Va<Jr;Va++)if(V[Va]){Ro=V[Va].length;var yc=e.Fb(Va);yc.actual=0;for(var fl=yc.oc=0;fl<Ro;fl++)if(V[Va][fl]){var Ih=e.Eb(fl);De[fl]===void 0&&(Ih.actual=0,Ih.oc=0,De[fl]=!0);for(var Eu=V[Va][fl],Wu=Eu.length,ou=0;ou<Wu;ou++){var Xl=Eu[ou];if(Xl.visible||Xl===kh){var nd=1<Xl.rowSpan||1<Xl.columnSpan;nd&&(Va<Ss||fl<dl||ze.push(Xl));var bc=Xl.margin,Vf=bc.right+bc.left,au=bc.top+bc.bottom,pl=fc(Xl,yc,Ih,!1),r0=Xl.desiredSize,ef=!isNaN(r0.height),Oc=!isNaN(r0.width)&&ef;if(nd||pl===xn||Oc||Va<Ss||fl<dl||(ot[fl]!==void 0||pl!==Tn&&pl!==xi||(ot[fl]=-1,ot.count++),Nt[Va]!==void 0||pl!==Tn&&pl!==Fi||(Nt[Va]=-1,Nt.count++),je.push(Xl)),Xl.measure(1/0,1/0,0,0),!(Va<Ss||fl<dl)){var Ql=Xl.measuredBounds,Ad=Math.max(Ql.width+Vf,0),su=Math.max(Ql.height+au,0);if(Xl.rowSpan===1&&(pl===xn||pl===xi)){pn=e.Fb(Va);var id=pn.Wc();ms=Math.max(su-pn.actual,0),ms+id>oi&&(ms=Math.max(oi-id,0));var Jm=pn.oa===0;pn.oc=pn.oc+ms,pn.actual=pn.oa+ms,oi=Math.max(oi-(ms+(Jm?id:0)),0)}if(Xl.columnSpan===1&&(pl===xn||pl===Fi)){pn=e.Eb(fl);var o0=pn.Wc();ms=Math.max(Ad-pn.actual,0),ms+o0>Vn&&(ms=Math.max(Vn-o0,0));var Yv=pn.oa===0;pn.oc=pn.oc+ms,pn.actual=pn.oa+ms,Vn=Math.max(Vn-(ms+(Yv?o0:0)),0)}nd&&Xl.Uj()}}}}}Jt(De);var Kc=0,rh=0;o=e.columnCount;for(var tf=0;tf<o;tf++){var rd=Dn[tf];rd!==void 0&&(Kc+=isNaN(rd.Hc)?rd.oc:rd.Hc,rd.oc!==0&&(Kc+=rd.Wc()))}o=e.rowCount;for(var Kf=0;Kf<o;Kf++){var od=ei[Kf];od!==void 0&&(rh+=isNaN(od.Hc)?od.oc:od.Hc,od.oc!==0&&(rh+=od.Wc()))}Vn=Math.max(t-Kc,0);var Zc=oi=Math.max(n-rh,0),Mh=Vn;o=je.length;for(var Jl=0;Jl<o;Jl++){var Lc=je[Jl],qm=e.Fb(Lc.row),oh=e.Eb(Lc.column),Zf=Lc.measuredBounds,xc=Lc.margin,kd=xc.right+xc.left,Rc=xc.top+xc.bottom;ot[Lc.column]=oh.oc===0&&ot[Lc.column]!==void 0?Math.max(Zf.width+kd,ot[Lc.column]):null,Nt[Lc.row]=qm.oc===0&&Nt[Lc.row]!==void 0?Math.max(Zf.height+Rc,Nt[Lc.row]):null}var nf=0,Yf=0,uc;for(uc in Nt)uc!=="count"&&(nf+=Nt[uc]);for(uc in ot)uc!=="count"&&(Yf+=ot[uc]);for(var Ls=mi.alloc(),a0=0;a0<o;a0++){var Il=je[a0];if(Il.visible||Il===kh){var Ka=e.Fb(Il.row),Ml=e.Eb(Il.column),ah=0;isFinite(Ml.width)?ah=Ml.width:(isFinite(Vn)&&ot[Il.column]!==null?Yf===0?ah=Ml.actual+Vn:ah=ot[Il.column]/Yf*Mh:ot[Il.column]!==null?ah=Vn:ah=Ml.actual||Vn,ah=Math.max(0,ah-Ml.Wc()));var Oh=0;switch(isFinite(Ka.height)?Oh=Ka.height:(isFinite(oi)&&Nt[Il.row]!==null?nf===0?Oh=Ka.actual+oi:Oh=Nt[Il.row]/nf*Zc:Nt[Il.row]!==null?Oh=oi:Oh=Ka.actual||oi,Oh=Math.max(0,Oh-Ka.Wc())),Ls.h(Math.max(Ml.minimum,Math.min(ah,Ml.maximum)),Math.max(Ka.minimum,Math.min(Oh,Ka.maximum))),pl=fc(Il,Ka,Ml,!1),pl){case xi:Ls.height=Math.max(Ls.height,Ka.actual+oi);break;case Fi:Ls.width=Math.max(Ls.width,Ml.actual+Vn)}var Id=Il.margin,Xv=Id.right+Id.left,eg=Id.top+Id.bottom;Il.Uj(),Il.measure(Ls.width,Ls.height,Ml.minimum,Ka.minimum);var Xf=Il.measuredBounds,Md=Math.max(Xf.width+Xv,0),rf=Math.max(Xf.height+eg,0);isFinite(Vn)&&(Md=Math.min(Md,Ls.width)),isFinite(oi)&&(rf=Math.min(rf,Ls.height));var ql=0;ql=Ka.actual,Ka.actual=Math.max(Ka.actual,rf),Ka.oc=Math.max(Ka.oc,rf),ms=Ka.actual-ql,oi=Math.max(oi-ms,0),Nt[Il.row]===null&&(Zc=Math.max(Zc-ms,0)),ql=Ml.actual,Ml.actual=Math.max(Ml.actual,Md),Ml.oc=Math.max(Ml.oc,Md),ms=Ml.actual-ql,Vn=Math.max(Vn-ms,0),ot[Il.column]===null&&(Mh=Math.max(Mh-ms,0))}}Jt(je);var sh=mi.alloc(),Sc=Dt(),Bu=Dt();if(o=ze.length,o!==0){for(var ad=0;ad<Jr;ad++)if(V[ad]){Ro=V[ad].length;var Qf=e.Fb(ad);Sc[ad]=Qf.actual;for(var sd=0;sd<Ro;sd++)if(V[ad][sd]){var tg=e.Eb(sd);Bu[sd]=tg.actual}}}for(var Jf=0;Jf<o;Jf++){var Pa=ze[Jf];if(Pa.visible||Pa===kh){var cc=e.Fb(Pa.row),Vu=e.Eb(Pa.column);switch(Ls.h(Math.max(Vu.minimum,Math.min(t,Vu.maximum)),Math.max(cc.minimum,Math.min(n,cc.maximum))),pl=fc(Pa,cc,Vu,!1),pl){case Tn:Bu[Vu.index]!==0&&(Ls.width=Math.min(Ls.width,Bu[Vu.index])),Sc[cc.index]!==0&&(Ls.height=Math.min(Ls.height,Sc[cc.index]));break;case xi:Bu[Vu.index]!==0&&(Ls.width=Math.min(Ls.width,Bu[Vu.index]));break;case Fi:Sc[cc.index]!==0&&(Ls.height=Math.min(Ls.height,Sc[cc.index]))}isFinite(Vu.width)&&(Ls.width=Vu.width),isFinite(cc.height)&&(Ls.height=cc.height),sh.h(0,0);for(var ng=Vu.minimum,lu=cc.minimum,Lh=1;Lh<Pa.rowSpan&&!(Pa.row+Lh>=e.rowCount);Lh++)pn=e.Fb(Pa.row+Lh),ms=0,ms=pl===Tn||pl===Fi?Math.max(pn.minimum,Sc[Pa.row+Lh]===0?pn.maximum:Math.min(Sc[Pa.row+Lh],pn.maximum)):Math.max(pn.minimum,isNaN(pn.Hc)?pn.maximum:Math.min(pn.Hc,pn.maximum)),sh.height+=ms,lu+=pn.minimum;for(var Ku=1;Ku<Pa.columnSpan&&!(Pa.column+Ku>=e.columnCount);Ku++)pn=e.Eb(Pa.column+Ku),ms=0,ms=pl===Tn||pl===xi?Math.max(pn.minimum,Bu[Pa.column+Ku]===0?pn.maximum:Math.min(Bu[Pa.column+Ku],pn.maximum)):Math.max(pn.minimum,isNaN(pn.Hc)?pn.maximum:Math.min(pn.Hc,pn.maximum)),sh.width+=ms,ng+=pn.minimum;Ls.width+=sh.width,Ls.height+=sh.height;var qf=Pa.margin,ld=qf.right+qf.left,s0=qf.top+qf.bottom;Pa.measure(Ls.width,Ls.height,ng,lu);for(var ep=Pa.measuredBounds,Dc=Math.max(ep.width+ld,0),Od=Math.max(ep.height+s0,0),ud=0,tp=0;tp<Pa.rowSpan&&!(Pa.row+tp>=e.rowCount);tp++)pn=e.Fb(Pa.row+tp),ud+=pn.total||0;if(ud<Od){var Rh=Od-ud,Yc=Od-ud;if(Pa.spanAllocation!==null)for(var Dh=Pa.spanAllocation,lh=0;lh<Pa.rowSpan&&!(0>=Rh)&&!(Pa.row+lh>=e.rowCount);lh++){pn=e.Fb(Pa.row+lh);var Ph=pn.oa||0,Ld=Dh(Pa,pn,Yc);pn.actual=Math.min(pn.maximum,Ph+Ld),pn.oa!==Ph&&(Rh-=pn.oa-Ph)}for(;0<Rh;){var Ec=pn.oa||0;if(isNaN(pn.height)&&pn.maximum>Ec&&(pn.actual=Math.min(pn.maximum,Ec+Rh),pn.oa!==Ec&&(Rh-=pn.oa-Ec)),pn.index===0)break;pn=e.Fb(pn.index-1)}}for(var of=0,Fh=0;Fh<Pa.columnSpan&&!(Pa.column+Fh>=e.columnCount);Fh++)pn=e.Eb(Pa.column+Fh),of+=pn.total||0;if(of<Dc){var af=Dc-of,Qv=Dc-of;if(Pa.spanAllocation!==null)for(var uh=Pa.spanAllocation,Rd=0;Rd<Pa.columnSpan&&!(0>=af)&&!(Pa.column+Rd>=e.columnCount);Rd++){pn=e.Eb(Pa.column+Rd);var l0=pn.oa||0,Jv=uh(Pa,pn,Qv);pn.actual=Math.min(pn.maximum,l0+Jv),pn.oa!==l0&&(af-=pn.oa-l0)}for(;0<af;){var ig=pn.oa||0;if(isNaN(pn.width)&&pn.maximum>ig&&(pn.actual=Math.min(pn.maximum,ig+af),pn.oa!==ig&&(af-=pn.oa-ig)),pn.index===0)break;pn=e.Eb(pn.index-1)}}}}Jt(ze),mi.free(sh),mi.free(Ls),Sc!==void 0&&Jt(Sc),Bu!==void 0&&Jt(Bu);var sf=0,lf=0,rg=e.desiredSize,Tb=e.maxSize;pl=zl(e,!0);var u0=rh=Kc=0,c0=0;o=e.columnCount;for(var og=0;og<o;og++)Dn[og]!==void 0&&(pn=e.Eb(og),isFinite(pn.width)?(u0+=pn.width,u0+=pn.Wc()):z0(pn)===Sp?(u0+=pn.oa,u0+=pn.Wc()):pn.oa!==0&&(Kc+=pn.oa,Kc+=pn.Wc()));isFinite(rg.width)?sf=Math.min(rg.width,Tb.width):sf=pl!==xn&&isFinite(t)?t:Kc,sf=Math.max(sf,e.minSize.width),sf=Math.max(sf-u0,0);for(var hx=Kc===0?1:Math.max(sf/Kc,1),ag=0;ag<o;ag++)Dn[ag]!==void 0&&(pn=e.Eb(ag),isFinite(pn.width)||z0(pn)===Sp||(pn.actual=pn.oa*hx),pn.position=r.width,pn.oa!==0&&(r.width+=pn.oa,r.width+=pn.Wc()));o=e.rowCount;for(var sg=0;sg<o;sg++)ei[sg]!==void 0&&(pn=e.Fb(sg),isFinite(pn.height)?(c0+=pn.height,c0+=pn.Wc()):z0(pn)===Sp?(c0+=pn.oa,c0+=pn.Wc()):pn.oa!==0&&(rh+=pn.oa,rh+=pn.Wc()));isFinite(rg.height)?lf=Math.min(rg.height,Tb.height):lf=pl!==xn&&isFinite(n)?n:rh,lf=Math.max(lf,e.minSize.height),lf=Math.max(lf-c0,0);for(var dx=rh===0?1:Math.max(lf/rh,1),lg=0;lg<o;lg++)ei[lg]!==void 0&&(pn=e.Fb(lg),isFinite(pn.height)||z0(pn)===Sp||(pn.actual=pn.oa*dx),pn.position=r.height,pn.oa!==0&&(r.height+=pn.oa,r.height+=pn.Wc()));o=l.length;for(var qv=0;qv<o;qv++){var h0=l[qv],ey=0,ty=0;h0.type===An.TableRow?(ey=r.width,pn=e.Fb(h0.row),ty=pn.actual):(pn=e.Eb(h0.column),ey=pn.actual,ty=r.height),h0.measuredBounds.h(0,0,ey,ty),qa(h0,!1)}Jt(l),e.inRowsCols=V},I0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding,o=r.left;r=r.top;var a=e.inRowsCols;if(a!==null){for(var l,u,f=a.length,p=0,x=0;x<f;x++)a[x]&&(p=Math.max(p,a[x].length));u=e.rowDefs,l=e.colDefs;var A=x=0,R=Math.min(e.topIndex,f-1);if(0<u.length){for(;R!==f&&(u[R]===void 0||u[R].oa===0);)R++;R=Math.max(Math.min(R,f-1),0),x=-u[R].position}var z=Math.min(e.leftIndex,p-1);if(0<l.length){for(;z!==p&&(l[z]===void 0||l[z].oa===0);)z++;z=Math.max(Math.min(z,p-1),0),A=-l[z].position}for(var V=0,ye=0;V!==f&&u[V]===void 0;)V++;for(;ye!==f&&l[ye]===void 0;)ye++;p=e.part,e.Fb(V),e.Eb(ye);for(var se=0;se<t.length;se++){var De=t[se];if(De instanceof An&&De.visible&&yh(De)){if(De.type===An.TableRow){l=e.Fb(De.row);var ze=e.Eb(ye)}else l=e.Fb(V),ze=e.Eb(De.column);u=l.position+x+r,l.oa!==0&&(u+=l.Io(Math.max(V,R))),l=ze.position+A+o,ze.oa!==0&&(l+=ze.Io(Math.max(ye,z))),ze=De.measuredBounds,De.Uk(),De.actualBounds.ka();var je=De.actualBounds,ot=Wt.allocAt(je.x,je.y,je.width,je.height);je.x=De.type===An.TableRow?o:l,je.y=De.type===An.TableColumn?r:u,je.width=ze.width,je.height=ze.height,De.actualBounds.freeze(),Fc(De,!1),po(ot,je)||p===null||(p.oh(),De.Pn(p)),Wt.free(ot)}}for(se=mi.alloc(),De=0;De<f;De++)if(a[De]){for(p=a[De].length,ze=e.Fb(De),u=ze.position+x+r,ze.oa!==0&&(u+=ze.Io(Math.max(V,R))),je=0;je<p;je++)if(a[De][je]){ot=e.Eb(je),l=ot.position+A+o,ot.oa!==0&&(l+=ot.Io(Math.max(ye,z)));for(var Nt=a[De][je],Vn=Nt.length,oi=0;oi<Vn;oi++){var ei=Nt[oi],Dn=ei.measuredBounds;se.h(0,0);for(var pn=1;pn<ei.rowSpan&&!(De+pn>=e.rowCount);pn++){var er=e.Fb(De+pn);er.oa!==0&&(se.height+=er.total)}for(pn=1;pn<ei.columnSpan&&!(je+pn>=e.columnCount);pn++)er=e.Eb(je+pn),er.oa!==0&&(se.width+=er.total);var Vi=ot.oa+se.width,Jr=ze.oa+se.height;pn=l,er=u;var Ro=Vi,ps=Jr,Ss=l,dl=u,ms=Vi,kh=Jr;l+Vi>n.width&&(ms=Math.max(n.width-l,0)),u+Jr>n.height&&(kh=Math.max(n.height-u,0));var Va=ei.alignment;if(Va.Xb()){Va=e.defaultAlignment,Va.sb()||(Va=Lr);var yc=Va.x,fl=Va.y,Ih=Va.offsetX;Va=Va.offsetY;var Eu=ot.alignment,Wu=ze.alignment;Eu.sb()&&(yc=Eu.x,Ih=Eu.offsetX),Wu.sb()&&(fl=Wu.y,Va=Wu.offsetY)}else yc=Va.x,fl=Va.y,Ih=Va.offsetX,Va=Va.offsetY;(isNaN(yc)||isNaN(fl))&&(fl=yc=.5,Va=Ih=0),Eu=Dn.width,Wu=Dn.height;var ou=ei.margin,Xl=ou.left+ou.right,nd=ou.top+ou.bottom,bc=fc(ei,ze,ot,!1);!isNaN(ei.desiredSize.width)||bc!==Tn&&bc!==xi||(Eu=Math.max(Vi-Xl,0)),!isNaN(ei.desiredSize.height)||bc!==Tn&&bc!==Fi||(Wu=Math.max(Jr-nd,0)),Vi=ei.maxSize,Jr=ei.minSize,Eu=Math.min(Vi.width,Eu),Wu=Math.min(Vi.height,Wu),Eu=Math.max(Jr.width,Eu),Wu=Math.max(Jr.height,Wu),Vi=Wu+nd,pn+=Ro*yc-(Eu+Xl)*yc+Ih+ou.left,er+=ps*fl-Vi*fl+Va+ou.top,ei.visible&&(mo(Ss,dl,ms,kh,pn,er,Dn.width,Dn.height)?ei.arrange(pn,er,Eu,Wu):ei.arrange(pn,er,Eu,Wu,new Wt(Ss,dl,ms,kh)))}}}for(mi.free(se),e=0;e<i;e++)n=t[e],o=n instanceof An?n:null,o!==null&&yh(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function M0(){this.xa="Base"}di(M0,ls),M0.prototype.measure=function(){},M0.prototype.arrange=function(){};function O0(){this.xa="Base"}di(O0,ls),O0.prototype.measure=function(){},O0.prototype.arrange=function(){};function L0(){this.xa="Base"}di(L0,ls),L0.prototype.measure=function(e,t,n,i,r,o,a){1<i.length&&Ke("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,a);var l=i.measuredBounds,u=i.margin,f=u.right+u.left;if(u=u.top+u.bottom,isFinite(t)||isFinite(n)){var p=i.scale,x=l.width;l=l.height;var A=Math.max(t-f,0),R=Math.max(n-u,0),z=1;e.viewboxStretch===fi?x!==0&&l!==0&&(z=Math.min(A/x,R/l)):x!==0&&l!==0&&(z=Math.max(A/x,R/l)),z===0&&(z=1e-4),i.Ca*=z,p!==i.scale&&(qa(i,!0),i.measure(1/0,1/0,o,a))}l=i.measuredBounds,r.width=isFinite(t)?t:Math.max(l.width+f,0),r.height=isFinite(n)?n:Math.max(l.height+u,0)},L0.prototype.arrange=function(e,t,n){t=t[0];var i=t.measuredBounds,r=t.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var a=t.alignment;a.Xb()&&(a=e.defaultAlignment),a.sb()||(a=Lr),t.arrange(n.width*a.x-o*a.x+a.offsetX,n.height*a.y-r*a.y+a.offsetY,i.width,i.height)};function yp(){this.xa="Base"}di(yp,ls),yp.prototype.measure=function(){},yp.prototype.arrange=function(){},yp.prototype.gc=function(e,t,n){n=e.Df()*n.scale,0>=n&&(n=1);var i=e.gridCellSize,r=i.width;i=i.height;var o=e.naturalBounds,a=e.actualBounds,l=o.width,u=o.height,f=Math.ceil(l/r),p=Math.ceil(u/i),x=e.gridOrigin,A=x.x;x=x.y,t.save(),t.beginPath(),t.rect(0,0,l,u),t.clip(),t.Se();for(var R=[],z=e.O.s,V=z.length,ye=0;ye<V;ye++){var se=z[ye],De=[];if(R.push(De),se.visible){var ze=se.interval;if(!(0>ze)){se=Cg(se.figure);for(var je=0;je<V;je++)if(je!==ye){var ot=z[je];ot.visible&&Cg(ot.figure)===se&&(ot=ot.interval,ot>ze&&De.push(ot))}}}}for(z=e.O.s,V=z.length,ye=0;ye<V;ye++){var Nt=z[ye];if(Nt.visible&&(De=Nt.interval||1,se=Math.abs(De),!(2>r*se*n))){if(ze=Nt.segmentIndex,(!isFinite(ze)||isNaN(ze))&&(ze=0),0>ze&&(ze=se-Math.min(-ze,se)),ze=Math.round(ze%se),se=Nt.opacity,je=1,se!==1){if(se===0)continue;je=t.globalAlpha,t.globalAlpha=je*se}ot=R[ye];var Vn=!1,oi=Nt.strokeDashArray;if(oi!==null&&(Vn=!0,t.js(oi,Nt.strokeDashOffset)),Nt.figure==="LineV"&&Nt.stroke!==null&&0<Nt.strokeWidth){for(t.lineWidth=Nt.strokeWidth,Ma(e,t,Nt.stroke,!1,!1,o,a),t.beginPath(),oi=Nt=Math.floor((A-r)/r);oi<=Nt+f;oi++){var ei=oi*r+A;0<=ei&&ei<=l&&R0(oi,De,ze,ot)&&(t.moveTo(ei,0),t.lineTo(ei,u))}t.stroke(),t.Se()}else if(Nt.figure==="LineH"&&Nt.stroke!==null&&0<Nt.strokeWidth){for(t.lineWidth=Nt.strokeWidth,Ma(e,t,Nt.stroke,!1,!1,o,a),t.beginPath(),oi=Nt=Math.floor((x-i)/i);oi<=Nt+p;oi++)ei=oi*i+x,0<=ei&&ei<=u&&R0(oi,De,ze,ot)&&(t.moveTo(0,ei),t.lineTo(l,ei));t.stroke(),t.Se()}else if(Nt.figure==="BarV"&&Nt.fill!==null)for(Ma(e,t,Nt.fill,!0,!1,o,a),Nt=Nt.width,isNaN(Nt)&&(Nt=r),ei=oi=Math.floor((A-r)/r);ei<=oi+f;ei++){var Dn=ei*r+A;0<=Dn+Nt&&Dn<=l&&R0(ei,De,ze,ot)&&t.fillRect(Dn,0,Nt,u)}else if(Nt.figure==="BarH"&&Nt.fill!==null)for(Ma(e,t,Nt.fill,!0,!1,o,a),Nt=Nt.height,isNaN(Nt)&&(Nt=i),ei=oi=Math.floor((x-i)/i);ei<=oi+p;ei++)Dn=ei*i+x,0<=Dn+Nt&&Dn<=u&&R0(ei,De,ze,ot)&&t.fillRect(0,Dn,l,Nt);Vn&&t.fs(),se!==1&&(t.globalAlpha=je)}}t.restore(),t.Vc(!1)};function R0(e,t,n,i){if(0>t)return e%t===n;if(e%t!==n)return!1;t=i.length;for(var r=0;r<t;r++)if(e%i[r]===n)return!1;return!0}function D0(){this.xa="Base"}di(D0,ls),D0.prototype.measure=function(e,t,n,i,r){var o=i.length;if(e instanceof Xr||e instanceof Fn){var a=null,l=null;if(e instanceof Fn&&(a=e),e instanceof Xr&&(l=e,a=l.adornedPart,e.j===null&&(e.j=[])),a instanceof Fn){var u=a;if(o===0)Ba(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var f=e instanceof Xr?null:a.path;t=a.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var p=u.points,x=a.pointsCount;l!==null?l.Ul(!1):a!==null&&a.Ul(!1),l=t.width;var A=t.height,R=e.j;if(R.length=0,f!==null){py(e,l,A,f);var z=f.measuredBounds;n.ed(z),R.push(z)}z=sr.alloc();for(var V=ce.alloc(),ye=ce.alloc(),se=0;se<o;se++){var De=i[se];if(De!==f)if(De.isPanelMain&&De instanceof hr){py(e,l,A,De);var ze=De.measuredBounds;n.ed(ze),R.push(ze)}else if(2>x)De.measure(1/0,1/0,0,0),ze=De.measuredBounds,n.ed(ze),R.push(ze);else{var je=De.segmentIndex,ot=De.segmentFraction,Nt=De.alignmentFocus;Nt.Mc()&&(Nt=Lr);var Vn=De.segmentOrientation,oi=De.segmentOffset;if(isNaN(je)){var ei=u.ua;ze=Dt(),ei.Qu(ot,ze);var Dn=ce.allocAt(ze[0],ze[1]);if(Dn.add(u.i(0)),ei.type===Pn.j?Dn.offset(-ei.startX,-ei.startY):(ei=ei.figures.first(),ei!==null&&Dn.offset(-ei.startX,-ei.startY)),ei=ze[2],Vn!==Cl){var pn=u.computeAngle(De,Vn,ei);De.Kb=pn}pn=Dn.x-t.x;var er=Dn.y-t.y;ce.free(Dn),Jt(ze)}else if(je<-x||je>=x)ze=ce.alloc(),u.vg(),u.computeMidPoint(ze),ei=u.midAngle,Vn!==Cl&&(pn=u.computeAngle(De,Vn,ei),De.Kb=pn),pn=ze.x-t.x,er=ze.y-t.y,ce.free(ze);else{if(pn=0,0<=je?(er=p.M(je),ze=je<x-1?p.M(je+1):er):(pn=x+je,er=p.M(pn),ze=0<pn?p.M(pn-1):er),er.Xa(ze)){0<=je?(ei=0<je?p.M(je-1):er,pn=je<x-2?p.M(je+2):ze):(ei=pn<x-1?p.M(pn+1):er,pn=1<pn?p.M(pn-2):ze),Dn=ei.Bf(er);var Vi=ze.Bf(pn);ei=Dn>Vi+10?0<=je?ei.ab(er):er.ab(ei):Vi>Dn+10?0<=je?ze.ab(pn):pn.ab(ze):0<=je?ei.ab(pn):pn.ab(ei)}else ei=0<=je?er.ab(ze):ze.ab(er);Vn!==Cl&&(pn=u.computeAngle(De,Vn,ei),De.Kb=pn),pn=er.x+(ze.x-er.x)*ot-t.x,er=er.y+(ze.y-er.y)*ot-t.y}De.measure(1/0,1/0,0,0),ze=De.measuredBounds,Dn=De.naturalBounds;var Jr=0;De instanceof hr&&(Jr=De.strokeWidth),Vi=Dn.width+Jr;var Ro=Dn.height+Jr;z.reset(),z.translate(-ze.x,-ze.y),z.scale(De.scale,De.scale),z.rotate(Vn===Cl?De.angle:ei,Vi/2,Ro/2),Vn!==Op&&Vn!==Rp||z.rotate(90,Vi/2,Ro/2),Vn!==Lp&&Vn!==Dp||z.rotate(-90,Vi/2,Ro/2),Vn===cm&&(45<ei&&135>ei||225<ei&&315>ei)&&z.rotate(-ei,Vi/2,Ro/2),Dn=new Wt(0,0,Vi,Ro),V.xi(Dn,Nt),z.Ga(V),Nt=-V.x+Jr/2*De.scale,De=-V.y+Jr/2*De.scale,ye.assign(oi),Jr=isNaN(oi.x);var ps=isNaN(oi.y);if(Jr||ps){Vi=Vi/2+3,Ro=Ro/2+3;var Ss=45<=ei&&135>=ei,dl=225<=ei&&315>=ei;Vn===Cl&&(Ss||dl)?(ye.x=ps?Vi:oi.y,ye.y=Jr?Ro:oi.x,Ss?0<=je||isNaN(je)&&.5>ot||!Jr||(ye.y=-Ro):dl&&((0<=je||isNaN(je)&&.5>ot)&&Jr&&(ye.y=-Ro),ps&&(ye.x=-Vi))):(Jr&&(ye.x=0<=je||isNaN(je)&&.5>ot?Vi:-Vi),ps&&(ye.y=-Ro),ye.rotate(ei))}else ye.rotate(ei);pn+=ye.x,er+=ye.y,Dn.set(ze),Dn.h(pn+Nt,er+De,ze.width,ze.height),R.push(Dn),n.ed(Dn)}}if(a!==null)for(i=a.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Ba(r,n.width||0,n.height||0),sr.free(z),ce.free(V),ce.free(ye)}}}},D0.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Xr||e instanceof Fn){var i=e,r=null;e instanceof Xr&&(r=e,i=r.adornedPart);var o=e instanceof Xr?null:i.path,a=e.j;if(a.length!==0){var l=0;if(o!==null&&l<a.length){var u=a[l];l++,o.arrange(u.x-e.jg.x,u.y-e.jg.y,u.width,u.height)}for(u=0;u<n;u++){var f=t[u];if(f!==o&&l<a.length){var p=a[l];l++,f.arrange(p.x-e.jg.x,p.y-e.jg.y,p.width,p.height)}}}if(t=i.points,n=t.count,2<=n&&e instanceof Fn)for(o=e.labelNodes;o.next();){var x=e;a=o.value,l=a.segmentIndex,u=a.segmentFraction;var A=a.alignmentFocus;if(f=a.segmentOrientation,p=a.segmentOffset,isNaN(l)){var R=x.ua,z=Dt();R.Qu(u,z);var V=ce.allocAt(z[0],z[1]);V.add(x.i(0)),R.type===Pn.j||(R=R.figures.first()),V.offset(-R.startX,-R.startY),R=z[2],f!==Cl&&(x=x.computeAngle(a,f,R),a.angle=x),x=V.x;var ye=V.y;ce.free(V),Jt(z)}else if(l<-n||l>=n)z=ce.alloc(),R=x,ye=z,R.vg(),R.computeMidPoint(ye),R=x.midAngle,f!==Cl&&(x=x.computeAngle(a,f,R),a.angle=x),x=z.x,ye=z.y,ce.free(z);else{if(V=0,0<=l?(z=t.s[l],ye=l<n-1?t.s[l+1]:z):(V=n+l,z=t.s[V],ye=0<V?t.s[V-1]:z),z.Xa(ye)){0<=l?(R=0<l?t.s[l-1]:z,V=l<n-2?t.s[l+2]:ye):(R=V<n-1?t.s[V+1]:z,V=1<V?t.s[V-2]:ye);var se=R.Bf(z),De=ye.Bf(V);R=se>De+10?0<=l?R.ab(z):z.ab(R):De>se+10?0<=l?ye.ab(V):V.ab(ye):0<=l?R.ab(V):V.ab(R)}else R=0<=l?z.ab(ye):ye.ab(z);f!==Cl&&(x=x.computeAngle(a,f,R),a.angle=x),x=z.x+(ye.x-z.x)*u,ye=z.y+(ye.y-z.y)*u}if(A.ys())a.location=new ce(x,ye);else{A.Mc()&&(A=Lr),z=sr.alloc(),z.reset(),z.scale(a.scale,a.scale),z.rotate(a.angle,0,0);var ze=a.naturalBounds;V=Wt.allocAt(0,0,ze.width,ze.height),se=ce.alloc(),se.xi(V,A),z.Ga(se),A=-se.x,De=-se.y;var je=ze.width,ot=ze.height;ze=ce.alloc(),ze.assign(p);var Nt=isNaN(p.x),Vn=isNaN(p.y);if(Nt||Vn){je=je/2+3,ot=ot/2+3;var oi=45<=R&&135>=R,ei=225<=R&&315>=R;f===Cl&&(oi||ei)?(ze.x=Vn?je:p.y,ze.y=Nt?ot:p.x,oi?0<=l||isNaN(l)&&.5>u||!Nt||(ze.y=-ot):ei&&((0<=l||isNaN(l)&&.5>u)&&Nt&&(ze.y=-ot),Vn&&(ze.x=-je))):(Nt&&(ze.x=0<=l||isNaN(l)&&.5>u?je:-je),Vn&&(ze.y=-ot),ze.rotate(R))}else ze.rotate(R);x+=ze.x,ye+=ze.y,z.pp(V),A+=V.x,De+=V.y,l=ce.allocAt(x+A,ye+De),a.move(l),ce.free(l),ce.free(ze),ce.free(se),Wt.free(V),sr.free(z)}}r!==null?r.Ul(!1):i.Ul(!1),i=jy(e),e.location.h(e.position.x+i.x,e.position.y+i.y),ce.free(i)}};function py(e,t,n,i){if(yu(i)!==!1){var r=i.strokeWidth;r===0&&e instanceof Xr&&e.type===An.Link&&e.adornedObject instanceof hr&&(r=e.adornedObject.strokeWidth),r*=i.Ca,e instanceof Fn&&e.ua!==null?(e=e.geometry.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):e instanceof Xr&&e.adornedPart.ua!==null?(e=e.adornedPart.ua.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):i.Ge(-(r/2),-(r/2),t+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),qa(i,!1)}}function bp(){this.xa="Base"}di(bp,ls),bp.prototype.measure=function(e,t,n,i,r,o,a){var l=e.Pb();e.graduatedBounds=[];var u=l.margin,f=u.right+u.left,p=u.top+u.bottom;l.measure(t,n,o,a);var x=l.measuredBounds,A=new Wt(-u.left,-u.top,Math.max(x.width+f,0),Math.max(x.height+p,0));e.graduatedBounds.push(A),r.assign(A);for(var R=l.geometry,z=l.strokeWidth,V=R.flattenedSegments,ye=R.flattenedLengths,se=R.flattenedTotalLength,De=V.length,ze=0,je=0,ot=Dt(),Nt=0;Nt<De;Nt++){var Vn=V[Nt],oi=[];je=ze=0;for(var ei=Vn.length,Dn=0;Dn<ei;Dn+=2){var pn=Vn[Dn],er=Vn[Dn+1];if(Dn!==0){var Vi=180*Math.atan2(er-je,pn-ze)/Math.PI;0>Vi&&(Vi+=360),oi.push(Vi)}ze=pn,je=er}ot.push(oi)}if(e.graduatedIntervals===null){for(var Jr=[],Ro=e.O.s,ps=Ro.length,Ss=0;Ss<ps;Ss++){var dl=Ro[Ss],ms=[];if(Jr.push(ms),dl.visible){var kh=dl.interval;if(!(0>kh)){for(var Va=0;Va<ps;Va++)if(Va!==Ss){var yc=Ro[Va];if(yc.visible&&dl.constructor===yc.constructor){var fl=yc.interval;fl>kh&&ms.push(fl)}}}}}e.graduatedIntervals=Jr}var Ih=e.graduatedIntervals,Eu=e.O.s,Wu=Eu.length,ou=0,Xl=0,nd=se;e.graduatedMarks=[];for(var bc,Vf=0;Vf<Wu;Vf++){var au=Eu[Vf];if(bc=[],au.visible&&au!==l){var pl=Math.abs(au.interval),r0=e.graduatedTickUnit;if(!(2>r0*pl*se/e.graduatedRange&&au.graduatedSkip===null)){var ef=ye[0][0],Oc=0,Ql=0;Xl=se*au.graduatedStart-1e-4,nd=se*au.graduatedEnd+1e-4;var Ad=r0*pl,su=e.graduatedTickBase;if(su<e.graduatedMin){var id=(e.graduatedMin-su)/Ad;id=id%1===0?id:Math.floor(id+1),su+=id*Ad}else su>e.graduatedMin+Ad&&(su-=Math.floor((su-e.graduatedMin)/Ad)*Ad);for(var Jm=Ih[Vf],o0=su,Yv=1e-6*e.graduatedMax,Kc=1;su<=e.graduatedMax+Yv;Kc++){e:{for(var rh=Jm.length,tf=0;tf<rh;tf++){var rd=(su-e.graduatedTickBase)%(Jm[tf]*e.graduatedTickUnit),Kf=1e-6*e.graduatedTickUnit;if(rd<Kf&&rd>-Kf){var od=!1;break e}}od=!0}if(od&&(su>e.graduatedMax&&(su=e.graduatedMax),au.graduatedSkip===null||au instanceof Po&&!au.graduatedSkip(su,au)||au instanceof hr&&!au.graduatedSkip(su,au))&&(ou=(su-e.graduatedMin)*se/e.graduatedRange,ou>se&&(ou=se),Xl<=ou&&ou<=nd)){for(var Zc=ot[Oc][Ql],Mh=ye[Oc][Ql];Oc<ye.length;){for(;ou>ef&&Ql<ye[Oc].length-1;)Ql++,Zc=ot[Oc][Ql],Mh=ye[Oc][Ql],ef+=Mh;if(ou<=ef)break;Oc++,Ql=0,Zc=ot[Oc][Ql],Mh=ye[Oc][Ql],ef+=Mh}var Jl=V[Oc],Lc=Jl[2*Ql],qm=Jl[2*Ql+1],oh=(ou-(ef-Mh))/Mh,Zf=new ce(Lc+(Jl[2*Ql+2]-Lc)*oh+z/2-R.bounds.x,qm+(Jl[2*Ql+3]-qm)*oh+z/2-R.bounds.y);Zf.scale(l.scale,l.scale);e:{var xc=Zc,kd=ot[Oc];if(!(.5005>oh&&.4995<oh)){var Rc=xc;if(.5>oh?0<Ql?Rc=kd[Ql-1]:et.$(Jl[0],Jl[Jl.length-2])&&et.$(Jl[1],Jl[Jl.length-1])&&(Rc=kd[kd.length-1]):.5<oh&&(Ql+1<kd.length?Rc=kd[Ql+1]:et.$(Jl[0],Jl[Jl.length-2])&&et.$(Jl[1],Jl[Jl.length-1])&&(Rc=kd[0])),xc!==Rc){var nf=Math.abs(xc-Rc);if(180<nf&&(xc<Rc?xc+=360:Rc+=360,nf=Math.abs(xc-Rc)),5e-4>oh||.9995<oh){Zc=(xc+Rc)/2%360;break e}if(10>nf){var Yf=1-Math.abs(.5-oh);Zc=(xc*Yf+Rc*(1-Yf))%360;break e}}}Zc=xc}if(au instanceof Po){var uc="";au.graduatedFunction!==null?(uc=au.graduatedFunction(su,au),uc=uc!=null?uc.toString():""):uc=(+su.toFixed(2)).toString(),uc!==""&&bc.push({$l:Zf,angle:Zc,text:uc})}else bc.push({$l:Zf,angle:Zc})}su=o0+Kc*Ad}}}e.graduatedMarks.push(bc)}Jt(ot);var Ls=e.graduatedMarks;if(Ls!==null)for(var a0=i.length,Il=0;Il<a0;Il++){var Ka=i[Il],Ml=Ls[Il];if(Ka.visible&&Ka!==l&&Ml.length!==0){if(Ka instanceof hr){var ah=e,Oh=r,Id=Ka.alignmentFocus;Id.Mc()&&(Id=As);var Xv=Ka.angle;Ka.Kb=0,Ka.measure(1/0,1/0,0,0),Ka.Kb=Xv;var eg=Ka.measuredBounds,Xf=eg.width,Md=eg.height,rf=Wt.allocAt(0,0,Xf,Md),ql=ce.alloc();ql.xi(rf,Id),Wt.free(rf);for(var sh=-ql.x,Sc=-ql.y,Bu=new Wt,ad=Ml.length,Qf=0;Qf<ad;Qf++)for(var sd=Ml[Qf],tg=sd.$l.x,Jf=sd.$l.y,Pa=sd.angle,cc=0;4>cc;cc++){switch(cc){case 0:ql.h(sh,Sc);break;case 1:ql.h(sh+Xf,Sc);break;case 2:ql.h(sh,Sc+Md);break;case 3:ql.h(sh+Xf,Sc+Md)}ql.rotate(Pa+Ka.angle),ql.offset(tg,Jf),Qf===0&&cc===0?Bu.h(ql.x,ql.y,0,0):Bu.Ye(ql),ql.offset(-tg,-Jf),ql.rotate(-Pa-Ka.angle)}ce.free(ql),ah.graduatedBounds!==null&&ah.graduatedBounds.push(Bu),Dr(Oh,Bu.x,Bu.y,Bu.width,Bu.height)}else if(Ka instanceof Po){var Vu=e,ng=r;Vu.temporaryTextBlock===null&&(Vu.temporaryTextBlock=new Po);var lu=Vu.temporaryTextBlock;Iy(lu,Ka);var Lh=Ka.alignmentFocus;Lh.Mc()&&(Lh=As);for(var Ku=Ka.segmentOrientation,qf=Ka.segmentOffset,ld=new Wt,s0=0,ep=0,Dc=0,Od=0,ud=0,tp=Ml.length,Rh=0;Rh<tp;Rh++){var Yc=Ml[Rh];s0=Yc.$l.x,ep=Yc.$l.y,Dc=Yc.angle,ud=Od=Ka.angle,Ku!==Cl&&(ud=Ku===Mp||Ku===um?Dc+Ka.angle:Dc,Od=Fn.computeAngle(Ku,ud)),lu.Kb=Od,lu.text=Yc.text||"",lu.measure(1/0,1/0,0,0);var Dh=lu.measuredBounds,lh=lu.naturalBounds,Ph=lh.width,Ld=lh.height,Ec=sr.alloc();Ec.reset(),Ec.translate(-Dh.x,-Dh.y),Ec.scale(lu.scale,lu.scale),Ec.rotate(ud,Ph/2,Ld/2),Ku!==Op&&Ku!==Rp||Ec.rotate(90,Ph/2,Ld/2),Ku!==Lp&&Ku!==Dp||Ec.rotate(-90,Ph/2,Ld/2),Ku===cm&&(45<Dc&&135>Dc||225<Dc&&315>Dc)&&Ec.rotate(-Dc,Ph/2,Ld/2);var of=Wt.allocAt(0,0,Ph,Ld),Fh=ce.alloc();Fh.xi(of,Lh),Ec.Ga(Fh);var af=-Fh.x,Qv=-Fh.y,uh=ce.alloc();uh.assign(qf),isNaN(uh.x)&&(uh.x=Ph/2+3),isNaN(uh.y)&&(uh.y=-(Ld/2+3)),uh.rotate(Dc),s0+=uh.x+af,ep+=uh.y+Qv;var Rd=new Wt(s0,ep,Dh.width,Dh.height),l0=new Wt(Dh.x,Dh.y,Dh.width,Dh.height),Jv=new Wt(lh.x,lh.y,lh.width,lh.height);Yc.Sz=Od,Yc.lineCount=lu.lineCount,Yc.lines=[lu.Cb,lu.Ih,lu.df,lu.Le,lu.Qc,lu.Qb,lu.ze],Yc.actualBounds=Rd,Yc.measuredBounds=l0,Yc.naturalBounds=Jv,Rh===0?ld.assign(Rd):ld.ed(Rd),ce.free(uh),ce.free(Fh),Wt.free(of),sr.free(Ec)}Vu.graduatedBounds!==null&&Vu.graduatedBounds.push(ld),Dr(ng,ld.x,ld.y,ld.width,ld.height)}qa(Ka,!1)}}},bp.prototype.arrange=function(e,t,n){if(e.graduatedBounds!==null){var i=e.Pb(),r=e.graduatedMarks;if(r!==null){var o=e.graduatedBounds,a=0,l=o[a];a++,i!==null&&i.arrange(l.x-n.x,l.y-n.y,l.width,l.height);for(var u=t.length,f=0;f<u;f++){var p=t[f];l=r[f],p.visible&&p!==i&&l.length!==0&&(l=o[a],a++,p.arrange(l.x-n.x,l.y-n.y,l.width,l.height))}e.graduatedBounds=null}}},bp.prototype.gc=function(e,t,n){var i=n.$i;n.$i=!0;var r=e.naturalBounds,o=r.width,a=r.height;r=t instanceof nu,t.save(),t.beginPath(),t.rect(-1,-1,o+1,a+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),a=e.Df()*n.scale,0>=a&&(a=1);for(var l=o.actualBounds,u=e.O.s,f=e.graduatedMarks,p=u.length,x=0;x<p;x++){var A=u[x],R=f[x],z=R.length;if(A.visible&&A!==o&&R.length!==0){if(A instanceof hr){if(!(2>e.graduatedTickUnit*A.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&A.graduatedSkip===null)){var V=A.measuredBounds,ye=A.strokeWidth*A.scale,se=A.alignmentFocus;se.Mc()&&(se=As);for(var De=0;De<z;De++){var ze=R[De].$l,je=R[De].angle,ot=se,Nt=A.Ab;Nt.reset(),Nt.translate(ze.x+l.x,ze.y+l.y),Nt.rotate(je+A.angle,0,0),Nt.translate(-V.width*ot.x+ot.offsetX+ye/2,-V.height*ot.y+ot.offsetY+ye/2),Nt.scale(A.scale,A.scale),Uu(A,!1),A.wh.set(A.Ab),A.Kk=A.scale,Mu(A,!1),A.gc(t,n),r&&(e.svg.appendChild(A.svg),A.svg=null),A.Ab.reset()}}}else if(A instanceof Po)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new Po),V=e.temporaryTextBlock,Iy(V,A),ye=0;ye<z;ye++)se=R[ye],se.actualBounds&&se.measuredBounds&&se.naturalBounds&&(V.ec=se.text||"",V.Kb=se.Sz||0,V.Gc=se.lineCount||0,De=se.lines,De!==void 0&&(V.Cb=De[0],V.Ih=De[1],V.df=De[2],V.Le=De[3],V.Qc=De[4],V.Qb=De[5],V.ze=De[6]),se.naturalBounds&&(V.dc=se.naturalBounds),se.actualBounds&&(De=se.actualBounds,V.arrange(De.x,De.y,De.width,De.height)),De=se.actualBounds,V.arrange(De.x,De.y,De.width,De.height),ze=se.measuredBounds,se=se.naturalBounds,je=V.Ab,je.reset(),je.translate(De.x+l.x,De.y+l.y),je.translate(-ze.x,-ze.y),V.no(je,se.x,se.y,se.width,se.height),Uu(V,!1),V.wh.set(V.Ab),V.Kk=V.scale,Mu(V,!1),V.Ng=A.part,V.Me=A.panel,V.gc(t,n),V.Me=null,V.Ng=null,r&&(e.svg.appendChild(V.svg),V.svg=null))}}n.$i=i,t.restore(),t.Vc(!0)};function An(e,t){if(st.call(this),this.na=null,e===void 0)this.na=An.Position;else if(typeof e=="string"){var n=ic.I(e);n!==null&&(this.na=n)}else e instanceof ls?this.na=e:e&&(this.na=An.Position,t=e);this.na===null&&Ke("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===An.Grid?1048576:0),this.O=new Xt,this.yb=is,this.Tm=Vr,this.Uf=or,this.$g=null,this.$e="",this.jg=new Wt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=fi,this.jn=Ya,this.kn=mr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}di(An,st),An.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.na=this.na,e.yb=this.yb.J(),e.Tm=this.Tm.J(),e.Uf=this.Uf,e.$e=this.$e,e.jg.assign(this.jg),this.T!==null&&(e.T=this.T.copy(e)),e.xo=this.xo,e.jn=this.jn.J(),e.kn=this.kn.J(),this.ra!==null&&(e.ra=this.ra.copy()),e.ub=this.ub,e.zn=this.zn,e.Hh=this.Hh},An.prototype.Af=function(e){st.prototype.Af.call(this,e),e.O=this.O;for(var t=e.O.s,n=t.length,i=0;i<n;i++)t[i].Me=e;e.$g=null},An.prototype.copy=function(){var e=st.prototype.copy.call(this);if(e!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].copy();r.wi(e),r.Ng=null;var o=e.O,a=o.count;if(o.Gb(a,r),o=e.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof Xn&&(o.Te=!0);var l=e.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(qo,"elements",e,null,r,null,a)}}return e}return null},U=An.prototype,U.toString=function(){return"Panel("+this.type.name+")#"+At(this)},U.Pn=function(e){st.prototype.Pn.call(this,e);for(var t=this.O.s,n=t.length,i=0;i<n;i++)t[i].Pn(e)},U.hh=function(e,t){if(this.na===An.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===An.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===An.Table)if(e.yc(),e instanceof nu){var n=e.yd;e.yd=S0(e,"gojs-ts"),wg(this,e),e.nh.pop(),e.yd=n}else wg(this,e);(n=this.isClipping&&this.na===An.Spot)&&e.save();for(var i=this.Pb(),r=this.O.s,o=r.length,a=0;a<o;a++){var l=r[a];n&&l===i&&(e.clipInsteadOfFill=!0),l.gc(e,t),n&&l===i&&(e.clipInsteadOfFill=!1)}n&&(e.restore(),e.Vc(!0))}};function wg(e,t){t.lineCap="butt";var n=0<e.rowCount?e.rowDefs:null,i=0<e.columnCount?e.colDefs:null;n!==null&&P0(e,t,!0,n,!0),i!==null&&P0(e,t,!1,i,!0),n!==null&&my(e,t,!0,n),i!==null&&my(e,t,!1,i),n!==null&&P0(e,t,!0,n,!1),i!==null&&P0(e,t,!1,i,!1)}function my(e,t,n,i){for(var r=i.length,o=e.actualBounds,a=e.naturalBounds,l=!0,u=0;u<r;u++){var f=i[u];if(f!==void 0&&f.actual!==0)if(l)l=!1;else{if(n){if(f.position>a.height)continue}else if(f.position>a.width)continue;var p=f.separatorStrokeWidth;isNaN(p)&&(p=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var x=f.separatorStroke;if(x===null&&(x=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),p!==0&&x!==null){Ma(e,t,x,!1,!1,a,o),x=!1;var A=f.separatorDashArray;A===null&&(A=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),A!==null&&(x=!0,t.js(A,0)),t.beginPath(),A=f.position+p,n?A>a.height&&(p-=A-a.height):A>a.width&&(p-=A-a.width),f=f.position+p/2,t.lineWidth=p,p=e.yb,n?(f+=p.top,A=a.width-p.right,t.moveTo(p.left,f),t.lineTo(A,f)):(f+=p.left,A=a.height-p.bottom,t.moveTo(f,p.top),t.lineTo(f,A)),t.stroke(),t.Se(),x&&t.fs()}}}}function P0(e,t,n,i,r){for(var o=i.length,a=e.actualBounds,l=e.naturalBounds,u=gy(e,!0),f=gy(e,!1),p=0;p<o;p++){var x=i[p];if(x!==void 0&&x.background!==null&&x.coversSeparators!==r&&x.actual!==0){var A=n?a.height:a.width;if(!(x.position>A)){var R=x.Wc(),z=x.separatorStrokeWidth;isNaN(z)&&(z=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var V=x.separatorStroke;V===null&&(V=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(V===null||x.index===(n?u:f))&&(z=0),R-=z,z=x.position+z,R+=x.actual,z+R>A&&(R=A-z),0>=R||(A=e.yb,Ma(e,t,x.background,!0,!1,l,a),n?t.fillRect(A.left,z+A.top,a.width-(A.left+A.right),R):t.fillRect(z+A.left,A.top,R,a.height-(A.top+A.bottom)))}}}}function gy(e,t){for(var n=t?e.rowCount:e.columnCount,i=0;i<n;i++){var r=t?e.rowDefs[i]:e.colDefs[i];if(r!==void 0)return r.index}return 0}function Cg(e){return e==="LineV"||e==="BarV"}U.lv=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].lv();this.Uc=!0},U.kk=function(e,t,n){if(!st.prototype.kk.call(this,e,t,n))return!1;if(this.type===An.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),e.yd=n,wg(this,e),e.yd=null;else if(this.na===An.Grid||this.na===An.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(e,t);return!0},U.nk=function(){return!0},U.$o=function(e,t,n,i){if(!this.isClipping)if(this.Dd()&&e.bk!==null){e=e.bk,t=this.O.s;for(var r=0,o=0,a=0;a<t.length;a++)if(t[a].Ed()){var l=t[a].actualBounds;r=a===0?l.x:Math.min(l.x,r),o=a===0?l.y:Math.min(l.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(e.x-n.x-r)+","+(e.y-n.y-o)+" l "+e.width+" 0 l 0 "+e.height+" l -"+e.width+" 0 z')")}else st.prototype.$o.call(this,e,t,n,i)},U.Sj=function(e,t,n,i,r){var o=this.se(),a=this.transform,l=1/(a.m11*a.m22-a.m12*a.m21),u=a.m22*l,f=-a.m12*l,p=-a.m21*l,x=a.m11*l,A=l*(a.m21*a.dy-a.m22*a.dx),R=l*(a.m12*a.dx-a.m11*a.dy);if(this.areaBackground!==null)return a=this.actualBounds,et.Ff(a.left,a.top,a.right,a.bottom,e,t,n,i,r);if(this.background!==null)return o=e*u+t*p+A,l=e*f+t*x+R,e=n*u+i*p+A,u=n*f+i*x+R,r.h(0,0),n=this.naturalBounds,o=et.Ff(0,0,n.width,n.height,o,l,e,u,r),r.transform(a),o;o||(u=1,p=f=0,x=1,R=A=0),l=e*u+t*p+A,e=e*f+t*x+R,u=n*u+i*p+A,n=n*f+i*x+R,r.h(u,n),i=(u-l)*(u-l)+(n-e)*(n-e),f=!1,x=this.O.s,R=x.length,p=ce.alloc(),A=null,t=1/0;var z=null,V=this.isClipping&&this.na===An.Spot;V&&(z=ce.alloc(),A=this.Pb(),(f=A.Sj(l,e,u,n,z))&&(t=(l-z.x)*(l-z.x)+(e-z.y)*(e-z.y)));for(var ye=0;ye<R;ye++){var se=x[ye];se.visible&&se!==A&&se.Sj(l,e,u,n,p)&&(f=!0,se=(l-p.x)*(l-p.x)+(e-p.y)*(e-p.y),se<i&&(i=se,r.set(p)))}return V&&(t>i&&r.set(z),ce.free(z)),ce.free(p),o&&r.transform(a),f},U.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();st.prototype.Gj.call(this)},U.v=function(e){if(!yu(this)){st.prototype.v.call(this,e),e=null,(this.na===An.Auto||this.na===An.Link)&&(e=this.Pb());for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if((r===e||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=zl(r,!1);(r instanceof wl||r instanceof An||r instanceof Po||o!==xn)&&r.v(!0)}}}},U.Uj=function(){if(!yu(this)){qa(this,!0),Fc(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Uj()}},U.Uk=function(){if(!(this.l&2048)){Uu(this,!0),Mu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},U.Wu=function(){Mu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()},U.Wl=function(e,t,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,a=this.minSize;n===void 0&&(n=a.width,i=a.height),n=Math.max(n,a.width),i=Math.max(i,a.height);var l=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,l.width)),isNaN(o.height)||(t=Math.min(o.height,l.height)),e=Math.max(n,e),t=Math.max(i,t);var u=this.yb;e=Math.max(e-u.left-u.right,0),t=Math.max(t-u.top-u.bottom,0);var f=this.O.s;f.length!==0&&this.na.measure(this,e,t,f,r,n,i),e=r.width+u.left+u.right,u=r.height+u.top+u.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(u=o.height),e=Math.min(l.width,e),u=Math.min(l.height,u),e=Math.max(a.width,e),u=Math.max(a.height,u),e=Math.max(n,e),u=Math.max(i,u),Ba(r,e,u),Ba(this.naturalBounds,e,u),this.Ge(0,0,e,u)},U.Pb=function(){if(this.$g===null){var e=this.O.s,t=e.length;if(t===0)return null;for(var n=0;n<t;n++){var i=e[n];if(i.isPanelMain===!0)return this.$g=i}this.$g=e[0]}return this.$g};function th(e){return e.part!==null?e.part.locationObject:null}U.eh=function(e,t,n,i){var r=this.O.s;if(this.actualBounds.h(e,t,n,i),r.length!==0){if(!this.desiredSize.w()){e=zl(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var a=this.Kg,l=a.left+a.right;switch(a=a.top+a.bottom,t===n&&o===i&&(e=xn),e){case xn:(t>n||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case Tn:this.v(!0),this.measure(n+l,i+a,0,0);break;case xi:this.v(!0),this.measure(n+l,o+a,0,0);break;case Fi:this.v(!0),this.measure(t+l,i+a,0,0)}}this.na.arrange(this,r,this.jg)}},U.gh=function(e){var t=this.naturalBounds,n=th(this);if(mo(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var i=t.length,r=ce.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(Di(r.set(e),o.transform),o.ca(r)))return ce.free(r),!0}return ce.free(r),!(this.Ma===null&&this.areaBackground===null)}return!1},U.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].ks(e);if(r!==null)return r}return null},U.qm=function(e,t){if(t(this,e),e instanceof An){e=e.O.s;for(var n=e.length,i=0;i<n;i++)this.qm(e[i],t)}};function bd(e,t){vy(e,e,t)}function vy(e,t,n){n(t),t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=t[r];o instanceof An&&vy(e,o,n)}}function Ob(e,t){yy(e,e,t)}function yy(e,t,n){if(n(t),t instanceof An){t=t.O.s;for(var i=t.length,r=0;r<i;r++)yy(e,t[r],n)}}U.Nl=function(e){return by(this,this,e)};function by(e,t,n){if(n(t))return t;if(t instanceof An){t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=by(e,t[r],n);if(o!==null)return o}}return null}U.fb=function(e){if(this.name===e)return this;var t=this.O.s,n=t.length;this.Hh===null&&this.itemTemplateMap===null||(n=xp(this));for(var i=0;i<n;i++){var r=t[i];if(r instanceof An){var o=r.fb(e);if(o!==null)return o}if(r.name===e)return r}return null};function xy(e){e=e.O.s;for(var t=e.length,n=0,i=0;i<t;i++){var r=e[i];r instanceof An?n=Math.max(n,xy(r)):r instanceof hr&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}U.se=function(){return!(this.type===An.TableRow||this.type===An.TableColumn)};function yh(e){return e.type===An.TableRow||e.type===An.TableColumn}U.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),Sl(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),a=o?e:Di(ce.allocAt(e.x,e.y),this.transform),l=this.diagram,u=10,f=5;if(l!==null&&(u=l.Ql("extraTouchArea"),f=u/2),mo(-(f*r),-(f*r),i.width+u*r,i.height+u*r,a.x,a.y)){if(!this.isAtomic){r=this.O.s;var p=r.length;if(l=ce.alloc(),f=(u=this.isClipping&&this.na===An.Spot)?this.Pb():null,u&&(f.se()?Di(l.set(e),f.transform):l.set(e),!f.ca(l)))return ce.free(l),o||ce.free(a),null;for(var x=th(this);p--;){var A=r[p];if((A.visible||A===x)&&(A.se()?Di(l.set(e),A.transform):l.set(e),!u||A!==f)){var R=null;if(A instanceof An?R=A.ic(l,t,n):A.pickable===!0&&A.ca(l)&&(R=A),R!==null&&(t!==null&&(R=t(R)),R!==null&&(n===null||n(R))))return ce.free(l),o||ce.free(a),R}}ce.free(l)}return this.background===null&&this.areaBackground===null?(o||ce.free(a),null):(e=mo(0,0,i.width,i.height,a.x,a.y)?this:null,o||ce.free(a),e)}return o||ce.free(a),null},U.ji=function(e,t,n,i){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var r=this.naturalBounds,o=this.se(),a=o?e:Di(ce.allocAt(e.x,e.y),this.transform);if(r=mo(0,0,r.width,r.height,a.x,a.y),yh(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,f=ce.alloc(),p=th(this);u--;){var x=l[u];if(x.visible||x===p){x.se()?Di(f.set(e),x.transform):f.set(e);var A=x;x=x instanceof An?x:null,(x!==null?x.ji(f,t,n,i):A.ca(f))&&A.pickable!==!1&&(t!==null&&(A=t(A)),A===null||n!==null&&!n(A)||i.add(A))}}ce.free(f)}return o||ce.free(a),r&&(this.background!==null||this.areaBackground!==null)}return o||ce.free(a),!1},U.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=sr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return Tg(this,t,n,r),o===void 0&&sr.free(a),!0;if(this.Yc(e,a)){if(!this.isAtomic)for(var l=th(this),u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===l){var x=p.actualBounds,A=this.naturalBounds;x.x>A.width||x.y>A.height||0>x.x+x.width||0>x.y+x.height||(x=p,p=p instanceof An?p:null,A=sr.alloc(),A.set(a),(p!==null?p.Cf(e,t,n,i,r,A):fs(x,e,i,A))&&(t!==null&&(x=t(x)),x===null||n!==null&&!n(x)||r.add(x)),sr.free(A))}}return o===void 0&&sr.free(a),i}return o===void 0&&sr.free(a),!1};function Tg(e,t,n,i){for(var r=e.O.s,o=r.length;o--;){var a=r[o];if(a.visible){var l=a.actualBounds,u=e.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(a instanceof An&&Tg(a,t,n,i),t!==null&&(a=t(a)),a===null||n!==null&&!n(a)||i.add(a))}}}U.og=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),i===void 0&&(i=null);var a=this.naturalBounds,l=this.se(),u=l?e:Di(ce.allocAt(e.x,e.y),this.transform),f=l?t:Di(ce.allocAt(t.x,t.y),this.transform),p=u.Bf(f),x=0<u.x&&u.x<a.width&&0<u.y&&u.y<a.height||Cr(u.x,u.y,0,0,0,a.height)<=p||Cr(u.x,u.y,0,a.height,a.width,a.height)<=p||Cr(u.x,u.y,a.width,a.height,a.width,0)<=p||Cr(u.x,u.y,a.width,0,0,0)<=p;if(a=u.zd(0,0)<=p&&u.zd(0,a.height)<=p&&u.zd(a.width,0)<=p&&u.zd(a.width,a.height)<=p,l||(ce.free(u),ce.free(f)),x){if(!this.isAtomic){u=ce.alloc(),f=ce.alloc(),p=th(this);for(var A=this.O.s,R=A.length;R--;){var z=A[R];if(z.visible||z===p){var V=z.actualBounds,ye=this.naturalBounds;(!l||!(V.x>ye.width||V.y>ye.height||0>V.x+V.width||0>V.y+V.height))&&(z.se()?(V=z.transform,Di(u.set(e),V),Di(f.set(t),V)):(u.set(e),f.set(t)),V=z,z=z instanceof An?z:null,(z!==null?z.og(u,f,n,i,r,o):V.tx(u,f,r))&&(n!==null&&(V=n(V)),V===null||i!==null&&!i(V)||o.add(V)))}}ce.free(u),ce.free(f)}return r?x:a}return!1};function Ng(e){var t=null;return e instanceof hr&&(t=e.spot1,t===Vr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=ta),t}function Ag(e){var t=null;return e instanceof hr&&(t=e.spot2,t===Vr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=Ho),t}U.add=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=0;n<t.length;n++)this.Gb(this.O.count,t[n]);return this},U.M=function(e){return this.O.M(e)},U.Gb=function(e,t){t instanceof Ai&&Ke("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&Ke("Cannot make a Panel contain itself: "+this.toString()),Ke("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&Ke("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+t.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==An.Grid||t instanceof hr||Ke("Can only add Shapes to a Grid Panel, not: "+t),this.na!==An.Graduated||t instanceof hr||t instanceof Po||Ke("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+t),t.wi(this),t.Ng=null,this.itemArray!==null){var i=t.data;i!==null&&typeof i=="object"&&(this.ge===null&&(this.ge=new Zn),this.ge.add(i,t))}var r=this.O;if(i=-1,n===this){for(var o=-1,a=this.O.s,l=a.length,u=0;u<l;u++)if(a[u]===t){o=u;break}if(o!==-1){if(o===e||o+1>=r.count&&e>=r.count)return;r.mb(o),i=o}else Ke("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>r.count)&&(e=r.count),r.Gb(e,t),(e===0||t.isPanelMain)&&(this.$g=null),yu(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof An&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||B0(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof Xn&&(n.Te=!0),n.Te&&n instanceof Xn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(ia,"elements",this,t,null,i,null),n.cb(qo,"elements",this,null,t,null,e)))};function kg(e,t){e.l=t?e.l|16777216:e.l&-16777217}U.remove=function(e){for(var t=this.O.s,n=t.length,i=-1,r=0;r<n;r++)if(t[r]===e){i=r;break}i!==-1&&this.pc(i,!0)},U.mb=function(e){0<=e&&this.pc(e,!0)},U.pc=function(e,t){var n=this.O,i=n.M(e);if(i.Ng=null,i.wi(null),this.ge!==null){var r=i.data;typeof r=="object"&&this.ge.remove(r)}n.mb(e),qa(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 Xn&&(i instanceof An?i.qm(i,function(a,l){Qg(o,l,t)}):Qg(o,i,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(ia,"elements",this,i,null,e,null))},U.Fb=function(e){0>e&&Rt(e,">= 0",An,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new es;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(qo,"rowdefs",this,null,n,null,e)}return t[e]},U.oA=function(e){if(0>e&&Rt(e,">= 0",An,"removeRowDefinition:idx"),this.rowCount!==0){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(ia,"rowdefs",this,n,null,e,null),this.v()}}};function Sy(e,t,n){var i=e.rowDefs;if(!(0>t)){if(i[t]=n instanceof es?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}U.Eb=function(e){0>e&&Rt(e,">= 0",An,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new es;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(qo,"coldefs",this,null,n,null,e)}return t[e]},U.jA=function(e){if(0>e&&Rt(e,">= 0",An,"removeColumnDefinition:idx"),this.columnCount!==0){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(ia,"coldefs",this,n,null,e,null),this.v()}}};function Ey(e,t,n){var i=e.colDefs;if(!(0>t)){if(i[t]=n instanceof es?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}U.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&_0(t,e),this},U.Hy=function(e,t){return(e=this.Fb(e))&&_0(e,new es(t)),this},U.By=function(e,t){return(e=this.Eb(e))&&_0(e,new es(t)),this},U.nz=function(e){if(0>e||this.type!==An.Table||this.rowCount===0)return-1;for(var t=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},U.fz=function(e){if(0>e||this.type!==An.Table||this.columnCount===0)return-1;for(var t=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},U.Fz=function(e,t){if(t===void 0&&(t=new ce(NaN,NaN)),this.type!==An.Graduated)return t.h(NaN,NaN),t;e=Math.min(Math.max(e,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((e-this.graduatedMin)/this.graduatedRange,t),n.transform.Ga(t)},U.Gz=function(e){if(this.type!==An.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function wy(e){return e=e.allBindings,e!==null&&e._isFrozen}function $u(e){var t=e.allBindings;if(t===null)e.data!==null&&Ke("Template cannot have .data be non-null: "+e),e.allBindings=t=new Xt;else if(t._isFrozen)return;var n=new Xt;kg(e,!1),e.qm(e,function(f,p){p.th();var x=p.localBindings;if(x!==null)for(zd(p,!1),x=x.iterator;x.next();){var A=x.value;A.mode===$p&&zd(p,!0);var R=A.sourceName;R!==null&&(R==="/"&&kg(f,!0),R=B1(A,f,p),R!==null&&(n.add(R),R.srcBindings===null&&(R.srcBindings=new Xt),R.srcBindings.add(A))),t.add(A)}if(p instanceof An&&p.type===An.Table){if(0<p.rowCount){for(f=p.rowDefs,x=f.length,A=0;A<x;A++)if(R=f[A],R!==void 0&&R.be!==null)for(var z=R.be.iterator;z.next();){var V=z.value;V.xd=R,V.to=2,V.wl=R.index,t.add(V)}}if(0<p.columnCount){for(p=p.colDefs,f=p.length,x=0;x<f;x++)if(A=p[x],A!==void 0&&A.be!==null)for(R=A.be.iterator;R.next();)z=R.value,z.xd=A,z.to=1,z.wl=A.index,t.add(z)}}});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 a=o.value;r.localBindings===null&&(r.localBindings=new Xt),r.localBindings.add(a)}}r.srcBindings=null}for(i=t.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 An&&(a=l.substring(0,u),l=l.substr(u+1),u=o.fb(a),u!==null?(o=u,r.targetProperty=l):jn('Warning: unable to find GraphObject named "'+a+'" for Binding: '+r.toString())),o instanceof es?(a=At(o.panel),r.Ai=a===void 0?-1:a,o.panel.bindingId=r.Ai):o instanceof st?(a=At(o),r.Ai=a===void 0?-1:a,o.bindingId=r.Ai):Ke("Unknown type of binding target: "+o)}t.freeze(),e instanceof Ai&&e.Zc()&&e.Va()}U.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return Ob(t,function(n){n instanceof An&&(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())}))}),e&&$u(t),t},U.La=function(e){var t=this.allBindings;if(t!==null)for(e===void 0&&(e=""),t=t.iterator;t.next();){var n=t.value,i=n.sourceProperty;if((e===""||i===""||i===e)&&(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,a=n.Ai;if(a!==-1){if(o=this.ks(a),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 An))continue;r===1?o=o.Eb(n.wl):r===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,i)}}},U.sx=function(e){return e==null||this.ge===null?null:this.ge.I(e)};function Lb(e,t){e=e.O.s;for(var n=e.length,i=t.length,r=0,o=null;r<n&&(o=e[r],!(o instanceof An&&o.data!==null));)r++,o=e[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var a=0;r<n&&a<i;){if(o=e[r],!(o instanceof An)||o.data!==t[a])return!0;r++,a++}return!1}function xp(e){if(e.type===An.Spot||e.type===An.Auto)return Math.min(e.O.length,1);if(e.type===An.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var i=e.M(n);if(!(i instanceof hr&&i.isPanelMain))break}return n}return e.type===An.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof An&&yh(e))?1:0}U.mv=function(){for(var e=xp(this);this.O.length>e;)this.pc(this.O.length-1,!1);Cy(this,this.itemArray)};function Cy(e,t){var n=xp(e);if(t===null||t.length===0)for(;e.O.length>n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var i=0;i<n;i++)F0(e,t[i],i,!0)}else{i=n;for(var r=0;r<t.length;r++,i++){var o=t[r],a=i<e.O.length?e.O.M(i):null;if(a instanceof An){if(a.data!==o){var l=Mg(e,a.data),u=Mg(e,o),f=u!==l;f||(l=Og(e,l),f=Og(e,u)!==l),f?(e.pc(i,!1),F0(e,o,r,!1)):a.data=o}}else F0(e,o,r,!1)}for(;i<e.O.length;)e.pc(i,!1);e.$g=null,Ig(e,n,0),yu(e)||e.v(),e.graduatedIntervals=null,e.If()||B0(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof Xn&&(t.Te=!0),t.Te&&t instanceof Xn&&(t.wc=null))}}function F0(e,t,n,i){if(!(t==null||0>n)){var r=Mg(e,t);if(r=Og(e,r),r!==null){if($u(r),r=r.copy(),r.l&16777216){var o=e.ih();o!==null&&kg(o,!0)}typeof t=="object"&&(e.ge===null&&(e.ge=new Zn),e.ge.add(t,r)),o=n+xp(e),e.Gb(o,r),i&&(r.ub=t,Ig(e,o,n),r.ub=null),r.data=t}}}function Ig(e,t,n){for(e=e.O;t<e.length;){var i=e.M(t);if(i instanceof An){var r=t,o=n;i.type===An.TableRow?i.row=r:i.type===An.TableColumn&&(i.column=r),i.itemIndex=o}t++,n++}}function Mg(e,t){if(t===null)return"";if(e=e.itemCategoryProperty,typeof e=="function")e=e(t);else if(typeof e=="string"&&typeof t=="object"){if(e==="")return"";e=Ua(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;Ke("Panel.getCategoryForItemData found a non-string category for "+t+": "+e)}function Og(e,t){var n=e.itemTemplateMap,i=null;return n!==null&&(i=n.I(t)),i===null&&(n!==null&&(i=n.I("")),i===null&&(Ty||(Ty=!0,jn('No item template Panel found for category "'+t+'" on '+e),jn(" Using default item template."),e=new An,t=new Po,t.bind(new Wa("text","",fn)),e.add(t),Ny=e),i=Ny)),i}function B0(e,t,n){var i=t.enabledChanged;if(i!==null&&i(t,n),t instanceof An){t=t.O.s,i=t.length;for(var r=0;r<i;r++){var o=t[r];n&&o instanceof An&&!o.isEnabled||B0(e,o,n)}}}function Ic(e,t){t.name=e,ic.add(e,t)}ft.Object.defineProperties(An.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===An.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"?(0>e&&Rt(e,">= 0",An,"padding"),e=new vi(e)):(0>e.left&&Rt(e.left,">= 0",An,"padding:value.left"),0>e.right&&Rt(e.right,">= 0",An,"padding:value.right"),0>e.top&&Rt(e.top,">= 0",An,"padding:value.top"),0>e.bottom&&Rt(e.bottom,">= 0",An,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:is},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Ru),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof ao)&&(e instanceof ao&&e.freeze(),this.T===null&&(this.T=new Ru),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Ru),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ke("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Ru),this.T.V=e,this.N(),this.g("defaultRowSeparatorDashArray",t,e)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(e){var t=this.defaultColumnSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof ao)&&(e instanceof ao&&e.freeze(),this.T===null&&(this.T=new Ru),this.T.u=e,this.N(),this.g("defaultColumnSeparatorStroke",t,e))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(e){var t=this.defaultColumnSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Ru),this.T.F=e,this.v(),this.g("defaultColumnSeparatorStrokeWidth",t,e))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(e){var t=this.defaultColumnSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ke("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Ru),this.T.o=e,this.N(),this.g("defaultColumnSeparatorDashArray",t,e)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(e){this.T===null&&(this.T=new Ru),this.T.nb=e}},viewboxStretch:{get:function(){return this.xo},set:function(e){var t=this.xo;t!==e&&(this.xo=e,this.v(),this.g("viewboxStretch",t,e))}},gridCellSize:{get:function(){return this.jn},set:function(e){var t=this.jn;if(!t.D(e)){e.w()&&e.width!==0&&e.height!==0||Ke("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Nc(n),this.N(),this.g("gridCellSize",t,e)}}},gridOrigin:{get:function(){return this.kn},set:function(e){var t=this.kn;if(!t.D(e)){e.w()||Ke("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Nc(n),this.N(),this.g("gridOrigin",t,e)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(e){var t=this.graduatedMin;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),zs(this)&&(e=this.part,e!==null&&$o(this,e,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(e){var t=this.graduatedMax;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),zs(this)&&(e=this.part,e!==null&&$o(this,e,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(e){var t=this.graduatedTickUnit;t!==e&&0<e&&(this.ra===null&&(this.ra=new nh),this.ra.ia=e,this.v(),this.g("graduatedTickUnit",t,e))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(e){var t=this.graduatedTickBase;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.V=e,this.v(),this.g("graduatedTickBase",t,e))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(e){this.ra!==null?this.ra.u=e:e!==null&&(this.ra=new nh,this.ra.u=e)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(e){this.ra!==null?this.ra.j=e:e!==null&&(this.ra=new nh,this.ra.j=e)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(e){this.ra!==null?this.ra.o=e:e!==null&&(this.ra=new nh,this.ra.o=e)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(e){this.ra!==null?this.ra.Zh=e:e!==null&&(this.ra=new nh,this.ra.Zh=e)}},panelLayoutState:{get:function(){return this.F},set:function(e){this.F=e}},Te:{get:function(){return(this.l&8388608)!==0},set:function(e){(this.l&8388608)!==0!==e&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Ru),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ru),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:U0},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new Ru),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:U0},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new Ru),this.T.j=e,this.v(),this.g("columnSizing",t,e))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(e){var t=this.topIndex;t!==e&&((!isFinite(e)||0>e)&&Ke("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Ru),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&Ke("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Ru),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Ai&&!(this instanceof Xr);$u(this),this.ub=e;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof Fn?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Ai&&(t!==null&&n.cf.remove(t),e!==null&&n.cf.add(e,this))):(n=this.panel,n!==null&&n.ge!==null&&(t!==null&&n.ge.remove(t),e!==null&&n.ge.add(e,this)))),this.g("data",t,e),i!==null&&i.undoManager.isUndoingRedoing||e!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||e!==null&&Lb(this,e)){var n=this.diagram;t!==e&&(n!==null&&t!==null&&vv(n.partManager,this,n),this.Hh=e,n!==null&&e!==null&&gv(n.partManager,this)),this.g("itemArray",t,e),n!==null&&n.undoManager.isUndoingRedoing||Cy(this,e)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(e){if(this.itemTemplateMap===null){if(e===null)return;this.itemTemplateMap=new Zn}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Ai||e.isPanelMain)&&Ke("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+e),this.itemTemplateMap.add("",e),this.g("itemTemplate",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(e){var t=this.itemTemplateMap;if(t!==e){for(var n=e.iterator;n.next(););yr(this),this.A.Pc=e,this.g("itemTemplateMap",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(e){var t=this.itemCategoryProperty;t!==e&&(yr(this),this.A.Oc=e,this.g("itemCategoryProperty",t,e))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("isAtomic",t,e))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this instanceof nr&&(this.tb=null),this.v(),this.g("isClipping",t,e))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(e){var t=(this.l&33554432)!==0;t!==e&&(this.l^=33554432,this.v(),this.g("isOpposite",t,e))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;if(t!==e){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",t,e),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||n&&B0(this,this,e)}}},alignmentFocusName:{get:function(){return this.$e},set:function(e){var t=this.$e;t!==e&&(this.$e=e,this.v(),this.g("alignmentFocusName",t,e))}}}),ft.Object.defineProperties(An,{Position:{get:function(){return ic.I("Position")}},Horizontal:{get:function(){return ic.I("Horizontal")}},Vertical:{get:function(){return ic.I("Vertical")}},Spot:{get:function(){return ic.I("Spot")}},Auto:{get:function(){return ic.I("Auto")}},Table:{get:function(){return ic.I("Table")}},Viewbox:{get:function(){return ic.I("Viewbox")}},TableRow:{get:function(){return ic.I("TableRow")}},TableColumn:{get:function(){return ic.I("TableColumn")}},Link:{get:function(){return ic.I("Link")}},Grid:{get:function(){return ic.I("Grid")}},Graduated:{get:function(){return ic.I("Graduated")}}}),An.prototype.rebuildItemElements=An.prototype.mv,An.prototype.findItemPanelForData=An.prototype.sx,An.prototype.updateTargetBindings=An.prototype.La,An.prototype.copyTemplate=An.prototype.Uy,An.prototype.graduatedValueForPoint=An.prototype.Gz,An.prototype.graduatedPointForValue=An.prototype.Fz,An.prototype.findColumnForLocalX=An.prototype.fz,An.prototype.findRowForLocalY=An.prototype.nz,An.prototype.addColumnDefinition=An.prototype.By,An.prototype.addRowDefinition=An.prototype.Hy,An.prototype.addRowColumnDefinition=An.prototype.Gy,An.prototype.removeColumnDefinition=An.prototype.jA,An.prototype.getColumnDefinition=An.prototype.Eb,An.prototype.removeRowDefinition=An.prototype.oA,An.prototype.getRowDefinition=An.prototype.Fb,An.prototype.removeAt=An.prototype.mb,An.prototype.remove=An.prototype.remove,An.prototype.insertAt=An.prototype.Gb,An.prototype.elt=An.prototype.M,An.prototype.add=An.prototype.add,An.prototype.findObject=An.prototype.fb,An.prototype.findInVisualTree=An.prototype.Nl,An.prototype.walkVisualTreeFrom=An.prototype.qm,An.prototype.findMainElement=An.prototype.Pb;var Ty=!1,Ny=null,ic=new Zn;An.className="Panel",An.definePanelLayout=Ic,Ic("Position",new C0),Ic("Vertical",new N0),Ic("Auto",new k0),Ic("Link",new D0);function nh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nh.prototype.copy=function(){var e=new nh;return e.lq=this.lq,e.F=this.F,e.ia=this.ia,e.V=this.V,e.u=this.u,e.j=this.j,e.o=this.o,e.Zh=this.Zh,e},nh.className="GradPanelSettings";function Ru(){this.Pc=[],this.Oc=[],this.j=this.ob=U0,this.hb=this.Hb=0,this.Qp=is,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ru.prototype.copy=function(e){for(var t=new Ru,n=this.Pc,i=n.length,r=t.Pc,o=0;o<i;o++)if(n[o]!==void 0){var a=n[o].copy();a.wi(e),r[o]=a}for(n=this.Oc,i=n.length,r=t.Oc,o=0;o<i;o++)n[o]!==void 0&&(a=n[o].copy(),a.wi(e),r[o]=a);return t.ob=this.ob,t.j=this.j,t.Hb=this.Hb,t.hb=this.hb,t.Qp=this.Qp.J(),t.Ha=this.Ha,t.ia=this.ia,t.V=this.V,t.F=this.F,t.u=this.u,t.o=this.o,t.nb=this.nb,t},Ru.className="TablePanelSettings";function es(e){Bi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Vr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lg,this.hg=or,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,e&&(Object.assign(this,e),e.column!==void 0?(this.isRow=!1,this.index=e.column):e.row!==void 0&&(this.isRow=!0,this.index=e.row))}es.prototype.copy=function(){var e=new es;return e.uq=this.uq,e.Za=this.Za,e.Hc=this.Hc,e.jj=this.jj,e.hj=this.hj,e.Jb=this.Jb,e.oa=this.oa,e.oc=this.oc,e.pa=this.pa,e.hg=this.hg,e.oo=this.oo,this.dg===null?e.dg=null:e.dg=this.dg.J(),e.lo=this.lo,e.mo=this.mo,e.tj=null,this.tj!==null&&(e.separatorDashArray=yt(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function _0(e,t){t.isRow?e.height=t.height:e.width=t.width,e.minimum=t.minimum,e.maximum=t.maximum,e.alignment=t.alignment,e.stretch=t.stretch,e.sizing=t.sizing,e.dg=t.separatorPadding===null?null:t.separatorPadding.J(),e.separatorStroke=t.separatorStroke,e.separatorStrokeWidth=t.separatorStrokeWidth,e.tj=null,t.separatorDashArray&&(e.tj=yt(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}U=es.prototype,U.qb=function(e){e.classType===es&&(this.sizing=e)},U.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+At(this)},U.wi=function(e){this.Me=e},U.Io=function(e){var t=0,n=this.Me;if(this.index!==e&&(e=this.separatorStroke,e===null&&n!==null&&(e=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),e!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(n!==null?t=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:t=0))),e=this.dg,e===null)if(n!==null)e=n.defaultSeparatorPadding;else return t;return t+(this.isRow?e.top:e.left)},U.Wc=function(){var e=0,t=this.Me,n=0,i=this.isRow;if(t!==null&&t.type===An.Table)for(var r=i?t.rowDefs.length:t.colDefs.length,o=0;o<r;o++){var a=i?t.rowDefs[o]:t.colDefs[o];if(a!==void 0&&a.oa!==0){n=a.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&t!==null&&(n=i?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),n!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(t!==null?e=i?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth:e=0))),i=this.dg,i===null)if(t!==null)i=t.defaultSeparatorPadding;else return e;return e+(this.isRow?i.top+i.bottom:i.left+i.right)},U.Ob=function(e,t,n){var i=this.Me;if(i!==null&&(i.cb(Eo,e,this,t,n,void 0,void 0),this.be!==null&&(t=i.diagram,t!==null&&!t.skipsModelSourceBindings&&(i=i.ih(),i!==null&&(t=i.data,t!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,t,e,i)};function z0(e){if(e.sizing===Lg){var t=e.Me;return e.isRow?t.rowSizing:t.columnSizing}return e.sizing}U.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Wa(e,t,n,i):r=e,r.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&wy(t)&&Ke("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+e)),this.be===null&&(this.be=new Xt),this.be.add(r),this},ft.Object.defineProperties(es.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(e){this.uq=e}},index:{get:function(){return this.Za},set:function(e){this.Za=e}},height:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&Rt(e,">= 0",es,"height"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&Rt(e,">= 0",es,"width"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&Rt(e,">= 0",es,"minimum"),this.jj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&Rt(e,">= 0",es,"maximum"),this.hj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,this.panel!==null&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.dg;e!==null&&t!==null&&t.D(e)||(e!==null&&(e=e.J()),this.dg=e,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.separatorStroke"),e instanceof ao&&e.freeze(),this.lo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ke("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.tj=e,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",t,e)}}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.background"),e instanceof ao&&e.freeze(),this.Ma=e,this.panel!==null&&this.panel.N(),this.Ob("background",t,e))}},coversSeparators:{get:function(){return this.Pm},set:function(e){var t=this.Pm;t!==e&&(this.Pm=e,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",t,e))}},sizing:{get:function(){return this.oo},set:function(e){var t=this.oo;t!==e&&(this.oo=e,this.panel!==null&&this.panel.v(),this.Ob("sizing",t,e))}},actual:{get:function(){return this.oa},set:function(e){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,e),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(e){this.oc=e}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(e){this.pa=e}}}),es.prototype.computeEffectiveSpacing=es.prototype.Wc,es.prototype.computeEffectiveSpacingTop=es.prototype.Io;var Lg=new Kt(es,"Default",0),Sp=new Kt(es,"None",1),U0=new Kt(es,"ProportionalExtra",2);es.className="RowColumnDefinition",es.Default=Lg,es.None=Sp,es.ProportionalExtra=U0;function hr(e,t){st.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 e=="string"?this.figure=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}di(hr,st),hr.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,this.Yg!==null&&(e.Yg=yt(this.Yg)),this.Na!==null&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,this.fa!==null&&(e.fa=this.fa.copy())};function xd(e){e.Na===null?e.Na=new Pg:e.Na.nc&&(e.Na=e.Na.copy())}U=hr.prototype,U.th=function(){st.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},U.qb=function(e){e===xn||e===fi||e===Pr||e===or?this.geometryStretch=e:st.prototype.qb.call(this,e)},U.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+At(this)};function Cf(e,t,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],f,p,x,A,R,z,V=0,ye=Dt(),se=2;se<r;se+=2)f=n[se],p=n[se+1],x=f-l,l=p-u,x===0&&(x=.001),A=l/x,R=Math.atan2(l,x),z=Math.sqrt(x*x+l*l),ye.push([x,R,A,z]),V+=z,l=f,u=p;l=n[0],u=n[1],x=i.measuredBounds.width,i instanceof hr&&(x-=i.strokeWidth),1>x&&(x=1),r=n=x,f=a/2,p=f!==0,se=0,z=ye[se],x=z[0],R=z[1],A=z[2],z=z[3];for(var De=0;.1<=V;){if(De===0&&(p?(r=n,r-=f,V-=f,p=!1):r=n,r===0&&(r=1)),r>V){Jt(ye);return}r>z?(De=r-z,r=z):De=0;var ze=Math.sqrt(r*r/(1+A*A));if(0>x&&(ze=-ze),l+=ze,u+=A*ze,e.translate(l,u),e.rotate(R),e.translate(-(a/2),-(o/2)),De===0&&i.hh(e,t),e.translate(a/2,o/2),e.rotate(-R),e.translate(-l,-u),V-=r,z-=r,De!==0){if(se++,se===ye.length){Jt(ye);return}z=ye[se],x=z[0],R=z[1],A=z[2],z=z[3],r=De}}Jt(ye)}}U.hh=function(e,t){var n=this.xc,i=this.Ui;if(n!==null||i!==null){var r=this.ua;if(r!==null){e.yc();var o=this.actualBounds,a=this.naturalBounds;i!==null&&Ma(this,e,i,!0,!1,a,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===An.Link&&l instanceof Xr&&l.category==="Selection"&&l.adornedObject instanceof hr&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(Ma(this,e,n,!1,!1,a,o),e.lineWidth=u,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,l&&t.Gf("drawShadows")&&(o=l.isShadowed),e.Il===!1&&(o=!1),l=!0,n===null||i!==null&&i!=="transparent"||(l=!1),a=!1,u=this.strokeDashArray,u!==null&&(a=!0,e.js(u,this.strokeDashOffset)),r.type===Pn.j)e.beginPath(),e.moveTo(r.startX,r.startY),e.lineTo(r.endX,r.endY),n!==null&&e.jk(),e.Se();else if(r.type===Pn.u){var f=r.startX;u=r.startY;var p=r.endX,x=r.endY;r=Math.min(f,p);var A=Math.min(u,x);f=Math.abs(p-f),u=Math.abs(x-u),e.beginPath(),e.rect(r,A,f,u),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se()}else if(r.type===Pn.F)f=r.startX,u=r.startY,p=r.endX,x=r.endY,r=Math.abs(p-f)/2,A=Math.abs(x-u)/2,f=Math.min(f,p)+r,u=Math.min(u,x)+A,e.beginPath(),e.moveTo(f,u-A),e.bezierCurveTo(f+et.wg*r,u-A,f+r,u-et.wg*A,f+r,u),e.bezierCurveTo(f+r,u+et.wg*A,f+et.wg*r,u+A,f,u+A),e.bezierCurveTo(f-et.wg*r,u+A,f-r,u+et.wg*A,f-r,u),e.bezierCurveTo(f-r,u-et.wg*A,f-et.wg*r,u-A,f,u-A),e.closePath(),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se();else if(r.type===Pn.o)for(r=r.figures,u=r.length,A=0;A<u;A++){f=r.s[A],e.beginPath(),e.moveTo(f.startX,f.startY),p=f.segments.s,x=p.length;for(var R=null,z=0;z<x;z++){var V=p[z];switch(V.type){case So:e.moveTo(V.endX,V.endY);break;case lo:e.lineTo(V.endX,V.endY);break;case Ha:e.bezierCurveTo(V.point1X,V.point1Y,V.point2X,V.point2Y,V.endX,V.endY);break;case Vs:e.quadraticCurveTo(V.point1X,V.point1Y,V.endX,V.endY);break;case la:if(V.radiusX===V.radiusY){var ye=Math.PI/180;e.arc(V.point1X,V.point1Y,V.radiusX,V.startAngle*ye,(V.startAngle+V.sweepAngle)*ye,0>V.sweepAngle,R!==null?R.endX:f.startX,R!==null?R.endY:f.startY)}else if(R=Fs(V,f),ye=R.length,ye===0)e.lineTo(V.centerX,V.centerY);else for(var se=0;se<ye;se++){var De=R[se];se===0&&e.lineTo(De[0],De[1]),e.bezierCurveTo(De[2],De[3],De[4],De[5],De[6],De[7])}break;case Ks:if(se=ye=0,R!==null&&R.type===la){if(R=Fs(R,f),De=R.length,De===0){e.lineTo(V.endX,V.endY);break}R=R[De-1]||null,R!==null&&(ye=R[6],se=R[7])}else ye=R!==null?R.endX:f.startX,se=R!==null?R.endY:f.startY;if(R=gs(V,f,ye,se),ye=R.length,ye===0){e.lineTo(V.endX,V.endY);break}for(se=0;se<ye;se++)De=R[se],e.bezierCurveTo(De[2],De[3],De[4],De[5],De[6],De[7]);break;default:Ke("Segment not of valid type: "+V.type)}V.isClosed&&e.closePath(),R=V}p=f.isFilled,o?f.isShadowed?(p===!0&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&(p&&l&&Bc(e),e.jk(),p&&l&&Jc(e))):(Bc(e),p&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk(),Jc(e)):(p&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk()),e.Se(A)}if(a&&e.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,e.save(),e.beginPath(),i=Dt(),o.type===Pn.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),Cf(e,t,i,n);else if(o.type===Pn.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),a=l.startX,r=l.startY,u=a,A=r,f=l.segments.s,p=f.length,x=0;x<p;x++){switch(z=f[x],z.type){case So:Cf(e,t,i,n),i.length=0,i.push(z.endX),i.push(z.endY),a=z.endX,r=z.endY,u=a,A=r;break;case lo:i.push(z.endX),i.push(z.endY),a=z.endX,r=z.endY;break;case Ha:et.Qe(a,r,z.point1X,z.point1Y,z.point2X,z.point2Y,z.endX,z.endY,.5,i),a=z.endX,r=z.endY;break;case Vs:et.ep(a,r,z.point1X,z.point1Y,z.endX,z.endY,.5,i),a=z.endX,r=z.endY;break;case la:if(V=Fs(z,l),R=V.length,R===0){i.push(z.centerX),i.push(z.centerY),a=z.centerX,r=z.centerY;break}for(ye=0;ye<R;ye++)se=V[ye],et.Qe(a,r,se[2],se[3],se[4],se[5],se[6],se[7],.5,i),a=se[6],r=se[7];break;case Ks:if(V=gs(z,l,a,r),R=V.length,R===0){i.push(z.endX),i.push(z.endY),a=z.endX,r=z.endY;break}for(ye=0;ye<R;ye++)se=V[ye],et.Qe(a,r,se[2],se[3],se[4],se[5],se[6],se[7],.5,i),a=se[6],r=se[7];break;default:Ke("Segment not of valid type: "+z.type)}z.isClosed&&(i.push(u),i.push(A),Cf(e,t,i,n))}Cf(e,t,i,n)}else if(o.type===Pn.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),Cf(e,t,i,n);else if(o.type===Pn.F){if(r=new Ia,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,a=new Or(la),a.startAngle=0,a.sweepAngle=360,a.centerX=(o.startX+o.endX)/2,a.centerY=(o.startY+o.endY)/2,a.radiusX=Math.abs(o.startX-o.endX)/2,a.radiusY=Math.abs(o.startY-o.endY)/2,r.add(a),o=Fs(a,r),l=o.length,l===0)i.push(a.centerX),i.push(a.centerY);else for(a=r.startX,r=r.startY,u=0;u<l;u++)A=o[u],et.Qe(a,r,A[2],A[3],A[4],A[5],A[6],A[7],.5,i),a=A[6],r=A[7];Cf(e,t,i,n)}Jt(i),e.restore(),e.Vc(!1)}}}},U.kk=function(e,t,n){return!st.prototype.kk.call(this,e,t,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(e.Hl=this.svg,this.hh(e,t),e.Hl=null,!0)},U.nk=function(e){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:st.prototype.nk.call(this,e)},U.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("path");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},U.ga=function(e,t){if(t===void 0&&(t=new ce),e instanceof si){e.Mc()&&Ke("getDocumentPoint Spot must be a real, specific Spot, not: "+e.toString());var n=this.naturalBounds,i=this.strokeWidth;t.h(e.x*(n.width+i)-i/2+n.x+e.offsetX,e.y*(n.height+i)-i/2+n.y+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},U.mi=function(e){e===void 0&&(e=new Wt);var t=this.naturalBounds,n=this.oe;t=Wt.allocAt(t.x,t.y,t.width,t.height);var i=this.strokeWidth;return t.Bc(i/2,i/2),i=ce.allocAt(t.x,t.y).transform(n),e.h(i.x,i.y,0,0),i.h(t.right,t.y).transform(n),Dr(e,i.x,i.y,0,0),i.h(t.right,t.bottom).transform(n),Dr(e,i.x,i.y,0,0),i.h(t.x,t.bottom).transform(n),Dr(e,i.x,i.y,0,0),Wt.free(t),ce.free(i),e},U.gh=function(e,t){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!==Pn.j||t||(r+=2);var o=Wt.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(e))return Wt.free(o),!1;if(i=r+1e-4,n.type===Pn.j)return this.stroke===null||(i=(n.endX-n.startX)*(e.x-n.startX)+(n.endY-n.startY)*(e.y-n.startY),0>(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>i)?!1:(Wt.free(o),et.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y));if(n.type===Pn.u){t=n.startX;var a=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(t,l),o.y=Math.min(a,n),o.width=Math.abs(l-t),o.height=Math.abs(n-a),this.fill===null){if(o.Bc(-i,-i),o.ca(e))return Wt.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),e=o.ca(e),Wt.free(o),e}if(n.type===Pn.F){a=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(a,l),t=Math.min(r,u),a=Math.abs(l-a)/2,r=Math.abs(u-r)/2,n=e.x-(n+a),t=e.y-(t+r),this.fill===null){if(a-=i,r-=i,0>=a||0>=r||1>=n*n/(a*a)+t*t/(r*r))return Wt.free(o),!1;a+=i,r+=i}return this.stroke!==null&&(a+=i,r+=i),Wt.free(o),0>=a||0>=r?!1:1>=n*n/(a*a)+t*t/(r*r)}if(n.type===Pn.o)return Wt.free(o),this.fill===null?gl(n,e.x,e.y,r):Dl(n,e,r,1<this.strokeWidth,t);Ke("Unknown Geometry type: "+n.type)},U.Wl=function(e,t,n,i){var r=this.desiredSize,o=this.ig;if(e=Math.max(e,0),t=Math.max(t,0),this.Rd!==null)var a=this.geometry.bounds;else{var l=this.figure,u=Dg[l];if(u===void 0){var f=et.Ze[l];typeof f=="string"&&(f=et.Ze[f]),typeof f=="function"?(u=f(null,100,100),Dg[l]=u):Ke("Unsupported Figure: "+l)}a=u.bounds}l=a.width,u=a.height,f=a.width;var p=a.height;switch(zl(this,!0)){case xn:i=n=0;break;case Tn:f=Math.max(e-o,0),p=Math.max(t-o,0);break;case xi:f=Math.max(e-o,0),i=0;break;case Fi:n=0,p=Math.max(t-o,0)}isFinite(r.width)&&(f=r.width),isFinite(r.height)&&(p=r.height);var x=this.maxSize,A=this.minSize;switch(n=Math.max(n-o,A.width),i=Math.max(i-o,A.height),f=Math.min(x.width,f),p=Math.min(x.height,p),f=isFinite(f)?Math.max(n,f):Math.max(l,n),p=isFinite(p)?Math.max(i,p):Math.max(u,i),n=Rg(this),n){case xn:break;case Tn:l=f,u=p;break;case fi:n=Math.min(f/l,p/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:Ke(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,a=n.bounds,i=l/a.width,a=u/a.height,isFinite(i)||(i=1),isFinite(a)||(a=1),this.ua=i===1&&a===1?n:n.copy().scale(i,a)):this.ua!==null&&et.$(this.ua.Sk,e-o)&&et.$(this.ua.Rk,t-o)||(this.ua=hr.makeGeometry(this,l,u)),a=this.ua.bounds,e===1/0||t===1/0?this.Ge(a.x-o/2,a.y-o/2,e===0&&l===0?0:a.width+o,t===0&&u===0?0:a.height+o):this.Ge(-(o/2),-(o/2),f+o,p+o),r.w()?(f=r.width,p=r.height,f=Math.min(x.width,f),p=Math.min(x.height,p),f=Math.max(A.width,f),p=Math.max(A.height,p),this.dc.h(0,0,f,p)):this.dc.assign(a)};function Rg(e){var t=e.geometryStretch;return e.Rd!==null?t===or?Tn:t:t===or?Dg[e.figure].defaultStretch:t}U.eh=function(e,t,n,i){hl(this,e,t,n,i)},U.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},U.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*a,u=-o.m12*a,f=-o.m21*a,p=o.m11*a,x=a*(o.m21*o.dy-o.m22*o.dx),A=a*(o.m12*o.dx-o.m11*o.dy);o=e*l+t*f+x,a=e*u+t*p+A,l=n*l+i*f+x,u=n*u+i*p+A,x=this.ig/2,f=this.ua,f===null&&(this.measure(1/0,1/0),f=this.ua);var R=f.bounds;if(p=!1,f.type===Pn.j)if(1.5>=this.strokeWidth)p=et.Ve(f.startX,f.startY,f.endX,f.endY,o,a,l,u,r);else{if(f.startX===f.endX?(i=x,p=0):(t=(f.endY-f.startY)/(f.endX-f.startX),p=x/Math.sqrt(1+t*t),i=p*t),t=Dt(),e=new ce,et.Ve(f.startX+i,f.startY+p,f.endX+i,f.endY+p,o,a,l,u,e)&&t.push(e),e=new ce,et.Ve(f.startX-i,f.startY-p,f.endX-i,f.endY-p,o,a,l,u,e)&&t.push(e),e=new ce,et.Ve(f.startX+i,f.startY+p,f.startX-i,f.startY-p,o,a,l,u,e)&&t.push(e),e=new ce,et.Ve(f.endX+i,f.endY+p,f.endX-i,f.endY-p,o,a,l,u,e)&&t.push(e),l=t.length,l===0)return Jt(t),!1;for(p=!0,u=1/0,i=0;i<l;i++)e=t[i],n=(e.x-o)*(e.x-o)+(e.y-a)*(e.y-a),n<u&&(u=n,r.x=e.x,r.y=e.y);Jt(t)}else if(f.type===Pn.u)p=et.Ff(R.x-x,R.y-x,R.x+R.width+x,R.y+R.height+x,o,a,l,u,r);else if(f.type===Pn.F){t=Wt.allocAt(R.x,R.y,R.width,R.height).Bc(x,x);e:if(t.width===0)p=et.Ve(t.x,t.y,t.x,t.y+t.height,o,a,l,u,r);else if(t.height===0)p=et.Ve(t.x,t.y,t.x+t.width,t.y,o,a,l,u,r);else{if(e=t.width/2,f=t.height/2,i=t.x+e,p=t.y+f,n=9999,o!==l&&(n=(a-u)/(o-l)),9999>Math.abs(n)){if(u=a-p-n*(o-i),0>e*e*n*n+f*f-u*u){r.x=NaN,r.y=NaN,p=!1;break e}x=Math.sqrt(e*e*n*n+f*f-u*u),l=(-(e*e*n*u)+e*f*x)/(f*f+e*e*n*n)+i,e=(-(e*e*n*u)-e*f*x)/(f*f+e*e*n*n)+i,f=n*(l-i)+u+p,u=n*(e-i)+u+p,Math.abs((o-l)*(o-l))+Math.abs((a-f)*(a-f))<Math.abs((o-e)*(o-e))+Math.abs((a-u)*(a-u))?(r.x=l,r.y=f):(r.x=e,r.y=u)}else{if(l=f*f,u=o-i,l-=l/(e*e)*u*u,0>l){r.x=NaN,r.y=NaN,p=!1;break e}u=Math.sqrt(l),l=p+u,u=p-u,Math.abs(l-a)<Math.abs(u-a)?(r.x=o,r.y=l):(r.x=o,r.y=u)}p=!0}Wt.free(t)}else if(f.type===Pn.o){A=ce.alloc();var z=l-o,V=u-a,ye=z*z+V*V,se=o,De=a;if(0<ye&&R.contains(se,De)&&(A.x=se,A.y=De,this.ca(A)))for(z!==0&&.5>Math.abs(z)?(V*=.5/z,z=.5):V!==0&&.5>Math.abs(V)&&(z*=.5/V,V=.5),se-=z,De-=V;R.contains(se,De);)se-=z,De-=V;for(r.x=l,r.y=u,V=0;V<f.figures.count;V++){var ze=f.figures.s[V],je=ze.isFilled?se:o,ot=ze.isFilled?De:a,Nt=ze.segments;R=ze.startX,z=ze.startY;for(var Vn=R,oi=z,ei=0;ei<Nt.count;ei++){var Dn=Nt.s[ei],pn=Dn.type,er=Dn.endX,Vi=Dn.endY,Jr=!1;switch(pn){case So:Vn=er,oi=Vi;break;case lo:Jr=$0(R,z,er,Vi,je,ot,l,u,A);break;case Ha:Jr=et.Eo(R,z,Dn.point1X,Dn.point1Y,Dn.point2X,Dn.point2Y,er,Vi,je,ot,l,u,.6,A);break;case Vs:Jr=et.Eo(R,z,R+2/3*(Dn.point1X-R),z+2/3*(Dn.point1Y-z),er+2/3*(Dn.point1X-er),Vi+2/3*(Dn.point1Y-Vi),er,Vi,je,ot,l,u,.6,A);break;case la:case Ks:pn=Dn.type===la?Fs(Dn,ze):gs(Dn,ze,R,z);var Ro=pn.length;if(Ro===0){Jr=$0(R,z,Dn.type===la?Dn.centerX:Dn.endX,Dn.type===la?Dn.centerY:Dn.endY,je,ot,l,u,A);break}for(Vi=null,er=0;er<Ro;er++){if(Vi=pn[er],er===0&&$0(R,z,Vi[0],Vi[1],je,ot,l,u,A)){var ps=H0(je,ot,A,ye,r);ps<ye&&(ye=ps,p=!0)}et.Eo(Vi[0],Vi[1],Vi[2],Vi[3],Vi[4],Vi[5],Vi[6],Vi[7],je,ot,l,u,.6,A)&&(ps=H0(je,ot,A,ye,r),ps<ye&&(ye=ps,p=!0))}er=Vi[6],Vi=Vi[7];break;default:Ke("Unknown Segment type: "+pn)}R=er,z=Vi,Jr&&(Jr=H0(je,ot,A,ye,r),Jr<ye&&(ye=Jr,p=!0)),Dn.isClosed&&(er=Vn,Vi=oi,$0(R,z,er,Vi,je,ot,l,u,A)&&(Dn=H0(je,ot,A,ye,r),Dn<ye&&(ye=Dn,p=!0)))}}o=n-e,a=i-t,l=Math.sqrt(o*o+a*a),l!==0&&(o/=l,a/=l),r.x-=o*x,r.y-=a*x,ce.free(A)}else Ke("Unknown Geometry type: "+f.type);return p?(this.transform.Ga(r),!0):!1};function H0(e,t,n,i,r){return e=n.x-e,t=n.y-t,t=e*e+t*t,t<i?(r.x=n.x,r.y=n.y,t):i}function $0(e,t,n,i,r,o,a,l,u){if(et.$(e,n)&&et.$(t,i)||et.$(r,a)&&et.$(o,l))return!1;var f=!1,p=(r-a)*(t-i)-(o-l)*(e-n);return p===0?!1:(u.x=((r*l-o*a)*(e-n)-(r-a)*(e*i-t*n))/p,u.y=((r*l-o*a)*(t-i)-(o-l)*(e*i-t*n))/p,(e>n?e-n:n-e)<(t>i?t-i:i-t)?(e=t<i?t:i,t=t<i?i:t,(u.y>e||et.$(u.y,e))&&(u.y<t||et.$(u.y,t))&&(f=!0)):(t=e<n?e:n,e=e<n?n:e,(u.x>t||et.$(u.x,t))&&(u.x<e||et.$(u.x,e))&&(f=!0)),f)}U.fh=function(e,t){if(t===void 0)return e.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=ce.alloc();return o.h(n.x-i,n.y-i),e.ca(t.Ga(o))&&(o.h(n.x-i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.y-i),e.ca(t.Ga(o))&&(r=!0)))),ce.free(o),r},U.Yc=function(e,t){if(this.fh(e,t)||t===void 0&&(t=this.transform,e.Re(this.actualBounds)))return!0;var n=sr.alloc();n.set(t),n.Vj();var i=e.left,r=e.right,o=e.top;e=e.bottom;var a=ce.alloc();if(a.h(i,o),n.Ga(a),this.gh(a,!0)||(a.h(r,o),n.Ga(a),this.gh(a,!0))||(a.h(i,e),n.Ga(a),this.gh(a,!0))||(a.h(r,e),n.Ga(a),this.gh(a,!0)))return ce.free(a),!0;var l=ce.alloc(),u=ce.alloc();return n.set(t),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),a.x=i,a.y=o,a.transform(n),t=!1,Sd(this,a,l,u)?t=!0:(a.x=r,a.y=e,a.transform(n),Sd(this,a,l,u)?t=!0:(l.x=i,l.y=e,l.transform(n),Sd(this,a,l,u)?t=!0:(a.x=i,a.y=o,a.transform(n),Sd(this,a,l,u)&&(t=!0)))),ce.free(a),sr.free(n),ce.free(l),ce.free(u),t};function Sd(e,t,n,i){if(!e.rs(t,n,i))return!1;e=t.x,t=t.y;var r=n.x,o=n.y;return n=i.x,i=i.y,e===r?(t<o?(e=t,t=o):e=o,i>=e&&i<=t):(e<r?(i=e,e=r):i=r,n>=i&&n<=e)}U.tx=function(e,t,n){function i(ye,se){for(var De=ye.length,ze=0;ze<De;ze+=2)if(se.zd(ye[ze],ye[ze+1])>r)return!0;return!1}if(n&&this.fill!==null&&this.gh(e,!0))return!0;var r=e.Bf(t),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),t=this.ua,t===null&&(this.measure(1/0,1/0),t=this.ua,t===null))return!1;if(!n){var a=t.bounds,l=a.x,u=a.y,f=a.x+a.width;if(a=a.y+a.height,Tr(e.x,e.y,l,u)<=r&&Tr(e.x,e.y,f,u)<=r&&Tr(e.x,e.y,l,a)<=r&&Tr(e.x,e.y,f,a)<=r)return!0}if(l=t.startX,u=t.startY,f=t.endX,a=t.endY,t.type===Pn.j){if(n=(l-f)*(e.x-f)+(u-a)*(e.y-a),Cr(e.x,e.y,l,u,f,a)<=(0<=(f-l)*(e.x-l)+(a-u)*(e.y-u)&&0<=n?r:o))return!0}else{if(t.type===Pn.u)return t=!1,n&&(t=Cr(e.x,e.y,l,u,l,a)<=r||Cr(e.x,e.y,l,u,f,u)<=r||Cr(e.x,e.y,f,u,f,a)<=r||Cr(e.x,e.y,l,a,f,a)<=r),t;if(t.type===Pn.F){t=e.x-(l+f)/2,o=e.y-(u+a)/2;var p=Math.abs(f-l)/2,x=Math.abs(a-u)/2;if(p===0||x===0)return Cr(e.x,e.y,l,u,f,a)<=r;if(n){if(e=et.$y(p,x,t,o),e*e<=r)return!0}else return!(Tr(t,o,-p,0)>=r||Tr(t,o,0,-x)>=r||Tr(t,o,0,x)>=r||Tr(t,o,p,0)>=r)}else if(t.type===Pn.o){if(f=t.bounds,o=f.x,l=f.y,u=f.x+f.width,f=f.y+f.height,e.x>u&&e.x<o&&e.y>f&&e.y<l&&Cr(e.x,e.y,o,l,o,f)>r&&Cr(e.x,e.y,o,l,u,l)>r&&Cr(e.x,e.y,u,f,o,f)>r&&Cr(e.x,e.y,u,f,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?gl(t,e.x,e.y,o):Dl(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],a=o.startX,p=o.startY,e.zd(a,p)>r)return!1;for(l=o.segments.s,u=l.length,f=0;f<u;f++)switch(x=l[f],x.type){case So:case lo:if(a=x.endX,p=x.endY,e.zd(a,p)>r)return!1;break;case Ha:var A=Dt();if(et.Qe(a,p,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.8,A),a=i(A,e),Jt(A),a||(a=x.endX,p=x.endY,e.zd(a,p)>r))return!1;break;case Vs:if(A=Dt(),et.ep(a,p,x.point1X,x.point1Y,x.endX,x.endY,.8,A),a=i(A,e),Jt(A),a||(a=x.endX,p=x.endY,e.zd(a,p)>r))return!1;break;case la:case Ks:A=x.type===la?Fs(x,o):gs(x,o,a,p);var R=A.length;if(R===0){if(a=x.type===la?x.centerX:x.endX,p=x.type===la?x.centerY:x.endY,e.zd(a,p)>r)return!1;break}x=null;for(var z=Dt(),V=0;V<R;V++)if(x=A[V],z.length=0,et.Qe(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.8,z),i(z,e))return Jt(z),!1;Jt(z),x!==null&&(a=x[6],p=x[7]);break;default:Ke("Unknown Segment type: "+x.type)}}return!0}}}return!1},U.qc=function(){this.ua=null},U.kq=function(){return this.ig};function Ay(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Mp,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=La):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new si(1-La.x,La.y)))}hr.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var i=zc[e.toArrow];else e.fromArrow!=="None"?i=zc[e.fromArrow]:(i=et.Ze[e.figure],typeof i=="string"&&(i=et.Ze[i]),i===void 0&&Ke("Unknown Shape.figure: "+e.figure),i=i(e,t,n),i.Sk=t,i.Rk=n);if(i===null){var r=et.Ze.Rectangle;typeof r=="function"&&(i=r(e,t,n))}return i};function ky(e){var t=zc[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=zc[n],t===void 0){var i=null,r;for(r in et.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return e=Pn.parse(et.um[i],!1),zc[i]=e,n!==i&&(zc[n]=i),i}}return typeof t=="string"?t:t instanceof Pn?e:null}ft.Object.defineProperties(hr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(e){var t=this.ua,n=this.Rd;if(t!==e){e!==null?this.Rd=this.ua=e.freeze():this.Rd=this.ua=null;var i=this.part;i!==null&&(i.ag=NaN),this.v(),this.g("geometry",t||n,e),zs(this)&&(e=this.part,e!==null&&$o(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=Pn.parse(e);var t=e.normalize();this.geometry=e,this.position=e=ce.allocAt(-t.x,-t.y),ce.free(e)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",t,e))}},fill:{get:function(){return this.Ui},set:function(e){var t=this.Ui;t!==e&&(e!==null&&$d(e,"Shape.fill"),e instanceof ao&&e.freeze(),this.Ui=e,this.N(),this.g("fill",t,e))}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"Shape.stroke"),e instanceof ao&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},strokeWidth:{get:function(){return this.ig},set:function(e){var t=this.ig;if(t!==e)if(0<=e){this.ig=e,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",t,e)}else Rt(e,"value >= 0",hr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&(typeof e!="string"||e!=="butt"&&e!=="round"&&e!=="square"?Rt(e,'"butt", "round", or "square"',hr,"strokeCap"):(xd(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&(typeof e!="string"||e!=="miter"&&e!=="bevel"&&e!=="round"?Rt(e,'"miter", "bevel", or "round"',hr,"strokeJoin"):(xd(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){xd(this),this.Na.Jr=e,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];0<=o&&isFinite(o)||Ke("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.Yg=e,this.N(),this.g("strokeDashArray",t,e)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(e){var t=this.strokeDashOffset;t!==e&&0<=e&&(xd(this),this.Na.uj=e,this.N(),this.g("strokeDashOffset",t,e))}},figure:{get:function(){return this.an},set:function(e){var t=this.an;if(t!==e){var n=et.Ze[e];typeof n=="function"?n=e:(n=et.Ze[e.toLowerCase()])||Ke("Unknown Shape.figure: "+e),t!==n&&(e=this.part,e!==null&&(e.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",t,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(e){var t=this.toArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=ky(e);n===null?Ke("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),Ay(this),this.g("toArrow",t,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(e){var t=this.fromArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=ky(e);n===null?Ke("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),Ay(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Vr},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),xd(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Vr},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),xd(this),this.Na.gg=e,this.v(),this.g("spot2",t,e))}},parameter1:{get:function(){return this.Un},set:function(e){var t=this.Un;t!==e&&(this.Un=e,this.qc(),this.v(),this.g("parameter1",t,e))}},parameter2:{get:function(){return this.Vn},set:function(e){var t=this.Vn;t!==e&&(this.Vn=e,this.qc(),this.v(),this.g("parameter2",t,e))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(e){var t=this.pathPattern;t!==e&&(xd(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:or},set:function(e){var t=this.geometryStretch;t!==e&&(xd(this),this.Na.jq=e,this.v(),this.g("geometryStretch",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Nc(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),hr.prototype.intersectsRect=hr.prototype.Yc,hr.prototype.containedInRect=hr.prototype.fh,hr.prototype.getNearestIntersectionPoint=hr.prototype.rs,hr.prototype.getDocumentBounds=hr.prototype.mi,hr.prototype.getDocumentPoint=hr.prototype.ga;var zc=new re,Dg=new re;hr.className="Shape",hr.getFigureGenerators=function(){var e=new Zn,t;for(t in et.Ze)t!==t.toLowerCase()&&e.add(t,et.Ze[t]);return e.freeze(),e},hr.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=et.Ze;i[e]=t,i[n]=e},hr.getArrowheadGeometries=function(){var e=new Zn;for(i in et.um)if(zc[i]===void 0){var t=Pn.parse(et.um[i],!1);zc[i]=t,t=i.toLowerCase(),t!==i&&(zc[t]=i)}for(var n in zc)if(n!==n.toLowerCase()){var i=zc[n];i instanceof Pn&&e.add(n,i)}return e.freeze(),e},hr.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=Pn.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||Ke("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var i=zc;i[e]=n,i[t]=e};function Pg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=or,this.gg=this.fg=Vr}Pg.prototype.copy=function(){var e=new Pg;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e};function Po(e,t){return st.call(this),K0||(Ul=Ca?new Hu(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 e=="string"?this.text=e:e&&Object.assign(this,e),t&&Object.assign(this,t),this}di(Po,st),Po.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,this.fa!==null&&(e.fa=this.fa.copy()),this.da!==null&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze};function Mc(e){e.da===null?e.da=new $g:e.da.nc&&(e.da=e.da.copy())}U=Po.prototype,U.th=function(){st.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Iy(e,t){e.l=t.l|6144,e.pb=t.opacity,e.Ma=t.background,e.areaBackground=t.areaBackground,e.jd=t.desiredSize.J(),e.minSize=t.minSize.J(),e.maxSize=t.maxSize.J(),t.Lb!==null?e.Lb=t.Lb.copy():e.Lb=null,e.Ca=t.scale,e.Kb=t.angle,e.stretch=t.stretch,e.Kg=t.margin.J(),e.Jb=t.alignment.J(),e.sk=t.alignmentFocus.J(),e.segmentFraction=t.segmentFraction,e.segmentOffset=t.segmentOffset.J(),e.segmentOrientation=t.segmentOrientation,t.tb!==null&&(e.tb=t.tb.copy()),e.shadowVisible=t.shadowVisible,e.ec=t.ec,e.xc=t.xc,e.Ae=t.Ae,e.fa!==null&&(e.fa=t.fa.copy()),t.da!==null&&(e.da=t.da.nc?t.da:t.da.copy()),e.Ih=t.Ih}U.qb=function(e){e.classType===Po?this.wrap=e:st.prototype.qb.call(this,e)},U.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},U.v=function(){st.prototype.v.call(this)},U.hh=function(e,t){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,a=wp(this),l=e.textAlign=this.textAlign,u=t.tn;l==="start"?l=u?"right":"left":l==="end"&&(l=u?"left":"right"),u=this.isUnderline;var f=this.isStrikethrough;Ma(this,e,this.xc,!0,!1,n,i),(u||f)&&Ma(this,e,this.xc,!1,!1,n,i),i=0,n=!1;var p=this.oe,x=p.dx-(a*p.m21+p.dx);p=p.dy-(a*p.m22+p.dy);var A=t.scale;switch(8>(x*x+p*p)*A*A&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof nu&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,x=this.spacingBelow,this.flip){case $r:e.translate(r,0),e.scale(-1,1);break;case Sr:e.translate(0,o),e.scale(1,-1);break;case vo:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),p=this.Gc,A=(t+a+x)*p,o>A&&(i=this.verticalAlignment,i=i.y*o-i.y*A+i.offsetY),p===1&&this.ze!==null)x=this.Cb,x>r&&(x=r),this.Oj(this.ze,e,0,i+t,r,a,x,n,l,u,f);else if(this.Qc!==null&&this.Qb!==null)for(A=0;A<p;A++){var R=this.Qc[A];R>r&&(R=r),i+=t,this.Oj(this.Qb[A],e,0,i,r,a,R,n,l,u,f),i+=a+x}switch(this.flip){case $r:e.scale(-1,1),e.translate(-r,0);break;case Sr:e.scale(1,-1),e.translate(0,-o);break;case vo:e.scale(-1,-1),e.translate(-r,-o)}}},U.Oj=function(e,t,n,i,r,o,a,l,u,f,p){var x=0;if(l)u==="left"?x=0:u==="right"?x=r-a:u==="center"&&(x=(r-a)/2),t.fillRect(n+x,i+.25*o,a,1);else{if(u==="left"?x=0:u==="right"?x=r:u==="center"&&(x=r/2),r=j0!==null?j0(this,o):.75*o,t.fillText(e,n+x,i+r),e=o/20|0,e===0&&(e=1),u==="right"?x-=a:u==="center"&&(x-=a/2),f){l=G0!==null?G0(this,o):.8*o,u=n+x,f=i+l,r=n+x+a,l=i+l;var A=e;t.beginPath(),t.lineWidth=A,t.moveTo(u,f),t.lineTo(r,l),t.stroke(),t.Se(),t instanceof nu&&t.ad.classList.add("gojs-td")}p&&(p=i+o-o/2.2|0,e%2!==0&&(p+=.5),i=n+x,o=p,n=n+x+a,a=p,x=e,t.beginPath(),t.lineWidth=x,t.moveTo(i,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof nu&&t.ad.classList.add("gojs-td"))}},U.kk=function(e,t,n){if(!st.prototype.kk.call(this,e,t,n))return!1;if(Ma(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n<t.length;n++)ly(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,ly(e,t,!0);return!0},U.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:st.prototype.nk.call(this,e)},U.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("text");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},U.Wl=function(e,t,n,i){var r=this.Gc;this.Ih=e,this.l&=-16777217;var o=this.Ae;Ul!==null&&Fy!==o&&(Fy=Ul.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var a;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=a=0,u=!1;!u;){var f=o.indexOf(`
|
|
|
`,l);f===-1&&(f=o.length,u=!0),l=o.substr(l,f-l),this.formatting===Cp&&(l=l.trim()),a=Math.max(a,rc(l)),l=f+1}o=a}else a=o.indexOf(`
|
|
|
`,0),0<=a&&(o=o.substr(0,a)),o=rc(o);o=Math.min(o,e/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),a=Oy(this,o),isNaN(this.desiredSize.height)?a=Math.min(a,t/this.scale):a=this.desiredSize.height,u=a,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===W0&&(t=this.Ae,t=this.overflow===W0?My(t):0,f=this.spacingAbove+this.spacingBelow,f=Math.max(0,wp(this)+f),u=Math.min(this.maxLines-1,Math.max(Math.floor(u/f+.01)-1,0)),!(u+1>=this.Qb.length))){for(this.l|=16777216,f=this.Qb[u],t=Math.max(1,e-t);rc(f)>t&&1<f.length;)f=f.substr(0,f.length-1);f+=Tp,t=rc(f),this.Qb[u]=f,this.Qb=this.Qb.slice(0,u+1),this.Qc[u]=t,this.Qc=this.Qc.slice(0,u+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,t),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===Ly||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),a=Math.max(i,a),Ba(this.dc,o,a),this.Ge(0,0,o,a),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},U.eh=function(e,t,n,i){hl(this,e,t,n,i)};function Ep(e,t,n){e.ze===null?(e.ze=t,e.Cb=n):((e.Qb===null||e.Qc===null)&&(e.Qb=[],e.Qc=[],e.Qb.push(e.ze),e.Qc.push(e.Cb)),e.Qb.push(t),e.Qc.push(n),e.Qb.length>e.maxLines&&(e.l|=16777216))}function Fg(e,t,n,i){var r=e.formatting===Cp;r&&(t=t.trim());var o=0,a=e.Ae,l=e.spacingAbove+e.spacingBelow;l=Math.max(0,wp(e)+l);var u=e.overflow===W0?My(a):0;if(e.Gc>=e.maxLines)i!==null&&i.h(0,l);else if(a=t,e.wrap===Bg){e.Le=1;var f=rc(t);if(u===0||f<=n)e.Cb=Math.max(e.Cb,f),Ep(e,t,e.Cb),i!==null&&i.h(f,l);else{for(o=Tf(e,a),a=a.substr(o.length),t=Tf(e,a),f=rc(o+t);0<t.length&&f<=n;)o+=t,a=a.substr(t.length),t=Tf(e,a),f=o+t,r&&(f=f.trim()),f=rc(f);for(r&&(t=t.trim()),o+=t,n=Math.max(1,n-u);rc(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=Tp;var p=rc(o);e.Cb=p,Ep(e,o,p),i!==null&&i.h(p,l)}}else{for(u=0,a.length===0&&(u=1,Ep(e,a,0));0<a.length;){for(t=Tf(e,a),a=a.substr(t.length);rc(t)>n;){var x=1;for(f=rc(t.substr(0,x)),p=0;f<=n;)x++,p=f,f=rc(t.substr(0,x));if(x===1){var A=f;o=Math.max(o,f)}else A=p,o=Math.max(o,p);if(x--,1>x&&(x=1),Ep(e,t.substr(0,x),A),u++,t=t.substr(x),e.Gc+u>e.maxLines)break}for(p=Tf(e,a),f=rc(t+p);0<p.length&&f<=n;)t+=p,a=a.substr(p.length),p=Tf(e,a),f=t+p,r&&(f=f.trim()),f=rc(f);if(r&&(t=t.trim()),t!==""&&(t[t.length-1]==="\xAD"&&(t=t.substring(0,t.length-1)+"\u2010"),p.length===0?(x=f,o=Math.max(o,f)):(x=p=rc(t),o=Math.max(o,p)),Ep(e,t,x),u++,e.Gc+u>e.maxLines))break}e.Le=Math.min(e.maxLines,u),e.Cb=Math.max(e.Cb,o),i!==null&&i.h(e.Cb,l*e.Le)}}function Tf(e,t){if(e.wrap===Ry)return t.substr(0,1);for(var n=t.length,i=0,r=Rb;i<n&&!r.test(t.charAt(i));)i++;for(e.formatting===Dy&&(n=Math.min(n,i+1));i<n&&r.test(t.charAt(i));)i++;return i>=t.length?t:t.substr(0,i)}function rc(e){return Ul===null?8*e.length:Ul.measureText(e).width}function wp(e){if(e.df!==null)return e.df;var t=e.Ae;if(Ul===null){var n=16;return e.df=n}return Ug[t]!==void 0&&5e3>Py?n=Ug[t]:(n=1.3*Ul.measureText("M").width,Ug[t]=n,Py++),e.df=n}function My(e){if(Ul===null)return 6;if(V0[e]!==void 0&&5e3>Hg)var t=V0[e];else t=Ul.measureText(Tp).width,V0[e]=t,Hg++;return t}function Oy(e,t){var n=e.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),i=e.spacingAbove+e.spacingBelow;if(i=Math.max(0,wp(e)+i),n.length===0)return e.Cb=0,e.Gc=1,i;if(!e.isMultiline){var r=n.indexOf(`
|
|
|
`,0);0<=r&&(n=n.substr(0,r))}r=0;for(var o=e.Gc=0,a,l=!1;!l;){if(a=n.indexOf(`
|
|
|
`,o),a===-1&&(a=n.length,l=!0),o<=a){if(o=n.substr(o,a-o),e.wrap!==Bg){e.Le=0;var u=mi.alloc();Fg(e,o,t,u),r+=u.height,mi.free(u),e.Gc+=e.Le}else Fg(e,o,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(l=!0)}o=a+1}return e.Lq=r}ft.Object.defineProperties(Po.prototype,{font:{get:function(){return this.Ae},set:function(e){var t=this.Ae;t!==e&&(this.Ae=e,this.df=null,this.v(),this.g("font",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;e!=null?e=e.toString():e="",t!==e&&(this.ec=e,this.v(),this.g("text",t,e),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(e){var t=this.textAlign;t===e||e!=="start"&&e!=="end"&&e!=="left"&&e!=="right"&&e!=="center"||(Mc(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:xn},set:function(e){var t=this.flip;t!==e&&(Mc(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:aa},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Mc(this),this.da.Yr=e,xl(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=mi.alloc();Fg(this,this.ec,999999,e);var t=e.width;mi.free(e),e=Oy(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),Ba(this.dc,t,e)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this.v(),this.g("isMultiline",t,e))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;t!==e&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",t,e))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(e){var t=(this.l&8388608)!==0;t!==e&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",t,e))}},wrap:{get:function(){return this.da!==null?this.da.$r:_g},set:function(e){var t=this.wrap;t!==e&&(Mc(this),this.da.$r=e,this.v(),this.g("wrap",t,e))}},overflow:{get:function(){return this.da!==null?this.da.$q:zg},set:function(e){var t=this.overflow;t!==e&&(Mc(this),this.da.$q=e,this.v(),this.g("overflow",t,e))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"TextBlock.stroke"),e instanceof ao&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return wp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("editable",t,e))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(e){var t=this.textEditor;t!==e&&(Mc(this),this.da.Qr=e,this.g("textEditor",t,e))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(e){var t=this.errorFunction;t!==e&&(Mc(this),this.da.Hd=e,this.g("errorFunction",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(e){var t=this.graduatedFunction;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.F=e,this.v(),this.g("graduatedFunction",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(e){var t=this.textValidation;t!==e&&(Mc(this),this.da.vj=e,this.g("textValidation",t,e))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(e){var t=this.textEdited;t!==e&&(Mc(this),this.da.Pr=e,this.g("textEdited",t,e))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(e){var t=this.spacingAbove;t!==e&&(Mc(this),this.da.Dr=e,this.v(),this.g("spacingAbove",t,e))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(e){var t=this.spacingBelow;t!==e&&(Mc(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(e){var t=this.formatting;t!==e&&(Mc(this),this.da.gq=e,this.v(),this.g("formatting",t,e))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(e){var t=this.maxLines;t!==e&&(e=Math.floor(e),0>=e&&Rt(e,"> 0",Po,"maxLines"),Mc(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},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(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var j0=null,G0=null,Bg=new Kt(Po,"None",0),Ly=new Kt(Po,"WrapFit",1),_g=new Kt(Po,"WrapDesiredSize",2),Ry=new Kt(Po,"WrapBreakAll",3),zg=new Kt(Po,"OverflowClip",0),W0=new Kt(Po,"OverflowEllipsis",1),Cp=new Kt(Po,"FormatTrim",0),Dy=new Kt(Po,"FormatNone",0),Rb=/[ \u200b\u00ad]/,Ug=new re,Py=0,V0=new re,Hg=0,Tp="...",Fy="",Ul=null,K0=!1;Po.className="TextBlock";function $g(){this.nc=!1,this.Hd=null,this.Xf=xn,this.gq=Cp,this.Jq=1/0,this.$q=zg,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=aa,this.$r=_g}$g.prototype.copy=function(){var e=new $g;return e.Hd=this.Hd,e.Xf=this.Xf,e.gq=this.gq,e.Jq=this.Jq,e.$q=this.$q,e.Dr=this.Dr,e.Er=this.Er,e.Or=this.Or,e.Pr=this.Pr,e.Qr=this.Qr,e.vj=this.vj,e.Yr=this.Yr,e.$r=this.$r,e},Po.getEllipsis=function(){return Tp},Po.setEllipsis=function(e){Tp=e,V0=new re,Hg=0},Po.getBaseline=function(){return j0},Po.setBaseline=function(e){j0=e},Po.getUnderline=function(){return G0},Po.setUnderline=function(e){G0=e},Po.isValidFont=function(e){if(K0||(Ul=Ca?new Hu(null).context:null,K0=!0),Ul===null)return!0;var t=Ul.font;if(e===t||e==="10px sans-serif")return!0;Ul.font="10px sans-serif",Ul.font=e;var n=Ul.font;if(n!=="10px sans-serif")return Ul.font=t,!0;Ul.font="19px serif";var i=Ul.font;return Ul.font=e,n=Ul.font,Ul.font=t,n!==i},Po.FormatNone=Dy,Po.FormatTrim=Cp,Po.None=Bg,Po.OverflowClip=zg,Po.OverflowEllipsis=W0,Po.WrapBreakAll=Ry,Po.WrapDesiredSize=_g,Po.WrapFit=Ly;function Uc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Uc.prototype.copy=function(){var e=new Uc;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},Uc.className="GradElementSettings";function Hl(e,t){st.call(this),this.Eg=null,this.qo="",this.Xg=Sn,this.Nk=Tn,this.Zg=this.Hd=null,this.Mk=Lr,this.Xf=xn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof e=="string"?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}var Nf;di(Hl,st),Hl.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.qo=this.qo,e.element=this.Eg,e.Xg=this.Xg.J(),e.Nk=this.Nk,e.Xf=this.Xf,e.Hd=this.Hd,e.Zg=this.Zg,e.Mk=this.Mk.J(),e.en=this.en,e.rl=this.rl},Hl.prototype.qb=function(e){e===xn||e===fi||e===Pr?this.imageStretch=e:st.prototype.qb.call(this,e)},Hl.prototype.toString=function(){return"Picture("+this.source+")#"+At(this)};function Af(e){e===void 0&&(e=""),e!==""?Nf[e]&&(delete Nf[e],Z0--):(Nf=new re,Z0=0)}function By(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=t.getAttribute("src")||"",a=r.Og.I(o);if(a!==null)for(var l=a.length,u=0;u<l;u++)o=a[u],r.Xn.add(o),o.Uc=!0,r.$b(),t.hn&&(t.eu===void 0&&(t.eu=n),o.Zg!==null&&o.Zg(o,n))}t.Bg.clear()}e.desiredSize.w()||(qa(e,!1),e.v())},t.Yp=function(n){t.ln=n;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value,o=t.getAttribute("src")||"",a=r.Og.I(o);if(a!==null){r=a.length,o=Dt();for(var l=0;l<r;l++)o.push(a[l]);if(t.hn)for(l=0;l<r;l++)a=o[l],a.Hd!==null&&a.Hd(a,n);Jt(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Hl.prototype.hA=function(){if(this.source!==""){Af(this.source);var e=this.source;this.source="",this.source=e}},Hl.prototype.redraw=function(){this.N(),this.Uc=!0},Hl.prototype.hh=function(e,t){var n=this.Eg;if(n!==null){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(i===null||i==="")||n.ln instanceof Event&&e instanceof yd)){var r=e instanceof nu;i=this.naturalBounds;var o=0,a=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 f=u,p=l;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var x=u,A=l,R=this.Nk,z=this.Mk;switch(R){case xn:if(this.sourceRect.w())break;x>=i.width&&(o=o+z.offsetX+(x*z.x-i.width*z.x)),A>=i.height&&(a=a+z.offsetY+(A*z.y-i.height*z.y)),u=Math.min(i.width,x),l=Math.min(i.height,A);break;case Tn:x=i.width,A=i.height;break;case fi:case Pr:R===fi?(R=Math.min(i.height/A,i.width/x),x*=R,A*=R):R===Pr&&(R=Math.max(i.height/A,i.width/x),x*=R,A*=R,x>=i.width&&(o=(o+z.offsetX+(x*z.x-i.width*z.x)/x)*u),A>=i.height&&(a=(a+z.offsetY+(A*z.y-i.height*z.y)/A)*l),u*=1/(x/i.width),l*=1/(A/i.height),x=i.width,A=i.height)}R=this.Df()*t.scale;var V=x*R*A*R,ye=u*l/V,se=n.__goCache;R=null;var De=Db;if(!r){if(n.sq&&se!==void 0&&4<V&&ye>De*De)for(se.gi===null&&(zy(se,4,f,p,n),zy(se,16,f,p,n)),r=se.gi,f=r.length,p=0;p<f&&r[p].ratio*r[p].ratio<ye;p++)R=r[p];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new Hu(null).context;try{r.drawImage(this.Eg,0,0)}catch(ze){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ze){this.vl=!0}}if(this.vl)return}}switch(r=x<i.width?z.offsetX+(i.width*z.x-x*z.x):0,z=A<i.height?z.offsetY+(i.height*z.y-A*z.y):0,this.flip){case $r:e.translate(Math.min(i.width,x),0),e.scale(-1,1);break;case Sr:e.translate(0,Math.min(i.height,A)),e.scale(1,-1);break;case vo:e.translate(Math.min(i.width,x),Math.min(i.height,A)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&se!==void 0&&R!==null&&R.ratio!==1){e.save(),t=R.ratio;try{e.drawImage(R.source,o/t,a/t,Math.min(R.source.width,u/t),Math.min(R.source.height,l/t),r,z,Math.min(i.width,x),Math.min(i.height,A)),e instanceof nu&&(this.bt=[o/t,a/t,Math.min(R.source.width,u/t),Math.min(R.source.height,l/t),r,z,Math.min(i.width,x),Math.min(i.height,A)])}catch(ze){this.en=!1}e.restore()}else try{e.drawImage(n,o,a,u,l,r,z,Math.min(i.width,x),Math.min(i.height,A)),e instanceof nu&&(this.bt=[o,a,u,l,r,z,Math.min(i.width,x),Math.min(i.height,A)])}catch(ze){this.en=!1}switch(this.flip){case $r:e.scale(-1,1),e.translate(-Math.min(i.width,x),0);break;case Sr:e.scale(1,-1),e.translate(0,-Math.min(i.height,A));break;case vo:e.scale(-1,-1),e.translate(-Math.min(i.width,x),-Math.min(i.height,A))}}}}},Hl.prototype.Wl=function(e,t,n,i){var r=this.desiredSize,o=zl(this,!0),a=this.Eg,l=this.qn,u=0,f=0;(l||!this.al&&a&&a.complete)&&(this.al=!0),a===null?(isFinite(r.width)||(e=0),isFinite(r.height)||(t=0)):(u=l?+a.width:a.naturalWidth,f=l?+a.height:a.naturalHeight),isFinite(r.width)||o===Tn||o===xi?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:a!==null&&(e=u)),n=0):a!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===Tn||o===Fi?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:a!==null&&(t=f)),i=0):a!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.height:f),isFinite(r.width)&&(e=r.width),isFinite(r.height)&&(t=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),e=Math.min(r.width,e),t=Math.min(r.height,t),e=Math.max(n,e),t=Math.max(i,t),a===null||a.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),Ba(this.dc,e,t),this.Ge(0,0,e,t)},Hl.prototype.eh=function(e,t,n,i){hl(this,e,t,n,i)},ft.Object.defineProperties(Hl.prototype,{element:{get:function(){return this.Eg},set:function(e){var t=this.Eg;if(this.Uc=!0,t!==e){this.qn=e instanceof HTMLCanvasElement;var n=e instanceof HTMLImageElement;e===null||n||e instanceof HTMLVideoElement||this.qn||Ke("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var i=this.diagram;i!==null&&rp(i,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new Zt),i!==null&&n&&zh(i,this),e!==null&&(this.qn||e.complete===!0?(e.hn&&(e.ln instanceof Event&&this.Hd!==null?this.Hd(this,e.ln):e.sq===!0&&!e.ln&&this.Zg!==null&&e.eu&&this.Zg(this,e.eu)),e.sq=!0,this.desiredSize.w()||(qa(this,!1),this.v())):n&&By(this,e)),this.g("element",t,e),this.N()}}},source:{get:function(){return this.qo},set:function(e){var t=this.qo;if(t!==e){this.Uc=!0,this.qo=e;var n=Nf;if(Ca){var i=null;if(n[e]!==void 0)i=n[e];else if(e!==""){30<Z0&&(Af(),n=Nf),i=Ct("img"),i.hn=!0,By(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=e,n[e]=i,Z0++}this.element=i,i!==null&&i.__goCache===void 0&&(i.__goCache=new _y),this.v(),this.N()}this.g("source",t,e)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(e){if(this.rl!==e&&(this.rl=e,this.element!==null)){var t=this.element.getAttribute("src");e===null&&typeof t=="string"?this.element.crossOrigin=null:e!==null&&(this.element.crossOrigin=e(this)),this.element.src=t}}},sourceRect:{get:function(){return this.Xg},set:function(e){var t=this.Xg;t.D(e)||(this.Xg=e=e.J(),this.N(),this.g("sourceRect",t,e))}},imageStretch:{get:function(){return this.Nk},set:function(e){var t=this.Nk;t!==e&&(this.Nk=e,this.N(),this.g("imageStretch",t,e))}},flip:{get:function(){return this.Xf},set:function(e){var t=this.Xf;t!==e&&(this.Xf=e,this.N(),this.g("flip",t,e))}},imageAlignment:{get:function(){return this.Mk},set:function(e){var t=this.Mk;t.D(e)||(this.Mk=e=e.J(),this.N(),this.g("imageAlignment",t,e))}},errorFunction:{get:function(){return this.Hd},set:function(e){var t=this.Hd;t!==e&&(this.Hd=e,this.g("errorFunction",t,e))}},successFunction:{get:function(){return this.Zg},set:function(e){var t=this.Zg;t!==e&&(this.Zg=e,this.g("successFunction",t,e))}},naturalBounds:{get:function(){return this.dc}}}),Hl.prototype.redraw=Hl.prototype.redraw,Hl.prototype.reloadSource=Hl.prototype.hA;var Z0=0,Db=4;Hl.className="Picture",Nf=new re,Hl.clearCache=Af;function _y(){this.gi=null}function zy(e,t,n,i,r){e.gi===null&&(e.gi=[]);var o=new Hu(null),a=o.context,l=1/t;o.width=n/t,o.height=i/t,o.width!==0&&o.height!==0&&(t=new Uy(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],r=n.source,n=n.ratio),a.setTransform(l*n,0,0,l*n,0,0),a.yc(),a.drawImage(r,0,0),e.gi.push(t))}_y.className="PictureCacheArray";function Uy(e,t){this.source=e,this.ratio=t}Uy.className="PictureCacheInstance";function kf(){this.os=new Pn,this.mc=null}kf.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new Pn,this.mc=null};function If(e,t,n,i,r,o){e.mc=new Ia,e.mc.startX=t,e.mc.startY=n,e.mc.isFilled=i,e.mc.isEvenOdd=o||!1,e.os.figures.add(e.mc),r!==void 0&&(e.mc.isShadowed=r)}function Pb(e){var t=e.mc.segments.length;0<t&&e.mc.segments.M(t-1).close()}kf.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var i=new Or(So);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)},kf.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var i=new Or(lo);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)};function bh(e,t,n,i,r,o,a){var l;l===void 0&&(l=!1);var u=new Or(Ha);u.point1X=t,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=a,l&&u.close(),e.mc.segments.add(u)}function Y0(e,t,n,i,r){var o;o===void 0&&(o=!1);var a=new Or(Vs);a.point1X=t,a.point1Y=n,a.endX=i,a.endY=r,o&&a.close(),e.mc.segments.add(a)}kf.prototype.arcTo=function(e,t,n,i,r,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var l=new Or(la);l.startAngle=e,l.sweepAngle=t,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,a&&l.close(),this.mc.segments.add(l)};function Fb(e,t,n,i,r,o,a,l){var u;u===void 0&&(u=!1),t=new Or(Ks,a,l,t,n,i,r,o),u&&t.close(),e.mc.segments.add(t)}function Hy(e){var t=X0;return t!==null?(X0=null,t.reset(e),t):(t=new kf,t.reset(e),t)}var X0=null;kf.className="StreamGeometryContext";function rl(e,t){var n=e.toLowerCase(),i=et.Ze;i[e]=t,i[n]=e}rl("Rectangle",function(e,t,n){e="r"+t+","+n;var i=et.Mf[e];return i!==void 0||(i=new Pn(Pn.u),i.endX=t,i.endY=n,et.Nf<et.vm&&(et.Mf[e]=i,et.Nf++)),i}),rl("Square",function(e,t,n){e="s"+t+","+n;var i=et.Mf[e];return i!==void 0||(i=new Pn(Pn.u),i.endX=t,i.endY=n,i.defaultStretch=fi,et.Nf<et.vm&&(et.Mf[e]=i,et.Nf++)),i}),rl("RoundedRectangle",function(e,t,n){e=e?e.parameter1:NaN,(isNaN(e)||0>e)&&(e=5),e=Math.min(e,t/3),e=Math.min(e,n/3);var i="rr"+t+","+n+","+e,r=et.Mf[i];if(r!==void 0)return r;var o=e*et.wg;return r=new Pn().add(new Ia(e,0,!0).add(new Or(lo,t-e,0)).add(new Or(Ha,t,e,t-o,0,t,o)).add(new Or(lo,t,n-e)).add(new Or(Ha,t-e,n,t,n-o,t-o,n)).add(new Or(lo,e,n)).add(new Or(Ha,0,n-e,o,n,0,n-o)).add(new Or(lo,0,e)).add(new Or(Ha,e,0,0,o,o,0).close())),1<o&&(r.spot1=new si(0,0,o,o),r.spot2=new si(1,1,-o,-o)),et.Nf<et.vm&&(et.Mf[i]=r,et.Nf++),r}),rl("Border","RoundedRectangle"),rl("Ellipse",function(e,t,n){e="e"+t+","+n;var i=et.Mf[e];return i!==void 0||(i=new Pn(Pn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Ys,et.Nf<et.vm&&(et.Mf[e]=i,et.Nf++)),i}),rl("Circle",function(e,t,n){e="c"+t+","+n;var i=et.Mf[e];return i!==void 0||(i=new Pn(Pn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Ys,i.defaultStretch=fi,et.Nf<et.vm&&(et.Mf[e]=i,et.Nf++)),i}),rl("TriangleRight",function(e,t,n){return new Pn().add(new Ia(0,0).add(new Or(lo,t,.5*n)).add(new Or(lo,0,n).close())).pm(0,.25,.5,.75)}),rl("TriangleDown",function(e,t,n){return new Pn().add(new Ia(0,0).add(new Or(lo,t,0)).add(new Or(lo,.5*t,n).close())).pm(.25,0,.75,.5)}),rl("TriangleLeft",function(e,t,n){return new Pn().add(new Ia(t,n).add(new Or(lo,0,.5*n)).add(new Or(lo,t,0).close())).pm(.5,.25,1,.75)}),rl("TriangleUp",function(e,t,n){return new Pn().add(new Ia(t,n).add(new Or(lo,0,n)).add(new Or(lo,.5*t,0).close())).pm(.25,.5,.75,1)}),rl("Triangle","TriangleUp"),rl("Diamond",function(e,t,n){return new Pn().add(new Ia(.5*t,0).add(new Or(lo,0,.5*n)).add(new Or(lo,.5*t,n)).add(new Or(lo,t,.5*n).close())).pm(.25,.25,.75,.75)}),rl("LineH",function(e,t,n){return e=new Pn(Pn.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),rl("LineV",function(e,t,n){return e=new Pn(Pn.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),rl("None","Rectangle"),rl("BarH","Rectangle"),rl("BarV","Rectangle"),rl("MinusLine","LineH"),rl("PlusLine",function(e,t,n){return new Pn().add(new Ia(0,n/2,!1).add(new Or(lo,t,n/2)).add(new Or(So,t/2,0)).add(new Or(lo,t/2,n)))}),rl("XLine",function(e,t,n){return new Pn().add(new Ia(0,n,!1).add(new Or(lo,t,0)).add(new Or(So,0,0)).add(new Or(lo,t,n)))}),rl("LineRight",function(e,t,n){return new Pn().add(new Ia(.25*t,0,!1).add(new Or(lo,.75*t,.5*n)).add(new Or(lo,.25*t,n)))}),rl("LineDown",function(e,t,n){return new Pn().add(new Ia(0,.25*n,!1).add(new Or(lo,.5*t,.75*n)).add(new Or(lo,t,.25*n)))}),rl("LineLeft",function(e,t,n){return new Pn().add(new Ia(.75*t,0,!1).add(new Or(lo,.25*t,.5*n)).add(new Or(lo,.75*t,n)))}),rl("LineUp",function(e,t,n){return new Pn().add(new Ia(0,.75*n,!1).add(new Or(lo,.5*t,.25*n)).add(new Or(lo,t,.75*n)))}),et.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 jg(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Na,this.ir=null,this.jr="",this.lr=Vr,this.Gq="",this.Hq=ta,this.Pq=Er,this.Kq=cr,this.Up=null,this.Cq=127,this.zr=Wr,this.yr="gray",this.Vg=4}jg.prototype.copy=function(){var e=new jg;return e.zq=this.zq,e.Kp=this.Kp,e.tr=this.tr,e.vr=this.vr,e.ur=this.ur,e.oq=this.oq,e.fr=this.fr,e.hr=this.hr,e.gr=this.gr.J(),e.ir=this.ir,e.jr=this.jr,e.lr=this.lr.J(),e.Gq=this.Gq,e.Hq=this.Hq.J(),e.Pq=this.Pq.J(),e.Kq=this.Kq.J(),e.Up=this.Up,e.Cq=this.Cq,e.zr=this.zr.J(),e.yr=this.yr,e.Vg=this.Vg,e};function Ai(e,t){e===void 0||e instanceof ls||typeof e=="string"?An.call(this,e):(An.call(this),e&&(t=e)),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 ce(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Wt,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}di(Ai,An),Ai.prototype.cloneProtected=function(e){An.prototype.cloneProtected.call(this,e),e.G=this.G&-4097|49152,e.Tf=this.Tf,this.P!==null&&(e.P=this.P.nc?this.P:this.P.copy()),e.Jg=this.Jg,e.Qf=null,e.ec=this.ec,e.ke.assign(this.ke),e.Ao=this.Ao},U=Ai.prototype,U.Af=function(e){An.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},U.toString=function(){var e=gt(this.constructor)+"#"+At(this);return this.data!==null&&(e+="("+fn(this.data)+")"),e};function $l(e){e.P===null?e.P=new jg:e.P.nc&&(e.P=e.P.copy())}U.th=function(){An.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},U.gk=function(e,t,n,i,r,o,a){var l=this.diagram;l!==null&&(e===qo&&t==="elements"?r instanceof An?bd(r,function(u){gv(l.partManager,u),hd(l,u)}):zh(l,r):e===ia&&t==="elements"&&(r instanceof An?bd(r,function(u){vv(l.partManager,u,l)}):rp(l,r)),l.cb(e,t,n,i,r,o,a))},U.La=function(e){if(An.prototype.La.call(this,e),this.data!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r instanceof An&&bd(r,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Ai.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Ai.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Ai.prototype.bh=function(e,t){if(t!==null){var n=null,i=this.Qf;if(i!==null&&(n=i.I(e)),n!==t){if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}i===null&&(this.Qf=i=new Zn),t.Tf!==e&&(t.category=e),i.add(e,t),e=this.diagram,e!==null&&(e.add(t),e=t.adornedObject,e!==null&&(e=e.ih(),e!==null&&(t.data=e.data)))}}},Ai.prototype.Jf=function(e){var t=this.Qf;if(t!==null){var n=t.I(e);if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}t.remove(e),t.count===0&&(this.Qf=null)}},Ai.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=Dt();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);Jt(t)}},Ai.prototype.updateAdornments=function(){var e=this.diagram;if(e!==null){for(var t=this.adornments;t.next();){var n=t.value;n.v(),n.placeholder&&n.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(t=this.selectionObject,t!==null&&this.actualBounds.w()&&this.isVisible()&&t.Ed()&&t.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?e.linkSelectionAdornmentTemplate:this instanceof nr?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Xr))break e;$u(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=An.Link),n.adornedObject=t)}if(n!==null){n.type===An.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(Bb(this,e),t=this.adornments;t.next();)t.value.La()}},Ai.prototype.Wb=function(){var e=this.diagram;e!==null&&(e.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Gg(e){e.G&16384&&(e.updateAdornments(),e.G&=-16385)}function Bb(e,t){t.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(e)}),t.toolManager.updateAdornments(e)}function Q0(e){if(jh(e)===!1){Vg(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function $y(e){if(e.G|=2097152,jh(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||Wy(e,t,n),n=e.Ib;var i=Wt.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(i,n),Wt.free(i),Vg(e,!1)}}Ai.prototype.Ge=function(e,t,n,i){var r=this.uc;r.h(e,t,n,i),this.Lb===null&&(this.Lb=new sr);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),this.Lb=o,o.ws()||o.pp(r)},Ai.prototype.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Lr;this.locationSpot.sb()&&(o=this.locationSpot);var a=ce.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,a.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(a),a.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(a),a.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else a.yi(t,n,i,r,o);e.rotate(this.Kb,a.x,a.y),ce.free(a)}},Ai.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Ai.prototype.moveTo=function(e,t,n){e=ce.allocAt(e,t),this.move(e,n),ce.free(e)},Ai.prototype.isVisible=function(){if(!this.visible)return!1;var e=this.layer;if(e!==null){if(!e.visible)return!1;if(e=e.diagram,e!==null&&e.animationManager.fv(this))return!0}return e=this.containingGroup,!!(e===null||e.isSubGraphExpanded&&e.isVisible())},Ai.prototype.Zb=function(e){var t=this.diagram;e?(this.C(4),this.Wb(),t!==null&&t.De.add(this)):(this.C(8),this.Ej()),this.oh(),t!==null&&(t.Ya(),t.N())},Ai.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new Zn),t.I(e)!==null)return t.I(e);var n=An.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function xh(e,t,n,i){i===void 0&&(i=new ce),n=n.Mc()?Lr:n;var r=t.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),t===null||t===e)return i;for(t.transform.Ga(i),t=t.panel;t!==null&&t!==e;)t.transform.Ga(i),t=t.panel;return e.Lb!==null&&e.Lb.Ga(i),i.offset(-e.uc.x,-e.uc.y),i}Ai.prototype.mi=function(e){return e===void 0&&(e=new Wt),e.assign(this.actualBounds)},Ai.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function jy(e){var t=ce.alloc(),n=e.locationObject,i=n.naturalBounds,r=n instanceof hr?n.strokeWidth:0;if(t.yi(0,0,i.width+r,i.height+r,e.locationSpot),n!==e)for(t.offset(-r/2,-r/2),n.transform.Ga(t),n=n.panel;n!==null&&n!==e;)n.transform.Ga(t),n=n.panel;return e.Lb!==null&&e.Lb.Ga(t),t.offset(-e.uc.x,-e.uc.y),t}function Ed(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=xy(e));var i=e.ag,r=2*i;if(!e.isShadowed)return n.h(t.x-1-i,t.y-1-i,t.width+2+r,t.height+2+r),n;i=t.x,r=t.y;var o=t.width;t=t.height;var a=e.shadowBlur;return e=e.shadowOffset,o+=a,t+=a,i-=a/2,r-=a/2,0<e.x?o+=e.x:(i+=e.x,o-=e.x),0<e.y?t+=e.y:(r+=e.y,t-=e.y),n.h(i-1,r-1,o+2,t+2),n}Ai.prototype.arrange=function(){if(Sl(this)===!1)$y(this);else{Fc(this,!1);var e=this.Ib,t=Wt.alloc();t.assign(e);var n=Gh(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;Wy(this,i,this.location),e.ka(),e.x=i.x,e.y=i.y,e.freeze(),this.Xl(t,e),t.D(e)?this.Fd(n):!this.Zc()||et.B(t.width,e.width)&&et.B(t.height,e.height)||0<=this.vw&&this.C(16),Wt.free(t),Vg(this,!1)}},U=Ai.prototype,U.Xl=function(e,t){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&e.w()){var r=Wt.alloc();r.assign(n.documentBounds),r.Fv(n.padding),e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&(i=!0),Wt.free(r)}!(this.G&65536)&&e.D(t)||Zy(this,i,n),n.N(),!e.w()&&!t.w()||po(e,t)||(this instanceof Xn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},U.zv=function(e,t,n){if(this.ph()||!e.w())return!1;var i=this.diagram;return i!==null&&Gy(this,i,e,t,n),this.pa=e,this.G&=-2097153,!this.ke.w()||i!==null&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new ce(i.x+(e.x-t),i.y+(e.y-n)),this.g("location",i,this.ke.copy())),jh(this)===!1&&Sl(this)===!1&&(Q0(this),$y(this)),!0};function Gy(e,t,n,i,r){t===null||e instanceof Xr||(t=t.animationManager,t.zb&&$a(t,e,new ce(i,r),n))}U.mm=function(e,t,n){var i=this.ke,r=this.pa;if(n){if(i.x===e&&i.y===t)return;jh(this)||Sl(this)?r.h(NaN,NaN):r.h(r.x+e-i.x,r.y+t-i.y),i.h(e,t)}else{if(r.x===e&&r.y===t)return;i.h(i.x+e-r.x,i.y+t-r.y),r.h(e,t)}Q0(this)},U.Av=function(){this.G&=-2097153,Q0(this)};function Wy(e,t,n){var i=jy(e),r=e.diagram,o=n.w(),a=t.w();o&&a?e.G&2097152?Vy(e,t,n,r,i):Ky(e,t,n,r,i):o?Vy(e,t,n,r,i):a&&Ky(e,t,n,r,i),e.G|=2097152,ce.free(i),e.Uk()}function Vy(e,t,n,i,r){var o=t.x,a=t.y;t.h(n.x-r.x,n.y-r.y),i!==null&&(n=i.animationManager,(i=n.defaultAnimation.isAnimating)||!n.zb||e instanceof Xr||$a(n,e,new ce(o,a),t),i||t.x===o&&t.y===a||e.g("position",new ce(o,a),t.copy()))}function Ky(e,t,n,i,r){var o=n.copy();n.h(t.x+r.x,t.y+r.y),n.D(o)||i===null||e.g("location",o,n.copy())}function Zy(e,t,n){Kg(e,!1),e instanceof Xn&&fh(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var i=n.viewportBounds;i.w()?Gh(e)?(Mt(t,i)||e.Fd(!1),e.updateAdornments()):e.isVisible()&&t.Yc(i)?(e.Fd(!0),e.updateAdornments()):e.Wb():n.vd=!0}U.si=function(){return!0},U.Zc=function(){return!0},U.ph=function(){return!1},U.Dd=function(){return!0};function Wg(e,t,n,i){t.constructor===e.constructor||Qy||(Qy=!0,jn('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),jn(" Old class: "+gt(e.constructor)+", new class: "+gt(t.constructor)+", part: "+e.toString())),e.Ej();var r=e.data;n=e.layerName;var o=e.isSelected,a=e.isHighlighted,l=!0,u=!0,f=!1;e instanceof Xn&&(l=e.isTreeLeaf,u=e.isTreeExpanded,f=e.wasTreeExpanded),t.Af(e),t.cloneProtected(e),e.Tf=i,e.svg!==null&&(e.svg.remove(),e.svg=null,e.Uc=!0),e.v(),e.N(),t=e.diagram,i=!0,t!==null&&(i=t.skipsUndoManager,t.skipsUndoManager=!0),e.ub=r,e.G=o?e.G|4096:e.G&-4097,e.G=a?e.G|524288:e.G&-524289,e instanceof Xn&&(e.U=l?e.U|4:e.U&-5,e.U=u?e.U|1:e.U&-2,e.U=f?e.U|2:e.U&-3),r!==null&&e.La(),r=e.layerName,r!==n&&(e.Jg=n,e.layerName=r),t!==null&&(t.skipsUndoManager=i),e.Zc()&&e.C(64)}Ai.prototype.canCopy=function(){if(!this.copyable)return!1;var e=this.layer;return e===null?!0:e.allowCopy?(e=e.diagram,e===null?!0:!!e.allowCopy):!1},Ai.prototype.canDelete=function(){if(!this.deletable)return!1;var e=this.layer;return e===null?!0:e.allowDelete?(e=e.diagram,e===null?!0:!!e.allowDelete):!1},Ai.prototype.canEdit=function(){if(!this.textEditable)return!1;var e=this.layer;return e===null?!0:e.allowTextEdit?(e=e.diagram,e===null?!0:!!e.allowTextEdit):!1},Ai.prototype.canGroup=function(){if(!this.groupable)return!1;var e=this.layer;return e===null?!0:e.allowGroup?(e=e.diagram,e===null?!0:!!e.allowGroup):!1},Ai.prototype.canMove=function(){if(!this.movable)return!1;var e=this.layer;return e===null?!0:e.allowMove?(e=e.diagram,e===null?!0:!!e.allowMove):!1},Ai.prototype.canReshape=function(){if(!this.reshapable)return!1;var e=this.layer;return e===null?!0:e.allowReshape?(e=e.diagram,e===null?!0:!!e.allowReshape):!1},Ai.prototype.canResize=function(){if(!this.resizable)return!1;var e=this.layer;return e===null?!0:e.allowResize?(e=e.diagram,e===null?!0:!!e.allowResize):!1},Ai.prototype.canRotate=function(){if(!this.rotatable)return!1;var e=this.layer;return e===null?!0:e.allowRotate?(e=e.diagram,e===null?!0:!!e.allowRotate):!1},Ai.prototype.canSelect=function(){if(!this.selectable)return!1;var e=this.layer;return e===null?!0:e.allowSelect?(e=e.diagram,e===null?!0:!!e.allowSelect):!1};function jh(e){return(e.G&32768)!==0}function Vg(e,t){e.G=t?e.G|32768:e.G&-32769}function Kg(e,t){e.G=t?e.G|65536:e.G&-65537}function Gh(e){return(e.G&131072)!==0}U=Ai.prototype,U.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function J0(e,t){e.G=t?e.G|1048576:e.G&-1048577}U.oh=function(){var e=this.containingGroup;e!==null&&(e.v(),e.placeholder!==null&&e.placeholder.v(),e.Bd())},U.N=function(){var e=this.diagram;e!==null&&!Sl(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&e.N(Ed(this,this.Ib))},U.v=function(){An.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof Xn&&this.labeledLink!==null&&xl(this.labeledLink),e.$b(!0))},U.Vo=function(e){e||(e=this.Ah,e!==null&&qg(e,this))},U.Wo=function(e){e||(e=this.Ah,e!==null&&ev(e,this))},U.Lj=function(){var e=this.data;if(e!==null){var t=this.diagram;t!==null&&(t=t.model,t!==null&&t.cm(e))}},U.oz=function(){return Zg(this,this)};function Zg(e,t){var n=t.containingGroup;return n!==null?1+Zg(e,n):t instanceof Xn&&(t=t.labeledLink,t!==null)?Zg(e,t):0}U.sz=function(){return Yy(this,this)};function Yy(e,t){var n=t.containingGroup;return n!==null||t instanceof Xn&&(n=t.labeledLink,n!==null)?Yy(e,n):t}U.Td=function(e){return e instanceof nr?Yg(this,this,e):!1};function Yg(e,t,n){if(t===n||n===null)return!1;var i=t.containingGroup;return i===null||i!==n&&!Yg(e,i,n)?t instanceof Xn&&(t=t.labeledLink,t!==null)?Yg(e,t,n):!1:!0}U.px=function(e){if(e===null)return null;if(this===e)return this.containingGroup;for(var t=this;t!==null;){if(t instanceof nr&&J0(t,!0),t instanceof Xn){var n=t.labeledLink;n!==null&&(t=n)}t=t.containingGroup}for(n=null,t=e;t!==null;){if(t.G&1048576){n=t;break}t instanceof Xn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof nr&&J0(t,!1),t instanceof Xn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Ai.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof Xn&&this.isLinkLabel)},Ai.prototype.C=function(e){if(e===void 0&&(e=16777215),this.isLayoutPositioned&&e&this.layoutConditions){var t=this.layer;t!==null&&t.isTemporary||this instanceof Xn&&this.isLinkLabel?t=!1:(t=this.diagram,t=!(t!==null&&t.undoManager.isUndoingRedoing))}else t=!1;if(t)if(t=this.Ah,t!==null){var n=t.layout;n!==null?n.C():t.C(e)}else e=this.diagram,e!==null&&(e=e.layout,e!==null&&e.C())};function Xy(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function Wh(e,t,n,i,r,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof Xr)){if(e.add(t),t instanceof Xn){if(n&&t instanceof nr)for(var a=t.memberParts;a.next();)Wh(e,a.value,n,i,r,o);if(r!==!1)for(a=t.linksConnected;a.next();){var l=a.value;if(!e.contains(l)){var u=l.fromNode,f=l.toNode;u=u===null||e.contains(u),f=f===null||e.contains(f),(r?u&&f:u||f)&&Wh(e,l,n,i,r,o)}}if(1<i)for(t=t.Ou();t.next();)Wh(e,t.value,n,i-1,r,o)}else if(t instanceof Fn)for(t=t.labelNodes;t.next();)Wh(e,t.value,n,i,r,o)}}ft.Object.defineProperties(Ai.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?wt:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var e=this.Ig;return e==null?null:e.diagram}},layerName:{get:function(){return this.Jg},set:function(e){var t=this.Jg;if(t!==e){var n=this.diagram;if((n===null||n.Qj(e)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=e,n!==null&&n.Ya(),this.g("layerName",t,e),t=this.layer,t!==null&&t.name!==e&&(n=t.diagram,n!==null&&(e=n.Qj(e),e!==null&&e!==t)))){var i=t.pc(-1,this,!0);if(0<=i&&n.cb(ia,"parts",t,this,null,i,!0),i=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=i&&n.cb(qo,"parts",e,null,this,!0,i),i=this.layerChanged,i!==null){var r=n.aa;n.aa=!0,i(this,t,e),n.aa=r}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(e){var t=this.layerChanged;t!==e&&($l(this),this.P.zq=e,this.g("layerChanged",t,e))}},zOrder:{get:function(){return this.Ao},set:function(e){var t=this.Ao;if(t!==e){this.Ao=e;var n=this.layer;n!==null&&Z(n,-1,this),this.g("zOrder",t,e),e=this.diagram,e!==null&&e.N()}}},locationObject:{get:function(){if(this.nf===null){var e=this.locationObjectName;e!==""?(e=this.fb(e),e!==null?this.nf=e:this.nf=this):this instanceof Xr?this.type!==An.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:Er},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),$l(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:cr},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),$l(this),this.P.Kq=e,this.g("maxLocation",t,e))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(e){var t=this.locationObjectName;t!==e&&($l(this),this.P.Gq=e,this.nf=null,this.v(),this.g("locationObjectName",t,e))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:ta},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),$l(this),this.P.Hq=e,this.v(),this.g("locationSpot",t,e))}},location:{get:function(){return this.ke},set:function(e){var t=e.x,n=e.y,i=this.ke;if(!(i.x===t||isNaN(i.x)&&isNaN(t))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(e=e.copy(),t=e,this.ph())t=!1;else{if(this.ke=t,this.G|=2097152,Sl(this)===!1&&(Q0(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+(t.x-i.x),n.y+(t.y-i.y)),Gy(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}t=!0}t&&this.g("location",i,e.copy())}}},category:{get:function(){return this.Tf},set:function(e){var t=this.Tf;if(t!==e){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 Xr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone(),r.O.addAll(this.O))}this.Tf=e,this.g("category",t,e),n===null||i===null||this instanceof Xr?this instanceof Xr&&(r=this.adornedPart,r!==null&&(e=r.Qf,e!==null&&e.remove(t),r.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,e),n=n.partManager.findLinkTemplateForCategory(e),n!==null&&($u(n),n=n.copy(),n!==null&&Wg(this,n,t,e))):(o!==null&&o.jm(i,e),n=E1(n.partManager,i,e),n!==null&&($u(n),n=n.copy(),n===null||n instanceof Fn||(i=this.location.copy(),Wg(this,n,t,e),this.location.w()||(this.location=i)))),r!==null&&(t=this.clone(),t.O.addAll(this.O),this.g("self",r,t))))}}},self:{get:function(){return this},set:function(e){Wg(this,e,this.category,e.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(e){var t=(this.G&1)!==0;t!==e&&(this.G^=1,this.g("copyable",t,e))}},deletable:{get:function(){return(this.G&2)!==0},set:function(e){var t=(this.G&2)!==0;t!==e&&(this.G^=2,this.g("deletable",t,e))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(e){var t=(this.G&4)!==0;t!==e&&(this.G^=4,this.g("textEditable",t,e),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(e){var t=(this.G&8)!==0;t!==e&&(this.G^=8,this.g("groupable",t,e))}},movable:{get:function(){return(this.G&16)!==0},set:function(e){var t=(this.G&16)!==0;t!==e&&(this.G^=16,this.g("movable",t,e))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(e){var t=(this.G&32)!==0;t!==e&&(this.G^=32,this.g("selectionAdorned",t,e),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(e){var t=(this.G&64)!==0;if(t!==e){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",t,e)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(e){var t=(this.G&128)!==0;t!==e&&(this.G^=128,this.g("isLayoutPositioned",t,e),this.C(e?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(e){var t=(this.G&256)!==0;t!==e&&(this.G^=256,this.g("selectable",t,e),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(e){var t=(this.G&512)!==0;t!==e&&(this.G^=512,this.g("reshapable",t,e),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(e){var t=(this.G&1024)!==0;t!==e&&(this.G^=1024,this.g("resizable",t,e),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(e){var t=(this.G&2048)!==0;t!==e&&(this.G^=2048,this.g("rotatable",t,e),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(e){var t=(this.G&4096)!==0;if(t!==e){var n=this.diagram;if(!e||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(),e?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",t,e),this.Wb(),e=this.selectionChanged,e!==null&&e(this),n!==null&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(e){var t=(this.G&524288)!==0;if(t!==e){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),e=this.highlightedChanged,e!==null&&e(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(e){var t=(this.G&8192)!==0;t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(e){var t=(this.G&262144)!==0;t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&($l(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&($l(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&($l(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(this.Ug===null){var e=this.selectionObjectName;e!==null&&e!==""?(e=this.fb(e),e!==null?this.Ug=e:this.Ug=this):this instanceof Fn?(e=this.path,e!==null?this.Ug=e:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&($l(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&($l(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&($l(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Na},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),$l(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&($l(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&($l(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Vr},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),$l(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){e===null||this!==e&&!e.Td(this)||(this===e&&Ke("Cannot make a Group a member of itself: "+this.toString()),Ke("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(t!==null?ev(t,this):this instanceof nr&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?qg(e,this):this instanceof nr&&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(e!==null?e.data:null);r.mp(i,o)}}if(i=this.containingGroupChanged,i!==null&&(r=!0,n!==null&&(r=n.aa,n.aa=!0),i(this,t,e),n!==null&&(n.aa=r)),this instanceof nr){for(n=new Zt,Wh(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof Xn)for(i=i.linksConnected;i.next();)Mf(i.value)}if(this instanceof Xn){for(n=this.linksConnected;n.next();)Mf(n.value);n=this.labeledLink,n!==null&&Mf(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Z(t,-1,e))}}else Ke("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&($l(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&($l(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&($l(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Wr},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),$l(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&($l(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&($l(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Ai.prototype.invalidateLayout=Ai.prototype.C,Ai.prototype.findCommonContainingGroup=Ai.prototype.px,Ai.prototype.isMemberOf=Ai.prototype.Td,Ai.prototype.findTopLevelPart=Ai.prototype.sz,Ai.prototype.findSubGraphLevel=Ai.prototype.oz,Ai.prototype.ensureBounds=Ai.prototype.Va,Ai.prototype.getDocumentBounds=Ai.prototype.mi,Ai.prototype.findObject=Ai.prototype.fb,Ai.prototype.moveTo=Ai.prototype.moveTo,Ai.prototype.invalidateAdornments=Ai.prototype.Wb,Ai.prototype.clearAdornments=Ai.prototype.Ej,Ai.prototype.removeAdornment=Ai.prototype.Jf,Ai.prototype.addAdornment=Ai.prototype.bh,Ai.prototype.findAdornment=Ai.prototype.Pj,Ai.prototype.updateTargetBindings=Ai.prototype.La;var Qy=!1;Ai.className="Part",Ai.LayoutNone=0,Ai.LayoutAdded=1,Ai.LayoutRemoved=2,Ai.LayoutShown=4,Ai.LayoutHidden=8,Ai.LayoutNodeSized=16,Ai.LayoutGroupLayout=32,Ai.LayoutNodeReplaced=64,Ai.LayoutStandard=127,Ai.LayoutAll=16777215;function Xr(e,t){e===void 0||e instanceof ls||typeof e=="string"?Ai.call(this,e):(Ai.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}di(Xr,Ai),Xr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Xr.prototype.updateRelationshipsFromData=function(){},Xr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof Fn&&t instanceof hr){t=n.path,n.Ul(e),e=t.geometry,n=this.O.s,t=n.length;for(var i=0;i<t;i++){var r=n[i];r.isPanelMain&&r instanceof hr&&(r.ua=e)}}},Xr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!Sl(e))},Xr.prototype.Zc=function(){return!1},Xr.prototype.gk=function(e,t,n,i,r,o,a){if(e===qo&&t==="elements"){if(r instanceof wl)this.$a===null&&(this.$a=r);else if(r instanceof An){var l=r.Nl(function(u){return u instanceof wl});l instanceof wl&&this.$a===null&&(this.$a=l)}}else e===ia&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof An&&this.$a.rg(i)&&(this.$a=null));Ai.prototype.gk.call(this,e,t,n,i,r,o,a)},Xr.prototype.updateAdornments=function(){},Xr.prototype.Lj=function(){},ft.Object.defineProperties(Xr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(e){var t=this.adornedPart,n=null;e!==null&&(n=e.part),t===null||e!==null&&t===n||t.Jf(this.category),this.ue=e,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var e=this.ue;return e!==null?e.part:null}},containingGroup:{get:function(){return null}}}),Xr.className="Adornment";function Xg(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Rs,this.er=tm,this.Kr=this.ij=this.Nq=this.Mq=null}Xg.prototype.copy=function(){var e=new Xg;return e.Dq=this.Dq,e.Eq=this.Eq,e.gj=this.gj,e.Vr=this.Vr,e.yp=this.yp.J(),e.er=this.er,e.Mq=this.Mq,e.Nq=this.Nq,e.ij=this.ij,e.Kr=this.Kr,e};function Xn(e,t){e===void 0||e instanceof ls||typeof e=="string"?Ai.call(this,e):(Ai.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Xt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}di(Xn,Ai),Xn.prototype.cloneProtected=function(e){Ai.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},U=Xn.prototype,U.Af=function(e){Ai.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function Sh(e){e.Ba===null?e.Ba=new Xg:e.Ba.nc&&(e.Ba=e.Ba.copy())}U.th=function(){Ai.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Jy(e,t){t!==null&&(e.af===null&&(e.af=new Zt),e.af.add(t))}function qy(e,t,n,i){if(t===null||e.af===null)return null;for(var r=e.af.iterator;r.next();){var o=r.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===i||o.Ds===t&&o.cv===e&&o.Ox===i&&o.Px===n)return o}return null}U.Lz=function(e,t,n){t==null&&(t=""),n==null&&(n=""),e=qy(this,e,t,n),e!==null&&e.Sl()},U.gk=function(e,t,n,i,r,o,a){e===qo&&t==="elements"?this.wc=null:e===ia&&t==="elements"&&(this.wc=null),Ai.prototype.gk.call(this,e,t,n,i,r,o,a)},U.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(iu(n.fromPort),iu(n.toPort),n.bb())}};function e1(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(iu(n.fromPort),iu(n.toPort),n.bb())}}function iu(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||iu(t.port)}}U.si=function(){return!0},Xn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},Xn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},Xn.prototype.isVisible=function(){if(!Ai.prototype.isVisible.call(this))return!1;var e=!0,t=mh,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===mh){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===Ja){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(i){return!i.isTreeExpanded}))return!1}else if(t===mf&&(e=e?this.Oo():this.Po(),0<e.count&&e.any(function(i){return!i.isTreeExpanded})))return!1;return e=this.labeledLink,e!==null?e.isVisible():!0},Xn.prototype.Zb=function(e){Ai.prototype.Zb.call(this,e);for(var t=this.linksConnected;t.next();){var n=t.value;if(e&&this.containingGroup!==null){var i=n.To(this);i===null||i.Td(this.containingGroup)||n.bb()}n.Zb(e)}},Xn.prototype.qx=function(){var e=new Zt,t=new Zt;return t1(this,this,e,t),t.iterator};function t1(e,t,n,i){if(t!==null&&!n.has(t)){n.add(t);var r=!0,o=e.diagram;o!==null&&(r=o.isTreePathToChildren),t.linksConnected.each(function(a){a.isTreeLink?(r?a.fromNode===t:a.toNode===t)&&t1(e,r?a.toNode:a.fromNode,n,i):i.add(a)})}}Xn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new Rn(this.jb),n=this;return t.predicate=function(i){return i.fromNode===n&&i.fromPortId===e||i.toNode===n&&i.toPortId===e},t},U=Xn.prototype,U.Mo=function(e){e===void 0&&(e=null);var t=new Rn(this.jb),n=this;return t.predicate=function(i){return i.fromNode!==n?!1:e===null?!0:i.fromPortId===e},t},U.Sd=function(e){e===void 0&&(e=null);var t=new Rn(this.jb),n=this;return t.predicate=function(i){return i.toNode!==n?!1:e===null?!0:i.toPortId===e},t},U.Mu=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?(e===null||r.fromPortId===e)&&(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Zt,t.add(n),t.add(r)):n=r):r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Zt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new gi(n):wt},U.Po=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||e!==null&&r.fromPortId!==e||(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Zt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new gi(n):wt},U.Oo=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Zt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new gi(n):wt},U.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Rn(this.jb),r=this;return i.predicate=function(o){return!((o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)&&(o.fromNode!==e||o.toNode!==r||n!==null&&o.fromPortId!==n||t!==null&&o.toPortId!==t))},i},U.kz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Rn(this.jb),r=this;return i.predicate=function(o){return!(o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)},i};function q0(e,t,n){iu(n);var i=e.jb.contains(t);if(i||e.jb.add(t),!i||t.fromNode===t.toNode){var r=e.linkConnected;if(r!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),r(e,t,n),a!==null&&(a.aa=o)}}!i&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,n!==null&&t!==null&&n!==t&&(i=!0,e=e.diagram,e!==null&&(i=e.isTreePathToChildren),r=i?t:n,o=i?n:t,r.ci||(r.ci=o),!o.isTreeLeaf||e!==null&&e.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function em(e,t,n){iu(n);var i=e.jb.remove(t),r=null;if(i||t.toNode===t.fromNode){var o=e.linkDisconnected;if(r=e.diagram,o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(e,t,n),r!==null&&(r.aa=a)}}i&&t.isTreeLink&&(n=!0,r!==null&&(n=r.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,e!==null&&(e.ci=!1),t===null||t.isTreeLeaf||(t.jb.count===0?(t.ci=null,r!==null&&r.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):Np(t)))}function Np(e){if(e.ci=!1,e.jb.count!==0){var t=!0,n=e.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink){if(t){if(i.fromNode===e){e.isTreeLeaf=!1;return}}else if(i.toNode===e){e.isTreeLeaf=!1;return}}}e.isTreeLeaf=!0}}}Xn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},U=Xn.prototype,U.Vo=function(e){Ai.prototype.Vo.call(this,e),e||(Np(this),e=this.Yk,e!==null&&c1(e,this))},U.Wo=function(e){Ai.prototype.Wo.call(this,e),e||(e=this.Yk,e!==null&&e.wd!==null&&(e.wd.remove(this),e.v()))},U.Lj=function(){if(0<this.jb.count){var e=this.diagram;if(e!==null)for(var t=e.commandHandler!==null?e.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var i=n.value;t?e.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,Ai.prototype.Lj.call(this)},U.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;n1(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function n1(e){e.wc===null?e.wc=new Zn:e.wc.clear(),e.qm(e,function(t,n){i1(t,n)}),e.wc.count===0&&e.wc.add("",e)}function i1(e,t){var n=t.portId;n!==null&&e.wc!==null&&e.wc.add(n,t)}function Qg(e,t,n){var i=t.portId;if(i!==null&&(e.wc!==null&&e.wc.remove(i),t=e.diagram,t!==null&&n)){for(n=null,e=e.findLinksConnected(i);e.next();)i=e.value,n===null&&(n=Dt()),n.push(i);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);Jt(n)}}}U.Nz=function(e){if(e===null||e===this)return!1;var t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this,t)for(;n!==e;){t=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&(t=r.fromNode,t!==n&&t!==this))break}if(t===this||t===null||t===n)return!1;n=t}else for(;n!==e;){for(t=null,i=n.jb.iterator;i.next()&&(r=i.value,!r.isTreeLink||(t=r.toNode,t===n||t===this)););if(t===this||t===null||t===n)return!1;n=t}return!0},U.xz=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this,e)for(;;){e=null;for(var n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&(e=i.fromNode,e!==t&&e!==this))break}if(e===this)return this;if(e===null||e===t)return t;t=e}else for(;;){for(e=null,n=t.jb.iterator;n.next()&&(i=n.value,!i.isTreeLink||(e=i.toNode,e===t||e===this)););if(e===this)return this;if(e===null||e===t)return t;t=e}},U.gz=function(e){if(e===null)return null;if(this===e)return this;for(var t=this;t!==null;)J0(t,!0),t=t.pg();var n=null;for(t=e;t!==null;){if(t.G&1048576){n=t;break}t=t.pg()}for(t=this;t!==null;)J0(t,!1),t=t.pg();return n},U.kh=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this.jb.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&e.fromNode!==this)return e}else for(;t.next();)if(e=t.value,e.isTreeLink&&e.toNode!==this)return e;return null},U.pg=function(){var e=this.ci;if(e===null)return null;if(e instanceof Xn)return e;e=this.diagram,e=e!==null?e.isTreePathToChildren:!0;for(var t=this.jb.iterator;t.next();){var n=t.value;if(n.isTreeLink&&(n=e?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},U.vz=function(){function e(n,i){i.add(n);var r=n.kh();r!==null&&(i.add(r),n=n.pg(),n!==null&&e(n,i))}var t=new Zt;return e(this,t),t},U.uz=function(){return r1(this,this)};function r1(e,t){return t=t.pg(),t===null?0:1+r1(e,t)}U.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new Rn(this.jb);var n=this;return t.predicate=e?function(i){return!!(i.isTreeLink&&i.fromNode===n)}:function(i){return!!(i.isTreeLink&&i.toNode===n)},t},U.Ou=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren);var n=t=null,i=this.jb.iterator;if(e)for(;i.next();)e=i.value,e.isTreeLink&&e.fromNode===this&&(e=e.toNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Xt,t.add(n),t.add(e)):n=e);else for(;i.next();)e=i.value,e.isTreeLink&&e.toNode===this&&(e=e.fromNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Xt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new gi(n):wt},U.wz=function(e){e===void 0&&(e=1/0);var t=new Zt;return Wh(t,this,!1,e,!0),t},Xn.prototype.collapseTree=function(e){e===void 0&&(e=1),1>e&&(e=1);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Zt;n.add(this),o1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function o1(e,t,n,i,r,o,a){if(1<i)for(var l=n?e.Mo():e.Sd();l.next();){var u=l.value;u.isTreeLink&&(u=u.To(e),u===null||u===e||t.contains(u)||(t.add(u),o1(u,t,n,i-1,r,o,a)))}else a1(e,t,n,r,o,a)}function a1(e,t,n,i,r,o){for(var a=r===e?!0:e.isTreeExpanded,l=n?e.Mo():e.Sd(),u={};l.next();){var f=l.value;if(f.isTreeLink&&(f=f.To(e),f!==null&&f!==e)){var p=t.contains(f);if(p||t.add(f),a){var x=n?f.Oo():f.Po();u.uv=e,x.all(function(A){return function(R){return R===A.uv||!R.isTreeExpanded}}(u))&&i.Aj(f,r),f.oh(),f.Zb(!1)}f.isTreeExpanded&&(f.wasTreeExpanded=f.isTreeExpanded,p||a1(f,t,n,i,r,o))}u={uv:u.uv}}e.isTreeExpanded=!1}Xn.prototype.expandTree=function(e){e===void 0&&(e=2),2>e&&(e=2);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Zt;n.add(this),s1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function s1(e,t,n,i,r,o,a){for(var l=o===e?!1:e.isTreeExpanded,u=n?e.Mo():e.Sd(),f={};u.next();){var p=u.value;if(p.isTreeLink&&(l||p.fd||p.bb(),p=p.To(e),p!==null&&p!==e&&!t.contains(p))){if(t.add(p),!l){p.Zb(!0),p.oh();var x=n?p.Oo():p.Po();f.vv=e,x.all(function(A){return function(R){return R===A.vv||!R.isTreeExpanded}}(f))&&r.Cj(p,o)}(2<i||p.wasTreeExpanded)&&(p.wasTreeExpanded=!1,s1(p,t,n,i-1,r,o,a))}f={vv:f.vv}}e.isTreeExpanded=!0}ft.Object.defineProperties(Xn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:tm},set:function(e){var t=this.portSpreading;t!==e&&(Sh(this),this.Ba.er=e,this.g("portSpreading",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(e){var t=(this.U&8)!==0;if(t!==e){this.U^=8;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Rs},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Sh(this),this.Ba.yp=e;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Sh(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Sh(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Sh(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,i=this.data;if(t!==null){if(t.wd!==null&&(t.wd.remove(this),t.v()),n!==null&&i!==null&&!n.undoManager.isUndoingRedoing){var r=t.data,o=n.model;if(r!==null&&o.ri()){var a=o.wa(i);a!==void 0&&o.Qx(r,a)}}this.containingGroup=null}this.Yk=e,e!==null&&(c1(e,this),n===null||i===null||n.undoManager.isUndoingRedoing||(r=e.data,n=n.model,r!==null&&n.ri()&&(i=n.wa(i),i!==void 0&&n.Bu(r,i))),this.containingGroup=e.containingGroup),xl(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&n1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(e){var t=(this.U&1)!==0;if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),t=this.treeExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(e){var t=(this.U&2)!==0;t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Sh(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(e){var t=(this.U&4)!==0;t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),Xn.prototype.expandTree=Xn.prototype.expandTree,Xn.prototype.collapseTree=Xn.prototype.collapseTree,Xn.prototype.findTreeParts=Xn.prototype.wz,Xn.prototype.findTreeChildrenNodes=Xn.prototype.Ou,Xn.prototype.findTreeChildrenLinks=Xn.prototype.Qo,Xn.prototype.findTreeLevel=Xn.prototype.uz,Xn.prototype.findTreeParentChain=Xn.prototype.vz,Xn.prototype.findTreeParentNode=Xn.prototype.pg,Xn.prototype.findTreeParentLink=Xn.prototype.kh,Xn.prototype.findCommonTreeParent=Xn.prototype.gz,Xn.prototype.findTreeRoot=Xn.prototype.xz,Xn.prototype.isInTreeOf=Xn.prototype.Nz,Xn.prototype.findPort=Xn.prototype.ns,Xn.prototype.findLinksTo=Xn.prototype.kz,Xn.prototype.findLinksBetween=Xn.prototype.jz,Xn.prototype.findNodesInto=Xn.prototype.Oo,Xn.prototype.findNodesOutOf=Xn.prototype.Po,Xn.prototype.findNodesConnected=Xn.prototype.Mu,Xn.prototype.findLinksInto=Xn.prototype.Sd,Xn.prototype.findLinksOutOf=Xn.prototype.Mo,Xn.prototype.findExternalTreeLinksConnected=Xn.prototype.qx,Xn.prototype.invalidateConnectedLinks=Xn.prototype.Bd,Xn.prototype.invalidateLinkBundle=Xn.prototype.Lz;var _b=new Kt(Xn,"SpreadingNone",10),tm=new Kt(Xn,"SpreadingEvenly",11),Jg=new Kt(Xn,"SpreadingPacked",12);Xn.className="Node",Xn.SpreadingNone=_b,Xn.SpreadingEvenly=tm,Xn.SpreadingPacked=Jg;function nr(e,t){e===void 0||e instanceof ls||typeof e=="string"?Xn.call(this,e):(Xn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Zt,this.$a=null,this.Sc=new Qo,this.Sc.group=this,this.gl=new Zt,this.tb=this.$p=null,t&&Object.assign(this,t)}di(nr,Xn),nr.prototype.cloneProtected=function(e){Xn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof wl});t instanceof wl?e.$a=t:e.$a=null,this.Sc!==null?(e.Sc=this.Sc.copy(),e.Sc.group=e):(e.Sc!==null&&(e.Sc.group=null),e.Sc=null),this.tb!==null&&(e.tb=this.tb.copy())},U=nr.prototype,U.Af=function(e){Xn.prototype.Af.call(this,e);var t=e.Rj();for(e=e.memberParts;e.next();){var n=e.value;if(n.v(),n.C(8),n.Ej(),n instanceof Xn)n.Bd(t);else if(n instanceof Fn)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},U.gk=function(e,t,n,i,r,o,a){if(e===qo&&t==="elements"){if(r instanceof wl)this.$a===null?this.$a=r:this.$a!==r&&Ke("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof An){var l=r.Nl(function(u){return u instanceof wl});l instanceof wl&&(this.$a===null?this.$a=l:this.$a!==l&&Ke("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===ia&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof An&&this.$a.rg(i)&&(this.$a=null));Xn.prototype.gk.call(this,e,t,n,i,r,o,a)},U.Xl=function(e,t){Xn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==An.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof An&&(e=e.Pb()),this.tb===null&&(this.tb=new Wt),e.mi(this.tb),e instanceof hr&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},U.eh=function(e,t,n,i){this.nf=this.$a,Xn.prototype.eh.call(this,e,t,n,i)},U.Va=function(){var e=this;e.isSubGraphExpanded&&this.memberParts.each(function(t){!e.computesBoundsIncludingLinks&&t instanceof Fn||t.Va()}),Xn.prototype.Va.call(this)},U.si=function(){if(!Xn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof Xn){if(t.isVisible()&&Sl(t))return!1}else if(t instanceof Fn&&t.isVisible()&&Sl(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function qg(e,t){if(e.Gn.add(t)){t instanceof nr&&e.gl.add(t);var n=e.memberAdded;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof Fn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ev(e,t){if(e.Gn.remove(t)){t instanceof nr&&e.gl.remove(t);var n=e.memberRemoved;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof Fn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}U.Lj=function(){if(0<this.Gn.count){var e=this.diagram;if(e!==null)for(var t=this.Gn.copy().iterator;t.next();)e.remove(t.value)}Xn.prototype.Lj.call(this)},nr.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Gt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},nr.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(e=Gt(e).iterator;e.next();){var r=e.value;!t||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},nr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var e=this.layer;return e===null||!e.allowUngroup?!1:(e=e.diagram,!!(e===null||e.allowUngroup))},U=nr.prototype,U.Bd=function(e){var t=(this.U&65536)!==0;if(Xn.prototype.Bd.call(this,e),!t)for(!(this.U&65536)&&(this.U=this.U^65536),t=this.Lu();t.next();){var n=t.value;if(e===void 0||!e.contains(n)){var i=n.fromNode;i!==null&&i!==this&&i.Td(this)&&!i.isVisible()?(iu(n.fromPort),iu(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(iu(n.fromPort),iu(n.toPort),n.bb()))}}},U.Lu=function(){var e=this.diagram!==null&&this.diagram.Pw;if(e&&this.$p!==null)return this.$p.iterator;var t=this.Rj();t.add(this);for(var n=new Zt,i=t.iterator;i.next();){var r=i.value;if(r instanceof Xn)for(r=r.linksConnected;r.next();){var o=r.value;t.contains(o)||n.add(o)}}return e&&(this.$p=n),n.iterator},U.iz=function(){var e=this.Rj();e.add(this);for(var t=new Zt,n=e.iterator;n.next();){var i=n.value;if(i instanceof Xn)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;o===null||e.contains(o)&&o!==this||t.add(o),r=r.toNode,r===null||e.contains(r)&&r!==this||t.add(r)}}return t.iterator},U.hz=function(){function e(n,i){n!==null&&(i.add(n),e(n.containingGroup,i))}var t=new Zt;return e(this,t),t},U.Rj=function(){var e=new Zt;return Wh(e,this,!0,0,!0),e.remove(this),e},U.Zb=function(e){Xn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},nr.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();l1(this,t,e,this),e.Ue=!1}};function l1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof nr&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,l1(o,t,n,i)),o instanceof Xn)o.Bd(t),n.Aj(o,i);else if(o instanceof Fn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}nr.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();u1(this,t,e,this),e.Ue=!1}};function u1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof nr&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,u1(o,t,n,i)),o instanceof Xn)o.Bd(t),n.Cj(o,i);else if(o instanceof Fn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}nr.prototype.move=function(e,t){t===void 0&&(t=!1);var n=t?this.location:this.position,i=n.x;n=n.y;var r=e.x,o=e.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=ce.alloc(),Xn.prototype.move.call(this,e,t),e=new Zt,t=this.Rj().iterator;t.next();)r=t.value,r instanceof Fn&&(r.suspendsRouting&&e.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(t.reset();t.next();)if(r=t.value,!(r.ph()||r instanceof Xn&&r.isLinkLabel)){var a=r.position,l=r.location;a.w()?(o.x=a.x+i,o.y=a.y+n,r.position=o):l.w()&&(o.x=l.x+i,o.y=l.y+n,r.location=o)}for(t.reset();t.next();)r=t.value,r instanceof Fn&&(r.suspendsRouting=e.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(a=r.position,o.x=a.x+i,o.y=a.y+n,o.w()?r.move(o):r.bb(),nv(r)&&r.bb());ce.free(o)}},ft.Object.defineProperties(nr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(e){var t=(this.U&2048)!==0;t!==e&&(this.U^=2048,this.g("computesBoundsAfterDrag",t,e))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(e){var t=(this.U&4096)!==0;t!==e&&(this.U^=4096,this.g("computesBoundsIncludingLinks",t,e))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(e){var t=(this.U&8192)!==0;t!==e&&(this.U^=8192,this.g("computesBoundsIncludingLocation",t,e))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(e){var t=(this.U&16384)!==0;t!==e&&(this.U^=16384,this.g("handlesDragDropForMembers",t,e))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;if(t!==e){e!==null&&e.diagram!==null&&e.diagram.layout===e&&Ke("A layout cannot be both the Diagram.layout and a Group.layout: "+e),t!==null&&(t.diagram=null,t.group=null),this.Sc=e;var n=this.diagram;e!==null&&(e.diagram=n,e.group=this),n!==null&&(n.xh=!0),this.g("layout",t,e),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(e){var t=this.memberAdded;t!==e&&(Sh(this),this.Ba.Mq=e,this.g("memberAdded",t,e))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(e){var t=this.memberRemoved;t!==e&&(Sh(this),this.Ba.Nq=e,this.g("memberRemoved",t,e))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(e){var t=this.memberValidation;t!==e&&(Sh(this),this.Ba.ij=e,this.g("memberValidation",t,e))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(e){var t=(this.U&256)!==0;t!==e&&(this.U^=256,this.g("ungroupable",t,e))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(e){var t=(this.U&512)!==0;if(t!==e){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",t,e),t=this.subGraphExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(r){r.updateAdornments()})):e?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(e){var t=(this.U&1024)!==0;t!==e&&(this.U^=1024,this.g("wasSubGraphExpanded",t,e))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(e){var t=this.subGraphExpandedChanged;t!==e&&(Sh(this),this.Ba.Kr=e,this.g("subGraphExpandedChanged",t,e))}},rh:{get:function(){return(this.U&32768)!==0},set:function(e){(this.U&32768)!==0!==e&&(this.U^=32768)}}}),nr.prototype.expandSubGraph=nr.prototype.expandSubGraph,nr.prototype.collapseSubGraph=nr.prototype.collapseSubGraph,nr.prototype.findSubGraphParts=nr.prototype.Rj,nr.prototype.findContainingGroupChain=nr.prototype.hz,nr.prototype.findExternalNodesConnected=nr.prototype.iz,nr.prototype.findExternalLinksConnected=nr.prototype.Lu,nr.prototype.ensureBounds=nr.prototype.Va,nr.className="Group";function wl(e){st.call(this),this.yb=is,this.ko=new Wt(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}di(wl,st),wl.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},wl.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return mo(0,0,t.width,t.height,e.x,e.y)},wl.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof nr||e instanceof Xr)||Ke("Placeholder is not inside a Group or Adornment."),e instanceof nr){var t=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(Ba(i,(isFinite(n.width)?Math.max(n.width,t.width):t.width)||0,(isFinite(n.height)?Math.max(n.height,t.height):t.height)||0),this.Ge(0,0,i.width,i.height),i=e.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=e.diagram,!n||i===null||i.animationManager.Xu(e)||isNaN(t.x)||isNaN(t.y)||(n=ce.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),ce.free(n))}else{t=this.dc,n=this.yb,i=n.left+n.right;var r=n.top+n.bottom,o=e.adornedObject;e.angle=o.li();var a=0;o instanceof hr&&(a=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,f=(u.width+a)*l;a=(u.height+a)*l,e.type!==An.Link&&(l=o.ga(e.category==="Selection"?ta:e.locationSpot,ce.alloc()),e.location=l,ce.free(l)),isNaN(f)||isNaN(a)?(e=o.ga(ta,ce.alloc()),f=Wt.allocAt(e.x,e.y,0,0),f.Ye(o.ga(Ho,e)),f.Ye(o.ga(Yo,e)),f.Ye(o.ga(Ds,e)),Ba(t,f.width+i||0,f.height+r||0),this.Ge(-n.left,-n.top,t.width,t.height),ce.free(e),Wt.free(f)):(Ba(t,f+i||0,a+r||0),this.Ge(-n.left,-n.top,t.width,t.height))}},wl.prototype.eh=function(e,t,n,i){this.actualBounds.h(e,t,n,i)},wl.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof nr&&!t.layer.isTemporary&&t.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&(n=r.computeBorder(t,this.ko,e),n!==null))return n}n=Wt.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return t instanceof nr&&!t.isSubGraphExpanded?e.h(r.x-o.left,r.y-o.top,0,0):e.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)),Wt.free(n),i&&t instanceof nr&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},wl.prototype.computeMemberBounds=function(e){if(!(this.part instanceof nr))return e.h(0,0,0,0),e;for(var t=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,a=t.memberParts;a.next();){var l=a.value;if(l.isVisible()){if(l instanceof Fn&&(!t.computesBoundsIncludingLinks||yu(l)||l.fromNode===t||l.toNode===t))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)?e.h(n,i,r-n,o-i):(t=t.location,e.h(t.x,t.y,0,0)),e},ft.Object.defineProperties(wl.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),wl.className="Placeholder";function Fn(e){Ai.call(this,An.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Cl,this.Om=0,this.Qm=Cl,this.Rm=NaN,this.qj=ov,this.po=.5,this.wd=null,this.Nb=new Xt().freeze(),this.Tg=this.Mg=null,this.ml=new Wt,this.ua=new Pn,this.u=this.o=this.Sf=this.Wf=null,this.su=new ce,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}di(Fn,Ai),Fn.prototype.cloneProtected=function(e){Ai.prototype.cloneProtected.call(this,e),e.Qa=this.Qa&-113,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,this.ba!==null&&(e.ba=this.ba.copy())},U=Fn.prototype,U.Af=function(e){Ai.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;t!==null&&iu(t),e=e.toPort,e!==null&&iu(e)},U.qb=function(e){e.classType===Fn?(e.value&2)===2?this.routing=e:e===xu||e===wh||e===Lf?this.curve=e:e===Ip||e===sm||e===lm?this.adjusting=e:e!==ov&&e!==Cl&&Ke("Unknown Link enum value for a Link property: "+e):Ai.prototype.qb.call(this,e)},U.Xc=function(){this.ba===null&&(this.ba=new mp)},U.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),Sl(e)||jh(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),Sl(e)||jh(e)))},U.zv=function(){return!1},U.Av=function(){},U.Zc=function(){return!1},Fn.prototype.computeAngle=function(e,t,n){return Fn.computeAngle(t,n)},Fn.computeAngle=function(e,t){switch(e){default:case Cl:e=0;break;case Mp:e=t;break;case Op:e=t+90;break;case Lp:e=t-90;break;case av:e=t+180;break;case um:e=et.bp(t),90<e&&270>e&&(e-=180);break;case Rp:e=et.bp(t+90),90<e&&270>e&&(e-=180);break;case Dp:e=et.bp(t-90),90<e&&270>e&&(e-=180);break;case cm:if(e=et.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return et.bp(e)};function Mf(e){var t=e.fromNode,n=e.toNode,i=null;if(t!==null?i=n!==null?t.px(n):t.containingGroup:n!==null?i=n.containingGroup:i=null,t=i,n=e.Ah,n!==t){n!==null&&ev(n,e),e.Ah=t,t!==null&&qg(t,e);var r=e.containingGroupChanged;if(r!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),r(e,n,t),a!==null&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=i}U=Fn.prototype,U.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Ai.prototype.oh.call(this)},U.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},U.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t};function c1(e,t){e.wd===null&&(e.wd=new Zt),e.wd.add(t),e.v()}U.Vo=function(e){if(Ai.prototype.Vo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,q0(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||q0(n,this,i)}Ap(this)}},U.Wo=function(e){if(Ai.prototype.Wo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,em(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||em(n,this,i)}kp(this)}},U.Lj=function(){if(this.fd=!0,this.wd!==null){var e=this.diagram;if(e!==null)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}this.data!==null&&(e=this.diagram,e!==null&&e.partManager.removeDataForLink(this))},Fn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},Fn.prototype.move=function(e,t){var n=t?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=e.x-i,r=e.y-r,t===!0?Ai.prototype.move.call(this,e,!1):(e=ce.allocAt(n.x+i,n.y+r),Ai.prototype.move.call(this,e,!1),ce.free(e)),Eh(this,i,r),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+i,n.y+r)},Fn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},Fn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},Fn.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(Wi),e;if(t===1)return e.assign(this.i(0)),e;if(t===2){var n=this.i(0),i=this.i(1);return e.h((n.x+i.x)/2,(n.y+i.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===xu))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===xu){if(t===3){n=this.i(0),i=this.i(1);var r=this.i(2);return et.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,e),e}if(i=(t-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),et.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<t&&(r=a[o],!(i+r>n/2));)i+=r,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-i)):e.h(t.x,t.y+(n/2-i)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-i),t.y):e.h(t.x+(n/2-i),t.y):(n=(n/2-i)/r,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},Fn.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(e===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===xu))return this.ua.wx(.5);if(this.computeCurve()===xu&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(t%2===1){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),et.My(e.x,e.y,t.x,t.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<e)return this.i(n-1).ab(this.i(n+1))}t=this.flattenedLengths,i=this.flattenedTotalLength;var r=0;n=0;for(var o;r<i/2&&n<e&&(o=t[n],!(r+o>i/2));)r+=o,n++;if(t=this.i(n),i=this.i(n+1),1>Math.abs(t.x-i.x)&&1>Math.abs(t.y-i.y)){if(0<n&&n+2<e)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(t.x-i.x))return t.y>i.y?270:90;if(1>Math.abs(t.y-i.y))return t.x>i.x?180:0}return t.ab(i)},U=Fn.prototype,U.i=function(e){return this.Nb.s[e]},U.dd=function(e,t){this.Nb.cd(e,t)},U.L=function(e,t,n){this.Nb.cd(e,new ce(t,n))},U.Kz=function(e,t){this.Nb.Gb(e,t)},U.m=function(e,t,n){this.Nb.Gb(e,new ce(t,n))},U.ne=function(e){this.Nb.add(e)},U.yf=function(e,t){this.Nb.add(new ce(e,t))},U.pv=function(e){this.Nb.mb(e)},U.Fj=function(){this.Nb.clear()};function Eh(e,t,n){if(t!==0||n!==0)if(e.pointsCount===0)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var i=e.fd,r=new Xt,o=e.Nb.iterator;o.next();){var a=o.value;r.add(new ce(a.x+t,a.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,a=e.diagram,isNaN(t)||isNaN(n)||a!==null&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),xl(e)),i?nm(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),a!==null&&a.animationManager.zb&&d(a.animationManager,e,r),e.g("points",o,r)}}U.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},U.zf=function(){if(this.Mg!==null){for(var e=this.Mg,t=this.Nb,n=1/0,i=1/0,r=e.s,o=r.length,a=0;a<o;a++){var l=r[a];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=a=1/0;for(var u=t.s,f=u.length,p=0;p<f;p++){var x=u[p];a=Math.min(x.x,a),l=Math.min(x.y,l),x.freeze()}if(t.freeze(),f===o){for(o=0;o<f;o++)if(p=r[o],x=u[o],p.x-n!==x.x-a||p.y-i!==x.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&d(n.animationManager,this,t),nm(this),this.g("points",e,t)}},U.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function nm(e){e.Nb.count===0?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),am(e,!1))}U.bb=function(){if(!this.suspendsRouting){var e=this.diagram;if(e){if(e.As.contains(this)||e.undoManager.isUndoingRedoing||(e=e.animationManager,e.isTicking&&!e.isAnimating))return;this.Tg===null||e.isTicking||(this.Tg=null)}e=this.path,e!==null&&(this.fd=!1,this.v(),e.v())}},U.vg=function(){if(!this.fd&&!this.computingPoints){var e=!0;try{this.computingPoints=!0,this.uh(),e=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,e?this.zf():this.rv()}}},Fn.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Wd||(Wd=new Xn,Wd.desiredSize=Sa,Wd.Va()),this.defaultFromPoint&&(Wd.location=this.defaultFromPoint,Wd.Va(),t=e=Wd)):t=this.fromPort,t!==null&&!e.isVisible()){var n=e.findVisibleNode();n!==null&&n!==e?(e=n,t=n.port):e=n}if(this.Lw=e,e===null||!e.location.w())return!1;for(;!(t===null||t.actualBounds.w()&&t.Ed());)t=t.panel;if(t===null)return!1;var i=this.toNode,r=null;if(i===null?(Vd||(Vd=new Xn,Vd.desiredSize=Sa,Vd.Va()),this.defaultToPoint&&(Vd.location=this.defaultToPoint,Vd.Va(),r=i=Vd)):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,a=this.computeSpot(!0,t);n=this.computeSpot(!1,r);var l=Of(a),u=Of(n),f=t===r&&t!==null,p=this.isOrthogonal,x=this.curve===xu;this.Wf=f&&!p?x=!0:!1;var A=this.computeAdjusting()===Cl||f;if(!p&&!f&&l&&u){if(l=!1,!A&&3<=o&&(A=this.getLinkPoint(e,t,a,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),l=this.adjustPoints(0,A,o-1,u))&&(A=this.getLinkPoint(e,t,a,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),this.adjustPoints(0,A,o-1,u)),!l)if(this.Fj(),x){o=this.getLinkPoint(e,t,a,!0,!1,i,r),A=this.getLinkPoint(i,r,n,!1,!1,e,t),l=A.x-o.x,u=A.y-o.y,f=this.computeCurviness(),x=p=0;var R=o.x+l/3,z=o.y+u/3,V=R,ye=z;et.B(u,0)?ye=0<l?ye-f:ye+f:(p=-l/u,x=Math.sqrt(f*f/(p*p+1)),0>f&&(x=-x),V=(0>u?-1:1)*x+R,ye=p*(V-R)+z),R=o.x+2*l/3,z=o.y+2*u/3;var se=R,De=z;et.B(u,0)?De=0<l?De-f:De+f:(se=(0>u?-1:1)*x+R,De=p*(se-R)+z),this.Fj(),this.ne(o),this.yf(V,ye),this.yf(se,De),this.ne(A),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,A=r,i=this.getLinkPoint(e,t,a,!0,!1,o,A),r=this.getLinkPoint(o,A,n,!1,!1,e,t),this.hasCurviness()?(A=r.x-i.x,n=r.y-i.y,a=this.computeCurviness(),e=i.x+A/2,t=i.y+n/2,o=e,l=t,et.B(n,0)?l=0<A?l-a:l+a:(A=-A/n,o=Math.sqrt(a*a/(A*A+1)),0>a&&(o=-o),o=(0>n?-1:1)*o+e,l=A*(o-e)+t),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=Wt.alloc(),t.mi(l),u=l.ca(r),A.mi(l),f=l.ca(i),(u||f)&&(a=t.ga(rm(a),new ce),this.dd(0,this.getLinkPointFromPoint(e,t,a,r,!0,a)),n=A.ga(rm(n),new ce),this.dd(1,this.getLinkPointFromPoint(o,A,n,i,!1,n))),Wt.free(l))}else{x=this.isAvoiding,A&&(p&&x||f)&&this.Fj();var ze=f?this.computeCurviness():0;x=this.getLinkPoint(e,t,a,!0,p,i,r),R=V=z=0,(p||!l||f)&&(ye=this.computeEndSegmentLength(e,t,a,!0),R=this.getLinkDirection(e,t,x,a,!0,p,i,r),f&&(l||a.D(n)||!p&&a.x+n.x===1&&a.y+n.y===1)&&(R-=p?90:30,0>ze&&(R-=180)),0>R?R+=360:360<=R&&(R-=360),f&&(ye+=Math.abs(ze)*(p?1:2)),R===0?z=ye:R===90?V=ye:R===180?z=-ye:R===270?V=-ye:(z=ye*Math.cos(R*Math.PI/180),V=ye*Math.sin(R*Math.PI/180)),a.Mc()&&f&&(ye=t.ga(Lr,ce.alloc()),se=ce.allocAt(ye.x+1e3*z,ye.y+1e3*V),this.getLinkPointFromPoint(e,t,ye,se,!0,x),ce.free(ye),ce.free(se))),ye=this.getLinkPoint(i,r,n,!1,p,e,t);var je=De=se=0;if(p||!u||f){var ot=this.computeEndSegmentLength(i,r,n,!1);je=this.getLinkDirection(i,r,ye,n,!1,p,e,t),f&&(u||a.D(n)||!p&&a.x+n.x===1&&a.y+n.y===1)&&(je+=p?0:30,0>ze&&(je+=180)),0>je?je+=360:360<=je&&(je-=360),f&&(ot+=Math.abs(ze)*(p?1:2)),je===0?se=ot:je===90?De=ot:je===180?se=-ot:je===270?De=-ot:(se=ot*Math.cos(je*Math.PI/180),De=ot*Math.sin(je*Math.PI/180)),n.Mc()&&f&&(n=r.ga(Lr,ce.alloc()),a=ce.allocAt(n.x+1e3*se,n.y+1e3*De),this.getLinkPointFromPoint(i,r,n,a,!1,ye),ce.free(n),ce.free(a))}n=x,(p||!l||f)&&(n=new ce(x.x+z,x.y+V)),a=ye,(p||!u||f)&&(a=new ce(ye.x+se,ye.y+De)),!A&&!p&&l&&3<o&&this.adjustPoints(0,x,o-2,a)?this.dd(o-1,ye):!A&&!p&&u&&3<o&&this.adjustPoints(1,n,o-1,ye)?this.dd(0,x):!A&&(p?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,x),this.dd(o-1,ye)):(this.Fj(),this.ne(x),(p||!l||f)&&this.ne(n),p&&this.addOrthoPoints(n,R,a,je,e,i),(p||!u||f)&&this.ne(a),this.ne(ye))}return!0};function tv(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}Fn.prototype.getLinkPointFromPoint=function(e,t,n,i,r,o){if(o===void 0&&(o=new ce),e===null||t===null)return o.assign(n),o;if(e.isVisible()||(r=e.findVisibleNode(),r!==null&&r!==e&&(t=r.port)),e=null,r=t.panel,r===null||r.se()||(r=r.panel),r===null){r=i.x,i=i.y;var a=n.x;n=n.y}else{e=r.oe,r=1/(e.m11*e.m22-e.m12*e.m21),a=e.m22*r;var l=-e.m12*r,u=-e.m21*r,f=e.m11*r,p=r*(e.m21*e.dy-e.m22*e.dx),x=r*(e.m12*e.dx-e.m11*e.dy);r=i.x*a+i.y*u+p,i=i.x*l+i.y*f+x,a=n.x*a+n.y*u+p,n=n.x*l+n.y*f+x}return t.Sj(r,i,a,n,o),e!==null&&o.transform(e),o};function im(e,t){var n=t.Zn;return n===null&&(n=new Kd,n.port=t,n.node=t.part,t.Zn=n),y1(n,e)}Fn.prototype.getLinkPoint=function(e,t,n,i,r,o,a,l){if(l===void 0&&(l=new ce),n.sb()&&!Of(n))return t.ga(n,l),l;if(n.$c()){var u=im(this,t);if(u!==null){if(l.assign(u.Zo),r&&this.routing===d1){var f=im(this,a);if(f!==null&&u.Gl<f.Gl){u=ce.alloc(),f=ce.alloc();var p=new Wt(t.ga(ta,u),t.ga(Ho,f)),x=this.computeSpot(!i,a);e=this.getLinkPoint(o,a,x,!i,r,e,t,f),(n.Hf(Ol)||n.Hf(Xa))&&e.y>=p.y&&e.y<=p.y+p.height?l.y=e.y:(n.Hf(os)||n.Hf(Oa))&&e.x>=p.x&&e.x<=p.x+p.width&&(l.x=e.x),ce.free(u),ce.free(f)}}return l}}return n=t.ga(rm(n),ce.alloc()),this.pointsCount>(r?6:2)?(a=i?this.i(1):this.i(this.pointsCount-2),r&&(a=tv(n,a.copy()))):(u=this.computeSpot(!i,a),o=ce.alloc(),a=a.ga(rm(u),o),r&&(a=tv(n,a)),ce.free(o)),this.getLinkPointFromPoint(e,t,n,a,i,l),ce.free(n),l},Fn.prototype.getLinkDirection=function(e,t,n,i,r,o,a,l){e: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,t),u!==null))switch(u.Nc){case 1:u=270;break e;case 2:u=180;break e;default:case 4:u=0;break e;case 8:u=90;break e}u=t.ga(Lr,ce.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?tv(u,l.copy()):n):(n=ce.alloc(),l=l.ga(Lr,n),ce.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,ce.free(u),u=n}return i.Mc()&&a.Td(e)&&(u+=180,360<=u&&(u-=360)),Of(i)||(e=t.li(),e===0)||(45<=e&&135>e?u+=90:135<=e&&225>e?u+=180:225<=e&&315>e&&(u+=270),360<=u&&(u-=360)),u},Fn.prototype.computeEndSegmentLength=function(e,t,n,i){return t!==null&&n.$c()&&(e=im(this,t),e!==null)?e.Ju:(e=i?this.fromEndSegmentLength:this.toEndSegmentLength,t!==null&&isNaN(e)&&(e=i?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},Fn.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=Lr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Vr?Hi:t)):(e=t||this.toPort,e===null?e=Lr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Vr?Hi:t)),e};function Of(e){return e===Hi||e.x===.5&&e.y===.5}function rm(e){return e.x===.5&&e.y===.5?e:Lr}Fn.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==Cl&&4<this.pointsCount?this.computeMidPoint(new ce):(e=t.Zn,e=e!==null?y1(e,this):null,e!==null?e.Zo:t.ga(Lr))},Fn.prototype.computeShortLength=function(e){if(e){if(e=this.fromShortLength,isNaN(e)){var t=this.fromPort;t!==null&&(e=t.fromShortLength)}return isNaN(e)?0:e}return e=this.toShortLength,isNaN(e)&&(t=this.toPort,t!==null&&(e=t.toShortLength)),isNaN(e)?0:e},Fn.prototype.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=sr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return Tg(this,t,n,r),o===void 0&&sr.free(a),!0;if(this.Yc(e,a)){var l=!1;if(!this.isAtomic)for(var u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===this.locationObject){var x=p.actualBounds,A=this.naturalBounds;if(!(x.x>A.width||x.y>A.height||0>x.x+x.width||0>x.y+x.height)){if(x=sr.alloc(),x.set(a),p instanceof An)l=p.Cf(e,t,n,i,r,x);else if(this.path===p){if(p instanceof hr)if(l=e,A=i,p.pickable===!1)l=!1;else if(x.multiply(p.transform),A)e:{var R=l,z=x;if(p.fh(R,z))l=!0;else{if(z===void 0&&(z=p.transform,R.Re(p.actualBounds))){l=!0;break e}l=R.left,A=R.right;var V=R.top;R=R.bottom;var ye=ce.alloc(),se=ce.alloc(),De=ce.alloc(),ze=sr.alloc();ze.set(z),ze.bv(p.transform),ze.Vj(),se.x=A,se.y=V,se.transform(ze),ye.x=l,ye.y=V,ye.transform(ze),z=!1,Sd(p,ye,se,De)?z=!0:(ye.x=A,ye.y=R,ye.transform(ze),Sd(p,ye,se,De)?z=!0:(se.x=l,se.y=R,se.transform(ze),Sd(p,ye,se,De)?z=!0:(ye.x=l,ye.y=V,ye.transform(ze),Sd(p,ye,se,De)&&(z=!0)))),sr.free(ze),ce.free(ye),ce.free(se),ce.free(De),l=z}}else l=p.fh(l,x)}else l=fs(p,e,i,x);l&&(A=p,t!==null&&(A=t(p)),A&&(n===null||n(A))&&r.add(A)),sr.free(x)}}}return o===void 0&&sr.free(a),l||this.background!==null||this.areaBackground!==null}return o===void 0&&sr.free(a),!1},Fn.prototype.computeCurve=function(){if(this.Wf===null){var e=this.fromPort,t=this.isOrthogonal;this.Wf=e!==null&&e===this.toPort&&!t}return this.Wf?xu:this.curve},Fn.prototype.computeCorner=function(){if(this.curve===xu)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},Fn.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if(r!==e&&!r.isPanelMain&&(r.segmentIndex===-1/0||isNaN(r.segmentIndex)))return r}for(e=this.labelNodes;e.next();)if(t=e.value,t.segmentIndex===-1/0||isNaN(t.segmentIndex))return t;return null},Fn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=p1;e=Math.max(e,this.computeThickness());var t=this.fromPort,n=this.toPort;if(t!==null&&n!==null){var i=this.findMidLabel();if(i!==null){var r=i.naturalBounds,o=i.margin,a=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===Mp||i===um||i===av?e=Math.max(e,r):i===Lp||i===Dp||i===Op||i===Rp?e=Math.max(e,a):(t=t.ga(Lr).ab(n.ga(Lr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*a)+Math.abs(Math.cos(t)*r)+1)),this.curve===xu&&(e*=1.333)}}return e},Fn.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===Cl&&n.bb()}},Fn.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=f1;var t=this.Sf;if(t!==null){for(var n=Dt(),i=0,r=t.links,o=0;o<r.length;o++){var a=r[o].computeSpacing();n.push(a),i+=a}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){e=i+n[o]/2;break}i+=n[o]}t.Ds===this.fromNode&&(e=-e),Jt(n)}}return e},Fn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},Fn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Fn.prototype.adjustPoints=function(e,t,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===sm)return!1;r===lm&&(r=Ip)}switch(r){case sm:var o=this.i(e),a=this.i(n);if(!o.Xa(t)||!a.Xa(i)){r=o.x,o=o.y;var l=a.x-r,u=a.y-o,f=Math.sqrt(l*l+u*u);if(!et.$(f,0)){if(et.$(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);a=t.x;var x=t.y;l=i.x-a;var A=i.y-x;for(u=Math.sqrt(l*l+A*A),et.$(l,0)?A=0>A?-Math.PI/2:Math.PI/2:(A=Math.atan(A/Math.abs(l)),0>l&&(A=Math.PI-A)),f=u/f,p=A-p,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),l=t.x-r,u=t.y-o,t=Math.sqrt(l*l+u*u),et.$(t,0)||(et.$(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,t*=f,this.L(e,a+t*Math.cos(l),x+t*Math.sin(l)));this.dd(n,i)}}return!0;case lm:if(o=this.i(e),x=this.i(n),!o.Xa(t)||!x.Xa(i)){r=o.x,o=o.y,a=x.x,x=x.y,f=(a-r)*(a-r)+(x-o)*(x-o),l=t.x,p=t.y,u=i.x,A=i.y;var R=1;if(u-l!==0){var z=(A-p)/(u-l);R=Math.sqrt(1+1/(z*z))}else z=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var V=t.x,ye=t.y,se=.5;f!==0&&(se=((r-V)*(r-a)+(o-ye)*(o-x))/f);var De=r+se*(a-r),ze=o+se*(x-o);t=Math.sqrt((V-De)*(V-De)+(ye-ze)*(ye-ze)),ye<z*(V-De)+ze&&(t=-t),0<z&&(t=-t),V=l+se*(u-l),se=p+se*(A-p),z!==0?(t=V+t/R,this.L(e,t,se-(t-V)/z)):this.L(e,V,se+t)}this.dd(n,i)}return!0;case Ip:e:{if(this.isOrthogonal&&(r=this.i(e),o=this.i(e+1),a=this.i(e+2),l=o.x,p=o.y,x=l,f=p,et.B(r.y,o.y)?et.B(o.x,a.x)?p=t.y:et.B(o.y,a.y)&&(l=t.x):et.B(r.x,o.x)&&(et.B(o.y,a.y)?l=t.x:et.B(o.x,a.x)&&(p=t.y)),this.L(e+1,l,p),r=this.i(n),o=this.i(n-1),a=this.i(n-2),l=o.x,p=o.y,u=l,A=p,et.B(r.y,o.y)?et.B(o.x,a.x)?p=i.y:et.B(o.y,a.y)&&(l=i.x):et.B(r.x,o.x)&&(et.B(o.y,a.y)?l=i.x:et.B(o.x,a.x)&&(p=i.y)),this.L(n-1,l,p),nv(this))){this.L(e+1,x,f),this.L(n-1,u,A),n=!1;break e}this.dd(e,t),this.dd(n,i),n=!0}return n;default:return!1}},Fn.prototype.addOrthoPoints=function(e,t,n,i,r,o){0>t?t+=360:360<=t&&(t-=360),0>i?i+=360:360<=i&&(i-=360);var a=i;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?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(Pp,Pp),u.Bc(Pp,Pp),l.Ye(e),u.Ye(n);var f=ce.alloc(),p=ce.alloc();t===0?n.x>e.x||i===270&&n.y<e.y&&u.right>e.x||i===90&&n.y>e.y&&u.right>e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===180?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x<u.left?this.computeMidOrthoPosition(e.x,e.y,u.left,n.y,!1):e.x<u.right&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.right,p.x=f.x,p.y=n.y):i===0&&e.x<u.left&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===180||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===180&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===180||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===180||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x>=l.left&&n.x<=e.x||e.x<=u.right&&e.x>=n.x?(i===90||i===270)&&(f.h(Math.max((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.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=f.y))):t===180?n.x<e.x||i===270&&n.y<e.y&&u.left<e.x||i===90&&n.y>e.y&&u.left<e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===0?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x>u.right?this.computeMidOrthoPosition(e.x,e.y,u.right,n.y,!1):e.x>u.left&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.left,p.x=f.x,p.y=n.y):i===180&&e.x>u.right&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===0||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===0&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===0||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===0||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x<=l.right&&n.x>=e.x||e.x>=u.left&&e.x<=n.x?(i===90||i===270)&&(f.h(Math.min((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.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=f.y))):t===90?n.y>e.y||i===180&&n.x<e.x&&u.bottom>e.y||i===0&&n.x>e.x&&u.bottom>e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===270?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>e.x?(f.y=e.y<u.top?this.computeMidOrthoPosition(e.x,e.y,n.x,u.top,!0):e.y<u.bottom&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.bottom,p.x=n.x,p.y=f.y):i===90&&e.y<u.top&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===270||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===270&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===270||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===270||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y>=l.top&&n.y<=e.y||e.y<=u.bottom&&e.y>=n.y?(i===0||i===180)&&(f.h(e.x,Math.max((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.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=f.x,p.y=n.y))):n.y<e.y||i===180&&n.x<e.x&&u.top<e.y||i===0&&n.x>e.x&&u.top<e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===90?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>=e.x?(f.y=e.y>u.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,u.bottom,!0):e.y>u.top&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.top,p.x=n.x,p.y=f.y):i===270&&e.y>u.bottom&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===90||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===90&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===90||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===90||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y<=l.bottom&&n.y>=e.y||e.y>=u.top&&e.y<=n.y?(i===0||i===180)&&(f.h(e.x,Math.min((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.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=f.x,p.y=n.y)));var x=n;if(this.isAvoiding){var A=this.diagram;if(A===null||r===o||this.layer.isTemporary||!hf(A)||l.ca(x)&&!o.Td(r)||u.ca(e)&&!r.Td(o))t=!1;else{var R=df(A,!0,this.containingGroup,null);if(this.segmentIndex!==17&&R.Yj(Math.min(e.x,f.x),Math.min(e.y,f.y),Math.abs(e.x-f.x),Math.abs(e.y-f.y))&&R.Yj(Math.min(f.x,p.x),Math.min(f.y,p.y),Math.abs(f.x-p.x),Math.abs(f.y-p.y))&&R.Yj(Math.min(p.x,x.x),Math.min(p.y,x.y),Math.abs(p.x-x.x),Math.abs(p.y-x.y)))t=!1;else{r=e,o=x;var z=n=null;if(A.isVirtualized){A=R.bounds.copy(),A.Bc(-R.Ho,-R.Go);var V=ce.alloc();Rf(R,e.x,e.y)||(et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,e.x,e.y,f.x,f.y,V)?(n=e=V.copy(),t=V.ab(f)):et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,f.x,f.y,p.x,p.y,V)?(n=e=V.copy(),t=V.ab(p)):et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,p.x,p.y,x.x,x.y,V)&&(n=e=V.copy(),t=V.ab(x))),Rf(R,x.x,x.y)||(et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,x.x,x.y,p.x,p.y,V)?(z=x=V.copy(),i=p.ab(V)):et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,p.x,p.y,f.x,f.y,V)?(z=x=V.copy(),i=f.ab(V)):et.Ff(A.x,A.y,A.x+A.width,A.y+A.height,f.x,f.y,e.x,e.y,V)&&(z=x=V.copy(),i=e.ab(V))),ce.free(V)}l=l.copy().ed(u),l.Bc(R.Ho*R.Os,R.Go*R.Os),g1(R,e,t,x,i,l,!0),u=Hc(R,x.x,x.y),!R.abort&&u>=Df&&(m1(R),l.Bc(R.Ho*R.Hx,R.Go*R.Ix),g1(R,e,t,x,i,l,!1),u=Hc(R,x.x,x.y)),!R.abort&&u<Df&&Hc(R,x.x,x.y)!==Ch?(iv(this,R,x.x,x.y,i,!0,a),l=this.i(2),4>this.pointsCount?(t===0||t===180?(l.x=e.x,l.y=x.y):(l.x=x.x,l.y=e.y),this.L(2,l.x,l.y),this.m(3,l.x,l.y)):(a=this.i(3),t===0||t===180?et.B(l.x,a.x)?(l=t===0?Math.max(l.x,e.x):Math.min(l.x,e.x),this.L(2,l,e.y),this.L(3,l,a.y)):et.B(l.y,a.y)?(Math.abs(e.y-l.y)<=R.Go/2&&(this.L(2,l.x,e.y),this.L(3,a.x,e.y)),this.m(2,l.x,e.y)):this.L(2,e.x,l.y):(t===90||t===270)&&(et.B(l.y,a.y)?(l=t===90?Math.max(l.y,e.y):Math.min(l.y,e.y),this.L(2,e.x,l),this.L(3,a.x,l)):et.B(l.x,a.x)?(Math.abs(e.x-l.x)<=R.Ho/2&&(this.L(2,e.x,l.y),this.L(3,e.x,a.y)),this.m(2,e.x,l.y)):this.L(2,l.x,e.y))),n!==null&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?t===0||t===180?this.m(2,e.x,a.y):this.m(2,a.x,e.y):t===0||t===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),z!==null&&(i===0||i===180?this.yf(o.x,z.y):this.yf(z.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(f.copy()),this.ne(p.copy())),ce.free(f),ce.free(p)}},Fn.prototype.computeMidOrthoPosition=function(e,t,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?(t+i)/2+o:(e+n)/2+o};function nv(e){if(e.diagram===null||!e.isAvoiding||!hf(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=df(e.diagram,!0,e.containingGroup,null);for(var i=1;i<n-2;i++){var r=t[i],o=t[i+1];if(!e.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 iv(e,t,n,i,r,o,a){var l=t.Ho,u=t.Go,f=Hc(t,n,i),p=n,x=i;for(r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,r!==a&&f>Cd&&Hc(t,p,x)!==f-1&&(Hc(t,n-l,i)===f-1?(r=180,p=n-l,x=i):Hc(t,n+l,i)===f-1?(r=0,p=n+l,x=i):Hc(t,n,i-u)===f-1?(r=270,p=n,x=i-u):Hc(t,n,i+u)===f-1&&(r=90,p=n,x=i+u));f>Cd&&Hc(t,p,x)===f-1;)n=p,i=x,r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,--f;o?f>Cd&&(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),f>Cd&&(o=r,a=n,p=i,r===0?(o=90,p+=u):r===90?(o=180,a-=l):r===180?(o=270,p-=u):r===270&&(o=0,a+=l),Hc(t,a,p)===f-1?iv(e,t,a,p,o,!1,o):(a=n,p=i,r===0?(o=270,p-=u):r===90?(o=0,a+=l):r===180?(o=90,p+=u):r===270&&(o=180,a-=l),Hc(t,a,p)===f-1&&iv(e,t,a,p,o,!1,o))),e.yf(n,i)}Fn.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=Cr(t,e,n.x,n.y,i.x,i.y),o=0,a=1;a<this.pointsCount-1;a++){n=this.i(a+1);var l=Cr(t,e,i.x,i.y,n.x,n.y);i=n,l<r&&(o=a,r=l)}return o},Fn.prototype.qc=function(){this.lk=!1,this.v()},Fn.prototype.Ul=function(e){if(!(!e&&(this.fd===!1||(e=this.Pb(),this.lk&&(e===null||e.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),e=this.path,e!==null)){e.ua=this.ua;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r!==e&&r.isPanelMain&&r instanceof hr&&(r.ua=this.ua)}}},Fn.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,i=this.diagram;i!==null&&wd(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 a=this.computeCurve();if(a===xu&&3<=t&&!et.$(this.smoothness,0))if(t===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<t;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<t;i+=3)i+3>=t&&(i=t-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<t;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,t!==2||wd(this)){if(e.type=Pn.o,l=Hy(e),this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),If(l,r.x,r.y,!1),a===xu&&3<=t&&!et.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-i,n=n.y-u,r=this.i(2).copy(),r.x-=i,r.y-=u,this.computeShortLength(!1)!==0&&(r=jd(this,r,!1,o)),bh(l,t,n,t,n,r.x,r.y);else if(this.isOrthogonal){t=ce.allocAt(i,u),n=ce.alloc(),n.assign(this.i(1)),o=ce.allocAt(i,u),r=ce.allocAt(i,u),a=this.i(0);for(var f,p=this.smoothness/3,x=1;x<this.pointsCount-1;x++){f=this.i(x);var A=a,R=f,z=this.i(rv(this,f,x,!1));if((!et.$(A.x,R.x)||!et.$(R.x,z.x))&&(!et.$(A.y,R.y)||!et.$(R.y,z.y))){var V=p;isNaN(V)&&(V=this.smoothness/3);var ye=A.x;A=A.y;var se=R.x;R=R.y;var De=z.x;z=z.y;var ze=V*om(ye,A,se,R);V*=om(se,R,De,z),et.$(A,R)&&et.$(se,De)&&(se>ye?z>R?(o.x=se-ze,o.y=R-ze,r.x=se+V,r.y=R+V):(o.x=se-ze,o.y=R+ze,r.x=se+V,r.y=R-V):z>R?(o.x=se+ze,o.y=R-ze,r.x=se-V,r.y=R+V):(o.x=se+ze,o.y=R+ze,r.x=se-V,r.y=R-V)),et.$(ye,se)&&et.$(R,z)&&(R>A?(De>se?(o.x=se-ze,o.y=R-ze,r.x=se+V):(o.x=se+ze,o.y=R-ze,r.x=se-V),r.y=R+V):(De>se?(o.x=se-ze,o.y=R+ze,r.x=se+V):(o.x=se+ze,o.y=R+ze,r.x=se-V),r.y=R-V)),(et.$(ye,se)&&et.$(se,De)||et.$(A,R)&&et.$(R,z))&&(ye=.5*(ye+De),A=.5*(A+z),o.x=ye,o.y=A,r.x=ye,r.y=A),(x===1||x===2&&et.$(a.x,this.i(0).x)&&et.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+f.x),n.y=.5*(a.y+f.y)),bh(l,n.x-i,n.y-u,o.x-i,o.y-u,f.x-i,f.y-u),t.set(o),n.set(r),a=f}}f=a.x,a=a.y,p=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,mr)),f=.5*(f+p.x),a=.5*(a+p.y),bh(l,r.x-i,r.y-u,f-i,a-u,p.x-i,p.y-u),ce.free(t),ce.free(n),ce.free(o),ce.free(r)}else for(n=3;n<t;n+=3)o=this.i(n-2),n+3>=t&&(n=t-1),r=this.i(n-1),a=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(a=jd(this,a.copy(),!1,mr)),bh(l,o.x-i,o.y-u,r.x-i,r.y-u,a.x-i,a.y-u);else{for(o=ce.alloc(),o.assign(this.i(0)),r=ce.alloc(),r.assign(o),a=this.computeCorner(),x=1,f=0;x<t;){if(x=rv(this,o,x,1<x),p=this.i(x),x>=t-1){if(!o.D(p))this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,mr)),Gd(this,l,-i,-u,o,p,n);else if(f===0)for(x=1;x<t;)r.assign(o),p=this.i(x++),Gd(this,l,-i,-u,o,p,n),o.assign(p);break}if(f=rv(this,p,x+1,x<t-3),x=-i,ye=-u,A=p,se=this.i(f),V=n,et.B(o.y,A.y)&&et.B(A.x,se.x))if(z=Math.min(a,Math.abs(A.x-r.x)/2),z=ze=Math.min(z,Math.abs(se.y-A.y)/2),et.B(z,0))Gd(this,l,x,ye,o,A,V),o.assign(A);else{var je=A.x,ot=A.y;R=je,De=ot,A.x>o.x?je=A.x-z:je=A.x+z,se.y>A.y?De=A.y+ze:De=A.y-ze,se=ce.allocAt(je,ot),Gd(this,l,x,ye,o,se,V),ce.free(se),Y0(l,A.x+x,A.y+ye,R+x,De+ye),o.h(R,De)}else et.B(o.x,A.x)&&et.B(A.y,se.y)?(z=Math.min(a,Math.abs(A.y-r.y)/2),z=ze=Math.min(z,Math.abs(se.x-A.x)/2),et.B(ze,0)?(Gd(this,l,x,ye,o,A,V),o.assign(A)):(je=A.x,ot=A.y,R=je,De=ot,A.y>o.y?ot=A.y-z:ot=A.y+z,se.x>A.x?R=A.x+ze:R=A.x-ze,se=ce.allocAt(je,ot),Gd(this,l,x,ye,o,se,V),ce.free(se),Y0(l,A.x+x,A.y+ye,R+x,De+ye),o.h(R,De))):(Gd(this,l,x,ye,o,A,V),o.assign(A));r.assign(p),x=f}ce.free(o)}X0=l}else l=this.i(1).copy(),l.x-=i,l.y-=u,this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),this.computeShortLength(!1)!==0&&(l=jd(this,l,!1,o)),e.type=Pn.j,e.startX=r.x,e.startY=r.y,e.endX=l.x,e.endY=l.y;return this.lk=!0,e};function om(e,t,n,i){return e=n-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),t=i-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),et.$(e,0)?t:et.$(t,0)?e:Math.sqrt(e*e+t*t)))}function jd(e,t,n,i){var r=e.pointsCount;if(2>r)return t;if(n){var o=e.i(1);if(n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!0),e>r&&(e=r),r=e*(o-t.y)/i,t.x+=e*(n-t.x)/i,t.y+=r}else{if(o=e.i(r-2),n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!1),e>r&&(e=r),r=e*(t.y-o)/i,t.x-=e*(t.x-n)/i,t.y-=r}return t}function rv(e,t,n,i){for(var r=e.pointsCount,o=t;et.$(t.x,o.x)&&et.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!et.$(t.x,o.x)&&!et.$(t.y,o.y))return n-1;for(var a=o;et.$(t.x,o.x)&&et.$(o.x,a.x)&&(!i||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||et.$(t.y,o.y)&&et.$(o.y,a.y)&&(!i||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=r)return r-1;a=e.i(n++)}return n-2}Fn.prototype.computeJumpLength=function(){return 10};function Gd(e,t,n,i,r,o,a){if(!a&&wd(e)){a=e.computeJumpLength();var l=a/2,u=[],f=0;if(e.isVisible()&&(f=zb(e,r,o,u)),0<f){if(et.B(r.y,o.y))if(r.x<o.x)for(var p=0;p<f;){var x=Math.max(r.x,Math.min(u[p++]-l,o.x-a));t.lineTo(x+n,o.y+i);for(var A=x+n,R=Math.min(x+a,o.x);p<f&&(x=u[p],x<R+a);)p++,R=Math.min(x+l,o.x);x=o.y-a+i,R+=n;var z=o.y+i;e.curve===wh?If(t,R,z,!1):bh(t,A,x,R,x,R,z)}else for(--f;0<=f;){for(p=Math.min(r.x,Math.max(u[f--]+l,o.x+a)),t.lineTo(p+n,o.y+i),A=p+n,x=Math.max(p-a,o.x);0<=f&&(p=u[f],p>x-a);)f--,x=Math.max(p-l,o.x);p=o.y-a+i,x+=n,R=o.y+i,e.curve===wh?If(t,x,R,!1):bh(t,A,p,x,p,x,R)}else if(et.B(r.x,o.x))if(r.y<o.y)for(p=0;p<f;){for(x=Math.max(r.y,Math.min(u[p++]-l,o.y-a)),t.lineTo(o.x+n,x+i),A=x+i,x=Math.min(x+a,o.y);p<f&&(R=u[p],R<x+a);)p++,x=Math.min(R+l,o.y);R=o.x-a+n,z=o.x+n,x+=i,e.curve===wh?If(t,z,x,!1):bh(t,R,A,R,x,z,x)}else for(--f;0<=f;){for(p=Math.min(r.y,Math.max(u[f--]+l,o.y+a)),t.lineTo(o.x+n,p+i),A=p+i,p=Math.max(p-a,o.y);0<=f&&(x=u[f],x>p-a);)f--,p=Math.max(x-l,o.y);x=o.x-a+n,R=o.x+n,p+=i,e.curve===wh?If(t,R,p,!1):bh(t,x,A,x,p,R,p)}}}t.lineTo(o.x+n,o.y+i)}function zb(e,t,n,i){var r=e.diagram;if(r===null||t.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 a=o.length,l=0;l<a;l++){var u=o[l];if(u instanceof Fn){if(u===e)return 0<i.length&&i.sort(function(p,x){return p-x}),i.length;if(u.isVisible()&&wd(u)){var f=u.routeBounds;f.w()&&e.routeBounds.Yc(f)&&!e.usesSamePort(u)&&(f=u.path,f!==null&&f.Ed()&&Ub(t,n,i,u))}}}}}return 0<i.length&&i.sort(function(p,x){return p-x}),i.length}function Ub(e,t,n,i){for(var r=et.B(e.y,t.y),o=i.pointsCount,a=i.i(0),l=ce.alloc(),u=1;u<o;u++){var f=i.i(u);if(u<o-1){var p=i.i(u+1);if(a.y===f.y&&f.y===p.y){if(f.x>a.x&&p.x>=f.x||f.x<a.x&&p.x<=f.x)continue}else if(a.x===f.x&&f.x===p.x&&(f.y>a.y&&p.y>=f.y||f.y<a.y&&p.y<=f.y))continue}e:{p=e.x;var x=e.y,A=t.x,R=t.y,z=a.x;a=a.y;var V=f.x,ye=f.y;if(et.B(p,A)){if(!et.B(x,R)&&et.B(a,ye)&&Math.min(x,R)<a&&Math.max(x,R)>a&&Math.min(z,V)<p&&Math.max(z,V)>p&&!et.B(z,V)){l.x=p,l.y=a,p=!0;break e}}else if(et.B(x,R)&&et.B(z,V)&&Math.min(p,A)<z&&Math.max(p,A)>z&&Math.min(a,ye)<x&&Math.max(a,ye)>x&&!et.B(a,ye)){l.x=z,l.y=x,p=!0;break e}l.x=0,l.y=0,p=!1}p&&(r?n.push(l.x):n.push(l.y)),a=f}ce.free(l)}function wd(e){return e=e.curve,e===Lf||e===wh}function am(e,t){(t||wd(e))&&(t=e.diagram,t===null||t.animationManager.isTicking||t.Eh.contains(e)||e.ml.width===0&&e.ml.height===0||t.Eh.add(e,e.ml.copy()))}Fn.prototype.Xo=function(e){var t=this.layer;if(t!==null&&t.visible&&!t.isTemporary){var n=t.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===t){i=!0;var o=!1;r=r.Pa.s;for(var a=r.length,l=0;l<a;l++){var u=r[l];u instanceof Fn&&(u===this?o=!0:o&&h1(this,u,e))}}else if(i)for(o=r.Pa.s,r=o.length,a=0;a<r;a++)l=o[a],l instanceof Fn&&h1(this,l,e)}}}}};function h1(e,t,n){if(t!==null&&t.lk&&t.fd&&wd(t)){var i=t.routeBounds;i.w()&&(e.routeBounds.Yc(i)||n.Yc(i))&&(e.usesSamePort(t)||t.qc())}}Fn.prototype.usesSamePort=function(e){var t=this.pointsCount,n=e.pointsCount;if(0<t&&0<n){var i=this.i(0),r=e.i(0);if(i.Xa(r)||(t=this.i(t-1),e=e.i(n-1),t.Xa(e)||i.Xa(e)||t.Xa(r)))return!0}else if(this.fromNode===e.fromNode||this.toNode===e.toNode||this.fromNode===e.toNode||this.toNode===e.fromNode)return!0;return!1},Fn.prototype.isVisible=function(){if(!Ai.prototype.isVisible.call(this))return!1;var e=this.containingGroup,t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(var i=n;i!==null;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(n=n.findVisibleNode(),n===null||n===e)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(t=n;t!==null;){if(t.labeledLink===this)return!0;t=t.containingGroup}if(t=n.findVisibleNode(),t===null||t===e)return!1}return!0},Fn.prototype.Zb=function(e){if(Ai.prototype.Zb.call(this,e),e&&am(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},Fn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ip:this.qk};function Ap(e){var t=e.ef;if(t!==null){var n=e.uf;if(n!==null&&isNaN(e.curviness)){for(var i=e.ff,r=e.vf,o=e=null,a=t.jb.s,l=a.length,u=0;u<l;u++){var f=a[u];(f.ef===t&&f.ff===i&&f.uf===n&&f.vf===r||f.ef===n&&f.ff===r&&f.uf===t&&f.vf===i)&&(o===null?o=f:(e===null&&(e=[],e.push(o)),e.push(f)))}if(e!==null){for(o=qy(t,n,i,r),o===null&&(o=new hm(t,i,n,r),Jy(t,o),Jy(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function kp(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(L(t.links,e),t.Sl()))}Fn.prototype.ph=function(){return!0},ft.Object.defineProperties(Fn.prototype,{fromNode:{get:function(){return this.ef},set:function(e){var t=this.ef;if(t!==e){var n=this.fromPort;t!==null&&(this.uf!==t&&em(t,this,n),kp(this),this.C(2)),this.ef=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setFromNodeForLink(this,e,t);var r=this.fromPort,o=this.fromPortChanged;if(o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a)}e!==null&&(this.uf!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("fromNode",t,e),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&iu(n),kp(this),this.ff=e;var i=this.fromPort;i!==null&&iu(i);var r=this.diagram;if(r!==null){var o=this.data,a=r.model;o!==null&&a.ri()&&a.xv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(a=!0,r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a))),Ap(this),this.g("fromPortId",t,e)}}},fromPort:{get:function(){var e=this.ef;return e===null?null:e.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(e){var t=this.gn;t!==e&&(this.gn=e,this.g("fromPortChanged",t,e))}},toNode:{get:function(){return this.uf},set:function(e){var t=this.uf;if(t!==e){var n=this.toPort;t!==null&&(this.ef!==t&&em(t,this,n),kp(this),this.C(2)),this.uf=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setToNodeForLink(this,e,t);var r=this.toPort,o=this.toPortChanged;if(o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a)}e!==null&&(this.ef!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("toNode",t,e),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&iu(n),kp(this),this.vf=e;var i=this.toPort;i!==null&&iu(i);var r=this.diagram;if(r!==null){var o=this.data,a=r.model;o!==null&&a.ri()&&a.Cv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(a=!0,r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a))),Ap(this),this.g("toPortId",t,e)}}},toPort:{get:function(){var e=this.uf;return e===null?null:e.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(e){var t=this.uo;t!==e&&(this.uo=e,this.g("toPortChanged",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Vr},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),(t.$c()||e.$c())&&this.fromNode!==null&&iu(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&Rt(e,">= 0",Fn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Vr},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&this.toNode!==null&&iu(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&Rt(e,">= 0",Fn,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?wt:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(e){var t=(this.Qa&1)!==0;t!==e&&(this.Qa^=1,this.g("relinkableFrom",t,e),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(e){var t=(this.Qa&2)!==0;t!==e&&(this.Qa^=2,this.g("relinkableTo",t,e),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(e){var t=(this.Qa&4)!==0;t!==e&&(this.Qa^=4,this.g("resegmentable",t,e),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(e){var t=(this.Qa&8)!==0;t!==e&&(this.Qa^=8,this.g("isTreeLink",t,e),this.fromNode!==null&&Np(this.fromNode),this.toNode!==null&&Np(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof hr?e:null}},routeBounds:{get:function(){this.vg();var e=this.ml,t=1/0,n=1/0,i=this.pointsCount;if(i===0)e.h(NaN,NaN,0,0);else{if(i===1)i=this.i(0),t=Math.min(i.x,t),n=Math.min(i.y,n),e.h(i.x,i.y,0,0);else if(i===2){i=this.i(0);var r=this.i(1);t=Math.min(i.x,r.x),n=Math.min(i.y,r.y),e.h(i.x,i.y,0,0),e.Ye(r)}else if(this.computeCurve()===xu&&3<=i&&!this.isOrthogonal)if(r=this.i(0),t=r.x,n=r.y,e.h(t,n,0,0),i===3){i=this.i(1),t=Math.min(i.x,t),n=Math.min(i.y,n);var o=this.i(2);t=Math.min(o.x,t),n=Math.min(o.y,n),et.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,e)}else for(o=3;o<i;o+=3){var a=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);et.Dl(r.x,r.y,a.x,a.y,l.x,l.y,u.x,u.y,.5,e),t=Math.min(u.x,t),n=Math.min(u.y,n),r=u}else for(r=this.i(0),o=this.i(1),t=Math.min(r.x,o.x),n=Math.min(r.y,o.y),e.h(r.x,r.y,0,0),e.Ye(o),r=2;r<i;r++)o=this.i(r),t=Math.min(o.x,t),n=Math.min(o.y,n),e.Ye(o);this.su.h(t-e.x,n-e.y)}return e}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new ce)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||nm(this);for(var e=this.cq=[],t=this.pointsCount,n=0;n<t-1;n++){var i=this.i(n),r=this.i(n+1);et.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):et.$(i.y,r.y)?(i=r.x-i.x,0>i&&(i=-i)):i=Math.sqrt(i.Bf(r)),e.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,i=e=0;i<n;i++)e+=t[i];this.vt=e}return e}},points:{get:function(){return this.Nb},set:function(e){var t=this.Nb;if(t!==e){var n=null;if(Array.isArray(e)){var i=e.length%2===0;if(i){for(var r=0;r<e.length;r++)if(typeof e[r]!="number"||isNaN(e[r])){i=!1;break}}if(i)for(n=new Xt,i=0;i<e.length/2;i++)r=new ce(e[2*i],e[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<e.length;r++){var o=e[r];if(!at(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new Xt,i=0;i<e.length;i++)r=e[i],n.add(new ce(r.x,r.y).freeze())}}else if(e instanceof Xt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else Ke("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),nm(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&d(e.animationManager,this,n)),this.g("points",t,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(e){(this.Qa&16)!==0!==e&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(e){(this.Qa&32)!==0!==e&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(e){(this.Qa&64)!==0!==e&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(e){this.o=e.copy()}},defaultToPoint:{get:function(){return this.u},set:function(e){this.u=e.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(e){(this.Qa&128)!==0!==e&&(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||!Of(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!Of(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),am(this,t===wh||t===Lf||e===wh||e===Lf),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),am(this,(t.value&2)===2||(e.value&2)===2),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(e!==null&&e.model.ri())return e.model.Ac(this.data)}}}),Fn.prototype.invalidateOtherJumpOvers=Fn.prototype.Xo,Fn.prototype.findClosestSegment=Fn.prototype.ez,Fn.prototype.updateRoute=Fn.prototype.vg,Fn.prototype.invalidateRoute=Fn.prototype.bb,Fn.prototype.rollbackRoute=Fn.prototype.rv,Fn.prototype.commitRoute=Fn.prototype.zf,Fn.prototype.startRoute=Fn.prototype.uh,Fn.prototype.clearPoints=Fn.prototype.Fj,Fn.prototype.removePoint=Fn.prototype.pv,Fn.prototype.addPointAt=Fn.prototype.yf,Fn.prototype.addPoint=Fn.prototype.ne,Fn.prototype.insertPointAt=Fn.prototype.m,Fn.prototype.insertPoint=Fn.prototype.Kz,Fn.prototype.setPointAt=Fn.prototype.L,Fn.prototype.setPoint=Fn.prototype.dd,Fn.prototype.getPoint=Fn.prototype.i,Fn.prototype.getOtherPort=Fn.prototype.Cz,Fn.prototype.getOtherNode=Fn.prototype.To;var Wd=null,Vd=null,ov=new Kt(Fn,"Normal",1),Hb=new Kt(Fn,"Orthogonal",2),$b=new Kt(Fn,"AvoidsNodes",6),d1=new Kt(Fn,"AvoidsNodesStraight",7),Cl=new Kt(Fn,"None",0),xu=new Kt(Fn,"Bezier",9),wh=new Kt(Fn,"JumpGap",10),Lf=new Kt(Fn,"JumpOver",11),Ip=new Kt(Fn,"End",17),sm=new Kt(Fn,"Scale",18),lm=new Kt(Fn,"Stretch",19),Mp=new Kt(Fn,"OrientAlong",21),Op=new Kt(Fn,"OrientPlus90",22),Lp=new Kt(Fn,"OrientMinus90",23),av=new Kt(Fn,"OrientOpposite",24),um=new Kt(Fn,"OrientUpright",25),Rp=new Kt(Fn,"OrientPlus90Upright",26),Dp=new Kt(Fn,"OrientMinus90Upright",27),cm=new Kt(Fn,"OrientUpright45",28),f1=16,p1=14,Pp=8;Fn.className="Link",Fn.Normal=ov,Fn.Orthogonal=Hb,Fn.AvoidsNodes=$b,Fn.AvoidsNodesStraight=d1,Fn.None=Cl,Fn.Bezier=xu,Fn.JumpGap=wh,Fn.JumpOver=Lf,Fn.End=Ip,Fn.Scale=sm,Fn.Stretch=lm,Fn.OrientAlong=Mp,Fn.OrientPlus90=Op,Fn.OrientMinus90=Lp,Fn.OrientOpposite=av,Fn.OrientUpright=um,Fn.OrientPlus90Upright=Rp,Fn.OrientMinus90Upright=Dp,Fn.OrientUpright45=cm,Fn.EndSegmentStep=8,Fn.CurvinessStart=f1,Fn.SpacingMin=p1,Fn.OrthoShortCut=Pp;function hm(e,t,n,i){Bi(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=i,this.links=[]}hm.prototype.Sl=function(){if(!this.qq){var e=this.links;0<e.length&&(e=e[0].diagram,e!==null&&(e.ow.add(this),this.Fe=e.undoManager.isUndoingRedoing))}this.qq=!0},hm.prototype.Nv=function(){if(this.qq){this.qq=!1;var e=this.links;if(0<e.length){var t=e[0],n=t.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,t.arrangeBundledLinks(e,n),e.length===1&&(t.Sf=null,e.length=0)}e.length===0&&(e=this.Ds,this!==null&&e.af!==null&&e.af.remove(this),e=this.cv,this!==null&&e.af!==null&&e.af.remove(this))}},hm.className="LinkBundle";function Fp(e){Bi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Fp.prototype.initialize=function(e){if(!(0>=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,i=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-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,e=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),t=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<e-1||this.ei<t-1){for(n=[],i=0;i<=e;i++)n[i]=new Uint32Array(t);this.ac=n,this.di=e-1,this.ei=t-1}if(e=sv,this.ac!==null)for(t=0;t<=this.di;t++)if(n=this.ac[t],n.fill)n.fill(e);else for(i=0;i<=this.ei;i++)n[i]=e}};function Rf(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function Hc(e,t,n){return Rf(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):sv}function m1(e){if(e.ac!==null)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],i=0;i<=e.ei;i++)n[i]>=Cd&&(n[i]=sv)}Fp.prototype.Yj=function(e,t,n,i){if(e>this.En||e+n<this.Nd||t>this.Fn||t+i<this.Od)return!0;e=(e-this.Nd)/this.rc|0,t=(t-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>e&&(n+=e,e=0),0>t&&(r+=t,t=0),0>n||0>r)return!0;for(i=Math.min(e+n-1,this.di)|0,n=Math.min(t+r-1,this.ei)|0;e<=i;e++){r=this.ac[e];for(var o=t;o<=n;o++)if(r[o]===Ch)return!1}return!0};function $c(e,t,n,i,r,o,a,l,u){if(!(t<o||t>a||n<l||n>u)){var f=t|0,p=n|0,x=e.ac[f][p];if(x>=Cd&&x<Df)for(r?p+=i:f+=i,x+=1;o<=f&&f<=a&&l<=p&&p<=u&&!(x>=e.ac[f][p]);)e.ac[f][p]=x,x+=1,r?p+=i:f+=i;if(f=r?p:f,r)if(0<i)for(n+=i;n<f;n+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else for(n+=i;n>f;n+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else if(0<i)for(t+=i;t<f;t+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else for(t+=i;t>f;t+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u)}}function dm(e,t,n,i,r,o,a,l,u){t|=0,n|=0;var f=Ch,p=Cd;for(e.ac[t][n]=p;f===Ch&&t>o&&t<a&&n>l&&n<u;)p+=1,e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function fm(e,t,n,i,r,o,a,l,u){t|=0,n|=0;var f=Ch,p=Df;for(e.ac[t][n]=p;f===Ch&&t>o&&t<a&&n>l&&n<u;)e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function g1(e,t,n,i,r,o,a){if(e.ac!==null){e.abort=!1;var l=t.x,u=t.y;if(Rf(e,l,u)){l-=e.Nd,l/=e.rc,u-=e.Od,u/=e.sc;var f=i.x,p=i.y;if(Rf(e,f,p))if(f-=e.Nd,f/=e.rc,p-=e.Od,p/=e.sc,1>=Math.abs(l-f)&&1>=Math.abs(u-p))e.abort=!0;else{var x=o.x;i=o.y,t=o.x+o.width;var A=o.y+o.height;x-=e.Nd,x/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,A-=e.Od,A/=e.sc,o=Math.max(0,Math.min(e.di,x|0)),t=Math.min(e.di,Math.max(0,t|0)),x=Math.max(0,Math.min(e.ei,i|0)),A=Math.min(e.ei,Math.max(0,A|0)),i=e.ac,l|=0,u|=0,f|=0,p|=0;var R=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Ch?(dm(e,l,u,R,n,o,t,x,A),dm(e,l,u,1,!n,o,t,x,A),dm(e,l,u,-1,!n,o,t,x,A)):dm(e,l,u,R,n,l,u,l,u),i[f][p]===Ch?(fm(e,f,p,r===0||r===90?1:-1,r===90||r===270,o,t,x,A),fm(e,f,p,1,!(r===90||r===270),o,t,x,A),fm(e,f,p,-1,!(r===90||r===270),o,t,x,A)):fm(e,f,p,R,n,f,p,f,p),n=Dt(),a&&v1(e,f,p,r,l,u,n))for((n[0]!==f||n[1]!==p)&&(n.unshift(p),n.unshift(f)),(n[n.length-2]!==l||n[n.length-1]!==u)&&(n.push(l),n.push(u)),e=Cd,r=n[n.length-2],a=n[n.length-1],i[r][a]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],a=n[o+3],t=n[o],f=n[o+1];t>r?r++:t<r?r--:f>a?a++:f<a&&a--,i[r][a]=e++,r!==t||a!==f;);else $c(e,l,u,1,!1,o,t,x,A),$c(e,l,u,-1,!1,o,t,x,A),$c(e,l,u,1,!0,o,t,x,A),$c(e,l,u,-1,!0,o,t,x,A);Jt(n)}}}}function v1(e,t,n,i,r,o,a){for(var l=e.ac,u=t,f=n;;){if(u===r&&f===o)return!0;var p=u,x=f;if(i===0)if(p<r)p++;else break;else if(i===90)if(x<o)x++;else break;else if(i===180)if(p>r)p--;else break;else if(x>o)x--;else break;var A=l[p][x];if(A===0||A===lv)break;u=p,f=x}for(;;){if(p=i,x=u,A=f,i===0?A<o?(p=90,A++):A>o&&(p=270,A--):i===90?x<r?(p=0,x++):x>r&&(p=180,x--):i===180?A<o?(p=90,A++):A>o&&(p=270,A--):x<r?(p=0,x++):x>r&&(p=180,x--),x=l[x][A],p!==i&&x!==0&&x!==lv){if(a.push(u),a.push(f),v1(e,u,f,p,r,o,a))return!0;a.pop(),a.pop()}if(l[u][f]=lv,i===0){if(u===t)return!1;u--}else if(i===90){if(f===n)return!1;f--}else if(i===180){if(u===t)return!1;u++}else{if(f===n)return!1;f++}}}ft.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new Wt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0<e&&e!==this.rc&&(this.rc=e,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(e){0<e&&e!==this.sc&&(this.sc=e,this.initialize(this.bounds))}}});var Ch=0,Cd=1,Df=999999,sv=Df+1,lv=Df+2;Fp.className="PositionArray";function Kd(){Bi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Kd.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;n<e.length;n++){var i=e[n];i!==null&&(t+=`
|
|
|
`+i.toString())}return t};function jb(e,t,n,i){switch(t=t.offsetY,t){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(t){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90<n&&n<=180+e?180:n>180+e&&n<=360-e?270:0;case 13:return 180<n&&n<=360-e?270:n>e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return i&&t!==15&&(n-=15,0>n&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}Kd.prototype.Sl=function(){this.pe.length=0};function y1(e,t){var n=e.pe;if(n.length===0){e:if(!e.ap){n=e.ap,e.ap=!0;var i=null,r=e.node,o=r instanceof nr?r:null;if(o===null||o.isSubGraphExpanded)var a=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}i=o,a=i.Lu()}o=e.pe.length=0;var l=e.port.ga(ta,ce.alloc()),u=e.port.ga(Ho,ce.alloc());for(r=Wt.allocAt(l.x,l.y,0,0),r.Ye(u),ce.free(l),ce.free(u),l=ce.allocAt(r.x+r.width/2,r.y+r.height/2),u=e.port.li(),a=a.iterator;a.next();){var f=a.value;if(f.isVisible()&&f.fromPort!==f.toPort){var p=f.fromPort===e.port||f.fromNode!==null&&f.fromNode.Td(i),x=f.computeSpot(p,e.port);if(x.$c()&&(p=p?f.toPort:f.fromPort,p!==null)){var A=p.part;if(A!==null){var R=A.findVisibleNode();R!==null&&R!==A&&(A=R,p=A.port),p=f.computeOtherPoint(A,p),A=l.ab(p),A-=u,0>A?A+=360:360<=A&&(A-=360),x=jb(r,x,A,f.isOrthogonal),x===0?(x=4,180<A&&(A-=360)):x===90?(x=8,270<A&&(A-=360)):x===180?x=2:(x=1,90>A&&(A+=360)),R=e.pe[o],R===void 0?(R=new uv(f,A,x),e.pe[o]=R):(R.link=f,R.angle=A,R.Nc=x),R.hv.set(p),o++}}}}for(ce.free(l),e.pe.sort(Kd.prototype.j),u=e.pe.length,i=-1,o=l=0;o<u;o++)a=e.pe[o],a!==void 0&&(a.Nc!==i&&(i=a.Nc,l=0),a.Uo=l,l++);for(i=-1,l=0,o=u-1;0<=o;o--)u=e.pe[o],u!==void 0&&(u.Nc!==i&&(i=u.Nc,l=u.Uo+1),u.Gl=l);if(o=e.pe,x=e.port,i=e.node.portSpreading,l=ce.alloc(),u=ce.alloc(),a=ce.alloc(),f=ce.alloc(),x.ga(ta,l),x.ga(Yo,u),x.ga(Ho,a),x.ga(Ds,f),R=A=p=x=0,i===Jg)for(var z=0;z<o.length;z++){var V=o[z];if(V!==null){var ye=V.link.computeThickness();switch(V.Nc){case 8:A+=ye;break;case 2:R+=ye;break;case 1:x+=ye;break;default:case 4:p+=ye}}}var se=z=0,De=1,ze=V=0;for(ye=0;ye<o.length;ye++){var je=o[ye];if(je!==null){if(z!==je.Nc){switch(z=je.Nc,z){case 8:var ot=a;se=f;break;case 2:ot=f,se=l;break;case 1:ot=l,se=u;break;default:case 4:ot=u,se=a}switch(V=se.x-ot.x,ze=se.y-ot.y,z){case 8:A>Math.abs(V)?(De=Math.abs(V)/A,A=Math.abs(V)):De=1;break;case 2:R>Math.abs(ze)?(De=Math.abs(ze)/R,R=Math.abs(ze)):De=1;break;case 1:x>Math.abs(V)?(De=Math.abs(V)/x,x=Math.abs(V)):De=1;break;default:case 4:p>Math.abs(ze)?(De=Math.abs(ze)/p,p=Math.abs(ze)):De=1}se=0}var Nt=je.Zo;if(i===Jg){switch(je=je.link.computeThickness(),je*=De,Nt.set(ot),z){case 8:Nt.x=ot.x+V/2+A/2-se-je/2;break;case 2:Nt.y=ot.y+ze/2+R/2-se-je/2;break;case 1:Nt.x=ot.x+V/2-x/2+se+je/2;break;default:case 4:Nt.y=ot.y+ze/2-p/2+se+je/2}se+=je}else{var Vn=.5;i===tm&&(Vn=(je.Uo+1)/(je.Gl+1)),Nt.x=ot.x+V*Vn,Nt.y=ot.y+ze*Vn}}}for(ce.free(l),ce.free(u),ce.free(a),ce.free(f),ot=e.pe,o=0;o<ot.length;o++)i=ot[o],i!==null&&(i.Ju=e.computeEndSegmentLength(i));e.ap=n,Wt.free(r)}n=e.pe}for(e=0;e<n.length;e++)if(r=n[e],r!==null&&r.link===t)return r;return null}Kd.prototype.j=function(e,t){return e===t?0:e===null?-1:t===null?1:e.Nc<t.Nc?-1:e.Nc>t.Nc?1:e.angle<t.angle?-1:e.angle>t.angle?1:0},Kd.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,Hi,t.fromPort===this.port),i=e.Uo;if(0>i)return n;var r=e.Gl;if(1>=r||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return(e.Nc===2||e.Nc===8)&&(i=r-1-i),((e=e.Nc===2||e.Nc===4)?t.y<o.y:t.x<o.x)?n+8*i:(e?t.y===o.y:t.x===o.x)?n:n+8*(r-1-i)},Kd.className="Knot";function uv(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new ce,this.Gl=this.Uo=0,this.Zo=new ce,this.Ju=0}uv.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()},uv.className="LinkInfo";function Qo(e){Bi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ce(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}Qo.prototype.cloneProtected=function(e){e.sn=this.sn,e.Gh=this.Gh,e.yn=this.yn,e.Am.assign(this.Am),e.vn=this.vn,e.un=this.un,e.Em=this.Em,e.xn=!0},Qo.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},Qo.prototype.qb=function(){},Qo.prototype.toString=function(){var e=gt(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},Qo.prototype.C=function(){if(this.isValidLayout){var e=this.diagram;if(e!==null&&!e.undoManager.isUndoingRedoing){var t=e.animationManager;!t.isTicking&&(t.defaultAnimation.isAnimating&&t.Cc(),this.isOngoing&&e.pi||this.isInitial&&!e.pi)&&(this.isValidLayout=!1,e.$b())}}},Qo.prototype.createNetwork=function(){return new Fo(this)},Qo.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof Y?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof nr?t.lg(e.memberParts):t.lg(e.iterator),t},Qo.prototype.updateParts=function(){this.isValidLayout=!0;var e=this.diagram;if(e===null&&this.network!==null)for(var t=this.network.vertexes.iterator;t.next();){var n=t.value.node;if(n!==null&&(e=n.diagram,e!==null))break}try{e!==null&&e.Ea("Layout"),this.commitLayout()}finally{e!==null&&e.eb("Layout")}},Qo.prototype.commitLayout=function(){if(this.network!==null){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();if(this.isRouting)for(e=this.network.edges.iterator;e.next();)e.value.commit()}},Qo.prototype.doLayout=function(e){var t=new Zt;e instanceof Y?(Vh(this,t,e.nodes,!0,this.rh,!0,!1,!0),Vh(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof nr?Vh(this,t,e.memberParts,!1,this.rh,!0,!1,!0):t.addAll(e.iterator),0<t.count&&(e=this.diagram,e!==null&&e.Ea("Layout"),this.doMinimalNoNetworkLayout(t),e!==null&&e.eb("Layout")),this.isValidLayout=!0},Qo.prototype.doMinimalNoNetworkLayout=function(e){var t=Math.ceil(Math.sqrt(e.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,a=0;for(e=e.iterator;e.next();){var l=e.value;Bp(l);var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(i,r),l instanceof nr&&(l.rh=!1),i+=Math.max(f,50)+20,a=Math.max(a,Math.max(u,50)),o>=t-1?(o=0,i=n,r+=a+20,a=0):o++}},Qo.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,i=this.arrangementOrigin.y,r=0,o=0,a=this.network.vertexes.iterator;a.next();){var l=a.value.node;if(!(l===null||l instanceof Fn)&&(Bp(l),this.rh(l))){var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(n,i),l instanceof nr&&(l.rh=!1),n+=Math.max(f,50)+20,o=Math.max(o,Math.max(u,50)),r>=e-1?(r=0,n=t,i+=o+20,o=0):r++}}},Qo.prototype.rh=function(e){return!!(!e.location.w()||e instanceof nr&&e.rh)};function Vh(e,t,n,i,r,o,a,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof Xn?u.isLinkLabel||(u instanceof nr&&u.layout===null?Vh(e,t,u.memberParts,!1,r,o,a,l):(Bp(u),t.add(u))):a&&u instanceof Fn?t.add(u):!l||!u.Zc()||u instanceof Xn||(Bp(u),t.add(u)))}}function Bp(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}Qo.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Wt),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Qo.prototype.ex=function(e){var t=new Zt;return e instanceof Y?(Vh(this,t,e.nodes,!0,null,!0,!0,!0),Vh(this,t,e.links,!0,null,!0,!0,!0),Vh(this,t,e.parts,!0,null,!0,!0,!0)):e instanceof nr?Vh(this,t,e.memberParts,!1,null,!0,!0,!0):Vh(this,t,e.iterator,!1,null,!0,!0,!0),t},Qo.prototype.initialOrigin=function(e){var t=this.group;if(t!==null){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),t=t.placeholder,t!==null&&(n=t.ga(ta),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},ft.Object.defineProperties(Qo.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,e!==null&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||(e=this.diagram,e!==null&&(e.xh=!0)))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,e!==null&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),Qo.prototype.collectParts=Qo.prototype.ex,Qo.prototype.getLayoutBounds=Qo.prototype.ni,Qo.prototype.invalidateLayout=Qo.prototype.C,Qo.className="Layout";function Fo(e){Bi(this),this.Sc=e,this.wf=new Zt,this.ye=new Zt,this.Es=new Zn,this.zs=new Zn}Fo.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Zt,this.ye=new Zt,this.Es=new Zn,this.zs=new Zn},Fo.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<e){for(var n=this.wf.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1);for(n=this.ye.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1)}return t},Fo.prototype.createVertex=function(){return new us(this)},Fo.prototype.createEdge=function(){return new ru(this)},Fo.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(a){if(a instanceof Xn)return!a.isLinkLabel;if(a instanceof Fn){var l=a.fromNode;return l===null||l.isLinkLabel?!1:(a=a.toNode,!(a===null||a.isLinkLabel))}return!1}),e=e.iterator;e.next();){var i=e.value;if(i instanceof Xn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof nr&&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(e.reset();e.next();)if(i=e.value,i instanceof Fn&&(!t||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))}}},Fo.prototype.findGroupVertex=function(e){if(e===null)return null;var t=e.findVisibleNode();if(t===null)return null;if(e=this.ki(t),e!==null)return e;for(t=t.containingGroup;t!==null;){if(e=this.ki(t),e!==null)return e;t=t.containingGroup}return null},U=Fo.prototype,U.dh=function(e){if(e!==null){this.wf.add(e);var t=e.node;t!==null&&this.Es.add(t,e),e.network=this}},U.Bl=function(e){if(e===null)return null;var t=this.ki(e);return t===null&&(t=this.createVertex(),t.node=e,this.dh(t)),t},U.Iu=function(e){if(e!==null&&b1(this,e)){for(var t=e.tg,n=t.count-1;0<=n;n--){var i=t.M(n);this.Mj(i)}for(t=e.mg,e=t.count-1;0<=e;e--)n=t.M(e),this.Mj(n)}};function b1(e,t){if(t===null)return!1;var n=e.wf.remove(t);return n&&(t=t.node,t!==null&&e.Es.remove(t)),n}U.Zy=function(e){e!==null&&(e=this.ki(e),e!==null&&this.Iu(e))},U.ki=function(e){return e===null?null:this.Es.I(e)},U.Bo=function(e){if(e!==null){cv(this,e);var t=e.toVertex;t!==null&&t.Cl(e),t=e.fromVertex,t!==null&&t.zl(e)}};function cv(e,t){if(t!==null){e.ye.add(t);var n=t.link;n!==null&&e.Lo(n)===null&&e.zs.add(n,t),t.network=e}}U.Dy=function(e){if(e===null)return null;var t=e.fromNode,n=e.toNode,i=this.Lo(e);return i===null?(i=this.createEdge(),i.link=e,t!==null&&(i.fromVertex=this.Bl(t)),n!==null&&(i.toVertex=this.Bl(n)),this.Bo(i)):(t!==null?i.fromVertex=this.Bl(t):i.fromVertex=null,n!==null?i.toVertex=this.Bl(n):i.toVertex=null),i},U.Mj=function(e){if(e!==null){var t=e.toVertex;t!==null&&t.Kl(e),t=e.fromVertex,t!==null&&t.Jl(e),hv(this,e)}};function hv(e,t){t!==null&&e.ye.remove(t)&&(t=t.link,t!==null&&e.zs.remove(t))}U.Yy=function(e){e!==null&&(e=this.Lo(e),e!==null&&this.Mj(e))},U.Lo=function(e){return e===null?null:this.zs.I(e)},U.Zj=function(e,t,n){if(e===null||t===null)return null;if(e.network===this&&t.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=e,i.toVertex=t,this.Bo(i),i}return null},U.gm=function(e){if(e!==null){var t=e.fromVertex,n=e.toVertex;t!==null&&n!==null&&(t.Jl(e),n.Kl(e),e.gm(),t.Cl(e),n.zl(e))}},U.Ko=function(){for(var e=Dt(),t=this.ye.iterator;t.next();){var n=t.value;n.fromVertex===n.toVertex&&e.push(n)}for(t=e.length,n=0;n<t;n++)this.Mj(e[n]);Jt(e)},Fo.prototype.deleteArtificialVertexes=function(){for(var e=Dt(),t=this.wf.iterator;t.next();){var n=t.value;n.node===null&&n.data===null&&e.push(n)}for(n=e.length,t=0;t<n;t++)this.Iu(e[t]);for(t=Dt(),n=this.ye.iterator;n.next();){var i=n.value;i.link===null&&i.data===null&&t.push(i)}for(n=t.length,i=0;i<n;i++)this.Mj(t[i]);Jt(e),Jt(t)};function Gb(e){for(var t=Dt(),n=e.ye.iterator;n.next();){var i=n.value;i.fromVertex!==null&&i.toVertex!==null||t.push(i)}for(n=t.length,i=0;i<n;i++)e.Mj(t[i]);Jt(t)}Fo.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Gb(this),this.Ko()),e=new Xt;for(var t=!0;t;){t=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){t=this.layout.createNetwork(),e.add(t),dv(this,t,i),t=!0;break}}}return e.sort(function(r,o){return r===null||o===null||r===o?0:o.vertexes.count-r.vertexes.count}),e};function dv(e,t,n){if(n!==null&&n.network!==t){b1(e,n),t.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==t&&(hv(e,r),cv(t,r),dv(e,t,r.fromVertex))}for(i=n.destinationEdges;i.next();)n=i.value,n.network!==t&&(hv(e,n),cv(t,n),dv(e,t,n.toVertex))}}Fo.prototype.dz=function(){for(var e=new Zt,t=this.wf.iterator;t.next();)e.add(t.value.node);for(t=this.ye.iterator;t.next();)e.add(t.value.link);return e},ft.Object.defineProperties(Fo.prototype,{layout:{get:function(){return this.Sc},set:function(e){e!==null&&(this.Sc=e)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Fo.prototype.findAllParts=Fo.prototype.dz,Fo.prototype.splitIntoSubNetworks=Fo.prototype.Zx,Fo.prototype.deleteSelfEdges=Fo.prototype.Ko,Fo.prototype.reverseEdge=Fo.prototype.gm,Fo.prototype.linkVertexes=Fo.prototype.Zj,Fo.prototype.findEdge=Fo.prototype.Lo,Fo.prototype.deleteLink=Fo.prototype.Yy,Fo.prototype.deleteEdge=Fo.prototype.Mj,Fo.prototype.addLink=Fo.prototype.Dy,Fo.prototype.addEdge=Fo.prototype.Bo,Fo.prototype.findVertex=Fo.prototype.ki,Fo.prototype.deleteNode=Fo.prototype.Zy,Fo.prototype.deleteVertex=Fo.prototype.Iu,Fo.prototype.addNode=Fo.prototype.Bl,Fo.prototype.addVertex=Fo.prototype.dh,Fo.prototype.addParts=Fo.prototype.lg,Fo.className="LayoutNetwork";function us(e){Bi(this),this.ob=e,this.j=new Wt(0,0,10,10).freeze(),this.o=new ce(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Xt,this.mg=new Xt}us.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Xt,this.mg=new Xt},us.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+At(this);if(0<e&&(t+=this.node!==null?"("+this.node.toString()+")":"",1<e)){e="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:e+=",",e+=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)}t+=" sources: "+e+" destinations: "+r}return t},us.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;at(n)?(n.x=t.x,n.y=t.y,n.width=t.width,n.height=t.height):e.bounds=t.copy()}else if(e=this.node,e!==null){if(t=this.bounds,!(e instanceof nr)){n=Wt.alloc(),e.Va();var i=this.network.layout.ni(e,n),r=e.locationObject.ga(Lr);if(i.w()&&r.w()){e.moveTo(t.x+this.focusX-(r.x-i.x),t.y+this.focusY-(r.y-i.y)),Wt.free(n);return}Wt.free(n)}e.moveTo(t.x,t.y)}},us.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},us.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},us.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},us.prototype.Jl=function(e){e!==null&&this.mg.remove(e)};function fv(e,t){return e=e.Sh,t=t.Sh,e?t?(e=e.text,t=t.text,e<t?-1:e>t?1:0):1:t!==null?-1:0}ft.Object.defineProperties(us.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(e){if(this.ub=e,e!==null&&e.bounds){var t=e.bounds;e=t.x;var n=t.y,i=t.width;t=t.height,this.o.h(i/2,t/2),this.j.h(e,n,i,t)}}},node:{get:function(){return this.Sh},set:function(e){if(this.Sh!==e){this.Sh=e,e.Va();var t=this.network.layout,n=Wt.alloc(),i=t.ni(e,n);t=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(t)&&(t=0),isNaN(r)&&(r=0),this.j.h(t,r,o,i),Wt.free(n),!(e instanceof nr)&&(e=e.locationObject.ga(Lr),e.w())){this.o.h(e.x-t,e.y-r);return}this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(e){this.j.D(e)||this.j.assign(e)}},focus:{get:function(){return this.o},set:function(e){this.o.D(e)||this.o.assign(e)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(e){var t=this.j;t.x+this.o.x!==e&&(t.ka(),t.x=e-this.o.x,t.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(e){var t=this.j;t.y+this.o.y!==e&&(t.ka(),t.y=e-this.o.y,t.freeze())}},focusX:{get:function(){return this.o.x},set:function(e){var t=this.o;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},focusY:{get:function(){return this.o.y},set:function(e){var t=this.o;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},x:{get:function(){return this.j.x},set:function(e){var t=this.j;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},y:{get:function(){return this.j.y},set:function(e){var t=this.j;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},width:{get:function(){return this.j.width},set:function(e){var t=this.j;t.width!==e&&(t.ka(),t.width=e,t.freeze())}},height:{get:function(){return this.j.height},set:function(e){var t=this.j;t.height!==e&&(t.ka(),t.height=e,t.freeze())}},network:{get:function(){return this.ob},set:function(e){this.ob=e}},sourceVertexes:{get:function(){for(var e=new Zt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Zt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Zt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);for(t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var e=new Xt,t=this.sourceEdges;t.next();)e.add(t.value);for(t=this.destinationEdges;t.next();)e.add(t.value);return e.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),us.prototype.deleteDestinationEdge=us.prototype.Jl,us.prototype.addDestinationEdge=us.prototype.zl,us.prototype.deleteSourceEdge=us.prototype.Kl,us.prototype.addSourceEdge=us.prototype.Cl,us.className="LayoutVertex",us.standardComparer=fv,us.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.Sh;var n=t.Sh;if(e!==null){if(n!==null){for(t=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),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 n!==null?-1:0}return 1}return t!==null?-1:0};function ru(e){Bi(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}ru.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ru.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+At(this);return 0<e&&(t+=this.$k!==null?"("+this.$k.toString()+")":"",1<e&&(t+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),t},ru.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},ru.prototype.commit=function(){},ru.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},ft.Object.defineProperties(ru.prototype,{network:{get:function(){return this.nb},set:function(e){this.nb=e}},data:{get:function(){return this.ub},set:function(e){this.ub!==e&&(this.ub=e)}},link:{get:function(){return this.$k},set:function(e){this.$k!==e&&(this.$k=e)}},fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}}}),ru.prototype.getOtherVertex=ru.prototype.Ax,ru.className="LayoutEdge";function Os(e){Qo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new mi(NaN,NaN).freeze(),this.tf=new mi(10,10).freeze(),this.Jb=_p,this.Rb=mm,this.nd=zp,this.hd=x1,e&&Object.assign(this,e)}di(Os,Qo),Os.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.zo=this.zo,e.yo=this.yo,e.yg.assign(this.yg),e.tf.assign(this.tf),e.Jb=this.Jb,e.Rb=this.Rb,e.nd=this.nd,e.hd=this.hd},Os.prototype.qb=function(e){e.classType===Os?e===zp||e===vm||e===pv||e===gm?this.sorting=e:e===mm||e===pc?this.arrangement=e:e===_p||e===pm?this.alignment=e:Ke("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},Os.prototype.doLayout=function(e){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var t=this.ex(e);e=this.diagram;for(var n=t.copy().iterator;n.next();){var i=n.value;if(!i.ph()||i.fromNode===null&&i.toNode===null){if(i.Va(),i instanceof nr)for(i=i.memberParts;i.next();)t.remove(i.value)}else t.remove(i)}var r=t.Fa();if(r.length!==0){switch(this.sorting){case gm:r.reverse();break;case zp:r.sort(this.comparer);break;case vm:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var a=this.wrappingWidth;switch(isNaN(a)&&e!==null?(t=e.padding,a=Math.max(e.viewportBounds.width-t.left-t.right,0)):a=Math.max(this.wrappingWidth,0),0>=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),e!==null&&e.Ea("Layout"),i=[],this.alignment){case pm:var l=t,u=n,f=Wt.alloc(),p=Math.max(this.cellSize.width,1);if(!isFinite(p))for(var x=p=0;x<r.length;x++){var A=this.ni(r[x],f);p=Math.max(p,A.width)}if(p=Math.max(p+l,1),x=Math.max(this.cellSize.height,1),!isFinite(x))for(A=x=0;A<r.length;A++){var R=this.ni(r[A],f);x=Math.max(x,R.height)}x=Math.max(x+u,1),A=this.arrangement;for(var z=R=this.arrangementOrigin.x,V=this.arrangementOrigin.y,ye=0,se=0,De=0;De<r.length;De++){var ze=r[De],je=this.ni(ze,f),ot=Math.ceil((je.width+l)/p)*p,Nt=Math.ceil((je.height+u)/x)*x;switch(A){case pc:var Vn=Math.abs(z-je.width);break;default:Vn=z+je.width}switch((0<o&&ye>o-1||0<a&&0<ye&&Vn-R>a)&&(i.push(new Wt(0,V,a+l,se)),ye=0,z=R,V+=se,se=0),se=Math.max(se,Nt),A){case pc:je=-je.width;break;default:je=0}switch(ze.moveTo(z+je,V),A){case pc:z-=ot;break;default:z+=ot}ye++}i.push(new Wt(0,V,a+l,se)),Wt.free(f);break;case _p:for(u=a,p=o,x=t,A=n,a=Wt.alloc(),R=Math.max(this.cellSize.width,1),o=V=f=0,l=ce.alloc(),z=0;z<r.length;z++)se=r[z],ye=this.ni(se,a),se=xh(se,se.locationObject,se.locationSpot,l),f=Math.max(f,se.x),V=Math.max(V,ye.width-se.x),o=Math.max(o,se.y);switch(z=this.arrangement,z){case pc:f+=x;break;default:V+=x}R=isFinite(R)?Math.max(R+x,1):Math.max(f+V,1);var oi=se=this.arrangementOrigin.x;for(De=this.arrangementOrigin.y,V=0,u>=f&&(u-=f),f=ze=0,ot=Math.max(this.cellSize.height,1),je=o=0,Nt=!0,ye=ce.alloc(),Vn=0;Vn<r.length;Vn++){var ei=r[Vn],Dn=this.ni(ei,a),pn=xh(ei,ei.locationObject,ei.locationSpot,l);if(0<V)switch(z){case pc:oi=(oi-se-(Dn.width-pn.x))/R,oi=et.$(Math.round(oi),oi)?Math.round(oi):Math.floor(oi),oi=oi*R+se;break;default:oi=(oi-se+pn.x)/R,oi=et.$(Math.round(oi),oi)?Math.round(oi):Math.ceil(oi),oi=oi*R+se}else switch(z){case pc:ze=oi+pn.x+Dn.width;break;default:ze=oi-pn.x}switch(z){case pc:var er=-(oi+pn.x)+ze;break;default:er=oi+Dn.width-pn.x-ze}if(0<p&&V>p-1||0<u&&0<V&&er>u){for(i.push(new Wt(0,Nt?De-o:De,u+x,je+o+A)),oi=0;oi<V&&Vn!==V;oi++){er=r[Vn-V+oi];var Vi=xh(er,er.locationObject,er.locationSpot,ye);er.moveTo(er.position.x,er.position.y+o-Vi.y)}je+=A,De=Nt?De+je:De+(je+o),V=je=o=0,oi=se,Nt=!1}switch(oi===se&&(f=z===pc?Math.max(f,Dn.width-pn.x):Math.min(f,-pn.x)),o=Math.max(o,pn.y),je=Math.max(je,Dn.height-pn.y),isFinite(ot)&&(je=Math.max(je,Math.max(Dn.height,ot)-pn.y)),Nt?ei.moveTo(oi-pn.x,De-pn.y):ei.moveTo(oi-pn.x,De),z){case pc:oi-=pn.x+x;break;default:oi+=Dn.width-pn.x+x}V++}if(i.push(new Wt(0,De,u+x,(Nt?je:je+o)+A)),r.length!==V)for(u=0;u<V;u++)p=r[r.length-V+u],x=xh(p,p.locationObject,p.locationSpot,l),p.moveTo(p.position.x,p.position.y+o-x.y);if(ce.free(l),ce.free(ye),z===pc)for(r=0;r<i.length;r++)o=i[r],o.width+=f,o.x-=f;else for(r=0;r<i.length;r++)o=i[r],o.x>f&&(o.width+=o.x-f,o.x=f);Wt.free(a)}for(l=o=a=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),a=Math.min(a,u.y),o=Math.max(o,u.x+u.width);this.arrangement===pc?this.commitLayers(i,new ce(r+t/2-(o+r),a-n/2)):this.commitLayers(i,new ce(r-t/2,a-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Os.prototype.commitLayers=function(){};function x1(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}ft.Object.defineProperties(Os.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(e){this.zo!==e&&(0<e||isNaN(e))&&(this.zo=e,this.isViewportSized=isNaN(e),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(e){this.yo!==e&&(0<e||isNaN(e))&&(this.yo=e,this.C())}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||(this.yg.assign(e),this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf.D(e)||(this.tf.assign(e),this.C())}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb===e||e!==_p&&e!==pm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==mm&&e!==pc||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==pv&&e!==gm&&e!==zp&&e!==vm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var pm=new Kt(Os,"Position",0),_p=new Kt(Os,"Location",1),mm=new Kt(Os,"LeftToRight",2),pc=new Kt(Os,"RightToLeft",3),pv=new Kt(Os,"Forward",4),gm=new Kt(Os,"Reverse",5),zp=new Kt(Os,"Ascending",6),vm=new Kt(Os,"Descending",7);Os.className="GridLayout",Os.standardComparer=x1,Os.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var 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 t!==null?-1:0},Os.Position=pm,Os.Location=_p,Os.LeftToRight=mm,Os.RightToLeft=pc,Os.Forward=pv,Os.Reverse=gm,Os.Ascending=zp,Os.Descending=vm;function ho(){this.On=new Zt,this.Dn=new Zt,this.Pa=new Zt,this.cf=new Zn,this.bf=new Zn,this.aj=new Zn,this.H=null,this.tp=!1}U=ho.prototype,U.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},U.Xe=function(e){this.H=e},U.oi=function(e){if(e instanceof Xn){if(this.On.add(e),e instanceof nr){var t=e.containingGroup;t===null?this.H.ai.add(e):t.gl.add(e),t=e.layout,t!==null&&(t.diagram=this.H)}}else e instanceof Fn?this.Dn.add(e):e instanceof Xr||this.Pa.add(e);t=e.data,t===null||e instanceof Xr||(e instanceof Fn?this.bf.add(t,e):this.cf.add(t,e))},U.pc=function(e){if(e.Ej(),e instanceof Xn){if(this.On.remove(e),e instanceof nr){var t=e.containingGroup;t===null?this.H.ai.remove(e):t.gl.remove(e),t=e.layout,t!==null&&(t.diagram=null)}}else e instanceof Fn?this.Dn.remove(e):e instanceof Xr||this.Pa.remove(e);t=e.data,t===null||e instanceof Xr||(e instanceof Fn?this.bf.remove(t):this.cf.remove(t))},U.Wd=function(){var e=this.H;if(e!==null){for(var t=e.nodeTemplateMap.iterator;t.next();){var n=t.value,i=t.key;(!n.Zc()||n instanceof nr)&&Ke('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(t=e.groupTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof nr||Ke('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(t=e.linkTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof Fn||Ke('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(t=Dt(),n=e.selection.iterator;n.next();)(i=n.value.data)&&t.push(i);for(n=Dt(),e=e.highlighteds.iterator;e.next();)(i=e.value.data)&&n.push(i);for(e=Dt(),i=this.nodes.iterator;i.next();){var r=i.value;r.data!==null&&(e.push(r.data),e.push(r.location))}for(i=this.links.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(i=this.parts.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<t.length;i++)r=this.Lc(t[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<e.length;i+=2)r=this.Lc(e[i]),r!==null&&(r.location=e[i+1]);Jt(t),Jt(n),Jt(e)}},ho.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ho.prototype.addModeledParts=function(e,t){var n=this,i=this.diagram.model;e.forEach(function(r){i.lb(r)&&S1(n,r,!1)}),e.forEach(function(r){i.lb(r)&&n.resolveReferencesForData(r)}),t!==!1&&uf(this.diagram,!1)};function S1(e,t,n){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.cf.contains(t)){n===void 0&&(n=!0);e:{if(t!=null&&!e.H.undoManager.isUndoingRedoing&&!e.cf.contains(t)){var i=e.Ro(t),r=E1(e,t,i);if(r!==null&&($u(r),r=r.copy(),r!==null)){var o=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=t,e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=o,i=r;break e}}i=null}i!==null&&n&&e.resolveReferencesForData(t)}}ho.prototype.insertLink=function(){return null},ho.prototype.resolveReferencesForData=function(){},ho.prototype.Ro=function(e){return this.H.model.Ro(e)};function E1(e,t,n){e=e.H;var i=e.model;return i.Xj()&&i.Yu(t)?(t=e.groupTemplateMap.I(n),t===null&&(t=e.groupTemplateMap.I(""),t===null&&(T1||(T1=!0,jn('No Group template found for category "'+n+'"'),jn(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(C1||(C1=!0,jn('No Node template found for category "'+n+'"'),jn(" Using default node template")),t=e.ny))),t}ho.prototype.getLinkCategoryForData=function(){return""},ho.prototype.setLinkCategoryForData=function(){},ho.prototype.setFromNodeForLink=function(){},ho.prototype.setToNodeForLink=function(){},ho.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(N1||(N1=!0,jn('No Link template found for category "'+e+'"'),jn(" Using default link template")),n=t.my)),n},ho.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ho.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},ho.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Xc(this.diagram,e,!1),this.unresolveReferencesForPart(e))},ho.prototype.unresolveReferencesForPart=function(){},ho.prototype.removeDataForLink=function(){},ho.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},ho.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof Xn?e:null)},ho.prototype.findLinkForKey=function(){return null},U=ho.prototype,U.Lc=function(e){if(e===null)return null;var t=this.cf.I(e);return t!==null?t:t=this.bf.I(e)},U.ii=function(e){return e===null?null:(e=this.cf.I(e),e instanceof Xn?e:null)},U.Kc=function(e){return e===null?null:this.bf.I(e)},U.ms=function(e){for(var t=0;t<arguments.length;++t);t=new Zt;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 a=arguments[o];if(at(a)&&mv(this,r,a)){t.add(i);break}}}return t.iterator},U.ls=function(e){for(var t=0;t<arguments.length;++t);t=new Zt;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 a=arguments[o];if(at(a)&&mv(this,r,a)){t.add(i);break}}}return t.iterator};function mv(e,t,n){for(var i in n){var r=t[i],o=n[i];if(hn(o)){if(!hn(r)||r.length<o.length)return!1;for(var a=0;a<r.length;a++){var l=o[a];if(l!==void 0&&!w1(e,r[a],l))return!1}}else if(!w1(e,r,o))return!1}return!0}function w1(e,t,n){if(typeof n=="function"){if(!n(t))return!1}else if(n instanceof RegExp){if(!t||!n.test(t.toString()))return!1}else if(at(t)&&at(n)){if(!mv(e,t,n))return!1}else if(t!==n)return!1;return!0}ho.prototype.doModelChanged=function(e){if(this.H){var t=this.H;if(e.model===t.model){var n=e.change;if(t.doModelChanged(e),t.aa){t.aa=!1;try{var i=e.modelChange;if(i!=="")if(n===Eo){if(i==="nodeCategory"){var r=this.Lc(e.object),o=e.newValue;r!==null&&typeof o=="string"&&(r.category=o)}else i==="nodeDataArray"&&(this.Gs(e.oldValue),this.addModeledParts(e.newValue));t.isModified=!0}else if(n===qo){var a=e.newValue;i==="nodeDataArray"&&at(a)&&S1(this,a),t.isModified=!0}else if(n===ia){var l=e.oldValue;i==="nodeDataArray"&&at(l)&&this.ip(l),t.isModified=!0}else n===Es&&(i==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===Eo){var u=e.propertyName,f=e.object;f===t.model?(u==="nodeKeyProperty"||u==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(f,u),t.isModified=!0}else if(n===qo||n===ia){var p=e.change===qo,x=p?e.newParam:e.oldParam,A=p?e.newValue:e.oldValue,R=this.aj.I(e.object);if(Array.isArray(R))for(e=0;e<R.length;e++){var z=R[e];if(p)F0(z,A,x,!0);else if(!(0>x)){var V=x+xp(z);z.pc(V,!0),Ig(z,V,x)}}t.isModified=!0}}finally{t.aa=!0}}}}},ho.prototype.updateAllTargetBindings=function(e){e===void 0&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},ho.prototype.rp=function(){for(var e=this.H.model,t=new Zt,n=e.nodeDataArray,i=0;i<n.length;i++)t.add(n[i]);var r=[];for(this.nodes.each(function(a){a.data===null||t.contains(a.data)||r.push(a.data)}),this.parts.each(function(a){a.data===null||t.contains(a.data)||r.push(a.data)}),r.forEach(function(a){P1(e,a,!1)}),i=0;i<n.length;i++){var o=n[i];this.Lc(o)===null&&D1(e,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()},ho.prototype.refreshDataBoundLinks=function(){},ho.prototype.updateRelationshipsFromData=function(){},ho.prototype.updateDataBindings=function(e,t){if(typeof t=="string"){var n=this.Lc(e);if(n!==null)n.La(t);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var a=r[o].sx(e);a!==null&&(n===null&&(n=Dt()),n.push(a))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(t);Jt(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function gv(e,t){var n=t.Hh;if(hn(n)){var i=e.aj.I(n);if(i===null)i=[],i.push(t),e.aj.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}function vv(e,t,n){bd(t,function(a){a=a.O.s;for(var l=a.length,u=0;u<l;u++)rp(n,a[u])});var i=t.Hh;if(hn(i)){var r=e.aj.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&e.aj.remove(i);break}}}}ho.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var i=new Zn;if(hn(e))for(var r=0;r<e.length;r++)ym(this,e[r],t,i,n);else for(e=e.iterator;e.next();)ym(this,e.value,t,i,n);if(t!==null){n=t.model,e=t.toolManager.findTool("Dragging"),e=e!==null?e.dragOptions.dragsLink:t.Wm.dragsLink,r=new Zt;for(var o=new Zn,a=i.iterator;a.next();){var l=a.value;if(l instanceof Fn)e||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof Xn&&l.data!==null&&n.Tl()){var u=l;l=a.key;var f=l.pg();f!==null&&(f=i.I(f),f!==null?(n.qe(u.data,n.wa(f.data)),u=t.Kc(u.data),l=l.kh(),l!==null&&u!==null&&o.add(l,u)):n.qe(u.data,void 0))}}if(0<r.count&&t.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(t!==null&&this.H!==null&&(t=t.model,n=t.afterCopyFunction,n!==null)){var p=new Zn;i.each(function(x){x.key.data!==null&&p.add(x.key.data,x.value.data)}),n(p,t,this.H.model)}for(t=i.iterator;t.next();)t.value.La();return i};function ym(e,t,n,i,r){if(t===null||r&&!t.canCopy())return null;if(i.contains(t))return i.I(t);var o=e.copyPartData(t,n);if(!(o instanceof Ai))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(t,o),t instanceof Xn){for(var a=t.linksConnected;a.next();){var l=a.value;if(l.fromNode===t){var u=i.I(l);u!==null&&(u.fromNode=o)}l.toNode===t&&(l=i.I(l),l!==null&&(l.toNode=o))}if(t instanceof nr&&o instanceof nr)for(t=t.memberParts;t.next();)a=ym(e,t.value,n,i,r),a instanceof Fn||a===null||(a.containingGroup=o)}else if(t instanceof Fn&&o instanceof Fn)for(a=t.fromNode,a!==null&&(a=i.I(a),a!==null&&(o.fromNode=a)),a=t.toNode,a!==null&&(a=i.I(a),a!==null&&(o.toNode=a)),t=t.labelNodes;t.next();)a=ym(e,t.value,n,i,r),a!==null&&a instanceof Xn&&(a.labeledLink=o);return o}ho.prototype.copyPartData=function(e,t){var n=null,i=e.data;if(i!==null&&t!==null){var r=t.model;e instanceof Fn||(i=r.copyNodeData(i),at(i)&&(r.xf(i),n=t.Lc(i)))}else $u(e),n=e.copy(),n!==null&&(r=this.H,t!==null?t.add(n):i!==null&&r!==null&&r.commandHandler!==null&&r.commandHandler.copiesClipboardData&&(t=r.model,r=null,n instanceof Fn||(r=t.copyNodeData(i)),at(r)&&(n.data=r)));return n},ft.Object.defineProperties(ho.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(e){this.tp=e}}}),ho.prototype.updateAllRelationshipsFromData=ho.prototype.rp,ho.prototype.findLinksByExample=ho.prototype.ls,ho.prototype.findNodesByExample=ho.prototype.ms,ho.prototype.findLinkForData=ho.prototype.Kc,ho.prototype.findNodeForData=ho.prototype.ii,ho.prototype.findPartForData=ho.prototype.Lc,ho.prototype.findNodeForKey=ho.prototype.Vb,ho.prototype.removeModeledPart=ho.prototype.ip,ho.prototype.removeModeledParts=ho.prototype.Gs,ho.prototype.rebuildParts=ho.prototype.Wd;var C1=!1,T1=!1,N1=!1;ho.className="PartManager";function xs(e){ho.apply(this,arguments)}di(xs,ho),xs.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),A1(this,e.linkDataArray)},xs.prototype.addModeledParts=function(e){for(ho.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)Mf(e.value);uf(this.diagram,!1)};function A1(e,t){t.forEach(function(n){k1(e,n)}),uf(e.diagram,!1)}function k1(e,t){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.bf.contains(t)){var n=e.getLinkCategoryForData(t),i=e.findLinkTemplateForCategory(n);if(i!==null){$u(i);var r=i.copy();if(r!==null){i=e.diagram.skipsModelSourceBindings,e.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=t,n=e.diagram.model;var o=Em(n,t,!0);o!==""&&(r.fromPortId=o),o=Su(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof Xn&&(r.fromNode=o)),o=Em(n,t,!1),o!==""&&(r.toPortId=o),o=Su(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof Xn&&(r.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(a){a=e.Vb(a),a!==null&&(a.labeledLink=r)}),e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=i}}}}xs.prototype.removeAllModeledParts=function(){var e=this.diagram.model;I1(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function I1(e,t){t.forEach(function(n){e.ip(n)})}xs.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},xs.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},xs.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},xs.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},xs.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},xs.prototype.findPartForKey=function(e){var t=ho.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},xs.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},xs.prototype.doModelChanged=function(e){var t=this;if(ho.prototype.doModelChanged.call(this,e),this.diagram){var n=this.diagram;if(e.model===n.model){var i=e.change;if(n.aa){n.aa=!1;try{var r=e.modelChange;if(r!==""){if(i===Eo){if(r==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var a=this.Vb(e.newValue);o.fromNode=a}}else if(r==="linkToKey"){var l=this.Kc(e.object);if(l!==null){var u=this.Vb(e.newValue);l.toNode=u}}else if(r==="linkFromPortId"){var f=this.Kc(e.object);if(f!==null){var p=e.newValue;typeof p=="string"&&(f.fromPortId=p)}}else if(r==="linkToPortId"){var x=this.Kc(e.object);if(x!==null){var A=e.newValue;typeof A=="string"&&(x.toPortId=A)}}else if(r==="nodeGroupKey"){var R=this.Lc(e.object);if(R!==null){var z=e.newValue;if(z!==void 0){var V=this.Vb(z);V instanceof nr?R.containingGroup=V:R.containingGroup=null}else R.containingGroup=null}}else if(r==="linkLabelKeys"){var ye=this.Kc(e.object);if(ye!==null){var se=e.oldValue,De=e.newValue;Array.isArray(se)&&se.forEach(function(pn){0<=De.indexOf(pn)||(pn=t.Vb(pn),pn!==null&&(pn.labeledLink=null))}),Array.isArray(De)&&De.forEach(function(pn){pn=t.Vb(pn),pn!==null&&(pn.labeledLink=ye)})}}else if(r==="linkCategory"){var ze=this.Kc(e.object),je=e.newValue;ze!==null&&typeof je=="string"&&(ze.category=je)}else r==="linkDataArray"&&(I1(this,e.oldValue),A1(this,e.newValue));n.isModified=!0}else if(i===qo){var ot=e.newValue;if(r==="linkDataArray"&&typeof ot=="object"&&ot!==null)k1(this,ot);else if(r==="linkLabelKeys"&&Zh(ot)){var Nt=this.Kc(e.object),Vn=this.Vb(ot);Nt!==null&&Vn!==null&&(Vn.labeledLink=Nt)}n.isModified=!0}else if(i===ia){var oi=e.oldValue;if(r==="linkDataArray"&&typeof oi=="object"&&oi!==null)this.ip(oi);else if(r==="linkLabelKeys"&&Zh(oi)){var ei=this.Vb(oi);ei!==null&&(ei.labeledLink=null)}n.isModified=!0}}else if(i===Eo){var Dn=e.propertyName;e.object!==n.model||Dn!=="linkFromKeyProperty"&&Dn!=="linkToKeyProperty"&&Dn!=="linkFromPortIdProperty"&&Dn!=="linkToPortIdProperty"&&Dn!=="linkLabelKeysProperty"&&Dn!=="nodeIsGroupProperty"&&Dn!=="nodeGroupKeyProperty"&&Dn!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},xs.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Zt,i=t.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){H1(t,o,!1)}),i.forEach(function(o){e.Kc(o)===null&&U1(t,o,!1)})},xs.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;if(e instanceof Fn){var r=Su(i,t,!0);if(r=n.Vb(r),e.fromNode=r,r=Su(i,t,!1),r=n.Vb(r),e.toNode=r,t=i.Ef(t),0<t.length||0<e.labelNodes.count){if(t.length===1&&e.labelNodes.count===1){r=t[0];var o=e.labelNodes.first();if(i.wa(o.data)===r)return}r=new Zt().addAll(t);var a=new Zt;e.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&a.add(l))}),t=a.copy(),t.hp(r),r=r.copy(),r.hp(a),(0<t.count||0<r.count)&&(t.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink===e&&(l.labeledLink=null)}),r.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink!==e&&(l.labeledLink=e)}))}}else!(e instanceof Xr)&&(t=i.lh(t),t=n.findPartForKey(t),t===null||t instanceof nr)&&(e.containingGroup=t)}}},xs.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){i=i.iterator;for(var o={};i.next();){var a=i.value;t.lb(a)?r instanceof nr&&t.lh(a)===n&&(a=this.Lc(a),a!==null&&(a.containingGroup=r)):(o.link=this.Kc(a),o.link!==null&&r instanceof Xn&&(Su(t,a,!0)===n&&(o.link.fromNode=r),Su(t,a,!1)===n&&(o.link.toNode=r),a=t.Ef(a),Array.isArray(a)&&a.some(function(l){return function(u){return u===n?(r.labeledLink=l.link,!0):!1}}(o)))),o={link:o.link}}gc(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof nr&&(r.containingGroup=e))}},xs.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Xn){var n=t.wa(e.data);if(n!==void 0){for(var i=e.linksConnected;i.next();)mc(t,n,i.value.data);if(e.isLinkLabel&&(i=e.labeledLink,i!==null&&mc(t,n,i.data)),e instanceof nr)for(e=e.memberParts;e.next();)i=e.value.data,t.lb(i)&&mc(t,n,i)}}},xs.prototype.copyPartData=function(e,t){var n=ho.prototype.copyPartData.call(this,e,t);if(e instanceof Fn)if(e=e.data,e!==null&&t!==null){var i=t.model;e=i.Jo(e),typeof e=="object"&&e!==null&&(i.fi(e),n=t.Kc(e))}else n!==null&&(t=this.diagram,e!==null&&t!==null&&t.commandHandler!==null&&t.commandHandler.copiesClipboardData&&(t=t.model.Jo(e),typeof t=="object"&&t!==null&&(n.data=t)));return n},xs.prototype.insertLink=function(e,t,n,i){var r=this.diagram,o=r.model,a=r.toolManager.findTool("Linking"),l="";if(e!==null&&(t===null&&(t=e),l=t.portId,l===null&&(l="")),t="",n!==null&&(i===null&&(i=n),t=i.portId,t===null&&(t="")),i=a.archetypeLinkData,i instanceof Fn){if($u(i),o=i.copy(),o!==null)return o.fromNode=e,o.fromPortId=l,o.toNode=n,o.toPortId=t,r.add(o),e=a.archetypeLabelNodeData,e instanceof Xn&&($u(e),e=e.copy(),e!==null&&(e.labeledLink=o,r.add(e))),o}else if(i!==null&&(i=o.Jo(i),typeof i=="object"&&i!==null))return e!==null&&Ff(o,i,o.wa(e.data),!0),Bf(o,i,l,!0),n!==null&&Ff(o,i,o.wa(n.data),!1),Bf(o,i,t,!1),o.fi(i),e=a.archetypeLabelNodeData,e===null||e instanceof Xn||(e=o.copyNodeData(e),typeof e=="object"&&e!==null&&(o.xf(e),e=o.wa(e),e!==void 0&&o.Bu(i,e))),r.Kc(i);return null},xs.prototype.findLinkForKey=xs.prototype.findLinkForKey,xs.prototype.findPartForKey=xs.prototype.findPartForKey,xs.prototype.removeAllModeledParts=xs.prototype.removeAllModeledParts,xs.prototype.addModeledParts=xs.prototype.addModeledParts,xs.prototype.addAllModeledParts=xs.prototype.addAllModeledParts,xs.className="GraphLinksPartManager";function Du(){ho.apply(this,arguments),this.Sg=null}di(Du,ho);function bm(e,t,n){if(t!==null&&n!==null&&n.kh()===null){var i=e.diagram.toolManager.findTool("Linking"),r=t,o=n;if(e.diagram.isTreePathToChildren||(r=n,o=t),(i===null||!yn(i,r,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),i=e.findLinkTemplateForCategory(t),i!==null&&($u(i),i=i.copy(),i!==null))){var a=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,i.Tf=t,i.ub=n.data,i.fromNode=r,i.toNode=o,e.diagram.add(i),i.ub=null,i.data=n.data,e.diagram.skipsModelSourceBindings=a}}}Du.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Du.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Du.prototype.setFromNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren)i.qe(e.data,i.wa(t));else{var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.toNode!==null?e.toNode.data:null)),this.Sg=r}},Du.prototype.setToNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.fromNode!==null?e.fromNode.data:null)),this.Sg=r}else i.qe(e.data,i.wa(t))},Du.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Du.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Du.prototype.doModelChanged=function(e){if(ho.prototype.doModelChanged.call(this,e),this.diagram){var t=this.diagram;if(e.model===t.model){var n=e.change;if(t.aa){t.aa=!1;try{var i=e.modelChange;if(i!==""){if(n===Eo){if(i==="nodeParentKey"){var r=e.object,o=this.Vb(e.newValue),a=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(a!==null){var l=a.kh();l!==null?o===null?t.remove(l):t.isTreePathToChildren?l.fromNode=o:l.toNode=o:bm(this,o,a)}}else if(i==="parentLinkCategory"){var u=this.ii(e.object),f=e.newValue;if(u!==null&&typeof f=="string"){var p=u.kh();p!==null&&(p.category=f)}}t.isModified=!0}}else if(n===Eo){var x=e.propertyName;e.object===t.model&&x==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Du.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;e instanceof Xn&&(t=i.mh(t),t=n.Vb(t),i=e.pg(),t!==i&&(i=e.kh(),t!==null?i!==null?n.isTreePathToChildren?i.fromNode=t:i.toNode=t:bm(this,t,e):i!==null&&Xc(n,i,!1)))}}},Du.prototype.updateDataBindings=function(e,t){ho.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Du.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){for(i=i.iterator;i.next();){var o=i.value;t.lb(o)&&r instanceof Xn&&t.mh(o)===n&&bm(this,r,this.ii(o))}gc(t,n)}e=t.mh(e),e!==void 0&&r instanceof Xn&&(e=this.Vb(e),bm(this,e,r))}},Du.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Xn){var n=t.wa(e.data),i=this.Kc(e.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(ia,"parts",r,i,null,o,null),o=i.layerChanged,o!==null&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,e=e.linksConnected;e.next();)r=e.value,r=(i?r.toNode:r.fromNode).data,t.lb(r)&&mc(t,n,r)}},Du.prototype.insertLink=function(e,t,n){t=this.diagram.model;var i=e,r=n;return this.diagram.isTreePathToChildren||(i=n,r=e),i!==null&&r!==null?(t.qe(r.data,t.wa(i.data)),r.kh()):null},Du.prototype.findLinkForKey=Du.prototype.findLinkForKey,Du.className="TreePartManager";function pi(e,t){this.kl=new Zt,this.il=new Zt,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Bi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Zn,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 Zn,this.Lt=new Xt,this.Wg=!1,this.o=null,this.undoManager=new _o,e!==void 0&&(hn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}pi.prototype.cloneProtected=function(e){e.xa=this.xa,e.Sm=this.Sm,e.Gg=this.Gg,e.Th=this.Th,e.bl=this.bl,e.Bk=this.Bk,e.Km=this.Km,e.Jm=this.Jm,e.Mm=this.Mm,e.xm=this.xm,e.lj=this.lj},pi.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},pi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},pi.prototype.toString=function(e){if(e===void 0&&(e=0),1<e)return this.np();var t=(this.name!==""?this.name:"")+" Model";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+fn(r)}}return t},pi.prototype.xA=function(e){e.change!==Es&&Ke("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof wa?(O1(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},pi.prototype.Qv=function(e,t){var n=this,i=!1,r=new Zt,o=new Zt,a=new Zt,l=this.vh;e.changes.each(function(x){x.model===n&&(x.modelChange==="nodeDataArray"?x.change===qo?r.add(x.newValue):x.change===ia&&a.add(x.oldValue):n.lb(x.object)?o.add(x.object):x.change!==Eo||n.modelData!==x.object&&x.propertyName!=="modelData"?x.object!==null&&(l&&l.contains(x.object)?l.get(x.object).each(function(A){n.lb(A)&&o.add(A)}):x.object instanceof pi||n.ri()&&n.Jc(x.object)||L1(n,x.object).each(function(A){o.add(A)})):i=!0)});var u=this.il;u.clear(),r.each(function(x){u.add(n.wa(x)),t||o.add(x)});var f=this.kl;f.clear(),a.each(function(x){f.add(n.wa(x)),t&&o.add(x)}),e=n.cloneDeep(o.Fa());var p=null;return i&&(p===null&&(p={}),p.modelData=this.cloneDeep(this.modelData)),0<u.count&&(p===null&&(p={}),t?p.removedNodeKeys=u.Fa():p.insertedNodeKeys=u.Fa()),0<e.length&&(p===null&&(p={}),p.modifiedNodeData=e),0<f.count&&(p===null&&(p={}),t?p.insertedNodeKeys=f.Fa():p.removedNodeKeys=f.Fa()),f.clear(),u.clear(),p},pi.prototype.cloneDeep=function(e){return Pf(this,e,!0)};function Pf(e,t,n,i,r,o){function a(x,A){l?(x.__gohashid===void 0&&o.push(x),i.set(x,A)):(x=eo++,i.set(x,A),r.set(x,t))}if(!at(t))return t;o||(o=[]);var l=Object.isExtensible(t);if(i||(i=new Zn),l){var u=i.get(t);if(u)return u}else for(r||(r=new Zn),u=r.iterator;u.next();){var f=u.key;if(u.value===t&&(f=i.get(f)))return f}if(Array.isArray(t)){u=[],a(t,u);for(var p=0;p<t.length;p++)u.push(Pf(e,t[p],!1,i,r,o))}else if(t instanceof ce||t instanceof mi||t instanceof Wt||t instanceof vi||t instanceof si)u=t.copy(),a(t,u);else{if(t instanceof ao||t instanceof Pn||t instanceof Kt)return t;if(t instanceof Xt)u=new Xt().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Zt)u=new Zt().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Zn)u=new Zn().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Date)u=new Date(t.getTime()),a(t,u);else if(t instanceof RegExp)u=new RegExp(t),a(t,u),u.lastIndex=t.lastIndex;else if(typeof t.copy=="function")u=t.copy(),a(t,u);else for(p in u={},a(t,u),t)p!=="__gohashid"&&(u[p]=Pf(e,t[p],!1,i,r,o))}return n&&o.forEach(function(x){delete x.__gohashid}),u}U=pi.prototype,U.quote=function(e){return JSON.stringify(e).replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})},U.rm=function(){var e="";return this.name!==""&&(e+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(e+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(e+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(e+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(e+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(e+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(e+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(e+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),e},U.gp=function(e){e.name&&(this.name=e.name),e.dataFormat&&(this.dataFormat=e.dataFormat),e.isReadOnly&&(this.isReadOnly=!0),e.nodeKeyProperty&&(this.nodeKeyProperty=e.nodeKeyProperty),e.copiesArrays&&(this.copiesArrays=!0),e.copiesArrayObjects&&(this.copiesArrayObjects=!0),e.copiesKey===!1&&(this.copiesKey=!1),e.nodeCategoryProperty&&(this.nodeCategoryProperty=e.nodeCategoryProperty)};function M1(e,t){t=t.modelData,at(t)&&(e.dm(t),e.modelData=t)}U.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!R1(n,e[n])){t=!0;break}return e="",t&&(e=`,
|
|
|
"modelData": `+yv(this,this.modelData)),e+`,
|
|
|
"nodeDataArray": `+Kh(this,this.nodeDataArray,!0)},U.kv=function(e){M1(this,e),e=e.nodeDataArray,hn(e)&&(this.dm(e),this.nodeDataArray=e)};function O1(e,t){function n(r,o){if((o=o.part)&&(o=o.data,r!==o)){var a=i.get(r);a===null?(a=new Zt,a.add(o),i.add(r,a)):a.add(o)}}var i=e.vh;i===null&&(i=new Zn,t.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===Eo?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===qo||o===ia)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),e.vh=i)}function L1(e,t){for(var n=new Zt,i=0;i<e.nodeDataArray.length;i++){var r=e.nodeDataArray[i];xm(e,t,r,r,n)}return n}function xm(e,t,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o];if(a===t)return r.add(i),!0;if(xm(e,t,a,i,r))return!0}else if(at(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(a=n[o],a===t)return r.add(i),!0;if(xm(e,t,a,i,r))return!0}return!1}U.Pv=function(e,t){var n=this,i=!1,r=new Zt,o=new Zt,a=new Zt,l=this.vh;e.changes.each(function(p){p.model===n&&(p.modelChange==="nodeDataArray"?p.change===qo?r.add(p.newValue):p.change===ia&&a.add(p.oldValue):n.lb(p.object)?o.add(p.object):p.change!==Eo||n.modelData!==p.object&&p.propertyName!=="modelData"?p.object!==null&&(l&&l.contains(p.object)?l.get(p.object).each(function(x){n.lb(x)&&o.add(x)}):p.object instanceof pi||n.ri()&&n.Jc(p.object)||L1(n,p.object).each(function(x){o.add(x)})):i=!0)});var u=this.il;u.clear(),r.each(function(p){u.add(n.wa(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(n.wa(p)),t&&o.add(p)}),e="",i&&(e+=`,
|
|
|
"modelData": `+yv(this,this.modelData)),0<u.count&&(e+=(t?this.Yv:this.Wv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.jy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Wv:this.Yv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},U.fp=function(e){(e.name!==void 0&&e.name!==this.name||e.dataFormat!==void 0&&e.dataFormat!==this.dataFormat||e.isReadOnly!==void 0&&e.isReadOnly!==this.isReadOnly||e.nodeKeyProperty!==void 0&&e.nodeKeyProperty!==this.nodeKeyProperty||e.copiesArrays!==void 0&&e.copiesArrays!==this.copiesArrays||e.copiesArrayObjects!==void 0&&e.copiesArrayObjects!==this.copiesArrayObjects||e.copiesKey!==void 0&&e.copiesKey!==this.copiesKey||e.nodeCategoryProperty!==void 0&&e.nodeCategoryProperty!==this.nodeCategoryProperty)&&Ke("applyIncrementalJson cannot change Model properties"),M1(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,i=new Zn;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],a=this.wa(o);a!=null&&i.set(a,o)}if(Array.isArray(t))for(r=t.length,o=0;o<r;o++){a=t[o];var l=this.hc(a);l===null&&(l=(l=i.get(a))?l:this.copyNodeData({}),this.km(l,a),this.xf(l))}if(Array.isArray(n)){for(t=n.length,i=0;i<t;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(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,u=0;u<n;u++)t=this.hc(e[u]),t!==null&&this.cm(t)},U.$x=function(e,t){e.change!==Es&&Ke("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof wa?(t===void 0&&(t=Hp(this,this)),O1(this,n),e=this.Pv(n,e.propertyName==="FinishedUndo"),this.vh=null,t==="2"?'{ "incremental": 2'+e+"}":'{ "class": '+this.quote(t)+', "incremental": 1'+this.rm()+e+"}"):'{ "incremental": 0 }'},U.yA=function(e,t){return this.$x(e,t)},U.np=function(e){return e===void 0&&(e=Hp(this,this)),'{ "class": '+this.quote(e)+this.rm()+this.Rv()+"}"},U.toJSON=function(e){return this.np(e)},U.Zw=function(e){var t=null;if(typeof e=="string")try{t=Ve.JSON.parse(e)}catch(i){}else typeof e=="object"?t=e:Ke("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&Ke("Unable to apply non-incremental changes to Model: "+e),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(t),this.eb("applyIncrementalJson"))},U.Ky=function(e){return this.Zw(e)},pi.constructGraphLinksModel=function(){return new pi},U=pi.prototype,U.dm=function(e){if(hn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];if(at(i)){var r=n;i=this.dm(i),Array.isArray(e)?e[r]=i:Ke("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(at(e)){for(t in e)if(n=e[t],at(n)&&(n=this.dm(n),e[t]=n,t==="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 Xt,i=0;i<n.length/2;i++)r.add(new ce(n[2*i],n[2*i+1]));r.freeze(),e[t]=r}}return Wb(e)}return e},U.sm=function(e){return e===void 0?"undefined":e===null?"null":e===!0?"true":e===!1?"false":typeof e=="string"?this.quote(e):typeof e=="number"?e===1/0?"9e9999":e===-1/0?"-9e9999":isNaN(e)?'{"class":"NaN"}':e.toString():e instanceof Date?'{"class":"Date", "value":"'+e.toJSON()+'"}':e instanceof Number?this.sm(e.valueOf()):hn(e)?Kh(this,e):at(e)?yv(this,e):typeof e=="function"?"null":e.toString()};function Kh(e,t,n){n===void 0&&(n=!1);var i=t.length;if(0>=i)return"[]";var r=new J;r.add("["),n&&1<i&&r.add(`
|
|
|
`);for(var o=0;o<i;o++){var a=t[o];a!==void 0&&(0<o&&(r.add(","),n&&r.add(`
|
|
|
`)),r.add(e.sm(a)))}return n&&1<i&&r.add(`
|
|
|
`),r.add("]"),r.toString()}function R1(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function Tl(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function yv(e,t){var n=t;if(n instanceof ce)t={class:"go.Point",x:Tl(n.x),y:Tl(n.y)};else if(n instanceof mi)t={class:"go.Size",width:Tl(n.width),height:Tl(n.height)};else if(n instanceof Wt)t={class:"go.Rect",x:Tl(n.x),y:Tl(n.y),width:Tl(n.width),height:Tl(n.height)};else if(n instanceof vi)t={class:"go.Margin",top:Tl(n.top),right:Tl(n.right),bottom:Tl(n.bottom),left:Tl(n.left)};else if(n instanceof si)n.sb()?t={class:"go.Spot",x:Tl(n.x),y:Tl(n.y),offsetX:Tl(n.offsetX),offsetY:Tl(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof ao){if(t={class:"go.Brush",type:n.type.name},n.type===vh?t.color=n.color:(n.type===eh||n.type===Lu)&&(t.start=n.start,t.end=n.end,n.type===Lu&&(n.startRadius!==0&&(t.startRadius=Tl(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=Tl(n.endRadius)))),n.colorStops!==null){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;t.colorStops=i}}else n instanceof Pn?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=Tl(n.startX)),n.startY!==0&&(t.startY=Tl(n.startY)),n.endX!==0&&(t.endX=Tl(n.endX)),n.endY!==0&&(t.endY=Tl(n.endY)),n.spot1.D(ta)||(t.spot1=n.spot1),n.spot2.D(Ho)||(t.spot2=n.spot2),n.type===Pn.o&&(t.path=Pn.ia(n))):n instanceof Kt&&(t={class:"go.EnumValue",classType:Hp(e,n.classType),name:n.name});i="{",n=!0;for(var r in t){var o=Ua(t,r);if(!R1(r,o))if(n?n=!1:i+=",",i+=e.quote(r)+":",r==="points"&&o instanceof Xt){var a="[";for(o=o.iterator;o.next();){var l=o.value;1<a.length&&(a+=","),a+=e.sm(l.x),a+=",",a+=e.sm(l.y)}a+="]",i+=a}else i+=e.sm(o)}return i+"}"}function Nl(e){return typeof e=="number"?e:e==="NaN"?NaN:e==="9e9999"?1/0:e==="-9e9999"?-1/0:parseFloat(e)}function Wb(e){if(typeof e!="object")return e;var t=e.class||"";if(t==="NaN")return NaN;if(t==="Date")return new Date(e.value);if(t.indexOf("go.")!==0)return e;t=t.substr(3);var n=e;if(t==="Point")n=new ce(Nl(e.x),Nl(e.y));else if(t==="Size")n=new mi(Nl(e.width),Nl(e.height));else if(t==="Rect")n=new Wt(Nl(e.x),Nl(e.y),Nl(e.width),Nl(e.height));else if(t==="Margin")n=new vi(Nl(e.top),Nl(e.right),Nl(e.bottom),Nl(e.left));else if(t==="Spot")typeof e.enum=="string"?n=hc(e.enum):n=new si(Nl(e.x),Nl(e.y),Nl(e.offsetX),Nl(e.offsetY));else if(t==="Brush"){if(n=new ao,n.type=zi(ao,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof si&&(n.start=e.start),e.end instanceof si&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=Nl(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=Nl(e.endRadius)),e=e.colorStops,at(e))for(var i in e)n.addColorStop(parseFloat(i),e[i])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=Pn.parse(e.path):n=new Pn,n.type=zi(Pn,e.type),typeof e.startX=="number"&&(n.startX=Nl(e.startX)),typeof e.startY=="number"&&(n.startY=Nl(e.startY)),typeof e.endX=="number"&&(n.endX=Nl(e.endX)),typeof e.endY=="number"&&(n.endY=Nl(e.endY)),e.spot1 instanceof si&&(n.spot1=e.spot1),e.spot2 instanceof si&&(n.spot2=e.spot2)):t==="EnumValue"&&(i=e.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=xv(i),typeof i=="function"&&(n=zi(i,e.name)));return n}U.Pe=function(e){return this.Lt.add(e),this},U.ik=function(e){this.Lt.remove(e)},U.ds=function(e){this.skipsUndoManager||this.undoManager.Tu(e);for(var t=this.Lt,n=t.length,i=0;i<n;i++)t.M(i)(e)},U.cb=function(e,t,n,i,r,o,a){ts(this,"",e,t,n,i,r,o,a)},U.g=function(e,t,n,i,r){ts(this,"",Eo,e,this,t,n,i,r)},U.Fs=function(e,t,n,i,r,o){ts(this,"",Eo,t,e,n,i,r,o)};function ts(e,t,n,i,r,o,a,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var f=new Bo;f.model=e,f.change=n,f.modelChange=t,f.propertyName=i,f.object=r,f.oldValue=o,f.oldParam=l,f.newValue=a,f.newParam=u,e.ds(f)}pi.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===Eo){var n=e.object,i=e.propertyName,r=e.I(t);i===this.nodeKeyProperty&&this.lb(n)&&(t=e.I(!t),t!==void 0&&this.kb.remove(t),r!==void 0&&this.kb.add(r,n)),Zo(n,i,r)}else e.change===qo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,at(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]===e&&L(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==e&&Ge(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)))):e.modelChange===""?((i=e.object)&&!hn(i)&&e.propertyName&&(i=Ua(e.object,e.propertyName)),hn(i)&&typeof n=="number"&&(e=e.newValue,t?L(i,n):Ge(i,n,e))):Ke("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===ia?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,at(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]!==e&&Ge(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)):(this.Tc[n]===e&&L(this.Tc,n),i!==void 0&&this.kb.remove(i)))):e.modelChange===""?((i=e.object)&&!hn(i)&&e.propertyName&&(i=Ua(e.object,e.propertyName)),hn(i)&&typeof n=="number"&&(e=e.oldValue,t?Ge(i,n,e):L(i,n))):Ke("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==Es&&Ke("unknown ChangedEvent: "+e.toString())},pi.prototype.Ea=function(e){return this.undoManager.Ea(e)},pi.prototype.eb=function(e){return this.undoManager.eb(e)},pi.prototype.Kf=function(){return this.undoManager.Kf()},pi.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},U=pi.prototype,U.La=function(e,t){t===void 0&&(t=""),ts(this,"SourceChanged",Es,t,e,null,null)},U.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Ua(e,t),t!==void 0)){if(Zh(t))return t;Ke("Key value for node data "+e+" is not a number or a string: "+t)}}},U.km=function(e,t){if(e!==null){var n=this.Th;if(n!=="")if(this.lb(e)){var i=Ua(e,n);i!==t&&this.hc(t)===null&&(Zo(e,n,t),i!==void 0&&this.kb.remove(i),this.kb.add(t,e),ts(this,"nodeKey",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n),this.jp(i,t))}else Zo(e,n,t)}};function Zh(e){return typeof e=="number"||typeof e=="string"}U.lb=function(e){var t=this.wa(e);return t===void 0?!1:this.kb.I(t)===e},U.hc=function(e){return e===null&&Ke("Model.findNodeDataForKey:key must not be null"),e!==void 0&&Zh(e)?this.kb.I(e):null},U.$u=function(e){if(e!==null){var t=this.Th;if(t!==""){var n=this.wa(e);if(n===void 0||this.kb.contains(n)){var i=this.bl;if(i!==null&&(n=i(this,e),n!=null&&!this.kb.contains(n))){Zo(e,t,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;Zo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;Zo(e,t,n)}}}}},U.xf=function(e){e!==null&&(Gr(e),this.lb(e)||D1(this,e,!0))};function D1(e,t,n){var i=e.wa(t);(i===void 0||e.kb.I(i)!==t)&&(e.$u(t),i=e.wa(t),i===void 0&&Ke("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(i,t),i=null,n&&(i=e.Tc.length,Ge(e.Tc,i,t)),ts(e,"nodeDataArray",qo,"nodeDataArray",e,null,t,null,i),e.fm(t),e.em(t))}U.Fy=function(e){if(hn(e))for(var t=e.length,n=0;n<t;n++)this.xf(e[n]);else for(e=e.iterator;e.next();)this.xf(e.value)},U.cm=function(e){e!==null&&P1(this,e,!0)};function P1(e,t,n){var i=e.wa(t);if(i!==void 0&&e.kb.remove(i),i=null,n){e:if(n=e.Tc,Array.isArray(n))i=n.indexOf(t);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===t){i=r;break e}i=-1}if(0>i)return;L(e.Tc,i)}ts(e,"nodeDataArray",ia,"nodeDataArray",e,t,null,i,null),e.qp(t)}U.nA=function(e){if(hn(e))for(var t=e.length,n=0;n<t;n++)this.cm(e[n]);else for(e=e.iterator;e.next();)this.cm(e.value)},U.$z=function(e){if(e!==this.nodeDataArray&&hn(e)){var t=this.kl;t.clear(),t.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],a=this.wa(o);if(a!==void 0){n.add(a);var l=this.hc(a);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,a),this.xf(o)))}else a=this.cloneDeep(o),this.xf(a),n.add(this.wa(a))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);t.clear(),n.clear()}},U.jp=function(e,t){t!==void 0&&(e=Up(this,e),e instanceof Zt&&this.Vf.add(t,e))},U.Lv=function(){},U.fm=function(){},U.em=function(){},U.qp=function(){};function mc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i===null&&(i=new Zt,e.Vf.add(t,i)),i.add(n)}}function gc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i instanceof Zt&&(n==null?e.Vf.remove(t):(i.remove(n),i.count===0&&e.Vf.remove(t)))}}function Up(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof Zt?e:null)}U.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},pi.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Sm(this,e,!0),at(e)&&Bi(e),e};function Sm(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var i=[];for(n=0;n<t.length;n++){var r=Sm(e,t[n],e.copiesArrayObjects);i.push(r)}return Bi(i),i}if(n&&at(t)){n=(n=t.constructor)?new n:{},r=e.copiesKey||typeof e.nodeKeyProperty!="string"?null:e.nodeKeyProperty;for(i in t)if(i==="__gohashid")n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Ua(t,i),a=Hp(e,o);a==="GraphObject"||a==="Diagram"||a==="Layer"||a==="RowColumnDefinition"||a==="AnimationManager"||a==="Tool"||a==="CommandHandler"||a==="Layout"||a==="InputEvent"||a==="DiagramEvent"||o instanceof pi||o instanceof _o||o instanceof wa||o instanceof Bo||(o=Sm(e,o,!1)),Zo(n,i,o)}return Bi(n),n}return t instanceof ce||t instanceof mi||t instanceof Wt||t instanceof si||t instanceof vi?t.copy():t}pi.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}}else!F1&&e instanceof st&&(F1=!0,jn('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),jn(" Is that really your intent?"));var i=Ua(e,t);i!==n&&(Zo(e,t,n),this.Fs(e,t,i,n))},U=pi.prototype,U.set=function(e,t,n){this.setDataProperty(e,t,n)},U.Do=function(e,t){if(t){var n=this.lb(e),i;for(i in t)i==="__gohashid"||n&&i===this.nodeKeyProperty||this.setDataProperty(e,i,t[i])}},U.Ay=function(e,t){this.ts(e,-1,t)},U.ts=function(e,t,n){0>t&&(t=e.length),Ge(e,t,n),ts(this,"",qo,"",e,null,n,null,t)},U.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&Ke("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];L(e,t),ts(this,"",ia,"",e,n,null,t,null)},U.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Ua(e,t),t===void 0))return"";if(typeof t=="string")return t;Ke("getCategoryForNodeData found a non-string category for "+e+": "+t)},U.jm=function(e,t){if(e!==null){var n=this.lj;if(n!=="")if(this.lb(e)){var i=Ua(e,n);i===void 0&&(i=""),i!==t&&(Zo(e,n,t),ts(this,"nodeCategory",Eo,n,e,i,t))}else Zo(e,n,t)}},U.lm=function(e,t){this.jm(t,this.Ro(e))},U.Tl=function(){return!1},U.Wj=function(){return!1},U.ri=function(){return!1},U.xs=function(){return!1},U.Xj=function(){return!1};function bv(){return new pi}function Hp(e,t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name}else if(typeof t=="object"&&t!==null&&t.constructor)return Hp(e,t.constructor);return typeof t}function xv(e){return oc[e]?oc[e]:Ve.go!==void 0&&Ve.go[e]?Ve.go[e]:null}function Ua(e,t){if(!e||!t)return null;try{if(typeof t=="function")var n=t(e);else typeof e.getAttribute=="function"?(n=e.getAttribute(t),n===null&&(n=void 0)):n=e[t]}catch(i){}return n}function Zo(e,t,n){if(e&&t)try{typeof t=="function"?t(e,n):typeof e.setAttribute=="function"?e.setAttribute(t,n):e[t]=n}catch(i){}}ft.Object.defineProperties(pi.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(t!==null&&t.Rx(this),this.o=e,e!==null&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(e===""&&Ke("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ke("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=e,this.g("nodeKeyProperty",t,e))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(e){var t=this.bl;t!==e&&(this.bl=e,this.g("makeUniqueKeyFunction",t,e))}},nodeDataArray:{get:function(){return this.Tc},set:function(e){var t=this.Tc;if(t!==e){this.kb.clear(),this.Lv();for(var n=e.length,i=0;i<n;i++){var r=e[i];at(r)||Ke("Model.nodeDataArray must only contain Objects, not: "+r),Gr(r)}for(this.Tc=e,i=new Xt,r=0;r<n;r++){var o=e[r],a=this.wa(o);a===void 0||this.kb.I(a)!==null?i.add(o):this.kb.add(a,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(ts(this,"nodeDataArray",Eo,"nodeDataArray",this,t,e),t=0;t<n;t++)i=e[t],this.fm(i),this.em(i);Array.isArray(e)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(e){var t=this.Bk;t!==e&&(this.Bk=e,this.g("copyNodeDataFunction",t,e))}},copiesArrays:{get:function(){return this.Km},set:function(e){var t=this.Km;t!==e&&(this.Km=e,this.g("copiesArrays",t,e))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(e){var t=this.Jm;t!==e&&(this.Jm=e,this.g("copiesArrayObjects",t,e))}},copiesKey:{get:function(){return this.Mm},set:function(e){var t=this.Mm;t!==e&&(this.Mm=e,this.g("copiesKey",t,e))}},afterCopyFunction:{get:function(){return this.xm},set:function(e){var t=this.xm;t!==e&&(this.xm=e,this.g("afterCopyFunction",t,e))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(e){var t=this.lj;t!==e&&(this.lj=e,this.g("nodeCategoryProperty",t,e))}},type:{get:function(){return"Model"}}}),pi.prototype.setCategoryForNodeData=pi.prototype.jm,pi.prototype.getCategoryForNodeData=pi.prototype.Ro,pi.prototype.removeArrayItem=pi.prototype.ov,pi.prototype.insertArrayItem=pi.prototype.ts,pi.prototype.addArrayItem=pi.prototype.Ay,pi.prototype.assignAllDataProperties=pi.prototype.Do,pi.prototype.set=pi.prototype.set,pi.prototype.clearUnresolvedReferences=pi.prototype.Qy,pi.prototype.mergeNodeDataArray=pi.prototype.$z,pi.prototype.removeNodeDataCollection=pi.prototype.nA,pi.prototype.removeNodeData=pi.prototype.cm,pi.prototype.addNodeDataCollection=pi.prototype.Fy,pi.prototype.addNodeData=pi.prototype.xf,pi.prototype.makeNodeDataKeyUnique=pi.prototype.$u,pi.prototype.findNodeDataForKey=pi.prototype.hc,pi.prototype.containsNodeData=pi.prototype.lb,pi.prototype.setKeyForNodeData=pi.prototype.km,pi.prototype.getKeyForNodeData=pi.prototype.wa,pi.prototype.updateTargetBindings=pi.prototype.La,pi.prototype.commit=pi.prototype.commit,pi.prototype.rollbackTransaction=pi.prototype.Kf,pi.prototype.commitTransaction=pi.prototype.eb,pi.prototype.startTransaction=pi.prototype.Ea,pi.prototype.raiseDataChanged=pi.prototype.Fs,pi.prototype.raiseChanged=pi.prototype.g,pi.prototype.raiseChangedEvent=pi.prototype.cb,pi.prototype.removeChangedListener=pi.prototype.ik,pi.prototype.addChangedListener=pi.prototype.Pe,pi.prototype.writeJsonValue=pi.prototype.sm,pi.prototype.replaceJsonObjects=pi.prototype.dm,pi.prototype.applyIncrementalJSON=pi.prototype.Ky,pi.prototype.applyIncrementalJson=pi.prototype.Zw,pi.prototype.toJSON=pi.prototype.toJSON,pi.prototype.toJson=pi.prototype.np,pi.prototype.toIncrementalJSON=pi.prototype.yA,pi.prototype.toIncrementalJson=pi.prototype.$x,pi.prototype.toIncrementalData=pi.prototype.xA,pi.prototype.clear=pi.prototype.clear;var F1=!1,oc={};pi.className="Model",pi.fromJSON=pi.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=Ve.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:Ke("Unable to construct a Model from: "+e);if(t===null){e=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=Ve[i])),typeof r=="function"&&(e=new r)}catch(o){}e===null||e instanceof pi?t=e:Ke("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=pi.constructGraphLinksModel()),t.gp(n),t.kv(n),t},pi.safePropertyValue=Ua,pi.safePropertySet=Zo,oc.Brush=ao,oc.ChangedEvent=Bo,oc.Geometry=Pn,oc.Margin=vi,oc.Panel=An,oc.Point=ce,oc.Rect=Wt,oc.Size=mi,oc.Spot=si,oc.Transaction=wa,oc.UndoManager=_o;function Wa(e,t,n,i){Bi(this),this._isFrozen=!1,e===void 0&&(e=""),t===void 0&&(t=e),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=e,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=t,this.Im=n,i===void 0?(this.el=_1,this.wk=null):(this.el=$p,this.wk=i),this.st=new Zt}Wa.prototype.copy=function(){var e=new Wa;return e.xl=this.xl,e.to=this.to,e.wl=this.wl,e.Cr=this.Cr,e.wn=this.wn,e.sl=this.sl,e.Im=this.Im,e.el=this.el,e.wk=this.wk,e},U=Wa.prototype,U.qb=function(e){e.classType===Wa&&(this.mode=e)},U.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.Kx=function(e){return e===void 0&&(e=null),this.mode=$p,this.backConverter=e,this},U.cp=function(e){return e===void 0&&(e=""),this.sourceName=e,this.isToModel=!1,this},U.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function B1(e,t,n){return e=e.sourceName,e===null||e===""?t:e==="/"?n.part:e==="."?n:e===".."?n.panel:t.fb(e)}U.Mv=function(e,t,n){var i=this.sl;if(n===void 0||i===""||i===n){n=this.xl;var r=this.Im;if(r===null&&n==="")jn("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(i!==""&&(o=Ua(t,i)),o!==void 0)if(r===null)n!==""&&Zo(e,n,o);else try{if(n!==""){var a=r(o,e);Zo(e,n,a)}else r(o,e)}catch(l){}}}},U.sp=function(e,t,n,i){if(this.el===$p){var r=this.xl;if(n===void 0||r===n){n=this.sl;var o=this.wk,a=e;if(r!==""&&(a=Ua(e,r)),a!==void 0&&!this.st.contains(e))try{this.st.add(e);var l=i!==null?i.diagram:null,u=l!==null?l.model:null;if(o===null){if(n!=="")u!==null?u.setDataProperty(t,n,a):Zo(t,n,a);else if(u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var f=i.itemIndex,p=i.panel.itemArray;u.ov(p,f),u.ts(p,f,a)}}else try{if(n!==""){var x=o(a,t,u);u!==null?u.setDataProperty(t,n,x):Zo(t,n,x)}else{var A=o(a,t,u);if(A!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var R=i.itemIndex,z=i.panel.itemArray;u.ov(z,R),u.ts(z,R,A)}}}catch(V){}}finally{this.st.remove(e)}}}},ft.Object.defineProperties(Wa.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&Ht(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&Ht(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&Ht(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&Ht(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&Ht(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&Ht(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&Ht(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&Ht(this),this.el=e}}}),Wa.prototype.updateSource=Wa.prototype.sp,Wa.prototype.updateTarget=Wa.prototype.Mv,Wa.prototype.ofModel=Wa.prototype.dA,Wa.prototype.ofObject=Wa.prototype.cp,Wa.prototype.makeTwoWay=Wa.prototype.Kx;var Vb="Binding",_1=new Kt(Wa,"OneWay",1),$p=new Kt(Wa,"TwoWay",2);Wa.className="Binding",Wa.parseEnum=function(e,t){return function(n){return n=zi(e,n),n===null?t:n}},Wa.toString=fn,Wa.OneWay=_1,Wa.TwoWay=$p;function _r(e,t,n){pi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Zt,this.wb=new Zn,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,t!==void 0&&(this.linkDataArray=t),e!==void 0&&(hn(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}di(_r,pi),_r.constructGraphLinksModel=pi.constructGraphLinksModel,_r.prototype.cloneProtected=function(e){pi.prototype.cloneProtected.call(this,e),e.Jh=this.Jh,e.cl=this.cl,e.Ak=this.Ak,e.lf=this.lf,e.mf=this.mf,e.ej=this.ej,e.fj=this.fj,e.dj=this.dj,e.je=this.je,e.jl=this.jl,e.Je=this.Je,e.Lm=this.Lm},U=_r.prototype,U.clear=function(){pi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},U.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;var n=e.length,i;for(i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+fn(r)}for(t+=`
|
|
|
link data:`,e=this.linkDataArray,n=e.length,i=0;i<n;i++)r=e[i],t+=" "+Su(this,r,!0)+"-->"+Su(this,r,!1)}return t},U.Qv=function(e,t){this.linkKeyProperty===""&&Ke("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=pi.prototype.Qv.call(this,e,t),i=this,r=new Zt,o=new Zt,a=new Zt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===qo?r.add(p.newValue):p.change===ia&&a.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(x){i.Jc(x)&&o.add(x)}):p.object instanceof pi||i.lb(p.object)||z1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=i.cloneDeep(o.Fa()),0<u.count&&(n===null&&(n={}),t?n.removedLinkKeys=u.Fa():n.insertedLinkKeys=u.Fa()),0<e.length&&(n===null&&(n={}),n.modifiedLinkData=e),0<f.count&&(n===null&&(n={}),t?n.insertedLinkKeys=f.Fa():n.removedLinkKeys=f.Fa()),f.clear(),u.clear(),n},U.rm=function(){var e=pi.prototype.rm.call(this),t="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(t+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(t+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(t+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(t+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(t+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(t+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(t+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(t+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(t+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),e+t},U.gp=function(e){pi.prototype.gp.call(this,e),e.linkKeyProperty&&(this.linkKeyProperty=e.linkKeyProperty),e.linkFromKeyProperty&&(this.linkFromKeyProperty=e.linkFromKeyProperty),e.linkToKeyProperty&&(this.linkToKeyProperty=e.linkToKeyProperty),e.linkFromPortIdProperty&&(this.linkFromPortIdProperty=e.linkFromPortIdProperty),e.linkToPortIdProperty&&(this.linkToPortIdProperty=e.linkToPortIdProperty),e.linkCategoryProperty&&(this.linkCategoryProperty=e.linkCategoryProperty),e.linkLabelKeysProperty&&(this.linkLabelKeysProperty=e.linkLabelKeysProperty),e.nodeIsGroupProperty&&(this.nodeIsGroupProperty=e.nodeIsGroupProperty),e.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=e.nodeGroupKeyProperty)},U.Rv=function(){var e=pi.prototype.Rv.call(this),t=`,
|
|
|
"linkDataArray": `+Kh(this,this.linkDataArray,!0);return e+t},U.kv=function(e){pi.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function z1(e,t){for(var n=new Zt,i=0;i<e.linkDataArray.length;i++){var r=e.linkDataArray[i];xm(e,t,r,r,n)}return n}U.Pv=function(e,t){this.linkKeyProperty===""&&Ke("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=pi.prototype.Pv.call(this,e,t),i=this,r=new Zt,o=new Zt,a=new Zt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===qo?r.add(p.newValue):p.change===ia&&a.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(x){i.Jc(x)&&o.add(x)}):p.object instanceof pi||i.lb(p.object)||z1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=n,0<u.count&&(e+=(t?this.Xv:this.Vv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.iy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Vv:this.Xv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},U.fp=function(e){(e.linkCategoryProperty!==void 0&&e.linkCategoryProperty!==this.linkCategoryProperty||e.linkKeyProperty!==void 0&&e.linkKeyProperty!==this.linkKeyProperty||e.linkFromKeyProperty!==void 0&&e.linkFromKeyProperty!==this.linkFromKeyProperty||e.linkToKeyProperty!==void 0&&e.linkToKeyProperty!==this.linkToKeyProperty||e.linkFromPortIdProperty!==void 0&&e.linkFromPortIdProperty!==this.linkFromPortIdProperty||e.linkToPortIdProperty!==void 0&&e.linkToPortIdProperty!==this.linkToPortIdProperty||e.linkLabelKeysProperty!==void 0&&e.linkLabelKeysProperty!==this.linkLabelKeysProperty||e.nodeIsGroupProperty!==void 0&&e.nodeIsGroupProperty!==this.nodeIsGroupProperty||e.nodeGroupKeyProperty!==void 0&&e.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Ke("applyIncrementalJson cannot change Model properties"),pi.prototype.fp.call(this,e);var t=e.insertedLinkKeys;if(Array.isArray(t))for(var n=t.length,i=0;i<n;i++){var r=t[i],o=this.jh(r);o===null&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(t=e.modifiedLinkData,Array.isArray(t)){for(n=t.length,i=0;i<n;i++)if(r=t[i],o=this.Ac(r),o=this.jh(o),o!==null){for(var a in r)a!=="__gohashid"&&a!==this.linkKeyProperty&&this.setDataProperty(o,a,r[a]);$1(this,r,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(a=e.length,t=0;t<a;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},_r.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===Eo){var n=e.object,i=e.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=e.I(t);t=e.I(!t),t!==void 0&&this.wb.remove(t),r!==void 0&&this.wb.add(r,n),Zo(n,i,r);return}}else if(e.change===qo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,at(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)):(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue));return}}else if(e.change===ia){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,at(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue):(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)));return}}pi.prototype.changeState.call(this,e,t)}},U=_r.prototype,U.Vl=function(e){if(e!==void 0){var t=this.Ri;if(t!==null){var n=this.hc(e);n===null&&(n=this.copyNodeData(t),Zo(n,this.nodeKeyProperty,e),this.xf(n))}return e}},U.yx=function(e){return Su(this,e,!0)},U.wv=function(e,t){Ff(this,e,t,!0)},U.Bx=function(e){return Su(this,e,!1)},U.Bv=function(e,t){Ff(this,e,t,!1)};function Su(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Ua(t,e),e!==void 0))){if(Zh(e))return e;Ke((n?"FromKey":"ToKey")+" value for link data "+t+" is not a number or a string: "+e)}}function Ff(e,t,n,i){if(n===null&&(n=void 0),t!==null){var r=i?e.lf:e.mf;if(r!=="")if(n=e.Vl(n),e.Jc(t)){var o=Ua(t,r);o!==n&&(gc(e,o,t),Zo(t,r,n),e.hc(n)===null&&mc(e,n,t),ts(e,i?"linkFromKey":"linkToKey",Eo,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Zo(t,r,n)}}U.zx=function(e){return Em(this,e,!0)},U.xv=function(e,t){Bf(this,e,t,!0)},U.Cx=function(e){return Em(this,e,!1)},U.Cv=function(e,t){Bf(this,e,t,!1)};function Em(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=Ua(t,e),t===void 0?"":t)}function Bf(e,t,n,i){if(t!==null){var r=i?e.ej:e.fj;if(r!=="")if(e.Jc(t)){var o=Ua(t,r);o===void 0&&(o=""),o!==n&&(Zo(t,r,n),ts(e,i?"linkFromPortId":"linkToPortId",Eo,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Zo(t,r,n)}}U.Ef=function(e){if(e===null)return wm;var t=this.je;return t===""?wm:(e=Ua(e,t),e===void 0?wm:e)},U.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var i=Ua(e,n);if(i===void 0&&(i=wm),i!==t){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)gc(this,i[o],e);for(Zo(e,n,t),r=t.length,o=0;o<r;o++){var a=t[o];this.hc(a)===null&&mc(this,a,e)}ts(this,"linkLabelKeys",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n)}}else Zo(e,n,t)}},U.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Ua(e,n);if(i===void 0)n=[],n.push(t),this.Ls(e,n);else if(Array.isArray(i)){var r=i.indexOf(t);0<=r||(r=i.length,i.push(t),this.Jc(e)&&(this.hc(t)===null&&mc(this,t,e),ts(this,"linkLabelKeys",qo,n,e,null,t,null,r)))}else Ke(n+" property is not an Array; cannot addLabelKeyForLinkData: "+e)}}},U.Qx=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Ua(e,n);if(Array.isArray(i)){var r=i.indexOf(t);0>r||(i.splice(r,1),this.Jc(e)&&(gc(this,t,e),ts(this,"linkLabelKeys",ia,n,e,t,null,r,null)))}else i!==void 0&&Ke(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},U.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Ua(e,t),t!==void 0)){if(Zh(t))return t;Ke("Key value for link data "+e+" is not a number or a string: "+t)}}},U.Ks=function(e,t){if(e!==null){var n=this.Jh;if(n!=="")if(this.Jc(e)){var i=Ua(e,n);i!==t&&this.jh(t)===null&&(Zo(e,n,t),i!==void 0&&this.wb.remove(i),this.wb.add(t,e),ts(this,"linkKey",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Zo(e,n,t)}},U.jh=function(e){return e===null&&Ke("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&Zh(e)?this.wb.I(e):null},U.Bs=function(e){if(e!==null){var t=this.Jh;if(t!==""){var n=this.Ac(e);if(n===void 0||this.wb.contains(n)){var i=this.cl;if(i!==null&&(n=i(this,e),n!=null&&!this.wb.contains(n))){Zo(e,t,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;Zo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;Zo(e,t,n)}}}}},U.Jc=function(e){return e===null?!1:this.$f.contains(e)},U.fi=function(e){e!==null&&(Gr(e),this.Jc(e)||U1(this,e,!0))};function U1(e,t,n){if(e.linkKeyProperty!==""){var i=e.Ac(t);if(i!==void 0&&e.wb.I(i)===t)return;e.Bs(t),i=e.Ac(t),i===void 0&&Ke("GraphLinksModel.makeLinkDataKeyUnique failed on "+t+". Data not added to model."),e.wb.add(i,t)}e.$f.add(t),i=null,n&&(i=e.md.length,e.md.splice(i,0,t)),ts(e,"linkDataArray",qo,"linkDataArray",e,null,t,null,i),Sv(e,t)}U.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.fi(e[n]);else for(e=e.iterator;e.next();)this.fi(e.value)},U.bm=function(e){e!==null&&H1(this,e,!0)};function H1(e,t,n){e.$f.remove(t);var i=e.Ac(t);if(i!==void 0&&e.wb.remove(i),i=null,n){if(i=e.md.indexOf(t),0>i)return;e.md.splice(i,1)}if(ts(e,"linkDataArray",ia,"linkDataArray",e,t,null,i,null),n=Su(e,t,!0),gc(e,n,t),n=Su(e,t,!1),gc(e,n,t),i=e.Ef(t),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],gc(e,n,t)}U.lA=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.bm(e[n]);else for(e=e.iterator;e.next();)this.bm(e.value)},U.Zz=function(e){if(this.linkKeyProperty===""&&Ke("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&hn(e)){var t=this.kl;t.clear(),t.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],a=this.Ac(o);if(a!==void 0){n.add(a);var l=this.jh(a);l!==o&&(l!==null?(this.Do(l,o),$1(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,a),this.fi(o)))}else a=this.cloneDeep(o),this.fi(a),n.add(this.Ac(a))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);t.clear(),n.clear()}};function Sv(e,t){var n=Su(e,t,!0);n=e.Vl(n),e.hc(n)===null&&mc(e,n,t),n=Su(e,t,!1),n=e.Vl(n),e.hc(n)===null&&mc(e,n,t);var i=e.Ef(t);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],e.hc(n)===null&&mc(e,n,t)}U.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Sm(this,e,!0),at(e)&&(Bi(e),this.lf!==""&&Zo(e,this.lf,void 0),this.mf!==""&&Zo(e,this.mf,void 0),this.je!==""&&Zo(e,this.je,[])),e},U.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!Ua(e,t)},U.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Ua(e,t),t!==void 0)){if(Zh(t))return t;Ke("GroupKey value for node data "+e+" is not a number or a string: "+t)}}},U.mp=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Je;if(n!=="")if(this.lb(e)){var i=Ua(e,n);i!==t&&(gc(this,i,e),Zo(e,n,t),this.hc(t)===null&&mc(this,t,e),ts(this,"nodeGroupKey",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Zo(e,n,t)}},_r.prototype.copyNodeData=function(e){return e===null?null:(e=pi.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Ua(e,this.Je)===void 0||Zo(e,this.Je,void 0),e)},_r.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeGroupKeyProperty){this.mp(e,n);return}}else if(this.Jc(e)){if(t===this.linkFromKeyProperty){Ff(this,e,n,!0);return}if(t===this.linkToKeyProperty){Ff(this,e,n,!1);return}if(t===this.linkFromPortIdProperty){Bf(this,e,n,!0);return}if(t===this.linkToPortIdProperty){Bf(this,e,n,!1);return}if(t===this.linkKeyProperty){this.Ks(e,n);return}if(t===this.linkCategoryProperty){this.lp(e,n);return}if(t===this.linkLabelKeysProperty){this.Ls(e,n);return}}var i=Ua(e,t);i!==n&&(Zo(e,t,n),this.Fs(e,t,i,n))},U=_r.prototype,U.Do=function(e,t){if(t){var n=this.lb(e),i=this.Jc(e),r;for(r in t)r==="__gohashid"||n&&r===this.nodeKeyProperty||n&&r===this.nodeIsGroupProperty&&Ua(e,r)===t[r]||i&&r===this.linkKeyProperty||this.setDataProperty(e,r,t[r])}},U.jp=function(e,t){pi.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t);for(n=this.$f.iterator;n.next();){var i=n.value,r=e,o=t;if(Su(this,i,!0)===r){var a=this.lf;Zo(i,a,o),ts(this,"linkFromKey",Eo,a,i,r,o),typeof a=="string"&&this.La(i,a)}if(Su(this,i,!1)===r&&(a=this.mf,Zo(i,a,o),ts(this,"linkToKey",Eo,a,i,r,o),typeof a=="string"&&this.La(i,a)),a=this.Ef(i),Array.isArray(a))for(var l=a.length,u=this.je,f=0;f<l;f++)a[f]===r&&(a[f]=o,ts(this,"linkLabelKeys",qo,u,i,r,o,f,f))}},U.qv=function(e,t,n){if(this.lh(e)===t){var i=this.Je;Zo(e,i,n),ts(this,"nodeGroupKey",Eo,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.Lv=function(){pi.prototype.Lv.call(this);for(var e=this.linkDataArray,t=e.length,n=0;n<t;n++)Sv(this,e[n])},U.fm=function(e){pi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Dt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)){if(this.lh(i)===e){var r=this.Je;ts(this,"nodeGroupKey",Eo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(Su(this,i,!0)===e&&(r=this.lf,ts(this,"linkFromKey",Eo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),Su(this,i,!1)===e&&(r=this.mf,ts(this,"linkToKey",Eo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,a=this.je,l=0;l<o;l++)r[l]===e&&(ts(this,"linkLabelKeys",qo,a,i,e,e,l,l),n.push(i))}for(t=0;t<n.length;t++)gc(this,e,n[t]);Jt(n)}},U.em=function(e){pi.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&mc(this,t,e)},U.qp=function(e){pi.prototype.qp.call(this,e);var t=this.lh(e);gc(this,t,e)},U.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=Ua(e,t),t===void 0))return"";if(typeof t=="string")return t;Ke("getCategoryForLinkData found a non-string category for "+e+": "+t)},_r.prototype.getLinkCategoryForData=function(e){return this.ps(e)},_r.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var i=Ua(e,n);i===void 0&&(i=""),i!==t&&(Zo(e,n,t),ts(this,"linkCategory",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Zo(e,n,t)}},_r.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},U=_r.prototype,U.lm=function(e,t){pi.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function $1(e,t,n){e.lp(n,e.ps(t)),e.wv(n,e.yx(t)),e.Bv(n,e.Bx(t)),e.Ls(n,e.Ef(t)),e.xv(n,e.zx(t)),e.Cv(n,e.Cx(t))}U.Wj=function(){return!0},U.ri=function(){return!0},U.xs=function(){return!0},U.Xj=function(){return!0},ft.Object.defineProperties(_r.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){var t=this.Ri;t!==e&&(this.Ri=e,this.g("archetypeNodeData",t,e))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(e){var t=this.lf;t!==e&&(this.lf=e,this.g("linkFromKeyProperty",t,e))}},linkToKeyProperty:{get:function(){return this.mf},set:function(e){var t=this.mf;t!==e&&(this.mf=e,this.g("linkToKeyProperty",t,e))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(e){var t=this.ej;t!==e&&(this.ej=e,this.g("linkFromPortIdProperty",t,e))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(e){var t=this.fj;t!==e&&(this.fj=e,this.g("linkToPortIdProperty",t,e))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(e){var t=this.je;t!==e&&(this.je=e,this.g("linkLabelKeysProperty",t,e))}},linkDataArray:{get:function(){return this.md},set:function(e){var t=this.md;if(t!==e){this.wb.clear();for(var n=e.length,i=0;i<n;i++){var r=e[i];at(r)||Ke("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),Gr(r)}if(this.md=e,this.linkKeyProperty!==""){for(i=new Xt,r=0;r<n;r++){var o=e[r],a=this.Ac(o);a===void 0||this.wb.I(a)!==null?i.add(o):this.wb.add(a,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 Zt,r=0;r<n;r++)i.add(e[r]);for(this.$f=i,ts(this,"linkDataArray",Eo,"linkDataArray",this,t,e),t=0;t<n;t++)Sv(this,e[t])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(e){var t=this.Jh;if(t!==e){this.Jh=e,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",t,e)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(e){var t=this.cl;t!==e&&(this.cl=e,this.g("makeUniqueLinkKeyFunction",t,e))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(e){var t=this.Ak;t!==e&&(this.Ak=e,this.g("copyLinkDataFunction",t,e))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(e){var t=this.jl;t!==e&&(this.jl=e,this.g("nodeIsGroupProperty",t,e))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(e){var t=this.Je;t!==e&&(this.Je=e,this.g("nodeGroupKeyProperty",t,e))}},Ij:{get:function(){return this.Lm},set:function(e){this.Lm!==e&&(this.Lm=e)}},linkCategoryProperty:{get:function(){return this.dj},set:function(e){var t=this.dj;t!==e&&(this.dj=e,this.g("linkCategoryProperty",t,e))}},type:{get:function(){return"GraphLinksModel"}}}),_r.prototype.setCategoryForLinkData=_r.prototype.lp,_r.prototype.getCategoryForLinkData=_r.prototype.ps,_r.prototype.assignAllDataProperties=_r.prototype.Do,_r.prototype.setGroupKeyForNodeData=_r.prototype.mp,_r.prototype.getGroupKeyForNodeData=_r.prototype.lh,_r.prototype.isGroupForNodeData=_r.prototype.Yu,_r.prototype.copyLinkData=_r.prototype.Jo,_r.prototype.mergeLinkDataArray=_r.prototype.Zz,_r.prototype.removeLinkDataCollection=_r.prototype.lA,_r.prototype.removeLinkData=_r.prototype.bm,_r.prototype.addLinkDataCollection=_r.prototype.Ey,_r.prototype.addLinkData=_r.prototype.fi,_r.prototype.containsLinkData=_r.prototype.Jc,_r.prototype.makeLinkDataKeyUnique=_r.prototype.Bs,_r.prototype.findLinkDataForKey=_r.prototype.jh,_r.prototype.setKeyForLinkData=_r.prototype.Ks,_r.prototype.getKeyForLinkData=_r.prototype.Ac,_r.prototype.removeLabelKeyForLinkData=_r.prototype.Qx,_r.prototype.addLabelKeyForLinkData=_r.prototype.Bu,_r.prototype.setLabelKeysForLinkData=_r.prototype.Ls,_r.prototype.getLabelKeysForLinkData=_r.prototype.Ef,_r.prototype.setToPortIdForLinkData=_r.prototype.Cv,_r.prototype.getToPortIdForLinkData=_r.prototype.Cx,_r.prototype.setFromPortIdForLinkData=_r.prototype.xv,_r.prototype.getFromPortIdForLinkData=_r.prototype.zx,_r.prototype.setToKeyForLinkData=_r.prototype.Bv,_r.prototype.getToKeyForLinkData=_r.prototype.Bx,_r.prototype.setFromKeyForLinkData=_r.prototype.wv,_r.prototype.getFromKeyForLinkData=_r.prototype.yx,_r.prototype.clear=_r.prototype.clear;var wm=Object.freeze([]);_r.className="GraphLinksModel",oc.GraphLinksModel=_r,pi.constructGraphLinksModel=pi.constructGraphLinksModel=function(){return new _r},pi.initDiagramModel=bv=function(){return new _r};function Al(e,t){pi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(hn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}di(Al,pi),Al.constructGraphLinksModel=pi.constructGraphLinksModel,Al.prototype.cloneProtected=function(e){pi.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},U=Al.prototype,U.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" TreeModel";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+fn(r)}}return t},U.rm=function(){var e=pi.prototype.rm.call(this),t="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(t+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),e+t},U.gp=function(e){pi.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},U.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ke("applyIncrementalJson cannot change Model properties"),pi.prototype.fp.call(this,e)},U.Vl=function(e){return e},U.mh=function(e){if(e!==null){var t=this.Ke;if(t!==""&&(t=Ua(e,t),t!==void 0)){if(Zh(t))return t;Ke("ParentKey value for node data "+e+" is not a number or a string: "+t)}}},U.qe=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Ke;if(n!=="")if(t=this.Vl(t),this.lb(e)){var i=Ua(e,n);i!==t&&(gc(this,i,e),Zo(e,n,t),this.hc(t)===null&&mc(this,t,e),ts(this,"nodeParentKey",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Zo(e,n,t)}},U.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=Ua(e,t),t===void 0)?"":typeof t=="string"?t:(Ke("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},Al.prototype.getLinkCategoryForData=function(e){return this.ss(e)},Al.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var i=Ua(e,n);i===void 0&&(i=""),i!==t&&(Zo(e,n,t),ts(this,"parentLinkCategory",Eo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Zo(e,n,t)}},Al.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},Al.prototype.copyNodeData=function(e){return e===null?null:(e=pi.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Ua(e,this.Ke)===void 0||Zo(e,this.Ke,void 0),e)},Al.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeParentKeyProperty){this.qe(e,n);return}}var i=Ua(e,t);i!==n&&(Zo(e,t,n),this.Fs(e,t,i,n))},U=Al.prototype,U.jp=function(e,t){pi.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t)},U.qv=function(e,t,n){if(this.mh(e)===t){var i=this.Ke;Zo(e,i,n),ts(this,"nodeParentKey",Eo,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.fm=function(e){pi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Dt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)&&this.mh(i)===e){var r=this.Ke;ts(this,"nodeParentKey",Eo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}for(t=0;t<n.length;t++)gc(this,e,n[t]);Jt(n)}},U.em=function(e){pi.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&mc(this,t,e)},U.qp=function(e){pi.prototype.qp.call(this,e);var t=this.mh(e);gc(this,t,e)},U.lm=function(e,t){pi.prototype.lm.call(this,e,t),this.Ms(t,this.ss(e)),this.qe(t,this.mh(e))},U.Tl=function(){return!0},U.xs=function(){return!0},ft.Object.defineProperties(Al.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(e){var t=this.Ke;t!==e&&(this.Ke=e,this.g("nodeParentKeyProperty",t,e))}},Jj:{get:function(){return this.Nm},set:function(e){this.Nm!==e&&(this.Nm=e)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(e){var t=this.nj;t!==e&&(this.nj=e,this.g("parentLinkCategoryProperty",t,e))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(e){this.parentLinkCategoryProperty=e}},type:{get:function(){return"TreeModel"}}}),Al.prototype.setParentLinkCategoryForNodeData=Al.prototype.Ms,Al.prototype.getParentLinkCategoryForNodeData=Al.prototype.ss,Al.prototype.setParentKeyForNodeData=Al.prototype.qe,Al.prototype.getParentKeyForNodeData=Al.prototype.mh,Al.className="TreeModel",oc.TreeModel=Al;function da(e){Qo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ac,this.Ti=0,this.Zv=new ce,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ac,this.K=kl,this.nd=zf,this.hd=fv,this.tf=6,this.Nn=Mm,e&&Object.assign(this,e)}di(da,Qo),da.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.eo=this.eo,e.Cm=this.Cm,e.ro=this.ro,e.ul=this.ul,e.Rb=this.Rb,e.K=this.K,e.nd=this.nd,e.hd=this.hd,e.tf=this.tf,e.Nn=this.Nn},da.prototype.qb=function(e){e.classType===da?e===km||e===Im||e===Nm||e===Am||e===zf?this.sorting=e:e===Td||e===_f||e===kl||e===Xh?this.direction=e:e===Th||e===Yh||e===ac||e===sc?this.arrangement=e:(e===Zd||e===Mm)&&(this.nodeDiameterFormula=e):Qo.prototype.qb.call(this,e)},da.prototype.createNetwork=function(){return new Uf(this)},da.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),e=this.network.vertexes,1>=e.count)e.count===1&&(e=e.first(),e.centerX=0,e.centerY=0);else{var t=new Xt;t.addAll(e.iterator),e=new Xt;var n=new Xt,i=this.sort(t),r,o,a=this.Jp,l=this.arrangement,u=this.nodeDiameterFormula,f=this.radius;(!isFinite(f)||0>=f)&&(f=NaN);var p=this.aspectRatio;(!isFinite(p)||0>=p)&&(p=1);var x=this.startAngle;isFinite(x)||(x=0);var A=this.sweepAngle;if((!isFinite(A)||360<A||1>A)&&(A=360),t=this.spacing,isFinite(t)||(t=NaN),l===sc&&u===Zd?l=ac:l===sc&&u!==Zd&&(l=this.arrangement),(this.direction===Td||this.direction===_f)&&this.sorting!==zf){for(u=0;!(u>=i.length)&&(e.add(i.M(u)),!(u+1>=i.length));u+=2)n.add(i.M(u+1));this.direction===Td?(this.arrangement===sc&&e.reverse(),i=new Xt,i.addAll(e),i.addAll(n)):(this.arrangement===sc&&n.reverse(),i=new Xt,i.addAll(n),i.addAll(e))}u=i.length;for(var R=o=r=0;R<i.length;R++){var z=x+A*o*(this.direction===kl?1:-1)/u,V=i.M(R).diameter;isNaN(V)&&(V=Qh(i.M(R),z)),360>A&&(R===0||R===i.length-1)&&(V/=2),r+=V,o++}if(isNaN(f)||l===sc){if(isNaN(t)&&(t=6),l!==ac&&l!==sc){for(o=-1/0,a=0;a<u;a++)R=i.M(a),r=i.M(a===u-1?0:a+1),isNaN(R.diameter)&&Qh(R,0),isNaN(r.diameter)&&Qh(r,0),o=Math.max(o,(R.diameter+r.diameter)/2);a=o+t,l===Th?f=(o+t)/(2*Math.PI/u):f=Cm(this,a*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180)}else f=Cm(this,r+(360<=A?u:u-1)*(l!==sc?t:1.6*t),p,x*Math.PI/180,A*Math.PI/180);o=f*p}else if(o=f*p,R=Ev(this,f,o,x*Math.PI/180,A*Math.PI/180),isNaN(t))(l===ac||l===sc)&&(t=(R-r)/(360<=A?u:u-1));else if(l===ac||l===sc)R=(R-r)/(360<=A?u:u-1),R<t?(f=Cm(this,r+t*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180),o=f*p):t=R;else{for(a=-1/0,r=0;r<u;r++)z=i.M(r),V=i.M(r===u-1?0:r+1),isNaN(z.diameter)&&Qh(z,0),isNaN(V.diameter)&&Qh(V,0),a=Math.max(a,(z.diameter+V.diameter)/2);a+=t,r=Cm(this,a*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180),r>f?(f=r,o=f*p):a=R/(360<=A?u:u-1)}if(this.kw=l,this.lc=f,this.Zm=p,this.lw=x,this.Wp=A,this.Ti=t,this.me=o,this.Jp=a,t=i,i=this.kw,l=this.lc,f=this.lw,p=this.Wp,x=this.Ti,A=this.me,u=this.Jp,this.direction!==Td&&this.direction!==_f||i!==sc)if(this.direction===Td||this.direction===_f){switch(a=0,i){case Yh:a=180*Tm(this,l,A,f,u)/Math.PI;break;case ac:u=t=0,a=e.first(),a!==null&&(t=Qh(a,Math.PI/2)),a=n.first(),a!==null&&(u=Qh(a,Math.PI/2)),a=180*Tm(this,l,A,f,x+(t+u)/2)/Math.PI;break;case Th:a=p/t.length}if(this.direction===Td){switch(i){case Yh:Wp(this,e,f,Xh);break;case ac:Gp(this,e,f,Xh);break;case Th:jp(this,e,p/2,f,Xh)}switch(i){case Yh:Wp(this,n,f+a,kl);break;case ac:Gp(this,n,f+a,kl);break;case Th:jp(this,n,p/2,f+a,kl)}}else{switch(i){case Yh:Wp(this,n,f,Xh);break;case ac:Gp(this,n,f,Xh);break;case Th:jp(this,n,p/2,f,Xh)}switch(i){case Yh:Wp(this,e,f+a,kl);break;case ac:Gp(this,e,f+a,kl);break;case Th:jp(this,e,p/2,f+a,kl)}}}else switch(i){case Yh:Wp(this,t,f,this.direction);break;case ac:Gp(this,t,f,this.direction);break;case Th:jp(this,t,p,f,this.direction);break;case sc:j1(this,t,p,f,this.direction)}else j1(this,t,p,f-p/2,kl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function jp(e,t,n,i,r){var o=e.Wp,a=e.lc;e=e.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=i+(r===kl?u*n/(360<=o?l:l-1):-(u*n)/l),p=t.M(u),x=a*Math.tan(f)/e;x=Math.sqrt((a*a+e*e*x*x)/(1+x*x)),p.centerX=x*Math.cos(f),p.centerY=x*Math.sin(f),p.actualAngle=180*f/Math.PI}}function Gp(e,t,n,i){var r=e.lc,o=e.me,a=e.Ti;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u),p=t.M(u===l-1?0:u+1),x=o*Math.sin(n);f.centerX=r*Math.cos(n),f.centerY=x,f.actualAngle=180*n/Math.PI,isNaN(f.diameter)&&Qh(f,0),isNaN(p.diameter)&&Qh(p,0),f=Tm(e,r,o,i===kl?n:-n,(f.diameter+p.diameter)/2+a),n+=i===kl?f:-f}}function Wp(e,t,n,i){var r=e.lc,o=e.me,a=e.Jp;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u);f.centerX=r*Math.cos(n),f.centerY=o*Math.sin(n),f.actualAngle=180*n/Math.PI,f=Tm(e,r,o,i===kl?n:-n,a),n+=i===kl?f:-f}}function j1(e,t,n,i,r){var o=e.Wp;if(e.mj=0,e.Xr=new Vp,360>n){for(o=i+(r===kl?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,W1(e,t,n,i,r)}else G1(e,t,n,i,r);e.Xr.commit(t)}function G1(e,t,n,i,r){var o=e.lc,a=e.Ti,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=e.me*Math.sin(i*Math.PI/180),p=t.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-a,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-a;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-a,p[3].centerX=0,p[3].y=Math.max(p[0].y+p[0].height+a,p[2].y+p[2].height+a);else{o=ce.alloc();for(var x=0;x<p.length&&(p[x].centerX=u,p[x].centerY=f,!(x>=p.length-1));x++)V1(e,u,f,p,x,r,o)||K1(e,u,f,p,x,r,o),u=o.x,f=o.y;if(ce.free(o),e.mj++,!(23<e.mj)){u=p[0].centerX,f=p[0].centerY,o=p[p.length-1].centerX,x=p[p.length-1].centerY;var A=Math.abs(u-o)-((p[0].width+p[p.length-1].width)/2+a),R=Math.abs(f-x)-((p[0].height+p[p.length-1].height)/2+a);a=0,1>Math.abs(R)?Math.abs(u-o)<(p[0].width+p[p.length-1].width)/2&&(a=0):a=0<R?R:1>Math.abs(A)?0:A,u=Math.abs(o)>Math.abs(x)?0<o!=f>x:0<x!=u<o,(u=r===kl?u:!u)&&(a=-Math.abs(a),a=Math.min(a,-p[p.length-1].width),a=Math.min(a,-p[p.length-1].height)),e.Xr.compare(a,p),1<Math.abs(a)&&(e.lc=8>e.mj?e.lc-a/(2*Math.PI):5>p.length&&10<a?e.lc/2:e.lc-(0<a?1.7:-2.3),e.me=e.lc*l,G1(e,t,n,i,r))}}}function W1(e,t,n,i,r){for(var o=e.lc,a=e.me,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=a*Math.sin(i*Math.PI/180),p=ce.alloc(),x=t.Fa(),A=0;A<x.length&&(x[A].centerX=u,x[A].centerY=f,!(A>=x.length-1));A++)V1(e,u,f,x,A,r,p)||K1(e,u,f,x,A,r,p),u=p.x,f=p.y;if(ce.free(p),e.mj++,!(23<e.mj)){if(u=Math.atan2(f,u),u=r===kl?e.gt-u:u-e.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+a)/2,a=e.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],u=0;u<x.length;u++)a.mk[u]=x[u].bounds.x,a.tm[u]=x[u].bounds.y;1<Math.abs(o)&&(e.lc=8>e.mj?e.lc-o/(2*Math.PI):e.lc-(0<o?1.7:-2.3),e.me=e.lc*l,W1(e,t,n,i,r))}}function V1(e,t,n,i,r,o,a){var l=e.lc,u=e.me,f=0;e=(i[r].width+i[r+1].width)/2+e.Ti;var p=!1;if(0<=n!=(o===kl)){if(o=t+e,o>l){if(o=t-e,o<-l)return a.x=o,a.y=f,!1;p=!0}}else if(o=t-e,o<-l){if(o=t+e,o>l)return a.x=o,a.y=f,!1;p=!0}return f=Math.sqrt(1-Math.min(1,o*o/(l*l)))*u,0>n!==p&&(f=-f),Math.abs(n-f)>(i[r].height+i[r+1].height)/2?(a.x=o,a.y=f,!1):(a.x=o,a.y=f,!0)}function K1(e,t,n,i,r,o,a){var l=e.lc,u=e.me,f=0;if(e=(i[r].height+i[r+1].height)/2+e.Ti,i=!1,0<=t!=(o===kl)){if(o=n-e,o<-u){if(o=n+e,o>u){a.x=f,a.y=o;return}i=!0}}else if(o=n+e,o>u){if(o=n-e,o<-u){a.x=f,a.y=o;return}i=!0}f=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>t!==i&&(f=-f),a.x=f,a.y=o}da.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},da.prototype.commitNodes=function(){var e=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new ce(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()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},da.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()};function Ev(e,t,n,i,r){var o=e.ty;if(.001>Math.abs(e.Zm-1))return i!==void 0&&r!==void 0?r*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,l=i!==void 0&&r!==void 0?r/(o+1):Math.PI/(2*(o+1)),u=0,f=0;f<=o;f++){i!==void 0&&r!==void 0?u=i+f*r/o:u=f*Math.PI/(2*o);var p=Math.sin(u);a+=Math.sqrt(1-e*e*p*p)*l}return i!==void 0&&r!==void 0?(t>n?t:n)*a:4*(t>n?t:n)*a}function Cm(e,t,n,i,r){return t/(i!==void 0&&r!==void 0?Ev(e,1,n,i,r):Ev(e,1,n))}function Tm(e,t,n,i,r){if(.001>Math.abs(e.Zm-1))return r/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(i+=Math.PI/2);for(var l=0;;l++){var u=Math.sin(i+l*e);if(a+=(t>n?t:n)*Math.sqrt(1-o*o*u*u)*e,a>=r)return l*e}}da.prototype.sort=function(e){switch(this.sorting){case Nm:break;case Am:e.reverse();break;case km:e.sort(this.comparer);break;case Im:e.sort(this.comparer),e.reverse();break;case zf:return this.ak(Kb(e));default:Ke("Invalid sorting type.")}return e};function Kb(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new Xt;for(var i=0;i<e.length;i++){var r=-1,o=-1;if(i===0)for(var a=0;a<e.length;a++){var l=e.M(a).edgesCount;l>r&&(r=l,o=a)}else for(a=0;a<e.length;a++)l=t[a],l>r&&(r=l,o=a);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),a=o.sourceEdges;a.next();)r=e.indexOf(a.value.fromVertex),0>r||0<=t[r]&&t[r]++;for(o=o.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),0>r||0<=t[r]&&t[r]++}return n}da.prototype.ak=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.M(n);t[n]=[];for(var r,o=i.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r);for(i=i.sourceEdges;i.next();)r=e.indexOf(i.value.fromVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r)}for(o=[],n=0;n<t.length;n++)o[n]=0;n=[];var a=[],l=[];i=[],r=new Xt;for(var u=0,f=0;f<t.length;f++){var p=t[f].length;if(p===1)i.push(f);else if(p===0)r.add(e.M(f));else{if(u===0)n.push(f);else{for(var x=p=1/0,A=-1,R=[],z=0;z<n.length;z++)0>t[n[z]].indexOf(n[z===n.length-1?0:z+1])&&R.push(z===n.length-1?0:z+1);if(R.length===0)for(z=0;z<n.length;z++)R.push(z);for(z=0;z<R.length;z++){for(var V=R[z],ye=t[f],se=0,De=0;De<a.length;De++){var ze=o[a[De]],je=o[l[De]];if(ze<je){var ot=ze;ze=je}else ot=je;if(ot<V&&V<=ze)for(je=0;je<ye.length;je++){var Nt=ye[je];0>n.indexOf(Nt)||ot<o[Nt]&&o[Nt]<ze||ot===o[Nt]||ze===o[Nt]||se++}else for(je=0;je<ye.length;je++)Nt=ye[je],0>n.indexOf(Nt)||ot<o[Nt]&&o[Nt]<ze&&ot!==o[Nt]&&ze!==o[Nt]&&se++}for(ye=se,De=se=0;De<t[f].length;De++)ot=n.indexOf(t[f][De]),0<=ot&&(ot=Math.abs(V-(ot>=V?ot+1:ot)),se+=ot<n.length+1-ot?ot:n.length+1-ot);for(De=0;De<a.length;De++)ot=o[a[De]],ze=o[l[De]],ot>=V&&ot++,ze>=V&&ze++,ot>ze&&(je=ze,ze=ot,ot=je),ze-ot<(n.length+2)/2==(ot<V&&V<=ze)&&se++;(ye<p||ye===p&&se<x)&&(p=ye,x=se,A=V)}for(n.splice(A,0,f),p=0;p<n.length;p++)o[n[p]]=p;for(p=0;p<t[f].length;p++)x=t[f][p],0<=n.indexOf(x)&&(a.push(f),l.push(x))}u++}}for(a=n.length;;){for(o=!0,l=0;l<i.length;l++)if(u=i[l],f=t[u][0],p=n.indexOf(f),0<=p){for(A=x=0;A<t[f].length;A++)R=n.indexOf(t[f][A]),0>R||R===p||(z=R>p?R-p:p-R,x+=R<p!=z>a-z?1:-1);n.splice(0>x?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(t=0;t<n.length;t++)r.add(e.M(n[t]));return r},ft.Object.defineProperties(da.prototype,{radius:{get:function(){return this.eo},set:function(e){this.eo!==e&&(0<e||isNaN(e))&&(this.eo=e,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(e){this.Cm!==e&&0<e&&(this.Cm=e,this.C())}},startAngle:{get:function(){return this.ro},set:function(e){this.ro!==e&&(this.ro=e,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(e){this.ul!==e&&(0<e&&360>=e?this.ul=e:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==sc&&e!==ac&&e!==Yh&&e!==Th||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==kl&&e!==Xh&&e!==Td&&e!==_f||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Nm&&e!==Am&&e!==km&&!Im&&e!==zf||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Mm&&e!==Zd||(this.Nn=e,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 ac=new Kt(da,"ConstantSpacing",0),Yh=new Kt(da,"ConstantDistance",1),Th=new Kt(da,"ConstantAngle",2),sc=new Kt(da,"Packed",3),kl=new Kt(da,"Clockwise",4),Xh=new Kt(da,"Counterclockwise",5),Td=new Kt(da,"BidirectionalLeft",6),_f=new Kt(da,"BidirectionalRight",7),Nm=new Kt(da,"Forwards",8),Am=new Kt(da,"Reverse",9),km=new Kt(da,"Ascending",10),Im=new Kt(da,"Descending",11),zf=new Kt(da,"Optimized",12),Mm=new Kt(da,"Pythagorean",13),Zd=new Kt(da,"Circular",14);da.className="CircularLayout",da.ConstantSpacing=ac,da.ConstantDistance=Yh,da.ConstantAngle=Th,da.Packed=sc,da.Clockwise=kl,da.Counterclockwise=Xh,da.BidirectionalLeft=Td,da.BidirectionalRight=_f,da.Forwards=Nm,da.Reverse=Am,da.Ascending=km,da.Descending=Im,da.Optimized=zf,da.Pythagorean=Mm,da.Circular=Zd;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(e,t){if(0<e&&0>this.Pl||Math.abs(e)<Math.abs(this.Pl)&&!(0>e&&0<this.Pl))for(this.Pl=e,this.mk=[],this.tm=[],e=0;e<t.length;e++)this.mk[e]=t[e].bounds.x,this.tm[e]=t[e].bounds.y},Vp.prototype.commit=function(e){if(this.mk!==null&&this.tm!==null)for(var t=0;t<this.mk.length;t++){var n=e.M(t);n.x=this.mk[t],n.y=this.tm[t]}},Vp.className="VertexArrangement";function Uf(e){Fo.call(this,e)}di(Uf,Fo),Uf.prototype.createVertex=function(){return new Kp(this)},Uf.prototype.createEdge=function(){return new Om(this)},Uf.className="CircularNetwork";function Kp(e){us.call(this,e),this.u=this.Si=NaN}di(Kp,us);function Qh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===sc)if(n.nodeDiameterFormula===Zd)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),n===0)return e.width;if(t===0)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Zd?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}ft.Object.defineProperties(Kp.prototype,{diameter:{get:function(){return this.Si},set:function(e){this.Si!==e&&(this.Si=e)}},actualAngle:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}}}),Kp.className="CircularVertex";function Om(e){ru.call(this,e)}di(Om,ru),Om.className="CircularEdge";function $s(e){Qo.call(this),this.ah=null,this.An=0,this.$d=new mi(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,e&&Object.assign(this,e)}di($s,Qo),$s.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.$d.assign(this.$d),e.Bm=this.Bm,e.sf=this.sf,e.td=this.td,e.dl=this.dl,e.$m=this.$m,e.Zf=this.Zf,e.In=this.In,e.fo=this.fo,e.Hk=this.Hk,e.Gk=this.Gk,e.Ek=this.Ek,e.Fk=this.Fk,e.Vm=this.Vm,e.Um=this.Um},$s.prototype.createNetwork=function(){return new Yd(this)},$s.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),e=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(t=this.network.edges.iterator;t.next();)n=t.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){t=this.network,n=t.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}Z1(this,0,e)}this.network=t;var a=i=n.iterator;i=this.arrangementSpacing;var l=a.count,u=!0;o=r=0;for(var f=Dt(),p=0;p<l+t.vertexes.count+2;p++)f[p]=null;l=0,a.reset();for(var x=Wt.alloc();a.next();)if(p=a.value,this.computeBounds(p,x),u)u=!1,r=x.x+x.width/2,o=x.y+x.height/2,f[0]=new ce(x.x+x.width+i.width,x.y),f[1]=new ce(x.x,x.y+x.height+i.height),l=2;else{var A=Y1(f,l,r,o,x.width,x.height,i),R=f[A],z=new ce(R.x+x.width+i.width,R.y),V=new ce(R.x,R.y+x.height+i.height);for(A+1<l&&f.splice(A+1,0,null),f[A]=z,f[A+1]=V,l++,A=R.x-x.x,R=R.y-x.y,p=p.vertexes.iterator;p.next();)z=p.value,z.centerX+=A,z.centerY+=R}for(Wt.free(x),p=t.vertexes.iterator;p.next();)a=p.value,A=a.bounds,2>l?(r=A.x+A.width/2,o=A.y+A.height/2,f[0]=new ce(A.x+A.width+i.width,A.y),f[1]=new ce(A.x,A.y+A.height+i.height),l=2):(u=Y1(f,l,r,o,A.width,A.height,i),x=f[u],R=new ce(x.x+A.width+i.width,x.y),A=new ce(x.x,x.y+A.height+i.height),u+1<l&&f.splice(u+1,0,null),f[u]=R,f[u+1]=A,l++,a.centerX=x.x+a.width/2,a.centerY=x.y+a.height/2);for(Jt(f),i=n.iterator;i.next();){for(n=i.value,r=n.vertexes.iterator;r.next();)t.dh(r.value);for(n=n.edges.iterator;n.next();)t.Bo(n.value)}}Q1(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},$s.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&(e++,2<e))return!0;if(10<t)break;t++}return!1},$s.prototype.computeBounds=function(e,t){var n=!0;for(e=e.vertexes.iterator;e.next();){var i=e.value;n?(n=!1,t.set(i.bounds)):t.ed(i.bounds)}return t};function Z1(e,t,n){if(Zb(e,t)){var i=e.Zf;e.Zf*=1+1/(t+1);var r=Yb(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Z1(e,t+1,n),Q1(e,o),Xb(e,r),t=r.vertexes.Fa(),t.sort(function(a,l){return a===null||l===null||a===l?0:l.Vd-a.Vd}),n=0;n<t.length;n++)Qb(e,t[n]);e.Zf=i}}function Zb(e,t){if(10<t||3>e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),e=e.ah,e.sort(function(n,i){return n===null||i===null||n===i?0:i.Vd-n.Vd}),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1<e.length-t}function Yb(e,t){for(var n=e.network,i=new Yd(e),r=0;r<e.ah.length;r++){var o=e.ah[r];if(1<o.Vd){i.dh(o);var a=new J1;a.Rs=o.Vd,a.Ss=o.width,a.Qs=o.height,a.Sv=o.focus.x,a.Tv=o.focus.y,o.We===null&&(o.We=new Xt),o.We.add(a),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,a=l.toVertex,r.network===i&&a.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new Xt,r.Hj=l),l.add(a),r.Vd--,r.sh+=a.sh):a.network===i&&(l=a.Hj,l===null&&(l=new Xt,a.Hj=l),l.add(r),a.Vd--,a.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,et.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=i.vertexes.iterator;t.next();){r=t.value;var u=r.Hj;if(u!==null&&0<u.count&&(a=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=a))){for(var f=l=0,p=u.count-a;p<u.count;p++){var x=u.M(p),A=null;for(o=x.edges.iterator;o.next();){var R=o.value;if(R.Ax(x)===r){A=R;break}}A!==null&&(f+=A.length,l+=x.width*x.height)}o=r.centerX,u=r.centerY,p=r.width,x=r.height,A=r.focus,R=p*x,1>R&&(R=1),l=et.sqrt((l+R+f*f*4/(a*a))/R),a=(l-1)*p/2,l=(l-1)*x/2,r.bounds=new Wt(o-A.x-a,u-A.y-l,p+2*a,x+2*l),r.focus=new ce(A.x+a,A.y+l)}}return e.network=i,n}function Xb(e,t){for(var n=e.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=t,i.We!==null){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,a=r.Tv;i.bounds=new Wt(i.centerX-o,i.centerY-a,r.Ss,r.Qs),i.focus=new ce(o,a),i.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}function Qb(e,t){var n=t.Hj;if(n!==null&&n.count!==0){var i=t.centerX,r=t.centerY,o=t.width,a=t.height;t.We!==null&&0<t.We.count&&(a=t.We.M(0),o=a.Ss,a=a.Qs),o=et.sqrt(o*o+a*a)/2;for(var l=!1,u=a=0,f=0,p=t.vertexes.iterator;p.next();){var x=p.value;1>=x.Vd?u++:(l=!0,f++,a+=Math.atan2(t.centerY-x.centerY,t.centerX-x.centerX))}if(u!==0){for(0<f&&(a/=f),f=t=0,t=l?2*Math.PI/(u+1):2*Math.PI/u,u%2===0&&(f=t/2),1<n.count&&n.sort(function(R,z){return R===null||z===null||R===z?0:z.width*z.height-R.width*R.height}),l=u%2===0?0:1,n=n.iterator;n.next();)if(u=n.value,!(1<u.Vd||e.isFixed(u))){for(p=null,x=u.edges.iterator;x.next();){p=x.value;break}x=u.width;var A=u.height;x=et.sqrt(x*x+A*A)/2,p=o+p.length+x,x=a+(t*(l/2>>1)+f)*(l%2===0?1:-1),u.centerX=i+p*Math.cos(x),u.centerY=r+p*Math.sin(x),l++}}}}function Y1(e,t,n,i,r,o,a){var l=9e19,u=-1,f=0;e:for(;f<t;f++){var p=e[f],x=p.x-n,A=p.y-i;if(x=x*x+A*A,x<l){for(A=f-1;0<=A;A--)if(e[A].y>p.y&&e[A].x-p.x<r+a.width)continue e;for(A=f+1;A<t;A++)if(e[A].x>p.x&&e[A].y-p.y<o+a.height)continue e;u=f,l=x}}return u}$s.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},$s.prototype.addComments=function(e){var t=e.node;if(t!==null)for(t=t.Mu();t.next();){var n=t.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===e){n=o;break}}if(n===null){for(r=i.sourceEdges;r.next();)if(o=r.value,o.fromVertex===e){n=o;break}}n===null&&(n=this.network.Zj(e,i,null)),n.length=this.defaultCommentSpringLength}}};function X1(e,t){var n=e.bounds,i=n.x;e=n.y;var r=n.width;n=n.height;var o=t.bounds,a=o.x;t=o.y;var l=o.width;return o=o.height,i+r<a?e>t+o?(n=i+r-a,e=e-t-o,et.sqrt(n*n+e*e)):e+n<t?(i=i+r-a,e=e+n-t,et.sqrt(i*i+e*e)):a-(i+r):i>a+l?e>t+o?(n=i-a-l,e=e-t-o,et.sqrt(n*n+e*e)):e+n<t?(i=i-a-l,e=e+n-t,et.sqrt(i*i+e*e)):i-(a+l):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function Q1(e,t){for(e.ah=null,t=e.An+t;e.An<t&&(e.An++,Jb(e)););e.ah=null}function Jb(e){e.ah===null&&(e.ah=e.network.vertexes.Fa());var t=e.ah;if(0>=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,a=1;a<t.length;a++){var l=t[a];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)?t.sort(function(V,ye){return V===null||ye===null||V===ye?0:V.centerX-ye.centerX}):t.sort(function(V,ye){return V===null||ye===null||V===ye?0:V.centerY-ye.centerY}),n=e.Zf;var f=i=l=0;for(o=0;o<t.length;o++){a=t[o],i=a.bounds,l=a.focus,u=i.x+l.x;var p=i.y+l.y;i=a.charge*e.electricalFieldX(u,p),f=a.charge*e.electricalFieldY(u,p),i+=a.mass*e.gravitationalFieldX(u,p),f+=a.mass*e.gravitationalFieldY(u,p),a.forceX+=i,a.forceY+=f;for(var x=o+1;x<t.length;x++){var A=t[x];if(A!==a){i=A.bounds,l=A.focus,f=i.x+l.x;var R=i.y+l.y;if(u-f>n||f-u>n){if(r)break}else if(p-R>n||R-p>n){if(!r)break}else{var z=X1(a,A);1>z?(i=e.randomNumberGenerator,i===null&&(e.randomNumberGenerator=i=new Lm),z=i.random(),l=i.random(),u>f?(i=Math.abs(A.bounds.right-a.bounds.x),i=(1+i)*z):u<f?(i=Math.abs(A.bounds.x-a.bounds.right),i=-(1+i)*z):(i=Math.max(A.width,a.width),i=(1+i)*z-i/2),p>R?(f=Math.abs(A.bounds.bottom-a.bounds.y),f=(1+f)*l):u<f?(f=Math.abs(A.bounds.y-a.bounds.bottom),f=-(1+f)*l):(f=Math.max(A.height,a.height),f=(1+f)*l-f/2)):(l=-(a.charge*A.charge)/(z*z),i=(f-u)/z*l,f=(R-p)/z*l),a.forceX+=i,a.forceY+=f,A.forceX-=i,A.forceY-=f}}}}for(r=e.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,a=n.bounds,u=n.focus,i=a.x+u.x,a=a.y+u.y,p=o.bounds,x=o.focus,u=p.x+x.x,p=p.y+x.y,x=X1(n,o),1>x?(x=e.randomNumberGenerator,x===null&&(e.randomNumberGenerator=x=new Lm),l=x.random(),x=x.random(),i=(i>u?1:-1)*(1+(o.width>n.width?o.width:n.width))*l,f=(a>p?1:-1)*(1+(o.height>n.height?o.height:n.height))*x):(l=l.stiffness*(x-l.length),i=(u-i)/x*l,f=(p-a)/x*l),n.forceX+=i,n.forceY+=f,o.forceX-=i,o.forceY-=f;for(r=i=0;r<t.length;r++)n=t[r],e.isFixed(n)?e.moveFixedVertex(n):i=Math.max(i,e.moveVertex(n)||0);return i>e.epsilonDistance*e.epsilonDistance}$s.prototype.moveVertex=function(e){var t=e.forceX,n=e.forceY,i=this.moveLimit;return t<-i?t=-i:t>i&&(t=i),n<-i?n=-i:n>i&&(n=i),e.centerX+=t,e.centerY+=n,t*t+n*n},$s.prototype.moveFixedVertex=function(){},$s.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},$s.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Vr,t.toSpot=Vr)}},$s.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Wt.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Wt.free(n)}n=Wt.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;(e!==0||t!==0)&&(n.assign(r.bounds),n.x+=e,n.y+=t,r.bounds=n),r.commit()}Wt.free(n)},$s.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},$s.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},$s.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},$s.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},$s.prototype.electricalFieldX=function(){return 0},$s.prototype.electricalFieldY=function(){return 0},$s.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},$s.prototype.gravitationalFieldX=function(){return 0},$s.prototype.gravitationalFieldY=function(){return 0},$s.prototype.isFixed=function(e){return e.isFixed},ft.Object.defineProperties($s.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0<e&&(this.$m=e,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(e){this.Zf!==e&&1<e&&(this.Zf=e,this.C())}},moveLimit:{get:function(){return this.In},set:function(e){this.In!==e&&1<e&&(this.In=e,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(e){this.fo!==e&&(e!==null&&typeof e.random!="function"&&Ke('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+e),this.fo=e)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(e){this.Hk!==e&&(this.Hk=e,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(e){this.Gk!==e&&(this.Gk=e,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(e){this.Ek!==e&&(this.Ek=e,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(e){this.Fk!==e&&(this.Fk=e,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(e){this.Vm!==e&&(this.Vm=e,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(e){this.Um!==e&&(this.Um=e,this.C())}}}),$s.className="ForceDirectedLayout";function J1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}J1.className="ForceDirectedSubnet";function Yd(e){Fo.call(this,e)}di(Yd,Fo),Yd.prototype.createVertex=function(){return new Zp(this)},Yd.prototype.createEdge=function(){return new Yp(this)},Yd.className="ForceDirectedNetwork";function Zp(e){us.call(this,e),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}di(Zp,us),ft.Object.defineProperties(Zp.prototype,{isFixed:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},charge:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},mass:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},forceX:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},forceY:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}}}),Zp.className="ForceDirectedVertex";function Yp(e){ru.call(this,e),this.j=this.o=NaN}di(Yp,ru),ft.Object.defineProperties(Yp.prototype,{stiffness:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},length:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}}}),Yp.className="ForceDirectedEdge";function Lm(){var e=0;e===void 0&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Lm.prototype.random=function(){var e=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<e?this.seed=e:this.seed=e+this.ey,this.seed*this.by},Lm.className="RandomNumberGenerator";function fo(e){Qo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Bm,this.Zk=_m,this.Qk=zm,this.bj=4,this.rk=Um,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 ce,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}di(fo,Qo),fo.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.ie=this.ie,e.kc=this.kc,e.K=this.K,e.Dk=this.Dk,e.Zk=this.Zk,e.Qk=this.Qk,e.bj=this.bj,e.rk=this.rk,e.bg=this.bg,e.sf=this.sf,e.Cn=this.Cn,e.ve=this.ve},fo.prototype.qb=function(e){e.classType===fo?e.name.indexOf("Aggressive")===0?this.aggressiveOption=e:e.name.indexOf("Cycle")===0?this.cycleRemoveOption=e:e.name.indexOf("Init")===0?this.initializeOption=e:e.name.indexOf("Layer")===0?this.layeringOption=e:Ke("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},fo.prototype.createNetwork=function(){return new $f(this)},fo.prototype.doLayout=function(e){for(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,e=0;e<this.He.length;e++)this.He[e]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),e=this.network.vertexes.iterator;e.next();)e.value.layer=-1;for(this.Ia=-1,this.assignLayers(),e.reset();e.next();)this.Ia=Math.max(this.Ia,e.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),e=this.network;for(var t=[],n=e.edges.iterator;n.next();){var i=n.value;i.valid=!1,t.push(i)}for(n=0;n<t.length;n++){i=t[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 a=0,l=0,u=0,f=0;if(i.link!==null){if(l=i.link,l===null)continue;var p=r.node;if(a=o.node,p===null||a===null)continue;var x=l.fromNode;u=l.toNode;for(var A=l.fromPort;A!==null&&!A.Ed();)A=A.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){f=x;var R=A;x=u,A=l,u=f,l=R}var z=r.focus;f=o.focus;var V=i.rev?o.bounds:r.bounds;R=ce.alloc(),p!==x?V.w()&&x.isVisible()?x.actualBounds.w()?(xh(x,A,Lr,R),R.x+=x.actualBounds.x-V.x,R.y+=x.actualBounds.y-V.y):(xh(x,A,Lr,R),R.w()||R.assign(z)):R.assign(z):V.w()?(xh(x,A,Lr,R),R.w()||R.assign(z)):R.assign(z),x=i.rev?r.bounds:o.bounds,p=ce.alloc(),a!==u?x.w()&&u.isVisible()?u.actualBounds.w()?(xh(u,l,Lr,p),p.x+=u.actualBounds.x-x.x,p.y+=u.actualBounds.y-x.y):(xh(u,l,Lr,p),p.w()||p.assign(f)):p.assign(f):x.w()?(xh(u,l,Lr,p),p.w()||p.assign(f)):p.assign(f),this.K===90||this.K===270?(a=Math.round((R.x-z.x)/this.kc),u=R.x,l=Math.round((p.x-f.x)/this.kc),f=p.x):(a=Math.round((R.y-z.y)/this.kc),u=R.y,l=Math.round((p.y-f.y)/this.kc),f=p.y),ce.free(R),ce.free(p),i.portFromColOffset=a,i.portFromPos=u,i.portToColOffset=l,i.portToPos=f}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(R=r.layer,p=o.layer,x=0,V=i.link,V!==null){var ye=V.fromPort,se=V.toPort;if(ye!==null&&se!==null){var De=V.fromNode;if(A=V.toNode,De!==null&&A!==null){var ze=Fm(this,!0),je=Fm(this,!1),ot=this.setsPortSpots?ze:V.computeSpot(!0,ye);z=this.setsPortSpots?je:V.computeSpot(!1,se);var Nt=V.isOrthogonal;ot.$c()&&ot.Hf(je)&&z.$c()&&z.Hf(ze)?x=0:(ze=V.getLinkPoint(De,ye,ot,!0,Nt,A,se,ce.alloc()),je=V.getLinkDirection(De,ye,ze,ot,!0,Nt,A,se),ce.free(ze),ot.ys()||je!==sb(this,i,!0)?this.setsPortSpots&&De!==null&&De.ports.count===1&&i.rev&&(x+=1):x+=1,ot=V.getLinkPoint(A,se,z,!1,Nt,De,ye,ce.alloc()),V=V.getLinkDirection(A,se,ot,z,!1,Nt,De,ye),ce.free(ot),z.ys()||V!==sb(this,i,!1)?this.setsPortSpots&&A!==null&&A.ports.count===1&&i.rev&&(x+=2):x+=2)}}}if(A=x,x=A===1||A===3,(A=A===2||A===3)&&(z=e.createVertex(),z.node=null,z.Dj=1,z.layer=R,z.near=r,e.dh(z),r=e.Zj(r,z,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=a,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=z),V=1,x&&V--,R-p>V&&0<R){for(i.valid=!1,z=e.createVertex(),z.node=null,z.Dj=2,z.layer=R-1,e.dh(z),r=e.Zj(r,z,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=A?0:a,r.portToColOffset=0,r.portFromPos=A?0:u,r.portToPos=0,r=z,R--;R-p>V&&0<R;)z=e.createVertex(),z.node=null,z.Dj=3,z.layer=R-1,e.dh(z),r=e.Zj(r,z,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=z,R--;r=e.Zj(z,o,i.link),r.valid=!x,x&&(z.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=l,r.portFromPos=0,r.portToPos=f}else i.valid=!0}}for(e=this.tc=[],t=0;t<=this.Ia;t++)e[t]=0;for(t=this.network.vertexes.iterator;t.next();)t.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)e[n]>e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]<e[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<e.length;n++)this.fl[n]=[];for(t.reset();t.next();)e=t.value,this.fl[e.layer][e.index]=e;for(this.Ra=-1,e=0;e<=this.Ia;e++){for(t=Jh(this,e),n=0,i=this.tc[e],o=0;o<i;o++)r=t[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),qh(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},fo.prototype.linkMinLength=function(){return 1};function wv(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,t===null&&e===null?8:t===null||e===null?4:1}fo.prototype.nodeMinLayerSpace=function(e,t){return e.node===null&&e.data===null?0:this.K===90||this.K===270?t?e.focus.y+10:e.bounds.height-e.focus.y+10:t?e.focus.x+10:e.bounds.width-e.focus.x+10},fo.prototype.nodeMinColumnSpace=function(e,t){if(e.node===null&&e.data===null)return 0;var n=t?e.ev:e.dv;return n!==null?n:(n=this.K,n===90||n===270?t?e.ev=e.focus.x/this.kc+1|0:e.dv=(e.bounds.width-e.focus.x)/this.kc+1|0:t?e.ev=e.focus.y/this.kc+1|0:e.dv=(e.bounds.height-e.focus.y)/this.kc+1|0)};function jl(e){e.kj===null&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var i=n.value;e.kj[t]=i.layer,t++,e.kj[t]=i.column,t++,e.kj[t]=i.index,t++}return e.kj}function Pu(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var i=e.value;i.layer=t[n],n++,i.column=t[n],n++,i.index=t[n],n++}}function q1(e,t,n){var i=Jh(e,t),r=e.tc[t];(e.Jn===null||e.Jn.length<r*r)&&(e.Jn=[]);for(var o=e.Jn,a=0;a<r;a++){var l=0,u=i[a],f=u.near;if(f!==null&&f.layer===u.layer)if(u=f.index,u>a)for(var p=a+1;p<u;p++){var x=i[p];x.near===f&&x.Dj===f.Dj||l++}else for(p=a-1;p>u;p--)x=i[p],x.near===f&&x.Dj===f.Dj||l++;var A;if(0<=n)for(u=i[a].sourceEdgesArrayAccess,f=0;f<u.length;f++){var R=u[f];if(R.valid&&R.fromVertex.layer!==t)for(x=R.fromVertex.index,p=R.portToPos,R=R.portFromPos,A=f+1;A<u.length;A++){var z=u[A];if(z.valid&&z.fromVertex.layer!==t){var V=z.fromVertex.index,ye=z.portToPos;z=z.portFromPos,p<ye&&(x>V||x===V&&R>z)&&l++,ye<p&&(V>x||V===x&&z>R)&&l++}}}if(0>=n){for(u=i[a].destinationEdgesArrayAccess,f=0;f<u.length;f++)if(R=u[f],R.valid&&R.toVertex.layer!==t)for(x=R.toVertex.index,p=R.portToPos,R=R.portFromPos,A=f+1;A<u.length;A++)z=u[A],z.valid&&z.toVertex.layer!==t&&(V=z.toVertex.index,ye=z.portToPos,z=z.portFromPos,R<z&&(x>V||x===V&&p>ye)&&l++,z<R&&(V>x||V===x&&ye>p)&&l++)}for(o[a*r+a]=l,u=a+1;u<r;u++){var se=0,De=0;if(0<=n){l=i[a].sourceEdgesArrayAccess;var ze=i[u].sourceEdgesArrayAccess;for(f=0;f<l.length;f++)if(R=l[f],R.valid&&R.fromVertex.layer!==t)for(x=R.fromVertex.index,R=R.portFromPos,A=0;A<ze.length;A++)z=ze[A],z.valid&&z.fromVertex.layer!==t&&(V=z.fromVertex.index,z=z.portFromPos,(x<V||x===V&&R<z)&&De++,(V<x||V===x&&z<R)&&se++)}if(0>=n){for(l=i[a].destinationEdgesArrayAccess,ze=i[u].destinationEdgesArrayAccess,f=0;f<l.length;f++)if(R=l[f],R.valid&&R.toVertex.layer!==t)for(x=R.toVertex.index,p=R.portToPos,A=0;A<ze.length;A++)z=ze[A],z.valid&&z.toVertex.layer!==t&&(V=z.toVertex.index,ye=z.portToPos,(x<V||x===V&&p<ye)&&De++,(V<x||V===x&&ye<p)&&se++)}o[a*r+u]=se,o[u*r+a]=De}}return qh(e,t,i),o}fo.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=q1(this,t,1),i=this.tc[t],r=0;r<i;r++)for(var o=r;o<i;o++)e+=n[r*i+o];return e};function Rm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var i=e,r=n,o=Jh(i,r),a=i.tc[r],l=0,u=0;u<a;u++){var f=o[u].destinationEdgesArrayAccess;if(f!==null)for(var p=0;p<f.length;p++){var x=f[p];if(x.valid&&x.toVertex.layer!==r){var A=x.fromVertex.column+x.portFromColOffset,R=x.toVertex.column+x.portToColOffset;l+=(Math.abs(A-R)+1)*wv(x)}}}qh(i,r,o),t+=l}return t}fo.prototype.normalize=function(){var e=1/0;this.Ra=-1;for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;e=Math.min(e,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(t.reset();t.next();)t.value.column-=e;this.Ra-=e};function Cv(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],a=0;a<r;a++){var l=i[a],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=0,A=l.near;if(A!==null&&A.layer===l.layer&&(p+=A.column-1,x++),u!==null)for(A=0;A<u.length;A++){l=u[A];var R=l.fromVertex;l.valid&&!l.rev&&R.layer!==t&&(p+=R.column,x++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],A=l.toVertex,l.valid&&!l.rev&&A.layer!==t&&(p+=A.column,x++);o[a]=x===0?-1:p/x}return qh(e,t,i),o}function eb(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],a=0;a<r;a++){var l=i[a],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=[],A=l.near;if(A!==null&&A.layer===l.layer&&(x[p]=A.column-1,p++),l=void 0,u!==null)for(A=0;A<u.length;A++){l=u[A];var R=l.fromVertex;l.valid&&!l.rev&&R.layer!==t&&(x[p]=R.column+l.portFromColOffset,p++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],A=l.toVertex,l.valid&&!l.rev&&A.layer!==t&&(x[p]=A.column+l.portToColOffset,p++);p===0?o[a]=-1:(x.sort(function(z,V){return z-V}),f=p>>1,o[a]=p&1?x[f]:x[f-1]+x[f]>>1)}return qh(e,t,i),o}function Xp(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();){var l=a.value,u=l.toVertex,f=t.layer-u.layer;l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}if(o)for(a=t.sourceEdges;a.next();)l=a.value,u=l.fromVertex,f=u.layer-t.layer,l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}}function Tv(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();)Tv(e,a.value.toVertex,n,i,r,o);if(o)for(t=t.sourceEdges;t.next();)Tv(e,t.value.fromVertex,n,i,r,o)}}fo.prototype.removeCycles=function(){for(var e=this.network.edges.iterator;e.next();)e.value.rev=!1;switch(this.Dk){default:case kv:e=this.network;var t=0,n=e.vertexes.count-1,i=[];i.length=n+1;for(var r=e.vertexes.iterator;r.next();)r.value.valid=!0;for(;qb(e)!==null;){for(r=tb(e);r!==null;)i[n]=r,n--,r.valid=!1,r=tb(e);for(r=nb(e);r!==null;)i[t]=r,t++,r.valid=!1,r=nb(e);r=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var l=a.value;if(l.valid){for(var u=0,f=l.destinationEdges;f.next();)f.value.toVertex.valid&&u++;f=0;for(var p=l.sourceEdges;p.next();)p.value.fromVertex.valid&&f++;(r===null||o<u-f)&&(r=l,o=u-f)}}r!==null&&(i[t]=r,t++,r.valid=!1)}for(t=0;t<e.vertexes.count;t++)i[t].index=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.index>t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Bm:for(i=this.network.vertexes.iterator;i.next();)e=i.value,e.Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,i.reset();i.next();)t=i.value,t.sourceEdges.count===0&&Nv(this,t);for(i.reset();i.next();)t=i.value,t.Ll===-1&&Nv(this,t);for(e.reset();e.next();)i=e.value,i.forest||(t=i.fromVertex,n=t.finish,r=i.toVertex,o=r.finish,r.Ll<t.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case Qp:for(e=this.network,t=e.vertexes.iterator,i=1/0;t.next();)i=Math.min(i,t.value.layer);if(1/0>i){if(0>i)for(t.reset();t.next();)t.value.layer-=i;for(i=[],t.reset();t.next();)n=t.value,r=i[n.layer],r===void 0?i[n.layer]=[n]:r.push(n);for(n=t=0;n<i.length;n++)if(r=i[n],!r||r.length===0)t++;else if(0<n)for(o=0;o<r.length;o++)r[o].layer-=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.layer<t.toVertex.layer&&(e.gm(t),t.rev=!0)}}};function qb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function tb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function nb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function Nv(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var i=n.value,r=i.toVertex;r.Ll===-1&&(i.forest=!0,Nv(e,r))}t.finish=e.Kn,e.Kn++}fo.prototype.assignLayers=function(){switch(this.Zk){case Iv:ib(this);break;case Mv:for(var e,t=this.network.vertexes.iterator;t.next();)e=ob(this,t.value),this.Ia=Math.max(e,this.Ia);for(t.reset();t.next();)e=t.value,e.layer=this.Ia-e.layer;break;default:case _m:for(ib(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&ab(this,e);for(e=1/0,t.reset();t.next();)e=Math.min(e,t.value.layer);for(this.Ia=-1,t.reset();t.next();){var n=t.value;n.layer-=e,this.Ia=Math.max(this.Ia,n.layer)}}};function ib(e){for(var t=e.network.vertexes.iterator;t.next();){var n=rb(e,t.value);e.Ia=Math.max(n,e.Ia)}}function rb(e,t){var n=0;if(t.layer===-1){for(var i=t.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=e.linkMinLength(r),n=Math.max(n,rb(e,o)+r)}t.layer=n}else n=t.layer;return n}function ob(e,t){var n=0;if(t.layer===-1){for(var i=t.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=e.linkMinLength(r),n=Math.max(n,ob(e,o)+r)}t.layer=n}else n=t.layer;return n}function ab(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)ab(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=t.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var a=i[o],l=a.fromVertex,u=a.toVertex;a=e.linkMinLength(a),l.layer-u.layer>a&&Xp(e,l,0,-1,!0,!1)}for(Xp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,i=1/0,l=0,u=null,a=e.network.vertexes.iterator;a.next();){var f=a.value;if(f.component===1){var p=0,x=!1,A=f.sourceEdgesArrayAccess;r=A.length;for(var R=0;R<r;R++){var z=A[R],V=z.fromVertex;p+=1,V.component!==1&&(o+=1,V=V.layer-f.layer,z=e.linkMinLength(z),i=Math.min(i,V-z))}for(A=f.destinationEdgesArrayAccess,r=A.length,R=0;R<r;R++)z=A[R].toVertex,--p,z.component!==1?--o:x=!0;(u===null||p<l)&&!x&&(u=f,l=p)}}if(0<o){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer+=i);t.component=0}else u.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(Xp(e,t,1,-1,!0,!1);t.component!==0;){for(i=0,r=1/0,o=0,l=null,u=e.network.vertexes.iterator;u.next();)if(a=u.value,a.component===1){for(f=0,p=!1,A=a.sourceEdgesArrayAccess,x=A.length,R=0;R<x;R++)z=A[R].fromVertex,f+=1,z.component!==1?i+=1:p=!0;for(A=a.destinationEdgesArrayAccess,x=A.length,R=0;R<x;R++)z=A[R],V=z.toVertex,--f,V.component!==1&&(--i,V=a.layer-V.layer,z=e.linkMinLength(z),r=Math.min(r,V-z));(l===null||f>o)&&!p&&(l=a,o=f)}if(0>i){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer-=r);t.component=0}else l.component=0}}}function sb(e,t,n){return e.K===90?n&&!t.rev||!n&&t.rev?270:90:e.K===180?n&&!t.rev||!n&&t.rev?0:180:e.K===270?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}fo.prototype.initializeIndices=function(){switch(this.Qk){default:case Lv:for(var e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;t.index=this.tc[n],this.tc[n]++}break;case zm:for(e=this.network.vertexes.iterator,t=this.Ia;0<=t;t--)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&lb(this,n);break;case Ov:for(e=this.network.vertexes.iterator,t=0;t<=this.Ia;t++)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&ub(this,n)}};function lb(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<t.length-1;i++){var r=t[i],o=t[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,t[i]=o,t[i+1]=r)}}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.toVertex,i.index===-1&&lb(e,i))}function ub(e,t){var n=t.layer;t.index=e.tc[n],e.tc[n]++,t=t.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,t[n]=o,t[n+1]=r)}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.fromVertex,i.index===-1&&ub(e,i))}fo.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=jl(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,1),ju(this,i,1);var r=this.countCrossings();for(r<e&&(e=r,t=jl(this)),i=this.Ia;0<=i;i--)Dm(this,i,-1),ju(this,i,-1);r=this.countCrossings(),r<e&&(e=r,t=jl(this))}for(Pu(this,t),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,0),ju(this,i,0);for(r=this.countCrossings(),r<e&&(e=r,t=jl(this)),i=this.Ia;0<=i;i--)Dm(this,i,0),ju(this,i,0);r=this.countCrossings(),r<e&&(e=r,t=jl(this))}Pu(this,t);var o,a,l;switch(this.rk){case Rv:break;case Dv:for(l=e+1;(i=this.countCrossings())<l;)for(l=i,n=this.Ia;0<=n;n--)for(a=0;a<=n;a++){for(o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,-1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,0)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,0)||o;r>=e?Pu(this,t):(e=r,t=jl(this))}break;default:case Um:for(n=this.Ia,a=0,l=e+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,-1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=ju(this,i,0)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=ju(this,i,0)||o;r>=e?Pu(this,t):(e=r,t=jl(this))}}Pu(this,t)};function Dm(e,t,n){var i=Jh(e,t),r=e.tc[t],o=eb(e,t,n),a=Cv(e,t,n);for(n=0;n<r;n++)a[n]===-1&&(a[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]&&a[n+1]<a[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=a[n],a[n]=a[n+1],a[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+=e.nodeMinColumnSpace(u,!0),u.column=o,o+=1,o+=e.nodeMinColumnSpace(u,!1);qh(e,t,i)}function ju(e,t,n){var i=Jh(e,t),r=e.tc[t];n=q1(e,t,n);var o,a=[];for(o=0;o<r;o++)a[o]=-1;var l=[];for(o=0;o<r;o++)l[o]=-1;for(var u=!1,f=!0;f;)for(f=!1,o=0;o<r-1;o++){var p=n[i[o].index*r+i[o+1].index],x=n[i[o+1].index*r+i[o].index],A=0,R=0,z=i[o].column,V=i[o+1].column,ye=e.nodeMinColumnSpace(i[o],!0),se=e.nodeMinColumnSpace(i[o],!1),De=e.nodeMinColumnSpace(i[o+1],!0),ze=e.nodeMinColumnSpace(i[o+1],!1);ye=z-ye+De,se=V-se+ze;var je=i[o].sourceEdges.iterator;for(je.reset();je.next();)if(De=je.value,ze=De.fromVertex,De.valid&&ze.layer===t){for(De=0;i[De]!==ze;)De++;De<o&&(A+=2*(o-De),R+=2*(o+1-De)),De===o+1&&(A+=1),De>o+1&&(A+=4*(De-o),R+=4*(De-(o+1)))}for(je=i[o].destinationEdges.iterator,je.reset();je.next();)if(De=je.value,ze=De.toVertex,De.valid&&ze.layer===t){for(De=0;i[De]!==ze;)De++;De===o+1&&(R+=1)}for(je=i[o+1].sourceEdges.iterator,je.reset();je.next();)if(De=je.value,ze=De.fromVertex,De.valid&&ze.layer===t){for(De=0;i[De]!==ze;)De++;De<o&&(A+=2*(o+1-De),R+=2*(o-De)),De===o&&(R+=1),De>o+1&&(A+=4*(De-(o+1)),R+=4*(De-o))}for(je=i[o+1].destinationEdges.iterator,je.reset();je.next();)if(De=je.value,ze=De.toVertex,De.valid&&ze.layer===t){for(De=0;i[De]!==ze;)De++;De===o&&(A+=1)}De=ze=0,je=a[i[o].index];var ot=l[i[o].index],Nt=a[i[o+1].index],Vn=l[i[o+1].index];je!==-1&&(ze+=Math.abs(je-z),De+=Math.abs(je-se)),ot!==-1&&(ze+=Math.abs(ot-z),De+=Math.abs(ot-se)),Nt!==-1&&(ze+=Math.abs(Nt-V),De+=Math.abs(Nt-ye)),Vn!==-1&&(ze+=Math.abs(Vn-V),De+=Math.abs(Vn-ye)),(R<A-.5||R===A&&x<p-.5||R===A&&x===p&&De<ze-.5)&&(f=u=!0,i[o].column=se,i[o+1].column=ye,p=i[o],i[o]=i[o+1],i[o+1]=p)}for(o=0;o<r;o++)i[o].index=o;return qh(e,t,i),u}fo.prototype.straightenAndPack=function(){if(this.ve===0){var e=(this.bg&1)!==0,t=(this.bg&sx)!==0;if(1e3<this.network.edges.count&&t&&(e=!1),e){var n=[];for(t=0;t<=this.Ia;t++)n[t]=0;for(var i,r=this.network.vertexes.iterator;r.next();){var o=r.value;t=o.layer,i=o.column,o=this.nodeMinColumnSpace(o,!1),n[t]=Math.max(n[t],i+o)}for(r.reset();r.next();)o=r.value,t=o.layer,i=o.column,o.column=(8*(this.Ra-n[t])>>1)+8*i;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,-1)||n;n=Hf(this,this.Md,0)||n}if(this.bg&4){for(t=this.Md+1;t<=this.Ia;t++)Av(this,t,1);for(t=this.Md-1;0<=t;t--)Av(this,t,-1);Av(this,this.Md,0)}if(e&&(cb(this,-1),cb(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=Hf(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,0)||n}}else ix(this)};function Hf(e,t,n){for(var i=!1;ex(e,t,n);)i=!0;return i}function ex(e,t,n){var i,r=Jh(e,t),o=e.tc[t],a=Cv(e,t,-1);if(0<n)for(i=0;i<o;i++)a[i]=-1;var l=Cv(e,t,1);if(0>n)for(i=0;i<o;i++)l[i]=-1;for(var u=!1,f=!0;f;)for(f=!1,i=0;i<o;i++){var p=r[i].column,x=e.nodeMinColumnSpace(r[i],!0),A=e.nodeMinColumnSpace(r[i],!1),R=0;0>i-1||p-r[i-1].column-1>x+e.nodeMinColumnSpace(r[i-1],!1)?R=p-1:R=p,x=i+1>=o||r[i+1].column-p-1>A+e.nodeMinColumnSpace(r[i+1],!0)?p+1:p;var z=A=0,V=0;if(0>=n)for(var ye=r[i].sourceEdges.iterator;ye.next();){var se=ye.value,De=se.fromVertex;if(se.valid&&De.layer!==t){var ze=wv(se),je=se.portFromColOffset;se=se.portToColOffset,De=De.column,A+=(Math.abs(p+se-(De+je))+1)*ze,z+=(Math.abs(R+se-(De+je))+1)*ze,V+=(Math.abs(x+se-(De+je))+1)*ze}}if(0<=n)for(ye=r[i].destinationEdges.iterator;ye.next();)se=ye.value,De=se.toVertex,se.valid&&De.layer!==t&&(ze=wv(se),je=se.portFromColOffset,se=se.portToColOffset,De=De.column,A+=(Math.abs(p+je-(De+se))+1)*ze,z+=(Math.abs(R+je-(De+se))+1)*ze,V+=(Math.abs(x+je-(De+se))+1)*ze);se=je=ze=0,ye=a[r[i].index],De=l[r[i].index],ye!==-1&&(ze+=Math.abs(ye-p),je+=Math.abs(ye-R),se+=Math.abs(ye-x)),De!==-1&&(ze+=Math.abs(De-p),je+=Math.abs(De-R),se+=Math.abs(De-x)),z<A||z===A&&je<ze?(f=u=!0,r[i].column=R):(V<A||V===A&&se<ze)&&(f=u=!0,r[i].column=x)}return qh(e,t,r),e.normalize(),u}function Av(e,t,n){var i=Jh(e,t),r=e.tc[t],o=eb(e,t,n),a=[];for(n=0;n<r;n++)a[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var l=i[n].column,u=e.nodeMinColumnSpace(i[n],!0),f=e.nodeMinColumnSpace(i[n],!1),p=0;if(a[n]===-1)if(n===0&&n===r-1)p=l;else if(n===0){var x=i[n+1].column;x-l===f+e.nodeMinColumnSpace(i[n+1],!0)?p=l-1:p=l}else n===r-1?(x=i[n-1].column,p=l-x===u+e.nodeMinColumnSpace(i[n-1],!1)?l+1:l):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=(u+f)/2|0);else n===0&&n===r-1?p=a[n]:n===0?(x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=Math.min(a[n],f)):n===r-1?(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,p=Math.max(a[n],u)):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,u<a[n]&&a[n]<f?p=a[n]:u>=a[n]?p=u:f<=a[n]&&(p=f));p!==l&&(o=!0,i[n].column=p)}qh(e,t,i),e.normalize()}function tx(e,t){for(var n=!0,i=e.network.vertexes.iterator;i.next();){var r=i.value,o=e.nodeMinColumnSpace(r,!0),a=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+a>=t){n=!1;break}}if(e=!1,n)for(i.reset();i.next();)n=i.value,n.column>t&&(--n.column,e=!0);return e}function nx(e,t){var n=t+1,i,r=[],o=[];for(i=0;i<=e.Ia;i++)r[i]=!1,o[i]=!1;for(var a=e.network.vertexes.iterator;a.next();){i=a.value;var l=i.column-e.nodeMinColumnSpace(i,!0),u=i.column+e.nodeMinColumnSpace(i,!1);l<=t&&u>=t&&(r[i.layer]=!0),l<=n&&u>=n&&(o[i.layer]=!0)}for(l=!0,n=!1,i=0;i<=e.Ia;i++)l=l&&!(r[i]&&o[i]);if(l)for(a.reset();a.next();)e=a.value,e.column>t&&(--e.column,n=!0);return n}function cb(e,t){for(var n=0;n<=e.Ra;n++)for(;tx(e,n););for(e.normalize(),n=0;n<e.Ra;n++)for(;nx(e,n););e.normalize();var i;if(0<t)for(n=0;n<=e.Ra;n++){var r=jl(e),o=Rm(e);for(i=o+1;o<i;){i=o,hb(e,n,1);var a=Rm(e);a>o?Pu(e,r):a<o&&(o=a,r=jl(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(r=jl(e),o=Rm(e),i=o+1;o<i;)i=o,hb(e,n,-1),a=Rm(e),a>o?Pu(e,r):a<o&&(o=a,r=jl(e));e.normalize()}function hb(e,t,n){e.le=0;for(var i=e.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-e.nodeMinColumnSpace(r,!0)<=t&&(r.component=e.le)}if(0>n)for(i.reset();i.next();)r=i.value,r.column+e.nodeMinColumnSpace(r,!1)>=t&&(r.component=e.le);for(e.le++,i.reset();i.next();)t=i.value,t.component===-1&&(Tv(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;o<e.le*e.le;o++)t[o]=!1;for(r=[],o=0;o<(e.Ia+1)*(e.Ra+1);o++)r[o]=-1;for(i.reset();i.next();){o=i.value;for(var a=o.layer,l=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),u=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));l<=u;l++)r[a*(e.Ra+1)+l]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(a=0;a<e.Ra;a++)r[o*(e.Ra+1)+a]!==-1&&r[o*(e.Ra+1)+a+1]!==-1&&r[o*(e.Ra+1)+a]!==r[o*(e.Ra+1)+a+1]&&(t[r[o*(e.Ra+1)+a]*e.le+r[o*(e.Ra+1)+a+1]]=!0);if(0>n)for(a=e.Ra;0<a;a--)r[o*(e.Ra+1)+a]!==-1&&r[o*(e.Ra+1)+a-1]!==-1&&r[o*(e.Ra+1)+a]!==r[o*(e.Ra+1)+a-1]&&(t[r[o*(e.Ra+1)+a]*e.le+r[o*(e.Ra+1)+a-1]]=!0)}for(r=[],o=0;o<e.le;o++)r[o]=!0;for(a=[],a.push(0);a.length!==0;)if(u=a[a.length-1],a.pop(),r[u])for(r[u]=!1,o=0;o<e.le;o++)t[u*e.le+o]&&a.splice(0,0,o);if(0<n)for(i.reset();i.next();)e=i.value,r[e.component]&&--e.column;if(0>n)for(i.reset();i.next();)n=i.value,r[n.component]&&(n.column+=1)}function ix(e){for(var t=Dt(),n=e.fl.length,i=0;i<=n;i++)t[i]=[];for(i=e.network.vertexes.iterator;i.next();){var r=i.value;t[n-r.layer][r.index]=r}n=new Zt,rx(t,n);var o=null,a=null,l=null,u=null,f=(e.ve&1)!==0,p=(e.ve&2)!==0,x=(e.ve&4)!==0,A=(e.ve&8)!==0;for(f&&(e.verticalAlignment(t,n,!0),o=Pm(e,t,!0,!1)),t.reverse(),x&&(e.verticalAlignment(t,n,!1),l=Pm(e,t,!1,!1)),i=fr(t),r=i.next();!r.done;r=i.next())r.value.reverse();A&&(e.verticalAlignment(t,n,!1),u=Pm(e,t,!1,!0)),t.reverse(),p&&(e.verticalAlignment(t,n,!0),a=Pm(e,t,!0,!0)),Jt(t),e.u(o,a,l,u),e.network.vertexes.each(function(R){var z=Dt();f&&z.push(o.get(R)),p&&z.push(a.get(R)),x&&z.push(l.get(R)),A&&z.push(u.get(R)),z.sort(function(ye,se){return ye-se});var V=z.length;V=(z[Math.floor((V-1)/2)]+z[Math.ceil((V-1)/2)])/2,Jt(z),R.zc=V})}function rx(e,t){for(var n=e.length,i=1;i<n-1;i++)for(var r=0,o=0,a=e[i],l=e[i+1],u=0;o<l.length;u++){var f=l[u];e:{if(f.node===null){var p=Pv(f);if(0<p.length){p=p[0].node===null;break e}}p=!1}var x=p;if(u===l.length-1||x){for(p=a.length-1,x&&(p=Pv(f)[0].index);o<=u;){if(f=l[o],!f.bo){x=[];for(var A=fr(f.sourceEdgesArrayAccess),R=A.next();!R.done;R=A.next())R=R.value,R.valid&&x.push(R);f.bo=x}for(f=fr(f.bo),x=f.next();!x.done;x=f.next())x=x.value,A=x.fromVertex.index,(A<r||A>p)&&t.add(x);o++}r=p}}}fo.prototype.verticalAlignment=function(e,t,n){ox(e),e=fr(e);for(var i=e.next();!i.done;i=e.next()){var r=-1;i=fr(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var a=n?Pv(o):lx(o),l=a.length;if(0<l){a.sort(function(x,A){return x.vi-A.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var f=a[l],p=void 0;p=n?Hm(f,o):Hm(o,f),!t.contains(p)&&r<f.vi&&(f.align=o,o.root=f.root,o.align=f.root,r=f.vi)}}}}};function ox(e){for(var t=0;t<e.length;t++)for(var n=e[t],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=t,r.vi=i}}function Pm(e,t,n,i){for(var r=e.K===90||e.K===270,o=fr(t),a=o.next();!a.done;a=o.next()){var l=fr(a.value);for(a=l.next();!a.done;a=l.next())a=a.value,a.sd=a,a.shift=1/0,a.zc=NaN,a.qg=0}for(a=e.K===90||e.K===270,o=fr(t),l=o.next();!l.done;l=o.next()){l=fr(l.value);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.root===u){for(var f=0,p=u;p.align!==u;){var x=p.align,A=a?p.width:p.height,R=a?x.width:x.height;if(n){var z=Hm(p,x),V=z.portFromPos,ye=z.portToPos;z.link!==null&&(p.node&&p.node!==z.link.fromNode&&(V=a?p.focusX:p.focusY),x.node&&x.node!==z.link.toNode&&(ye=a?x.focusX:x.focusY))}else z=Hm(x,p),V=z.portToPos,ye=z.portFromPos,z.link!==null&&(p.node&&p.node!==z.link.toNode&&(V=a?p.focusX:p.focusY),x.node&&x.node!==z.link.fromNode&&(ye=a?x.focusX:x.focusY));A=i?p.qg+(A-V)-(R-ye):p.qg+V-ye,x.qg=A,f=Math.min(f,A),p=p.align}p=u;do p.qg=p.qg-f,p=p.align;while(p!==u)}}for(n=fr(t),a=n.next();!a.done;a=n.next())for(o=fr(a.value),a=o.next();!a.done;a=o.next())a=a.value,a.root===a&&db(e,a,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(a=t[n][0],a.sd===a)){a.sd.shift===1/0&&(a.sd.shift=0),a=n,l=0;do{for(o=t[a][l];o.align!==o.root;)o=o.align,a++,0<o.vi&&(l=fb(o,t),l.sd.shift=Math.min(l.sd.shift,o.sd.shift+o.zc+o.qg-(l.zc+l.qg+(r?l.width:l.height)+e.columnSpacing)));l=o.vi+1}while(a<t.length&&l<t[a].length&&o.sd===t[a][l].sd)}for(e=new Zn,t=fr(t),a=t.next();!a.done;a=t.next())for(n=fr(a.value),a=n.next();!a.done;a=n.next())a=a.value,a.zc=a.zc+a.sd.shift+a.qg,o=r?a.width:a.height,e.add(a,i?-a.zc-o:a.zc);return e}function db(e,t,n){if(isNaN(t.zc)){t.zc=0;var i=t;do{if(0<i.vi){var r=fb(i,n),o=r.root;db(e,o,n),t.sd===t&&(t.sd=o.sd);var a=e.K===90||e.K===270?r.width:r.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+r.qg+a-i.qg+e.columnSpacing))}i=i.align}while(i!==t);for(;i.align!==t;)i=i.align,i.zc=t.zc,i.sd=t.sd}}function fb(e,t){var n=e.Tz;return e=e.vi,1>e&&Ke("Could not determine previous vertex in layer"),t[n][e-1]}fo.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var i=Dt(),r=Dt(),o=1/0,a=0;4>a;a++)if(t[a]){var l=ax(this,t[a],i,r,a);l<o&&(n=a,o=l)}for(o={},a=0;4>a;o={delta:o.delta},a++)t[a]&&(o.delta=a===0||a===2?i[n]-i[a]:r[n]-r[a],o.delta!==0&&t[a].each(function(u){return function(f){f.value+=u.delta}}(o)));Jt(i),Jt(r)};function ax(e,t,n,i,r){if(!t||t.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,a=-1/0;return t.each(function(l){var u=l.key;l=l.value,u=e.K===90||e.K===270?u.width:u.height,l<o&&(o=l),l+u>a&&(a=l+u)}),n[r]=o,i[r]=a,a-o}fo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Fm(this,!0),t=Fm(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;i!==null&&(i.fromSpot=e,i.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Fm(e,t){return e.K===270?t?sa:Aa:e.K===90?t?Aa:sa:e.K===180?t?ga:La:t?La:ga}fo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=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&&(t+=r/2),this.K===90||this.K===0?(t+=this.Ld[i],this.Kd[i]=t,t+=this.he[i]):(t+=this.he[i],this.Kd[i]=t,t+=this.Ld[i]),i<this.Ia&&(t+=r/2),this.Ta[i]=t}for(n=t,t=this.arrangementOrigin,i=0;i<=this.Ia;i++)this.K===270?this.Kd[i]=t.y+this.Kd[i]:this.K===90?(this.Kd[i]=t.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):this.K===180?this.Kd[i]=t.x+this.Kd[i]:(this.Kd[i]=t.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=this.ve!==0,e.reset(),i=this.K===270||this.K===90;for(var o=1/0,a=r=1/0,l=-1/0;e.next();){var u=e.value,f=u.layer,p=u.column|0;i?(a=t.x+this.kc*p,f=this.Kd[f]):(a=this.Kd[f],f=t.y+this.kc*p),u.centerX=a,u.centerY=f,n&&isFinite(u.zc)&&(i?u.node?u.x=t.x+u.zc:u.centerX=t.x+u.zc:u.node?u.y=t.y+u.zc:u.centerY=t.y+u.zc),o=Math.min(u.x,o),r=Math.min(u.y,r),i?(a=o,l=Math.max(l,u.bounds.right)):(a=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-a,o=t.x-o,t=t.y-r,this.Rf=new ce(n&&i?0:o,n&&!i?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},fo.prototype.Gu=function(){for(var e=0,t=this.ie,n=0;n<=this.Ia;n++)e+=this.he[n],e+=this.Ld[n];e+=this.Ia*t,t=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)this.K===270?i===0?t.push(new Wt(0,0,n,Math.abs(this.Ta[0]))):t.push(new Wt(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?t.push(new Wt(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Wt(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?t.push(new Wt(0,0,Math.abs(this.Ta[0]),n)):t.push(new Wt(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?t.push(new Wt(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Wt(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(t,this.Rf)},fo.prototype.commitLayers=function(){},fo.prototype.commitLinks=function(){for(var e=this.network.edges.iterator,t;e.next();)t=e.value.link,t!==null&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)t=e.value.link,t!==null&&t.vg();for(e.reset();e.next();){var n=e.value;if(t=n.link,t!==null){t.uh();var i=t,r=i.fromNode,o=i.toNode,a=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,a=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var f=t.computeSpot(!0,a);u=t.computeSpot(!1,l);var p=n.fromVertex,x=n.toVertex;if(n.valid)t.curve===xu&&t.pointsCount===4&&(p.column===x.column&&this.alignOption===0?(n=t.getLinkPoint(r,a,f,!0,!1,o,l),l=t.getLinkPoint(o,l,u,!1,!1,r,a),n.w()||n.set(r.actualBounds.center),l.w()||l.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+l.x)/3,(2*n.y+l.y)/3),t.yf((n.x+2*l.x)/3,(n.y+2*l.y)/3),t.yf(l.x,l.y)):(n=i=!1,a!==null&&f===Hi&&(i=!0),l!==null&&u===Hi&&(n=!0),(i||n)&&(u=null,i&&(u=t.getLinkPointFromPoint(r,a,a.ga(Lr),t.i(3),!0),u.w()||u.set(r.actualBounds.center),t.L(0,u.x,u.y)),r=null,n&&(r=t.getLinkPointFromPoint(o,l,l.ga(Lr),t.i(0),!1),r.w()||r.set(o.actualBounds.center),t.L(3,r.x,r.y)),u&&(o=t.i(2),t.L(1,(2*u.x+o.x)/3,(2*u.y+o.y)/3)),r&&(o=t.i(1),t.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),t.zf();else if(p.layer===x.layer)t.zf();else{var A=!1,R=!1,z=this.ie,V=t.firstPickIndex+1;if(t.isOrthogonal){R=!0;var ye=t.pointsCount;4<ye&&t.points.removeRange(2,ye-3)}else if(t.curve===xu)A=!0,ye=t.pointsCount,4<ye&&t.points.removeRange(2,ye-3),ye===4&&(V=2);else{ye=t.pointsCount;var se=f===Hi,De=u===Hi;2<ye&&se&&De?t.points.removeRange(1,ye-2):3<ye&&se&&!De?t.points.removeRange(1,ye-3):3<ye&&!se&&De?t.points.removeRange(2,ye-2):4<ye&&!se&&!De&&t.points.removeRange(2,ye-3)}if(n.rev){for(;x!==null&&p!==x;){var ze=ye=null;for(se=x.sourceEdges.iterator;se.next()&&(De=se.value,De.link!==n.link||(ye=De.fromVertex,ze=De.toVertex,ye.node!==null)););if(ye===null)break;if(ye!==p){se=t.i(V-1).x,De=t.i(V-1).y;var je=ye.centerX,ot=ye.centerY;if(R)this.K===180||this.K===0?V===t.firstPickIndex+1?(t.m(V++,se,De),t.m(V++,se,ot)):(ze!==null?ze.centerY:De)!==ot&&(ze=this.Ta[ye.layer-1]+this.Rf.x,t.m(V++,ze,De),t.m(V++,ze,ot)):V===t.firstPickIndex+1?(t.m(V++,se,De),t.m(V++,je,De)):(ze!==null?ze.centerX:se)!==je&&(ze=this.Ta[ye.layer-1]+this.Rf.y,t.m(V++,se,ze),t.m(V++,je,ze));else if(V===t.firstPickIndex+1){ze=Math.max(10,this.he[x.layer]);var Nt=Math.max(10,this.Ld[x.layer]);if(A)this.K===180?je<=x.bounds.x?(x=x.bounds.x,t.m(V++,x-ze,ot),t.m(V++,x,ot),t.m(V++,x+Nt,ot)):(t.m(V++,je-ze,ot),t.m(V++,je,ot),t.m(V++,je+Nt,ot)):this.K===90?ot>=x.bounds.bottom?(x=x.bounds.y+x.bounds.height,t.m(V++,je,x+Nt),t.m(V++,je,x),t.m(V++,je,x-ze)):(t.m(V++,je,ot+Nt),t.m(V++,je,ot),t.m(V++,je,ot-ze)):this.K===270?ot<=x.bounds.y?(x=x.bounds.y,t.m(V++,je,x-ze),t.m(V++,je,x),t.m(V++,je,x+Nt)):(t.m(V++,je,ot-ze),t.m(V++,je,ot),t.m(V++,je,ot+Nt)):this.K===0&&(je>=x.bounds.right?(x=x.bounds.x+x.bounds.width,t.m(V++,x+Nt,ot),t.m(V++,x,ot),t.m(V++,x-ze,ot)):(t.m(V++,je+Nt,ot),t.m(V++,je,ot),t.m(V++,je-ze,ot)));else{t.m(V++,se,De);var Vn=0;this.K===180||this.K===0?((this.K===180?je>=x.bounds.right:je<=x.bounds.x)&&(Vn=(this.K===0?-ze:Nt)/2),t.m(V++,se+Vn,ot)):((this.K===270?ot>=x.bounds.bottom:ot<=x.bounds.y)&&(Vn=(this.K===90?-ze:Nt)/2),t.m(V++,je,De+Vn)),t.m(V++,je,ot)}}else ze=Math.max(10,this.he[ye.layer]),Nt=Math.max(10,this.Ld[ye.layer]),A?this.K===180?(t.m(V++,je-ze-z,ot),t.m(V++,Math.min(je-ze+z/2,je),ot),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,Math.max(je+Nt-z/2,je),ot),t.m(V++,je+Nt+z,ot)):this.K===90?(t.m(V++,je,ot+Nt+z),t.m(V++,je,Math.max(ot+Nt-z/2,ot)),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,je,Math.min(ot-ze+z/2,ot)),t.m(V++,je,ot-ze-z)):this.K===270?(t.m(V++,je,ot-ze-z),t.m(V++,je,Math.min(ot-ze+z/2,ot)),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,je,Math.max(ot+Nt-z/2,ot)),t.m(V++,je,ot+Nt+z)):(t.m(V++,je+Nt+z,ot),t.m(V++,Math.max(je+Nt-z/2,je),ot),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,Math.min(je-ze+z/2,je),ot),t.m(V++,je-ze-z,ot)):t.m(V++,je,ot)}x=ye}(l===null||f!==Hi||R)&&(se=t.i(V-1).x,De=t.i(V-1).y,je=t.i(V).x,ot=t.i(V).y,R?(z=this.Ld[p.layer],this.K===180||this.K===0?(R=De,R>=p.bounds.y&&R<=p.bounds.bottom&&(this.K===180?je>=p.bounds.x:je<=p.bounds.right)&&(x=p.centerX+(this.K===180?-z:z),R<p.bounds.y+p.bounds.height/2?R=p.bounds.y-this.kc/2:R=p.bounds.bottom+this.kc/2,t.m(V++,x,De),t.m(V++,x,R)),t.m(V++,je,R)):(R=se,R>=p.bounds.x&&R<=p.bounds.right&&(this.K===270?ot>=p.bounds.y:ot<=p.bounds.bottom)&&(x=p.centerY+(this.K===270?-z:z),R<p.bounds.x+p.bounds.width/2?R=p.bounds.x-this.kc/2:R=p.bounds.right+this.kc/2,t.m(V++,se,x),t.m(V++,R,x)),t.m(V++,R,ot)),t.m(V++,je,ot)):A?(ze=Math.max(10,this.he[p.layer]),Nt=Math.max(10,this.Ld[p.layer]),this.K===180&&je>=p.bounds.x?(x=p.bounds.x+p.bounds.width,t.L(V-2,x,De),t.L(V-1,x+Nt,De)):this.K===90&&ot<=p.bounds.bottom?(x=p.bounds.y,t.L(V-2,se,x),t.L(V-1,se,x-ze)):this.K===270&&ot>=p.bounds.y?(x=p.bounds.y+p.bounds.height,t.L(V-2,se,x),t.L(V-1,se,x+Nt)):this.K===0&&je<=p.bounds.right&&(x=p.bounds.x,t.L(V-2,x,De),t.L(V-1,x-ze,De))):(ze=Math.max(10,this.he[p.layer]),Nt=Math.max(10,this.Ld[p.layer]),R=0,this.K===180||this.K===0?((this.K===180?je<=p.bounds.x:je>=p.bounds.right)&&(R=(this.K===0?Nt:-ze)/2),t.m(V++,je+R,De)):((this.K===270?ot<=p.bounds.y:ot>=p.bounds.bottom)&&(R=(this.K===90?Nt:-ze)/2),t.m(V++,se,ot+R)),t.m(V++,je,ot)))}else{for(;p!==null&&p!==x;){for(ze=ye=null,p=p.destinationEdges.iterator;p.next()&&(se=p.value,se.link!==n.link||(ye=se.toVertex,ze=se.fromVertex,ze.node!==null&&(ze=null),ye.node!==null)););if(ye===null)break;ye!==x&&(se=t.i(V-1).x,De=t.i(V-1).y,je=ye.centerX,ot=ye.centerY,R?this.K===180||this.K===0?(ze!==null?ze.centerY:De)!==ot&&(ze=this.Ta[ye.layer]+this.Rf.x,V===t.firstPickIndex+1&&(ze=this.K===0?Math.max(ze,se):Math.min(ze,se)),t.m(V++,ze,De),t.m(V++,ze,ot)):(ze!==null?ze.centerX:se)!==je&&(ze=this.Ta[ye.layer]+this.Rf.y,V===t.firstPickIndex+1&&(ze=this.K===90?Math.max(ze,De):Math.min(ze,De)),t.m(V++,se,ze),t.m(V++,je,ze)):(ze=Math.max(10,this.he[ye.layer]),Nt=Math.max(10,this.Ld[ye.layer]),A?this.K===180?(t.m(V++,je+Nt+z,ot),t.m(V++,Math.max(je+Nt-z/2,je),ot),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,Math.min(je-ze+z/2,je),ot),t.m(V++,je-ze-z,ot)):this.K===90?(t.m(V++,je,ot-ze-z),t.m(V++,je,Math.min(ot-ze+z/2,ot)),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,je,Math.max(ot+Nt-z/2,ot)),t.m(V++,je,ot+Nt+z)):this.K===270?(t.m(V++,je,ot+Nt+z),t.m(V++,je,Math.max(ot+Nt-z/2,ot)),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,je,Math.min(ot-ze+z/2,ot)),t.m(V++,je,ot-ze-z)):(t.m(V++,je-ze-z,ot),t.m(V++,Math.min(je-ze+z/2,je),ot),t.m(V++,je,ot),t.m(V++,je,ot),t.m(V++,Math.max(je+Nt-z/2,je),ot),t.m(V++,je+Nt+z,ot)):this.K===180?(t.m(V++,je+Nt,ot),t.m(V++,je-ze,ot)):this.K===90?(t.m(V++,je,ot-ze),t.m(V++,je,ot+Nt)):this.K===270?(t.m(V++,je,ot+Nt),t.m(V++,je,ot-ze)):(t.m(V++,je-ze,ot),t.m(V++,je+Nt,ot)))),p=ye}R&&(se=t.i(V-1).x,De=t.i(V-1).y,je=t.i(V).x,ot=t.i(V).y,this.K===180||this.K===0?De!==ot&&(ze=this.K===0?Math.min(Math.max((je+se)/2,this.Ta[x.layer]+this.Rf.x),je):Math.max(Math.min((je+se)/2,this.Ta[x.layer]+this.Rf.x),je),t.m(V++,ze,De),t.m(V++,ze,ot)):se!==je&&(ze=this.K===90?Math.min(Math.max((ot+De)/2,this.Ta[x.layer]+this.Rf.y),ot):Math.max(Math.min((ot+De)/2,this.Ta[x.layer]+this.Rf.y),ot),t.m(V++,se,ze),t.m(V++,je,ze)))}i!==null&&A&&4<=t.pointsCount&&(a!==null&&(a=f===Hi?t.getLinkPointFromPoint(r,a,a.ga(Lr),t.i(3),!0):t.i(0),f===Hi&&(f=t.i(2),i=t.i(3),this.direction===90||this.direction===270?(t.L(1,(a.x+f.x)/2,f.y),t.L(2,i.x,(f.y+i.y)/2)):(t.L(1,f.x,(a.y+f.y)/2),t.L(2,(f.x+i.x)/2,i.y))),a.w()||a.set(r.actualBounds.center),t.L(0,a.x,a.y)),l!==null&&(r=u===Hi?t.getLinkPointFromPoint(o,l,l.ga(Lr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),u===Hi&&(l=t.i(t.pointsCount-3),u=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(r.x+l.x)/2,l.y),t.L(t.pointsCount-2,u.x,(l.y+u.y)/2)):(t.L(t.pointsCount-2,l.x,(r.y+l.y)/2),t.L(t.pointsCount-3,(l.x+u.x)/2,u.y))),r.w()||r.set(o.actualBounds.center),t.L(t.pointsCount-1,r.x,r.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},fo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Xt,t=this.network.edges.iterator;t.next();){var n=t.value.link;n!==null&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0<e.count)if(this.K===90||this.K===270){for(t=0,n=[],e=e.iterator;e.next();){var i=e.value;if(i!==null&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),a=i.i(r+1);if(this.B(o.y,a.y)&&!this.B(o.x,a.x)){var l=new ed;l.layer=Math.floor(o.y/2);var u=i.i(0),f=i.i(i.pointsCount-1);if(l.first=u.x*u.x+u.y,l.jc=f.x*f.x+f.y,l.rd=Math.min(o.x,a.x),l.Ic=Math.max(o.x,a.x),l.index=r,l.link=i,r+2<i.pointsCount){u=i.i(r-1),f=i.i(r+2);var p=0;u.y<o.y?p=f.y<o.y?3:o.x<a.x?2:1:u.y>o.y&&(p=f.y>o.y?0:a.x<o.x?2:1),l.j=p}n.push(l)}}}if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(a=n[o].Ic,r=e+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(a=r-o,1<a){for(this.zi(n,this.Js,o,o+a),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);this.zi(n,this.Ux,o,o+a);var x=1;for(l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+a)):l=n[o].first,p=0,x=o;x<r;x++){var A=n[x];(u?A.first:A.jc)!==l&&(p++,l=u?A.first:A.jc);var R=A.link;o=R.i(A.index),a=R.i(A.index+1);var z=this.linkSpacing*(p-(f-1)/2);t++,R.uh(),R.L(A.index,o.x,o.y+z),R.L(A.index+1,a.x,a.y+z),R.zf()}}o=r}e=i}}else{for(t=0,n=[],e=e.iterator;e.next();)if(i=e.value,i!==null&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),a=i.i(r+1),this.B(o.x,a.x)&&!this.B(o.y,a.y)&&(l=new ed,l.layer=Math.floor(o.x/2),u=i.i(0),f=i.i(i.pointsCount-1),l.first=u.x+u.y*u.y,l.jc=f.x+f.y*f.y,l.rd=Math.min(o.y,a.y),l.Ic=Math.max(o.y,a.y),l.index=r,l.link=i,r+2<i.pointsCount&&(u=i.i(r-1),f=i.i(r+2),p=0,u.x<o.x?p=f.x<o.x?3:o.y<a.y?2:1:u.x>o.x&&(p=f.x>o.x?0:a.y<o.y?2:1),l.j=p),n.push(l));if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(a=n[o].Ic,r=e+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(a=r-o,1<a){for(this.zi(n,this.Js,o,o+a),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);for(this.zi(n,this.Ux,o,o+a),x=1,l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+a)):l=n[o].first,p=0,x=o;x<r;x++)A=n[x],(u?A.first:A.jc)!==l&&(p++,l=u?A.first:A.jc),R=A.link,o=R.i(A.index),a=R.i(A.index+1),z=this.linkSpacing*(p-(f-1)/2),t++,R.uh(),R.L(A.index,o.x+z,o.y),R.L(A.index+1,a.x+z,a.y),R.zf()}o=r}e=i}}}},U=fo.prototype,U.Vx=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.layer<t.layer?-1:e.layer>t.layer?1:e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.Ux=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.first<t.first?-1:e.first>t.first||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.Js=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.jc<t.jc?-1:e.jc>t.jc||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.B=function(e,t){return e-=t,-1<e&&1>e},U.zi=function(e,t,n,i){var r=e.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&Ke("not in range 0 <= from < length: "+n),o===2)i=e[n],r=e[n+1],0<t(i,r)&&(e[n]=r,e[n+1]=i);else if(n===0)if(i>=r)e.sort(t);else for(n=e.slice(0,i),n.sort(t),t=0;t<i;t++)e[t]=n[t];else if(i>=r)for(i=e.slice(n),i.sort(t),t=n;t<r;t++)e[t]=i[t-n];else for(r=e.slice(n,i),r.sort(t),t=n;t<i;t++)e[t]=r[t-n]};function Jh(e,t){var n=e.tc[t];if(n>=e.He.length){for(var i=[],r=0;r<e.He.length;r++)i[r]=e.He[r];e.He=i}for(e.He[n]===void 0||e.He[n]===null?i=[]:(i=e.He[n],e.He[n]=null),e=e.fl[t],t=0;t<e.length;t++)n=e[t],i[n.index]=n;return i}function qh(e,t,n){e.He[e.tc[t]]=n}ft.Object.defineProperties(fo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&0<=e&&(this.ie=e,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(e){this.kc!==e&&0<e&&(this.kc=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K!==e&&(e===0||e===90||e===180||e===270?(this.K=e,this.C()):Ke("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==kv&&e!==Bm&&e!==Qp||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==_m&&e!==Iv&&e!==Mv||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==zm&&e!==Ov&&e!==Lv||(this.Qk=e,this.C())}},iterations:{get:function(){return this.bj},set:function(e){this.bj!==e&&0<=e&&(this.bj=e,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(e){this.rk===e||e!==Rv&&e!==Um&&e!==Dv||(this.rk=e,this.C())}},packOption:{get:function(){return this.bg},set:function(e){this.bg!==e&&0<=e&&8>e&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,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 Kt(fo,"CycleDepthFirst",0),kv=new Kt(fo,"CycleGreedy",1),Qp=new Kt(fo,"CycleFromLayers",2),_m=new Kt(fo,"LayerOptimalLinkLength",0),Iv=new Kt(fo,"LayerLongestPathSink",1),Mv=new Kt(fo,"LayerLongestPathSource",2),zm=new Kt(fo,"InitDepthFirstOut",0),Ov=new Kt(fo,"InitDepthFirstIn",1),Lv=new Kt(fo,"InitNaive",2),Rv=new Kt(fo,"AggressiveNone",0),Um=new Kt(fo,"AggressiveLess",1),Dv=new Kt(fo,"AggressiveMore",2),sx=8;fo.className="LayeredDigraphLayout",fo.CycleDepthFirst=Bm,fo.CycleGreedy=kv,fo.CycleFromLayers=Qp,fo.LayerOptimalLinkLength=_m,fo.LayerLongestPathSink=Iv,fo.LayerLongestPathSource=Mv,fo.InitDepthFirstOut=zm,fo.InitDepthFirstIn=Ov,fo.InitNaive=Lv,fo.AggressiveNone=Rv,fo.AggressiveLess=Um,fo.AggressiveMore=Dv,fo.PackNone=0,fo.PackExpand=1,fo.PackStraighten=2,fo.PackMedian=4,fo.PackAll=15,fo.AlignNone=0,fo.AlignUpperLeft=1,fo.AlignUpperRight=2,fo.AlignLowerLeft=4,fo.AlignLowerRight=8,fo.AlignAll=15;function ed(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ed.className="SegInfo";function $f(e){Fo.call(this,e)}di($f,Fo),$f.prototype.createVertex=function(){return new Fu(this)},$f.prototype.createEdge=function(){return new Jp(this)},$f.className="LayeredDigraphNetwork";function Fu(e){us.call(this,e),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}di(Fu,us);function pb(e,t){return e.index-t.index}function Hm(e,t){if(!e.$n){for(var n=[],i=fr(e.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);e.$n=n}for(e=fr(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;Ke("Unable to find destination edge to given vertex")}function Pv(e){if(!e.co){for(var t=[],n=fr(e.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.fromVertex);t.sort(pb),e.co=t}return e.co}function lx(e){if(!e.ao){for(var t=[],n=fr(e.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.toVertex);t.sort(pb),e.ao=t}return e.ao}Fu.prototype.Cl=function(e){us.prototype.Cl.call(this,e),this.bo=this.co=null},Fu.prototype.Kl=function(e){us.prototype.Kl.call(this,e),this.bo=this.co=null},Fu.prototype.zl=function(e){us.prototype.zl.call(this,e),this.$n=this.ao=null},Fu.prototype.Jl=function(e){us.prototype.Jl.call(this,e),this.$n=this.ao=null},ft.Object.defineProperties(Fu.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Fu.prototype.deleteDestinationEdge=Fu.prototype.Jl,Fu.prototype.addDestinationEdge=Fu.prototype.zl,Fu.prototype.deleteSourceEdge=Fu.prototype.Kl,Fu.prototype.addSourceEdge=Fu.prototype.Cl,Fu.className="LayeredDigraphVertex";function Jp(e){ru.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}di(Jp,ru),ft.Object.defineProperties(Jp.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Jp.className="LayeredDigraphEdge";function kr(e){Qo.call(this),this.Ub=new Zt,this.Wn=Wm,this.ud=jc,this.vo=Km,this.Bq=Vv,this.$v=[],this.td=!0,this.Rb=Zm,this.$d=new mi(10,10).freeze();var t=new qd(this);this.W=new Gu(t),this.Y=new Gu(t),this.ru=[],e&&Object.assign(this,e)}di(kr,Qo),kr.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},kr.prototype.qb=function(e){e.classType===kr?e.name.indexOf("Alignment")===0?this.alignment=e:e.name.indexOf("Arrangement")===0?this.arrangement=e:e.name.indexOf("Compaction")===0?this.compaction=e:e.name.indexOf("Path")===0?this.path=e:e.name.indexOf("Sorting")===0?this.sorting=e:e.name.indexOf("Style")===0?this.treeStyle=e:Ke("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},kr.prototype.createNetwork=function(){return new qd(this)},kr.prototype.makeNetwork=function(e){function t(i){if(i instanceof Xn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof Fn){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 e instanceof Y?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof nr?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},kr.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Ym&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof Y&&(t=e),this.path===Wm&&t!==null?this.ud=t.isTreePathToChildren?jc:Qd:this.ud=this.path===Wm?jc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),e=this.network.vertexes.iterator;e.next();)t=e.value,t.initialized=!1,t.level=0,t.parent=null,t.children=[];if(0<this.Ub.count){for(e=new Zt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof Xn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof Gu&&e.add(n)}this.Ub=e}for(this.Ub.count===0&&this.findRoots(),e=this.Ub.copy().iterator;e.next();)t=e.value,t.initialized||(t.initialized=!0,Fv(this,t));for(t=this.network.vertexes,e=null;e=ux(t),0<e.count;)t=mb(this,e),t!==null&&this.Ub.add(t),t.initialized=!0,Fv(this,t),t=e;for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&vb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&yb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&bb(this,t);if(this.Cu(),this.layerStyle===Xm){for(e=[],t=this.network.vertexes.iterator;t.next();){n=t.value;var i=n.parent;i===null&&(i=n),i=i.angle===0||i.angle===180;var r=e[n.level];r===void 0&&(r=0),e[n.level]=Math.max(r,i?n.width:n.height)}for(t=0;t<e.length;t++)e[t]===void 0&&(e[t]=0);for(this.$v=e,t=this.network.vertexes.iterator;t.next();)n=t.value,i=n.parent,i===null&&(i=n),i.angle===0||i.angle===180?(i.angle===180&&(n.focusX+=e[n.level]-n.width),n.width=e[n.level]):(i.angle===270&&(n.focusY+=e[n.level]-n.height),n.height=e[n.level])}else if(this.layerStyle===Kv)for(e=this.network.vertexes.iterator;e.next();){for(t=e.value,n=t.angle===0||t.angle===180,i=-1,r=0;r<t.children.length;r++){var o=t.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<t.children.length;r++)o=t.children[r],n?(t.angle===180&&(o.focusX+=i-o.width),o.width=i):(t.angle===270&&(o.focusY+=i-o.height),o.height=i)}for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Zt,this.isValidLayout=!0};function ux(e){var t=new Zt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}kr.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case jc:n.sourceEdges.count===0&&this.Ub.add(n);break;case Qd:n.destinationEdges.count===0&&this.Ub.add(n);break;default:Ke("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=mb(this,e),e!==null&&this.Ub.add(e))};function mb(e,t){var n=999999,i=null;for(t=t.iterator;t.next();){var r=t.value;switch(e.ud){case jc:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case Qd:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:Ke("Unhandled path value "+e.ud.toString())}}return i}function Fv(e,t){if(t!==null){switch(e.ud){case jc:if(0<t.destinationEdges.count){for(var n=new Xt,i=t.destinationVertexes;i.next();){var r=i.value;gb(e,t,r)&&n.add(r)}0<n.count&&(t.children=n.Fa())}break;case Qd:if(0<t.sourceEdges.count){for(n=new Xt,i=t.sourceVertexes;i.next();)r=i.value,gb(e,t,r)&&n.add(r);0<n.count&&(t.children=n.Fa())}break;default:Ke("Unhandled path value"+e.ud.toString())}for(n=t.children,i=n.length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=t.level+1,o.parent=t,e.Ub.remove(o)}for(t=0;t<i;t++)Fv(e,n[t])}}function gb(e,t,n){if(n.initialized){if(t===null)var i=!1;else{for(i=t.parent;i!==null&&i!==n;)i=i.parent;i=i===n}if(i||n.level>t.level)return!1;e.removeChild(n.parent,n)}return!0}kr.prototype.removeChild=function(e,t){if(e!==null&&t!==null){for(var n=e.children,i=0,r=0;r<n.length;r++)n[r]===t&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==t&&(i[r++]=n[o]);e.children=i}}};function vb(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===Vc&&e.sortTreeVertexChildren(t);for(var n=0,i=t.childrenCount,r=0,o=t.children,a=o.length,l=0;l<a;l++){var u=o[l];vb(e,u),n+=u.descendantCount+1,i=Math.max(i,u.maxChildrenCount),r=Math.max(r,u.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=i,t.maxGenerationCount=0<i?r+1:0}}function cx(e,t){switch(e.vo){default:case Km:return t.parent!==null?t.parent:e.W;case Gv:return t.parent===null?e.W:t.parent.parent===null?e.Y:t.parent;case jv:return t.parent!==null?t.parent.parent!==null?t.parent.parent:e.Y:e.W;case $v:var n=!0;if(t.childrenCount===0)n=!1;else for(var i=t.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&t.parent!==null?e.Y:t.parent!==null?t.parent:e.W}}kr.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(cx(this,e)),e.parent!==null&&e.parent.alignment===Vc){for(var t=e.angle,n=e.parent.children,i=0;i<n.length&&e!==n[i];)i++;i%2===0?i!==n.length-1&&(t=t===90?180:t===180?270:t===270?180:270):t=t===90?0:t===180?90:t===270?0:90,e.angle=t}e.initialized=!0};function yb(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,i=0;i<n;i++)yb(e,t[i])}}kr.prototype.assignTreeVertexValues=function(){};function bb(e,t){if(t!==null){t.alignment!==Vc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,i=0;i<n;i++)bb(e,t[i])}}kr.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case jf:break;case e0:e.children.reverse();break;case t0:e.children.sort(e.comparer);break;case n0:e.children.sort(e.comparer),e.children.reverse();break;default:Ke("Unhandled sorting value "+e.sorting.toString())}},kr.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},kr.prototype.addComments=function(e){var t=e.angle,n=e.parent,i=0,r=!1;n!==null&&(i=n.angle,r=n.alignment,r=td(r)),t=t===90||t===270,i=i===90||i===270,n=e.childrenCount===0;var o=0,a=0,l=0,u=e.commentSpacing;if(e.node!==null)for(var f=e.node.Mu();f.next();){var p=f.value;p.category==="Comment"&&p.canLayout()&&(e.comments===null&&(e.comments=[]),e.comments.push(p),p.Va(),p=p.measuredBounds,t&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,p.width),a+=p.height+Math.abs(l)):(o+=p.width+Math.abs(l),a=Math.max(a,p.height)),l=u)}e.comments!==null&&(t&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(e.commentMargin),a=Math.max(0,a-e.height)):(a+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),r=Wt.allocAt(0,0,e.bounds.width+o,e.bounds.height+a),e.bounds=r,Wt.free(r))};function td(e){return e===Nh||e===Vc||e===Ah||e===ih}function qp(e){return e===Nh||e===Vc}function Bv(e){var t=e.parent;if(t!==null){var n=t.alignment;if(td(n)){if(qp(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===Ah)return!0}}return!1}kr.prototype.layoutComments=function(e){if(e.comments!==null){var t=e.node.measuredBounds,n=e.parent,i=e.angle,r=0,o=!1;n!==null&&(r=n.angle,o=n.alignment,o=td(o)),i=i===90||i===270,n=r===90||r===270;for(var a=e.childrenCount===0,l=Bv(e),u=0,f=e.comments,p=f.length,x=ce.alloc(),A=0;A<p;A++){var R=f[A],z=R.measuredBounds;if(i&&!a||!o&&!n&&a||o&&n&&a){if(135<r&&!o||n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x-e.commentMargin-z.width,e.bounds.y+u),R.move(x),R=R.Sd();R.next();){var V=R.value;V.fromSpot=ga,V.toSpot=La}else for(x.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=La,V.toSpot=ga;else if(0<=e.commentMargin)for(x.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=La,V.toSpot=ga;else for(x.h(e.bounds.x+e.commentMargin-z.width,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=ga,V.toSpot=La;u=0<=e.commentSpacing?u+(z.height+e.commentSpacing):u+(e.commentSpacing-z.height)}else{if(135<r&&!o||!n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y-e.commentMargin-z.height),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=sa,V.toSpot=Aa;else for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y-e.commentMargin),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Aa,V.toSpot=sa;else if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y+e.commentMargin),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Aa,V.toSpot=sa;else for(x.h(e.bounds.x+u,e.bounds.y+e.commentMargin-z.height),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=sa,V.toSpot=Aa;u=0<=e.commentSpacing?u+(z.width+e.commentSpacing):u+(e.commentSpacing-z.width)}}if(ce.free(x),t=u-e.commentSpacing-(i?t.height:t.width),this.ud===jc)for(e=e.destinationEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.fromEndSegmentLength=0<t?t:NaN);else for(e=e.sourceEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.toEndSegmentLength=0<t?t:NaN)}},kr.prototype.layoutTree=function(e){if(e!==null){for(var t=e.children,n=t.length,i=0;i<n;i++)this.layoutTree(t[i]);switch(e.compaction){case Vm:xb(this,e);break;case i0:if(e.alignment===Vc)xb(this,e);else if(e.childrenCount===0)i=e.parent,n=!1,t=0,i!==null&&(t=i.angle,n=i.alignment,n=td(n)),i=Bv(e),e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(t!==180&&t!==270||n)&&!i?e.la.h(0,0):t===180&&!n||(t===90||t===270)&&i?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y),e.Yo=null,e.kp=null;else{var r=lc(e);t=r===90||r===270;var o=0,a=e.children,l=a.length;for(n=0;n<l;n++)i=a[n],o=Math.max(o,t?i.Da.width:i.Da.height);var u=e.alignment;i=u===Gc;var f=u===Wc,p=td(u),x=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var A=e.nodeSpacing,R=this.computeNodeIndent(e),z=e.rowSpacing,V=0;(i||f||e.hm||e.im&&e.maxGenerationCount===1)&&(V=Math.max(0,e.rowIndent)),i=e.width;var ye=e.height,se=0,De=0,ze=0,je=null,ot=null,Nt=0,Vn=0,oi=0,ei=0,Dn=0,pn=0,er=0,Vi=0;if(p&&!qp(u)&&135<r&&a.reverse(),qp(u))if(1<l)for(var Jr=0;Jr<l;Jr++)Jr%2===0&&Jr!==l-1&&(Vi=Math.max(Vi,t?a[Jr].Da.width:a[Jr].Da.height));else l===1&&(Vi=t?a[0].Da.width:a[0].Da.height);if(p){switch(u){case Nh:De=135>r?Sb(this,e,a,Vi,se,De):Eb(this,e,a,Vi,se,De),Vi=De.x,se=De.width,De=De.height;break;case Ah:for(je=0;je<l;je++)ot=a[je],x=ot.Da,ze=pn===0?0:z,t?(ot.S.h(o-x.width,ei+ze),se=Math.max(se,x.width),De=Math.max(De,ei+ze+x.height),ei+=ze+x.height):(ot.S.h(oi+ze,o-x.height),se=Math.max(se,oi+ze+x.width),De=Math.max(De,x.height),oi+=ze+x.width),pn++;break;case ih:for(je=0;je<l;je++)ot=a[je],o=ot.Da,x=pn===0?0:z,t?(ot.S.h(A/2+e.focus.x,ei+x),se=Math.max(se,o.width),De=Math.max(De,ei+x+o.height),ei+=x+o.height):(ot.S.h(oi+x,A/2+e.focus.y),se=Math.max(se,oi+x+o.width),De=Math.max(De,o.height),oi+=x+o.width),pn++}je=Yl(this,2),ot=Yl(this,2),t?(je[0].h(0,0),je[1].h(0,De),ot[0].h(se,0)):(je[0].h(0,0),je[1].h(se,0),ot[0].h(0,De)),ot[1].h(se,De)}else for(Jr=0;Jr<l;Jr++){var Ro=a[Jr],ps=Ro.Da;if(t){0<x&&0<pn&&oi+A+ps.width>x&&(oi<o&&Nd(e,u,o-oi,0,er,Jr-1),Dn++,pn=0,er=Jr,ze=De,oi=0,ei=135<r?-De-z:De+z),jm(this,Ro,0,ei);var Ss=0;if(pn===0)je=Ro.Yo,ot=Ro.kp,Nt=ps.width,Vn=ps.height,(je===null||ot===null||r!==lc(Ro))&&(je=Yl(this,2),ot=Yl(this,2),je[0].h(0,0),je[1].h(0,Vn),ot[0].h(Nt,0),ot[1].h(Nt,Vn));else{var dl=Dt();Vn=wb(this,e,Ro,je,ot,Nt,Vn,dl),Ss=Vn.x,je=dl[0],ot=dl[1],Nt=Vn.width,Vn=Vn.height,Jt(dl),oi<ps.width&&0>Ss&&(Xd(e,-Ss,0,er,Jr-1),Gm(je,-Ss,0),Gm(ot,-Ss,0),Ss=0)}Ro.S.h(Ss,ei),se=Math.max(se,Nt),De=Math.max(De,ze+(Dn===0?0:z)+ps.height),oi=Nt}else 0<x&&0<pn&&ei+A+ps.height>x&&(ei<o&&Nd(e,u,0,o-ei,er,Jr-1),Dn++,pn=0,er=Jr,ze=se,ei=0,oi=135<r?-se-z:se+z),jm(this,Ro,oi,0),Ss=0,pn===0?(je=Ro.Yo,ot=Ro.kp,Nt=ps.width,Vn=ps.height,(je===null||ot===null||r!==lc(Ro))&&(je=Yl(this,2),ot=Yl(this,2),je[0].h(0,0),je[1].h(Nt,0),ot[0].h(0,Vn),ot[1].h(Nt,Vn))):(dl=Dt(),Vn=wb(this,e,Ro,je,ot,Nt,Vn,dl),Ss=Vn.x,je=dl[0],ot=dl[1],Nt=Vn.width,Vn=Vn.height,Jt(dl),ei<ps.height&&0>Ss&&(Xd(e,0,-Ss,er,Jr-1),Gm(je,0,-Ss),Gm(ot,0,-Ss),Ss=0)),Ro.S.h(oi,Ss),De=Math.max(De,Vn),se=Math.max(se,ze+(Dn===0?0:z)+ps.width),ei=Vn;pn++}switch(0<Dn&&(t?(De+=Math.max(0,n),oi<se&&Nd(e,u,se-oi,0,er,l-1),0<V&&(f||Xd(e,V,0,0,l-1),se+=V)):(se+=Math.max(0,n),ei<De&&Nd(e,u,0,De-ei,er,l-1),0<V&&(f||Xd(e,0,V,0,l-1),De+=V))),V=f=0,u){case Gf:t?f+=se/2-e.focus.x-R/2:V+=De/2-e.focus.y-R/2;break;case Jd:0<Dn?t?f+=se/2-e.focus.x-R/2:V+=De/2-e.focus.y-R/2:t?(Vi=a[0].S.x+a[0].la.x,f+=Vi+(a[l-1].S.x+a[l-1].la.x+2*a[l-1].focus.x-Vi)/2-e.focus.x-R/2):(Vi=a[0].S.y+a[0].la.y,V+=Vi+(a[l-1].S.y+a[l-1].la.y+2*a[l-1].focus.y-Vi)/2-e.focus.y-R/2);break;case Gc:t?(f-=R,se+=R):(V-=R,De+=R);break;case Wc:t?(f+=se-e.width+R,se+=R):(V+=De-e.height+R,De+=R);break;case Nh:t?1<l?f+=Vi+A/2-e.focus.x:f+=a[0].focus.x-e.focus.x+a[0].la.x:1<l?V+=Vi+A/2-e.focus.y:V+=a[0].focus.y-e.focus.y+a[0].la.y;break;case Ah:t?f+=se+A/2-e.focus.x:V+=De+A/2-e.focus.y;break;case ih:break;default:De=this.customAlignment(e,f,V,se,De),f=De[0],V=De[1],se=De[2],De=De[3]}for(R=0;R<l;R++)Vi=a[R],t?Vi.S.h(Vi.S.x+Vi.la.x-f,Vi.S.y+(135<r?(p?-De:-Vi.Da.height)+Vi.la.y-n:ye+n+Vi.la.y)):Vi.S.h(Vi.S.x+(135<r?(p?-se:-Vi.Da.width)+Vi.la.x-n:i+n+Vi.la.x),Vi.S.y+Vi.la.y-V);if(l=a=0,p?t?(se=_v(e,se,f),0>f&&(f=0),135<r&&(V+=De+n),De+=ye+n,u===ih&&(a+=A/2+e.focus.x),l+=ye+n):(135<r&&(f+=se+n),se+=i+n,De=zv(e,De,V),0>V&&(V=0),u===ih&&(l+=A/2+e.focus.y),a+=i+n):t?(e.comments===null?i>se&&(se=Uv(u,i-se,0),a=se.x,l=se.y,se=i,f=0):se=_v(e,se,f),0>f&&(a-=f,f=0),135<r&&(V+=De+n),De=Math.max(Math.max(De,ye),De+ye+n),l+=ye+n):(135<r&&(f+=se+n),se=Math.max(Math.max(se,i),se+i+n),e.comments===null?ye>De&&(De=Uv(u,0,ye-De),a=De.x,l=De.y,De=ye,V=0):De=zv(e,De,V),0>V&&(l-=V,V=0),a+=i+n),0<Dn)r=Yl(this,4),Dn=Yl(this,4),t?(r[2].h(0,ye+n),r[3].h(r[2].x,De),Dn[2].h(se,r[2].y),Dn[3].h(Dn[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(se,r[2].y),Dn[2].h(r[2].x,De),Dn[3].h(r[3].x,Dn[2].y));else{for(r=Yl(this,je.length+2),Dn=Yl(this,ot.length+2),u=0;u<je.length;u++)p=je[u],r[u+2].h(p.x+a,p.y+l);for(u=0;u<ot.length;u++)p=ot[u],Dn[u+2].h(p.x+a,p.y+l)}t?(r[0].h(f,0),r[1].h(r[0].x,ye),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])),Dn[0].h(f+i,0),Dn[1].h(Dn[0].x,ye),Dn[2].y<Dn[1].y&&(Dn[2].x<Dn[0].x?Dn[2].assign(Dn[1]):Dn[1].assign(Dn[2])),Dn[3].y<Dn[2].y&&(Dn[3].x<Dn[0].x?Dn[3].assign(Dn[2]):Dn[2].assign(Dn[3])),r[2].y-=n/2,Dn[2].y-=n/2):(r[0].h(0,V),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])),Dn[0].h(0,V+ye),Dn[1].h(i,Dn[0].y),Dn[2].x<Dn[1].x&&(Dn[2].y<Dn[0].y?Dn[2].assign(Dn[1]):Dn[1].assign(Dn[2])),Dn[3].x<Dn[2].x&&(Dn[3].y<Dn[0].y?Dn[3].assign(Dn[2]):Dn[2].assign(Dn[3])),r[2].x-=n/2,Dn[2].x-=n/2),vc(this,je),vc(this,ot),e.Yo=r,e.kp=Dn,e.la.h(f,V),e.Da.h(se,De)}break;default:Ke("Unhandled compaction value "+e.compaction.toString())}}};function xb(e,t){if(t.childrenCount===0){var n=!1,i=0;t.parent!==null&&(i=t.parent.angle,n=t.parent.alignment,n=td(n));var r=Bv(t);t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(i!==180&&i!==270||n)&&!r?t.la.h(0,0):i===180&&!n||(i===90||i===270)&&r?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y)}else{i=lc(t),n=i===90||i===270;var o=0;r=t.children;for(var a=r.length,l=0;l<a;l++){var u=r[l];o=Math.max(o,n?u.Da.width:u.Da.height)}var f=t.alignment,p=f===Gc,x=f===Wc;l=td(f);var A=Math.max(0,t.breadthLimit);u=e.computeLayerSpacing(t);var R=t.nodeSpacing,z=e.computeNodeIndent(t),V=p||x?0:z/2,ye=t.rowSpacing,se=0;(p||x||t.hm||t.im&&t.maxGenerationCount===1)&&(se=Math.max(0,t.rowIndent)),p=t.width;var De=t.height,ze=0,je=0,ot=0,Nt=0,Vn=0,oi=0,ei=0,Dn=0,pn=0,er=0;if(l&&!qp(f)&&135<i&&r.reverse(),qp(f))if(1<a)for(var Vi=0;Vi<a;Vi++){var Jr=r[Vi],Ro=Jr.Da;Vi%2===0&&Vi!==a-1?pn=Math.max(pn,(n?Ro.width:Ro.height)+e.computeBusNodeSpacing(Jr)-R):Vi%2!==0&&(er=Math.max(er,(n?Ro.width:Ro.height)+e.computeBusNodeSpacing(Jr)-R))}else a===1&&(pn=n?r[0].Da.width:r[0].Da.height);if(l)switch(f){case Nh:case Vc:je=135>i?Sb(e,t,r,pn,ze,je):Eb(e,t,r,pn,ze,je),pn=je.x,ze=je.width,je=je.height;break;case Ah:for(A=0;A<a;A++)V=r[A],ot=V.Da,er=ei===0?0:ye,n?(V.S.h(o-ot.width,Vn+er),ze=Math.max(ze,ot.width),je=Math.max(je,Vn+er+ot.height),Vn+=er+ot.height):(V.S.h(Nt+er,o-ot.height),ze=Math.max(ze,Nt+er+ot.width),je=Math.max(je,ot.height),Nt+=er+ot.width),ei++;break;case ih:for(o=0;o<a;o++)A=r[o],V=A.Da,ot=ei===0?0:ye,n?(A.S.h(R/2+t.focus.x,Vn+ot),ze=Math.max(ze,V.width),je=Math.max(je,Vn+ot+V.height),Vn+=ot+V.height):(A.S.h(Nt+ot,R/2+t.focus.y),ze=Math.max(ze,Nt+ot+V.width),je=Math.max(je,V.height),Nt+=ot+V.width),ei++}else for(er=0;er<a;er++)Vi=r[er],Jr=Vi.Da,n?(0<A&&0<ei&&Nt+R+Jr.width>A&&(Nt<o&&Nd(t,f,o-Nt,0,Dn,er-1),oi++,ei=0,Dn=er,ot=je,Nt=0,Vn=135<i?-je-ye:je+ye),Ro=ei===0?V:R,jm(e,Vi,0,Vn),Vi.S.h(Nt+Ro,Vn),ze=Math.max(ze,Nt+Ro+Jr.width),je=Math.max(je,ot+(oi===0?0:ye)+Jr.height),Nt+=Ro+Jr.width):(0<A&&0<ei&&Vn+R+Jr.height>A&&(Vn<o&&Nd(t,f,0,o-Vn,Dn,er-1),oi++,ei=0,Dn=er,ot=ze,Vn=0,Nt=135<i?-ze-ye:ze+ye),Ro=ei===0?V:R,jm(e,Vi,Nt,0),Vi.S.h(Nt,Vn+Ro),je=Math.max(je,Vn+Ro+Jr.height),ze=Math.max(ze,ot+(oi===0?0:ye)+Jr.width),Vn+=Ro+Jr.height),ei++;switch(0<oi&&(n?(je+=Math.max(0,u),Nt<ze&&Nd(t,f,ze-Nt,0,Dn,a-1),0<se&&(x||Xd(t,se,0,0,a-1),ze+=se)):(ze+=Math.max(0,u),Vn<je&&Nd(t,f,0,je-Vn,Dn,a-1),0<se&&(x||Xd(t,0,se,0,a-1),je+=se))),se=x=0,f){case Gf:n?x+=ze/2-t.focus.x-z/2:se+=je/2-t.focus.y-z/2;break;case Jd:0<oi?n?x+=ze/2-t.focus.x-z/2:se+=je/2-t.focus.y-z/2:n?(e=r[0].S.x+r[0].la.x,x+=e+(r[a-1].S.x+r[a-1].la.x+2*r[a-1].focus.x-e)/2-t.focus.x-z/2):(e=r[0].S.y+r[0].la.y,se+=e+(r[a-1].S.y+r[a-1].la.y+2*r[a-1].focus.y-e)/2-t.focus.y-z/2);break;case Gc:n?(x-=z,ze+=z):(se-=z,je+=z);break;case Wc:n?(x+=ze-t.width+z,ze+=z):(se+=je-t.height+z,je+=z);break;case Nh:case Vc:n?1<a?x+=pn+R/2-t.focus.x:x+=r[0].focus.x-t.focus.x+r[0].la.x:1<a?se+=pn+R/2-t.focus.y:se+=r[0].focus.y-t.focus.y+r[0].la.y;break;case Ah:n?x+=ze+R/2-t.focus.x:se+=je+R/2-t.focus.y;break;case ih:break;default:e=e.customAlignment(t,x,se,ze,je),x=e[0],se=e[1],ze=e[2],je=e[3]}for(e=0;e<a;e++)z=r[e],n?z.S.h(z.S.x+z.la.x-x,z.S.y+(135<i?(l?-je:-z.Da.height)+z.la.y-u:De+u+z.la.y)):z.S.h(z.S.x+(135<i?(l?-ze:-z.Da.width)+z.la.x-u:p+u+z.la.x),z.S.y+z.la.y-se);n?(ze=_v(t,ze,x),0>x&&(x=0),135<i&&(se+=je+u),je=Math.max(Math.max(je,De),je+De+u)):(135<i&&(x+=ze+u),ze=Math.max(Math.max(ze,p),ze+p+u),je=zv(t,je,se),0>se&&(se=0)),t.la.h(x,se),t.Da.h(ze,je)}}kr.prototype.customAlignment=function(e,t,n,i,r){return[t,n,i,r]};function Sb(e,t,n,i,r,o){var a=n.length;if(a===0)return new Wt(i,0,r,o);if(a===1)return t=n[0],r=t.Da.width,o=t.Da.height,new Wt(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===90,p=0,x=0,A=0,R=0;R<a;R++)if(!(R%2!==0||1<a&&R===a-1)){var z=n[R],V=z.Da,ye=p===0?0:u;if(f){var se=e.computeBusNodeSpacing(z)-l;z.S.h(i-(V.width+se),A+ye),r=Math.max(r,V.width+se),o=Math.max(o,A+ye+V.height),A+=ye+V.height}else se=e.computeBusNodeSpacing(z)-l,z.S.h(x+ye,i-(V.height+se)),o=Math.max(o,V.height+se),r=Math.max(r,x+ye+V.width),x+=ye+V.width;p++}for(p=0,z=x,R=A,f?(x=i+l,A=0):(x=0,A=i+l),V=0;V<a;V++)if(V%2!==0){ye=n[V],se=ye.Da;var De=p===0?0:u;if(f){var ze=e.computeBusNodeSpacing(ye)-l;ye.S.h(x+ze,A+De),r=Math.max(r,x+se.width+ze),o=Math.max(o,A+De+se.height),A+=De+se.height}else ze=e.computeBusNodeSpacing(ye)-l,ye.S.h(x+De,A+ze),r=Math.max(r,x+De+se.width),o=Math.max(o,A+se.height+ze),x+=De+se.width;p++}return 1<a&&a%2===1&&(n=n[a-1],a=n.Da,e=e.computeBusLastRowSpacing(n,f?Math.max(Math.abs(R),Math.abs(A)):Math.max(Math.abs(z),Math.abs(x))),f?(n.S.h(i+l/2-n.focus.x-n.la.x,o+e),f=i+l/2-n.focus.x-n.la.x,r=Math.max(r,f+a.width),0>f&&(r-=f),o=Math.max(o,Math.max(R,A)+e+a.height),0>n.S.x&&(i=$m(t,n.S.x,!1,i,l))):(n.S.h(r+e,i+l/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(z,x)+e+a.width),A=i+l/2-n.focus.y-n.la.y,o=Math.max(o,A+a.height),0>A&&(o-=A),0>n.S.y&&(i=$m(t,n.S.y,!0,i,l)))),new Wt(i,0,r,o)}function Eb(e,t,n,i,r,o){var a=n.length;if(a===0)return new Wt(i,0,r,o);if(a===1)return n=n[0],r=n.Da.width,o=n.Da.height,new Wt(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===270,p=0,x=0,A=0,R=0;R<a;R++)if(!(R%2!==0||1<a&&R===a-1)){var z=n[R],V=z.Da,ye=p===0?0:u;if(f){var se=e.computeBusNodeSpacing(z)-l;A-=ye+V.height,z.S.h(i-(V.width+se),A),r=Math.max(r,V.width+se),o=Math.max(o,Math.abs(A))}else se=e.computeBusNodeSpacing(z)-l,x-=ye+V.width,z.S.h(x,i-(V.height+se)),o=Math.max(o,V.height+se),r=Math.max(r,Math.abs(x));p++}for(p=0,z=x,R=A,f?(x=i+l,A=0):(x=0,A=i+l),V=0;V<a;V++)if(V%2!==0){ye=n[V],se=ye.Da;var De=p===0?0:u;if(f){var ze=e.computeBusNodeSpacing(ye)-l;A-=De+se.height,ye.S.h(x+ze,A),r=Math.max(r,x+se.width+ze),o=Math.max(o,Math.abs(A))}else ze=e.computeBusNodeSpacing(ye)-l,x-=De+se.width,ye.S.h(x,A+ze),o=Math.max(o,A+se.height+ze),r=Math.max(r,Math.abs(x));p++}for(1<a&&a%2===1&&(u=n[a-1],p=u.Da,e=e.computeBusLastRowSpacing(u,f?Math.max(Math.abs(R),Math.abs(A)):Math.max(Math.abs(z),Math.abs(x))),f?(u.S.h(i+l/2-u.focus.x-u.la.x,-o-p.height-e),x=i+l/2-u.focus.x-u.la.x,r=Math.max(r,x+p.width),0>x&&(r-=x),o=Math.max(o,Math.abs(Math.min(R,A))+e+p.height),0>u.S.x&&(i=$m(t,u.S.x,!1,i,l))):(u.S.h(-r-p.width-e,i+l/2-u.focus.y-u.la.y),r=Math.max(r,Math.abs(Math.min(z,x))+e+p.width),A=i+l/2-u.focus.y-u.la.y,o=Math.max(o,A+p.height),0>A&&(o-=A),0>u.S.y&&(i=$m(t,u.S.y,!0,i,l)))),t=0;t<a;t++)l=n[t],f?l.S.h(l.S.x,l.S.y+o):l.S.h(l.S.x+r,l.S.y);return new Wt(i,0,r,o)}kr.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},kr.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function $m(e,t,n,i,r){e=e.children;for(var o=e.length,a=0;a<o;a++)n?e[a].S.h(e[a].S.x,e[a].S.y-t):e[a].S.h(e[a].S.x-t,e[a].S.y);return t=e[o-1],Math.max(i,n?t.la.y+t.focus.y-r/2:t.la.x+t.focus.x-r/2)}function _v(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case Gc:return e.width>t?e.width:t;case Wc:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Nh:case Vc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case Ah:return e.width-e.focus.x+e.nodeSpacing/2+t;case ih:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zv(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case Gc:return e.height>t?e.height:t;case Wc:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Nh:case Vc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case Ah:return e.height-e.focus.y+e.nodeSpacing/2+t;case ih:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Uv(e,t,n){switch(e){case Gf:t/=2,n/=2;break;case Jd:t/=2,n/=2;break;case Gc:n=t=0;break;case Wc:break;default:Ke("Unhandled alignment value "+e.toString())}return new ce(t,n)}function Nd(e,t,n,i,r,o){t=Uv(t,n,i),Xd(e,t.x,t.y,r,o)}function Xd(e,t,n,i,r){if(t!==0||n!==0)for(e=e.children;i<=r;i++){var o=e[i].S;o.x+=t,o.y+=n}}function jm(e,t,n,i){var r=t.parent;switch(e.ud){case jc:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===r&&t.relativePoint.h(n,i);break;case Qd:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===r&&t.relativePoint.h(n,i);break;default:Ke("Unhandled path value "+e.ud.toString())}}function Gm(e,t,n){for(var i=0;i<e.length;i++){var r=e[i];r.x+=t,r.y+=n}}function wb(e,t,n,i,r,o,a,l){var u=lc(t),f=u===90||u===270,p=t.nodeSpacing;t=i;var x=r;i=o;var A=a,R=n.Yo,z=n.kp;a=n.Da;var V=f?Math.max(A,a.height):Math.max(i,a.width);if((R===null||u!==lc(n))&&(R=Yl(e,2),z=Yl(e,2),f?(R[0].h(0,0),R[1].h(0,a.height),z[0].h(a.width,0),z[1].h(z[0].x,R[1].y)):(R[0].h(0,0),R[1].h(a.width,0),z[0].h(0,a.height),z[1].h(R[1].x,z[0].y))),f){if(A=9999999,!(x===null||2>x.length||R===null||2>R.length))for(r=n=0;n<x.length&&r<R.length;){o=x[n];var ye=R[r];u=ye.x,f=ye.y,u+=i;var se=o;n+1<x.length&&(se=x[n+1]);var De=ye;ye=De.x,De=De.y,r+1<R.length&&(De=R[r+1],ye=De.x,De=De.y,ye+=i);var ze=A;o.y===f?ze=u-o.x:o.y>f&&o.y<De?ze=u+(o.y-f)/(De-f)*(ye-u)-o.x:f>o.y&&f<se.y&&(ze=u-(o.x+(f-o.y)/(se.y-o.y)*(se.x-o.x))),ze<A&&(A=ze),se.y<=o.y?n++:De<=f?r++:(se.y<=De&&n++,De<=se.y&&r++)}if(A=i-A,A+=p,n=R,r=A,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Yl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].y<t[0].y;)f=n[o++],p[i++].h(f.x+r,f.y);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].y;o<n.length&&n[o].y<=u;)o++;for(;o<n.length&&n[o].y>u;)f=n[o++],p[i++].h(f.x+r,f.y);for(n=Yl(e,i),u=0;u<i;u++)n[u].assign(p[u]);vc(e,p),i=n}if(o=z,u=A,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Yl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].y<o[0].y;)se=x[n++],p[r++].h(se.x,se.y);for(;f<o.length;)se=o[f++],p[r++].h(se.x+u,se.y);for(o=o[o.length-1].y;n<x.length&&x[n].y<=o;)n++;for(;n<x.length&&x[n].y>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Yl(e,r),n=0;n<r;n++)o[n].assign(p[n]);vc(e,p),r=o}return o=Math.max(0,A)+a.width,a=V,vc(e,t),vc(e,R),vc(e,x),vc(e,z),l[0]=i,l[1]=r,new Wt(A,0,o,a)}if(i=9999999,!(x===null||2>x.length||R===null||2>R.length))for(r=n=0;n<x.length&&r<R.length;)o=x[n],ye=R[r],u=ye.x,f=ye.y,f+=A,se=o,n+1<x.length&&(se=x[n+1]),De=ye,ye=De.x,De=De.y,r+1<R.length&&(De=R[r+1],ye=De.x,De=De.y,De+=A),ze=i,o.x===u?ze=f-o.y:o.x>u&&o.x<ye?ze=f+(o.x-u)/(ye-u)*(De-f)-o.y:u>o.x&&u<se.x&&(ze=f-(o.y+(u-o.x)/(se.x-o.x)*(se.y-o.y))),ze<i&&(i=ze),se.x<=o.x?n++:ye<=u?r++:(se.x<=ye&&n++,ye<=se.x&&r++);if(A-=i,A+=p,n=R,r=A,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Yl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].x<t[0].x;)f=n[o++],p[i++].h(f.x,f.y+r);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].x;o<n.length&&n[o].x<=u;)o++;for(;o<n.length&&n[o].x>u;)f=n[o++],p[i++].h(f.x,f.y+r);for(n=Yl(e,i),u=0;u<i;u++)n[u].assign(p[u]);vc(e,p),i=n}if(o=z,u=A,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Yl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].x<o[0].x;)se=x[n++],p[r++].h(se.x,se.y);for(;f<o.length;)se=o[f++],p[r++].h(se.x,se.y+u);for(o=o[o.length-1].x;n<x.length&&x[n].x<=o;)n++;for(;n<x.length&&x[n].x>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Yl(e,r),n=0;n<r;n++)o[n].assign(p[n]);vc(e,p),r=o}return o=V,a=Math.max(0,A)+a.height,vc(e,t),vc(e,R),vc(e,x),vc(e,z),l[0]=i,l[1]=r,new Wt(A,0,o,a)}function Yl(e,t){if(e=e.ru[t],e!==void 0&&(e=e.pop(),e!==void 0))return e;e=[];for(var n=0;n<t;n++)e[n]=new ce;return e}function vc(e,t){var n=t.length,i=e.ru[n];i===void 0&&(i=[],e.ru[n]=i),i.push(t)}kr.prototype.arrangeTrees=function(){if(this.Rb===Ym)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof Gu){var n=t.node;if(n!==null){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),Hv(this,t,n,i)}}}else{for(e=[],t=this.Ub.iterator;t.next();)n=t.value,n instanceof Gu&&e.push(n);switch(this.sorting){case jf:break;case e0:e.reverse();break;case t0:e.sort(this.comparer);break;case n0:e.sort(this.comparer),e.reverse();break;default:Ke("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,t=n.x,n=n.y,i=0;i<e.length;i++){var r=e[i];switch(Hv(this,r,t+r.la.x,n+r.la.y),this.Rb){case Zm:n+=r.Da.height+this.$d.height;break;case Wv:t+=r.Da.width+this.$d.width;break;default:Ke("Unhandled arrangement value "+this.Rb.toString())}}}};function Hv(e,t,n,i){if(t!==null){t.x=n,t.y=i,t=t.children;for(var r=t.length,o=0;o<r;o++){var a=t[o];Hv(e,a,n+a.S.x,i+a.S.y)}}}kr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},kr.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},kr.prototype.Gu=function(){if(this.layerStyle===Xm){for(var e=this.$v,t=[],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=t[r.level];o===void 0?o=this.computeLayerSpacing(r):o=Math.max(o,this.computeLayerSpacing(r)),t[r.level]=o}for(i=0;i<t.length;i++)t[i]===void 0&&(t[i]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new ce(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new ce(-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 a=0;a<e.length;a++)o+=e[a]+t[a];for(a=0;a<e.length;a++){var l=e[a]+t[a];this.angle===270?(o-=l,r.push(new Wt(0,o,n,l))):this.angle===90?(r.push(new Wt(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new Wt(o,0,l,n))):(r.push(new Wt(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},kr.prototype.commitLayers=function(){},kr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},kr.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof Gu&&Cb(this,t)}};function Cb(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,i=0;i<n;i++)Cb(e,t[i])}}kr.prototype.setPortSpots=function(e){var t=e.alignment;if(td(t)){var n=this.ud===jc,i=lc(e);switch(i){case 0:var r=La;break;case 90:r=Aa;break;case 180:r=ga;break;default:r=sa}var o=e.children,a=o.length;switch(t){case Nh:case Vc:for(t=0;t<a;t++){var l=o[t];if(l=(n?l.sourceEdges:l.destinationEdges).first(),l!==null&&(l=l.link,l!==null)){var u=i===90||i===270?ga:sa;if(a===1||t===a-1&&a%2===1)switch(i){case 0:u=ga;break;case 90:u=sa;break;case 180:u=La;break;default:u=Aa}else t%2===0&&(u=i===90||i===270?La:Aa);n?(e.setsPortSpot&&(l.fromSpot=r),e.setsChildPortSpot&&(l.toSpot=u)):(e.setsPortSpot&&(l.fromSpot=u),e.setsChildPortSpot&&(l.toSpot=r))}}break;case Ah:for(i=i===90||i===270?La:Aa,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)):(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)));break;case ih:for(i=i===90||i===270?ga:sa,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)):(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)))}}else if(n=lc(e),this.ud===jc){for(r=e.destinationEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.fromSpot=La;break;case 90:i.fromSpot=Aa;break;case 180:i.fromSpot=ga;break;default:i.fromSpot=sa}else i.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.toSpot=ga;break;case 90:i.toSpot=sa;break;case 180:i.toSpot=La;break;default:i.toSpot=Aa}else i.toSpot=e.childPortSpot}}else for(r=e.sourceEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.toSpot=La;break;case 90:i.toSpot=Aa;break;case 180:i.toSpot=ga;break;default:i.toSpot=sa}else i.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.fromSpot=ga;break;case 90:i.fromSpot=sa;break;case 180:i.fromSpot=La;break;default:i.fromSpot=Aa}else i.fromSpot=e.childPortSpot}};function lc(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}kr.prototype.computeLayerSpacing=function(e){var t=lc(e);t=t===90||t===270;var n=e.layerSpacing;if(0<e.layerSpacingParentOverlap){var i=Math.min(1,e.layerSpacingParentOverlap);n-=t?e.height*i:e.width*i}return n<(t?-e.height:-e.width)&&(n=t?-e.height:-e.width),n},kr.prototype.computeNodeIndent=function(e){var t=lc(e),n=e.nodeIndent;if(0<e.nodeIndentPastParent){var i=Math.min(1,e.nodeIndentPastParent);n+=t===90||t===270?e.width*i:e.height*i}return n=Math.max(0,n)},ft.Object.defineProperties(kr.prototype,{roots:{get:function(){return this.Ub},set:function(e){this.Ub!==e&&(this.Ub=e,this.C())}},path:{get:function(){return this.Wn},set:function(e){this.Wn!==e&&(this.Wn=e,this.C())}},treeStyle:{get:function(){return this.vo},set:function(e){this.Rb===e||e!==Km&&e!==jv&&e!==$v&&e!==Gv||(this.vo=e,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(e){this.Rb===e||e!==Vv&&e!==Kv&&e!==Xm||(this.Bq=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==Zm&&e!==Wv&&e!==Ym||(this.Rb=e,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},rootDefaults:{get:function(){return this.W},set:function(e){this.W!==e&&(this.W=e,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(e){this.Y!==e&&(this.Y=e,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(e){this.W.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.W.sorting=e,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(e){this.W.comparer!==e&&(this.W.comparer=e,this.C())}},angle:{get:function(){return this.W.angle},set:function(e){this.W.angle!==e&&(e===0||e===90||e===180||e===270?(this.W.angle=e,this.C()):Ke("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(e){this.W.alignment!==e&&(this.W.alignment=e,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(e){this.W.nodeIndent!==e&&0<=e&&(this.W.nodeIndent=e,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(e){this.W.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Vm&&e!==i0||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||e!==0&&e!==90&&e!==180&&e!==270||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Vm&&e!==i0||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Wm=new Kt(kr,"PathDefault",-1),jc=new Kt(kr,"PathDestination",0),Qd=new Kt(kr,"PathSource",1),jf=new Kt(kr,"SortingForwards",10),e0=new Kt(kr,"SortingReverse",11),t0=new Kt(kr,"SortingAscending",12),n0=new Kt(kr,"SortingDescending",13),Gf=new Kt(kr,"AlignmentCenterSubtrees",20),Jd=new Kt(kr,"AlignmentCenterChildren",21),Gc=new Kt(kr,"AlignmentStart",22),Wc=new Kt(kr,"AlignmentEnd",23),Nh=new Kt(kr,"AlignmentBus",24),Vc=new Kt(kr,"AlignmentBusBranching",25),Ah=new Kt(kr,"AlignmentTopLeftBus",26),ih=new Kt(kr,"AlignmentBottomRightBus",27),Vm=new Kt(kr,"CompactionNone",30),i0=new Kt(kr,"CompactionBlock",31),Km=new Kt(kr,"StyleLayered",40),$v=new Kt(kr,"StyleLastParents",41),jv=new Kt(kr,"StyleAlternating",42),Gv=new Kt(kr,"StyleRootOnly",43),Zm=new Kt(kr,"ArrangementVertical",50),Wv=new Kt(kr,"ArrangementHorizontal",51),Ym=new Kt(kr,"ArrangementFixedRoots",52),Vv=new Kt(kr,"LayerIndividual",60),Kv=new Kt(kr,"LayerSiblings",61),Xm=new Kt(kr,"LayerUniform",62);kr.className="TreeLayout",kr.PathDefault=Wm,kr.PathDestination=jc,kr.PathSource=Qd,kr.SortingForwards=jf,kr.SortingReverse=e0,kr.SortingAscending=t0,kr.SortingDescending=n0,kr.AlignmentCenterSubtrees=Gf,kr.AlignmentCenterChildren=Jd,kr.AlignmentStart=Gc,kr.AlignmentEnd=Wc,kr.AlignmentBus=Nh,kr.AlignmentBusBranching=Vc,kr.AlignmentTopLeftBus=Ah,kr.AlignmentBottomRightBus=ih,kr.CompactionNone=Vm,kr.CompactionBlock=i0,kr.StyleLayered=Km,kr.StyleLastParents=$v,kr.StyleAlternating=jv,kr.StyleRootOnly=Gv,kr.ArrangementVertical=Zm,kr.ArrangementHorizontal=Wv,kr.ArrangementFixedRoots=Ym,kr.LayerIndividual=Vv,kr.LayerSiblings=Kv,kr.LayerUniform=Xm;function qd(e){Fo.call(this,e)}di(qd,Fo),qd.prototype.createVertex=function(){return new Gu(this)},qd.prototype.createEdge=function(){return new Wf(this)},qd.className="TreeNetwork";function Gu(e){us.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new ce(0,0),this.Da=new mi(0,0),this.la=new ce(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jf,this.hd=fv,this.Kb=0,this.Jb=Jd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=i0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Vr,this.wr=!0,this.Dp=Vr}di(Gu,us),Gu.prototype.copyInheritedPropertiesFrom=function(e){e!==null&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},ft.Object.defineProperties(Gu.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.u=e}}},level:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},descendantCount:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},maxChildrenCount:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},maxGenerationCount:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e)}},comments:{get:function(){return this.td},set:function(e){if(this.td!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.td=e}}},sorting:{get:function(){return this.nd},set:function(e){this.nd!==e&&(this.nd=e)}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e)}},angle:{get:function(){return this.Kb},set:function(e){this.Kb!==e&&(this.Kb=e)}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb!==e&&(this.Jb=e)}},nodeIndent:{get:function(){return this.Uq},set:function(e){this.Uq!==e&&(this.Uq=e)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(e){this.Vq!==e&&(this.Vq=e)}},nodeSpacing:{get:function(){return this.Wq},set:function(e){this.Wq!==e&&(this.Wq=e)}},layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&(this.ie=e)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(e){this.Aq!==e&&(this.Aq=e)}},compaction:{get:function(){return this.Hp},set:function(e){this.Hp!==e&&(this.Hp=e)}},breadthLimit:{get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e)}},rowSpacing:{get:function(){return this.nr},set:function(e){this.nr!==e&&(this.nr=e)}},rowIndent:{get:function(){return this.mr},set:function(e){this.mr!==e&&(this.mr=e)}},commentSpacing:{get:function(){return this.Gp},set:function(e){this.Gp!==e&&(this.Gp=e)}},commentMargin:{get:function(){return this.Fp},set:function(e){this.Fp!==e&&(this.Fp=e)}},setsPortSpot:{get:function(){return this.xr},set:function(e){this.xr!==e&&(this.xr=e)}},portSpot:{get:function(){return this.dr},set:function(e){this.dr.D(e)||(this.dr=e)}},setsChildPortSpot:{get:function(){return this.wr},set:function(e){this.wr!==e&&(this.wr=e)}},childPortSpot:{get:function(){return this.Dp},set:function(e){this.Dp.D(e)||(this.Dp=e)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(e){this.S.set(e)}},subtreeSize:{get:function(){return this.Da},set:function(e){this.Da.set(e)}},subtreeOffset:{get:function(){return this.la},set:function(e){this.la.set(e)}}}),Gu.className="TreeVertex";function Wf(e){ru.call(this,e),this.$t=new ce(0,0)}di(Wf,ru),Wf.prototype.commit=function(){var e=this.link;if(e!==null&&!e.isAvoiding){var t=this.network.layout,n=null,i=null;switch(t.ud){case jc:n=this.fromVertex,i=this.toVertex;break;case Qd:n=this.toVertex,i=this.fromVertex;break;default:Ke("Unhandled path value "+t.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=lc(n),a=t.computeLayerSpacing(n),l=n.rowSpacing;e.vg();var u=e.curve===xu,f=e.isOrthogonal,p;if(e.uh(),f||u){for(p=2;4<e.pointsCount;)e.pv(2);var x=e.i(1),A=e.i(2)}else{for(p=1;3<e.pointsCount;)e.pv(1);x=e.i(0),A=e.i(e.pointsCount-1)}var R=e.i(e.pointsCount-1);o===0?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>R.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<R.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.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?(e.m(p,x.x,o),p++,e.m(p,i.right+a,o),p++,e.m(p,i.right+a+(r.x-l)/3,o),p++,e.m(p,i.right+a+2*(r.x-l)/3,o),p++,e.m(p,i.right+a+(r.x-l),o),p++,e.m(p,A.x,o)):(f&&(e.m(p,i.right+a/2,x.y),p++),e.m(p,i.right+a/2,o),p++,e.m(p,i.right+a+r.x-(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,A.y))):o===90?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>R.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<R.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.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?(e.m(p,o,x.y),p++,e.m(p,o,i.bottom+a),p++,e.m(p,o,i.bottom+a+(r.y-l)/3),p++,e.m(p,o,i.bottom+a+2*(r.y-l)/3),p++,e.m(p,o,i.bottom+a+(r.y-l)),p++,e.m(p,o,A.y)):(f&&(e.m(p,x.x,i.bottom+a/2),p++),e.m(p,o,i.bottom+a/2),p++,e.m(p,o,i.bottom+a+r.y-(f?l/2:l)),p++,f&&e.m(p,A.x,e.i(p-1).y))):o===180?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>R.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<R.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.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?(e.m(p,x.x,o),p++,e.m(p,i.left-a,o),p++,e.m(p,i.left-a+(r.x+l)/3,o),p++,e.m(p,i.left-a+2*(r.x+l)/3,o),p++,e.m(p,i.left-a+(r.x+l),o),p++,e.m(p,A.x,o)):(f&&(e.m(p,i.left-a/2,x.y),p++),e.m(p,i.left-a/2,o),p++,e.m(p,i.left-a+r.x+(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,A.y))):o===270?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>R.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<R.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.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?(e.m(p,o,x.y),p++,e.m(p,o,i.top-a),p++,e.m(p,o,i.top-a+(r.y+l)/3),p++,e.m(p,o,i.top-a+2*(r.y+l)/3),p++,e.m(p,o,i.top-a+(r.y+l)),p++,e.m(p,o,A.y)):(f&&(e.m(p,x.x,i.top-a/2),p++),e.m(p,o,i.top-a/2),p++,e.m(p,o,i.top-a+r.y+(f?l/2:l)),p++,f&&e.m(p,A.x,e.i(p-1).y))):Ke("Invalid angle "+o),e.zf()}else r=i,e=this.link,i=this.network.layout,t=lc(n),t!==lc(r)&&(a=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,t===0&&n.left-l.right<a+1||t===90&&n.top-l.bottom<a+1||t===180&&l.left-n.right<a+1||t===270&&l.top-n.bottom<a+1||(e.vg(),n=e.curve===xu,r=e.isOrthogonal,i=td(this.fromVertex.alignment),e.uh(),t===0?(t=l.right+a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t-20,e.i(1).y),e.m(2,t-20,n),e.m(3,t,n),e.m(4,t+20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===90?(t=l.bottom+a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t-20),e.m(2,n,t-20),e.m(3,n,t),e.m(4,n,t+20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)):t===180?(t=l.left-a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t+20,e.i(1).y),e.m(2,t+20,n),e.m(3,t,n),e.m(4,t-20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===270&&(t=l.top-a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t+20),e.m(2,n,t+20),e.m(3,n,t),e.m(4,n,t-20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)),e.zf()))}}},ft.Object.defineProperties(Wf.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},relativePoint:{get:function(){return this.$t},set:function(e){this.$t.set(e)}}}),Wf.className="TreeEdge",To.prototype.initializeStandardTools=function(){this.gb("Action",new it,this.mouseDownTools),this.gb("Relinking",new ti,this.mouseDownTools),this.gb("LinkReshaping",new ci,this.mouseDownTools),this.gb("Rotating",new Ce,this.mouseDownTools),this.gb("Resizing",new fe,this.mouseDownTools),this.gb("Linking",new $n,this.mouseMoveTools),this.gb("Dragging",new Io,this.mouseMoveTools),this.gb("DragSelecting",new Lt,this.mouseMoveTools),this.gb("Panning",new dt,this.mouseMoveTools),this.gb("ContextMenu",new zt,this.mouseUpTools),this.gb("TextEditing",new qi,this.mouseUpTools),this.gb("ClickCreating",new jt,this.mouseUpTools),this.gb("ClickSelecting",new $e,this.mouseUpTools)},Ic("Horizontal",new T0),Ic("Spot",new A0),Ic("Table",new I0),Ic("Viewbox",new L0),Ic("TableRow",new M0),Ic("TableColumn",new O0),Ic("Graduated",new bp),Ic("Grid",new yp),pf.add("GraphLinksModel",xs),pf.add("TreeModel",Du);var Qm=Ve.go,Zv={get licenseKey(){return Y.licenseKey},set licenseKey(e){Y.licenseKey=e},get version(){return Y.version},Group:nr,EnumValue:Kt,List:Xt,Set:Zt,Map:Zn,Point:ce,Size:mi,Rect:Wt,Margin:vi,Spot:si,Geometry:Pn,PathFigure:Ia,PathSegment:Or,InputEvent:ss,DiagramEvent:hu,ChangedEvent:Bo,Model:pi,GraphLinksModel:_r,TreeModel:Al,Binding:Wa,Transaction:wa,UndoManager:_o,CommandHandler:ve,Tool:Ir,DraggingTool:Io,DraggingInfo:Qc,DraggingOptions:c,LinkingBaseTool:Ot,LinkingTool:$n,RelinkingTool:ti,LinkReshapingTool:ci,ResizingTool:fe,RotatingTool:Ce,ClickSelectingTool:$e,ActionTool:it,ClickCreatingTool:jt,HTMLInfo:Yt,ContextMenuTool:zt,DragSelectingTool:Lt,PanningTool:dt,TextEditingTool:qi,ToolManager:To,Animation:Yr,AnimationManager:go,AnimationTrigger:ys,Layer:m,Diagram:Y,Palette:b,Overview:w,Brush:ao,GraphObject:st,Panel:An,RowColumnDefinition:es,Shape:hr,TextBlock:Po,Picture:Hl,Part:Ai,Adornment:Xr,Node:Xn,Link:Fn,Placeholder:wl,Layout:Qo,LayoutNetwork:Fo,LayoutVertex:us,LayoutEdge:ru,GridLayout:Os,PanelLayout:ls,CircularLayout:da,CircularNetwork:Uf,CircularVertex:Kp,CircularEdge:Om,ForceDirectedLayout:$s,ForceDirectedNetwork:Yd,ForceDirectedVertex:Zp,ForceDirectedEdge:Yp,LayeredDigraphLayout:fo,LayeredDigraphNetwork:$f,LayeredDigraphVertex:Fu,LayeredDigraphEdge:Jp,TreeLayout:kr,TreeNetwork:qd,TreeVertex:Gu,TreeEdge:Wf};typeof Qm=="object"&&Qm.version&&jn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Qm?"debug ":"")+"version: "+Qm.version+", replaced with version: "+Zv.version),Y.prototype.go=Zv,Ve.go=Zv,typeof Q.exports=="object"&&(Q.exports=typeof h.g!="undefined"?h.g.go:self.go)}();var v=typeof h.g!="undefined"?h.g.go:self.go;const I=typeof h.g!="undefined"?h.g.go:self.go,O=I.Group,B=I.EnumValue,G=I.List,F=I.Set,M=I.Map,he=I.Point,ue=I.Size,te=I.Rect,Me=I.Margin,we=I.Spot,Je=I.Geometry,Oe=I.PathFigure,Te=I.PathSegment,Ae=I.InputEvent,Re=I.DiagramEvent,de=I.ChangedEvent,pe=I.Model,be=I.GraphLinksModel,me=I.TreeModel,ke=I.Binding,ee=I.Transaction,Ne=I.UndoManager,Ie=I.CommandHandler,Pe=I.Tool,Xe=I.DraggingTool,Ye=I.DraggingInfo,ie=I.LinkingBaseTool,lt=I.LinkingTool,We=I.RelinkingTool,Pt=I.LinkReshapingTool,xt=I.ResizingTool,Tt=I.RotatingTool,Et=I.ClickSelectingTool,wn=I.ActionTool,qe=I.ClickCreatingTool,ae=I.HTMLInfo,le=I.ContextMenuTool,$t=I.DragSelectingTool,Vt=I.PanningTool,St=I.TextEditingTool,un=I.ToolManager,Ft=I.Animation,ai=I.AnimationManager,On=I.AnimationTrigger,ni=I.Layer,Jn=I.Diagram,In=I.Palette,Mn=I.Overview,xe=I.Brush,P=I.GraphObject,k=I.Panel,j=I.RowColumnDefinition,X=I.Shape,T=I.TextBlock,_e=I.TextBlockMetrics,kt=I.Picture,Ue=I.Part,Be=I.Adornment,mt=I.Node,ct=I.Link,tt=I.Placeholder,It=I.Layout,an=I.LayoutNetwork,en=I.LayoutVertex,Bt=I.LayoutEdge,cn=I.GridLayout,gn=I.PanelLayout,Qe=I.CircularLayout,Ut=I.CircularNetwork,tn=I.CircularVertex,nn=I.CircularEdge,He=I.ForceDirectedLayout,Bn=I.ForceDirectedNetwork,kn=I.ForceDirectedVertex,Kn=I.ForceDirectedEdge,Ti=I.LayeredDigraphLayout,hi=I.LayeredDigraphNetwork,dn=I.LayeredDigraphVertex,sn=I.LayeredDigraphEdge,gr=I.TreeLayout,dr=I.TreeNetwork,qn=I.TreeVertex,Rr=I.TreeEdge,tr=I.version},46963:function(Q){"use strict";Q.exports=h;var C=/[#.]/g;function h(v,I){for(var O=v||"",B=I||"div",G={},F=0,M,he,ue;F<O.length;)C.lastIndex=F,ue=C.exec(O),M=O.slice(F,ue?ue.index:O.length),M&&(he?he==="#"?G.id=M:G.className?G.className.push(M):G.className=[M]:B=M,F+=M.length),ue&&(he=ue[0],F++);return{type:"element",tagName:B,properties:G,children:[]}}},5641:function(Q,C,h){"use strict";var v=h(88914),I=h(47178),O=h(46963),B=h(92848).Q,G=h(58951).Q;Q.exports=M;var F={}.hasOwnProperty;function M(Te,Ae,Re){var de=Re?Oe(Re):null;return pe;function pe(me,ke){var ee=O(me,Ae),Ne=Array.prototype.slice.call(arguments,2),Ie=ee.tagName.toLowerCase(),Pe;if(ee.tagName=de&&F.call(de,Ie)?de[Ie]:Ie,ke&&he(ke,ee)&&(Ne.unshift(ke),ke=null),ke)for(Pe in ke)be(ee.properties,Pe,ke[Pe]);return te(ee.children,Ne),ee.tagName==="template"&&(ee.content={type:"root",children:ee.children},ee.children=[]),ee}function be(me,ke,ee){var Ne,Ie,Pe;ee==null||ee!==ee||(Ne=v(Te,ke),Ie=Ne.property,Pe=ee,typeof Pe=="string"&&(Ne.spaceSeparated?Pe=B(Pe):Ne.commaSeparated?Pe=G(Pe):Ne.commaOrSpaceSeparated&&(Pe=B(G(Pe).join(" ")))),Ie==="style"&&typeof ee!="string"&&(Pe=Je(Pe)),Ie==="className"&&me.className&&(Pe=me.className.concat(Pe)),me[Ie]=Me(Ne,Ie,Pe))}}function he(Te,Ae){return typeof Te=="string"||"length"in Te||ue(Ae.tagName,Te)}function ue(Te,Ae){var Re=Ae.type;return Te==="input"||!Re||typeof Re!="string"?!1:typeof Ae.children=="object"&&"length"in Ae.children?!0:(Re=Re.toLowerCase(),Te==="button"?Re!=="menu"&&Re!=="submit"&&Re!=="reset"&&Re!=="button":"value"in Ae)}function te(Te,Ae){var Re,de;if(typeof Ae=="string"||typeof Ae=="number"){Te.push({type:"text",value:String(Ae)});return}if(typeof Ae=="object"&&"length"in Ae){for(Re=-1,de=Ae.length;++Re<de;)te(Te,Ae[Re]);return}if(typeof Ae!="object"||!("type"in Ae))throw new Error("Expected node, nodes, or string, got `"+Ae+"`");Te.push(Ae)}function Me(Te,Ae,Re){var de,pe,be;if(typeof Re!="object"||!("length"in Re))return we(Te,Ae,Re);for(pe=Re.length,de=-1,be=[];++de<pe;)be[de]=we(Te,Ae,Re[de]);return be}function we(Te,Ae,Re){var de=Re;return Te.number||Te.positiveNumber?!isNaN(de)&&de!==""&&(de=Number(de)):(Te.boolean||Te.overloadedBoolean)&&typeof de=="string"&&(de===""||I(Re)===I(Ae))&&(de=!0),de}function Je(Te){var Ae=[],Re;for(Re in Te)Ae.push([Re,Te[Re]].join(": "));return Ae.join("; ")}function Oe(Te){for(var Ae=Te.length,Re=-1,de={},pe;++Re<Ae;)pe=Te[Re],de[pe.toLowerCase()]=pe;return de}},82073:function(Q,C,h){"use strict";var v=h(18795),I=h(5641),O=I(v,"div");O.displayName="html",Q.exports=O},43621:function(Q,C,h){"use strict";Q.exports=h(82073)},93193:function(Q){var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h=/\n/g,v=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,O=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,G=/^[;\s]*/,F=/^\s+|\s+$/g,M=`
|
|
|
`,he="/",ue="*",te="",Me="comment",we="declaration";Q.exports=function(Oe,Te){if(typeof Oe!="string")throw new TypeError("First argument must be a string");if(!Oe)return[];Te=Te||{};var Ae=1,Re=1;function de(ie){var lt=ie.match(h);lt&&(Ae+=lt.length);var We=ie.lastIndexOf(M);Re=~We?ie.length-We:Re+ie.length}function pe(){var ie={line:Ae,column:Re};return function(lt){return lt.position=new be(ie),Ne(),lt}}function be(ie){this.start=ie,this.end={line:Ae,column:Re},this.source=Te.source}be.prototype.content=Oe;var me=[];function ke(ie){var lt=new Error(Te.source+":"+Ae+":"+Re+": "+ie);if(lt.reason=ie,lt.filename=Te.source,lt.line=Ae,lt.column=Re,lt.source=Oe,Te.silent)me.push(lt);else throw lt}function ee(ie){var lt=ie.exec(Oe);if(lt){var We=lt[0];return de(We),Oe=Oe.slice(We.length),lt}}function Ne(){ee(v)}function Ie(ie){var lt;for(ie=ie||[];lt=Pe();)lt!==!1&&ie.push(lt);return ie}function Pe(){var ie=pe();if(!(he!=Oe.charAt(0)||ue!=Oe.charAt(1))){for(var lt=2;te!=Oe.charAt(lt)&&(ue!=Oe.charAt(lt)||he!=Oe.charAt(lt+1));)++lt;if(lt+=2,te===Oe.charAt(lt-1))return ke("End of comment missing");var We=Oe.slice(2,lt-2);return Re+=2,de(We),Oe=Oe.slice(lt),Re+=2,ie({type:Me,comment:We})}}function Xe(){var ie=pe(),lt=ee(I);if(lt){if(Pe(),!ee(O))return ke("property missing ':'");var We=ee(B),Pt=ie({type:we,property:Je(lt[0].replace(C,te)),value:We?Je(We[0].replace(C,te)):te});return ee(G),Pt}}function Ye(){var ie=[];Ie(ie);for(var lt;lt=Xe();)lt!==!1&&(ie.push(lt),Ie(ie));return ie}return Ne(),Ye()};function Je(Oe){return Oe?Oe.replace(F,te):te}},91241:function(Q){"use strict";Q.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=97&&v<=122||v>=65&&v<=90}},21127:function(Q,C,h){"use strict";var v=h(91241),I=h(22347);Q.exports=O;function O(B){return v(B)||I(B)}},22347:function(Q){"use strict";Q.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=48&&v<=57}},65207:function(Q){"use strict";Q.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=97&&v<=102||v>=65&&v<=70||v>=48&&v<=57}},2859:function(Q,C,h){"use strict";h.d(C,{hP:function(){return Mn}});var v=function(xe,P){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,j){k.__proto__=j}||function(k,j){for(var X in j)Object.prototype.hasOwnProperty.call(j,X)&&(k[X]=j[X])})(xe,P)};function I(xe,P){function k(){this.constructor=xe}v(xe,P),xe.prototype=P===null?Object.create(P):(k.prototype=P.prototype,new k)}function O(xe,P,k,j){return new(k||(k=Promise))(function(X,T){function _e(Be){try{Ue(j.next(Be))}catch(mt){T(mt)}}function kt(Be){try{Ue(j.throw(Be))}catch(mt){T(mt)}}function Ue(Be){var mt;Be.done?X(Be.value):(mt=Be.value,mt instanceof k?mt:new k(function(ct){ct(mt)})).then(_e,kt)}Ue((j=j.apply(xe,P||[])).next())})}function B(xe,P){var k,j,X,T,_e={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return T={next:kt(0),throw:kt(1),return:kt(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function kt(Ue){return function(Be){return function(mt){if(k)throw new TypeError("Generator is already executing.");for(;_e;)try{if(k=1,j&&(X=2&mt[0]?j.return:mt[0]?j.throw||((X=j.return)&&X.call(j),0):j.next)&&!(X=X.call(j,mt[1])).done)return X;switch(j=0,X&&(mt=[2&mt[0],X.value]),mt[0]){case 0:case 1:X=mt;break;case 4:return _e.label++,{value:mt[1],done:!1};case 5:_e.label++,j=mt[1],mt=[0];continue;case 7:mt=_e.ops.pop(),_e.trys.pop();continue;default:if(X=_e.trys,!((X=X.length>0&&X[X.length-1])||mt[0]!==6&&mt[0]!==2)){_e=0;continue}if(mt[0]===3&&(!X||mt[1]>X[0]&&mt[1]<X[3])){_e.label=mt[1];break}if(mt[0]===6&&_e.label<X[1]){_e.label=X[1],X=mt;break}if(X&&_e.label<X[2]){_e.label=X[2],_e.ops.push(mt);break}X[2]&&_e.ops.pop(),_e.trys.pop();continue}mt=P.call(xe,_e)}catch(ct){mt=[6,ct],j=0}finally{k=X=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}([Ue,Be])}}}function G(){for(var xe=0,P=0,k=arguments.length;P<k;P++)xe+=arguments[P].length;var j=Array(xe),X=0;for(P=0;P<k;P++)for(var T=arguments[P],_e=0,kt=T.length;_e<kt;_e++,X++)j[X]=T[_e];return j}var F=function(){function xe(){}return xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},xe.setAttributes=function(P,k){for(var j=0,X=k;j<X.length;j++){var T=X[j],_e=T[0],kt=T[1];P.setAttribute(_e,kt)}},xe.createRect=function(P,k,j){var X=document.createElementNS("http://www.w3.org/2000/svg","rect");return X.setAttribute("width",P.toString()),X.setAttribute("height",k.toString()),j&&xe.setAttributes(X,j),X},xe.createLine=function(P,k,j,X,T){var _e=document.createElementNS("http://www.w3.org/2000/svg","line");return _e.setAttribute("x1",P.toString()),_e.setAttribute("y1",k.toString()),_e.setAttribute("x2",j.toString()),_e.setAttribute("y2",X.toString()),T&&xe.setAttributes(_e,T),_e},xe.createPolygon=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","polygon");return j.setAttribute("points",P),k&&xe.setAttributes(j,k),j},xe.createCircle=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","circle");return j.setAttribute("cx",(P/2).toString()),j.setAttribute("cy",(P/2).toString()),j.setAttribute("r",P.toString()),k&&xe.setAttributes(j,k),j},xe.createEllipse=function(P,k,j){var X=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return X.setAttribute("cx",(P/2).toString()),X.setAttribute("cy",(k/2).toString()),X.setAttribute("rx",(P/2).toString()),X.setAttribute("ry",(k/2).toString()),j&&xe.setAttributes(X,j),X},xe.createGroup=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return P&&xe.setAttributes(k,P),k},xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},xe.createMarker=function(P,k,j,X,T,_e,kt){var Ue=document.createElementNS("http://www.w3.org/2000/svg","marker");return xe.setAttributes(Ue,[["id",P],["orient",k],["markerWidth",j.toString()],["markerHeight",X.toString()],["refX",T.toString()],["refY",_e.toString()]]),Ue.appendChild(kt),Ue},xe.createText=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),P&&xe.setAttributes(k,P),k},xe.createTSpan=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","tspan");return j.textContent=P,k&&xe.setAttributes(j,k),j},xe.createImage=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return P&&xe.setAttributes(k,P),k},xe.createPoint=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return j.x=P,j.y=k,j},xe.createPath=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","path");return j.setAttribute("d",P),k&&xe.setAttributes(j,k),j},xe}(),M=function(){function xe(){}return xe.addKey=function(P){xe.key=P},Object.defineProperty(xe,"isLicensed",{get:function(){return!!xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(xe.key)},enumerable:!1,configurable:!0}),xe}(),he=function(){function xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return xe.prototype.rasterize=function(P,k,j){var X=this;return new Promise(function(T){var _e=j!==void 0?j:document.createElement("canvas");P===null&&(X.markersOnly=!0,X.naturalSize=!1);var kt=document.createElementNS("http://www.w3.org/2000/svg","svg");kt.setAttribute("xmlns","http://www.w3.org/2000/svg"),kt.setAttribute("width",k.width.baseVal.valueAsString),kt.setAttribute("height",k.height.baseVal.valueAsString),kt.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),kt.innerHTML=k.innerHTML,X.naturalSize===!0?(kt.width.baseVal.value=P.naturalWidth,kt.height.baseVal.value=P.naturalHeight):X.width!==void 0&&X.height!==void 0&&(kt.width.baseVal.value=X.width,kt.height.baseVal.value=X.height),_e.width=kt.width.baseVal.value,_e.height=kt.height.baseVal.value;var Ue=kt.outerHTML,Be=_e.getContext("2d");X.markersOnly!==!0&&Be.drawImage(P,0,0,_e.width,_e.height);var mt=window.URL,ct=new Image(_e.width,_e.height);ct.setAttribute("crossOrigin","anonymous");var tt=new Blob([Ue],{type:"image/svg+xml"}),It=mt.createObjectURL(tt);ct.onload=function(){Be.drawImage(ct,0,0),mt.revokeObjectURL(It);var an=_e.toDataURL(X.imageType,X.imageQuality);T(an)},ct.src=It})},xe}(),ue=function(){},te=function(){function xe(P){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+P+"_"}return Object.defineProperty(xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(xe.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(xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),xe.prototype.addClass=function(P){return this.styleSheet===void 0&&this.addStyleSheet(),P.name=""+this.classNamePrefix+P.localName,this.classes.push(P),this.styleSheet.sheet.insertRule("."+P.name+" {"+P.style+"}",this.styleSheet.sheet.cssRules.length),P},xe.prototype.addRule=function(P){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(P),this.styleSheet.sheet.insertRule(P.selector+" {"+P.style+"}",this.styleSheet.sheet.cssRules.length)},xe.prototype.addStyleSheet=function(){var P;this.styleSheet=document.createElement("style"),((P=this.styleSheetRoot)!==null&&P!==void 0?P:document.head).appendChild(this.styleSheet),this.addRule(new Me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new we("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new we("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},xe.prototype.removeStyleSheet=function(){var P;this.styleSheet&&(((P=this.styleSheetRoot)!==null&&P!==void 0?P:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},xe}(),Me=function(xe,P){this.selector=xe,this.style=P},we=function(xe,P){this.localName=xe,this.style=P},Je=function(){function xe(P,k,j,X,T){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=P,this.displayMode=k,this.markerItems=j,this.uiStyleSettings=X,this.styles=T,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return xe.prototype.show=function(P){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=P,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var j=document.createElement("div");j.className=this.toolbarBlockStyleClass.name,j.style.whiteSpace="nowrap",this.uiContainer.appendChild(j),this.addActionButton(j,'<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(j,'<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(j,'<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(j,'<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(j,'<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(j,'<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(j,'<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(j,'<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 _e=document.createElement("div");_e.className=""+k.toolbarButtonStyleClass.name,_e.setAttribute("data-type-name",T.typeName),_e.innerHTML=T.icon,_e.addEventListener("click",function(){k.markerToolbarButtonClicked(_e,T)}),k.buttons.push(_e),k.markerButtons.push(_e)}),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 X=document.createElement("div");X.className=this.toolbarBlockStyleClass.name,X.style.whiteSpace="nowrap",X.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(X),this.addActionButton(X,'<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(X,'<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()},xe.prototype.addButtonClickListener=function(P){this.buttonClickListeners.push(P)},xe.prototype.removeButtonClickListener=function(P){this.buttonClickListeners.indexOf(P)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(P),1)},xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var P=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<P||k===P&&this.markerButtons.length-1===P?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===P&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},xe.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")},xe.prototype.resetButtonStyles=function(){var P=this;this.buttons.forEach(function(k){k.className=k.className.replace(P.uiStyleSettings.toolbarButtonStyleColorsClassName?P.uiStyleSettings.toolbarButtonStyleColorsClassName:P.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(P.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?P.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:P.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(P.uiStyleSettings.toolbarButtonStyleColorsClassName?P.uiStyleSettings.toolbarButtonStyleColorsClassName:P.toolbarButtonStyleColorsClass.name)})},xe.prototype.addActionButton=function(P,k,j){var X=this,T=document.createElement("div");switch(T.className=""+this.toolbarButtonStyleClass.name,T.innerHTML=k,T.setAttribute("data-action",j),T.addEventListener("click",function(){X.actionToolbarButtonClicked(T,j)}),j){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}P.appendChild(T),this.buttons.push(T)},xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new we("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 we("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new we("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new we("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 we("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var P=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new we("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*P)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*P)+`px;
|
|
|
padding: `+P+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new we("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},xe.prototype.markerToolbarButtonClicked=function(P,k){this.setActiveButton(P),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(j){return j("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},xe.prototype.actionToolbarButtonClicked=function(P,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(j){return j("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},xe.prototype.setActiveButton=function(P){this.resetButtonStyles(),P.className=P.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),P.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},xe.prototype.setActiveMarkerButton=function(P){var k=this.markerButtons.find(function(j){return j.getAttribute("data-type-name")===P});k&&this.setActiveButton(k)},xe.prototype.setCurrentMarker=function(P){var k=this;this.currentMarker=P,this.buttons.filter(function(j){return/delete|notes/.test(j.getAttribute("data-action"))}).forEach(function(j){k.currentMarker===void 0?(j.style.fillOpacity="0.4",j.style.pointerEvents="none"):(j.style.fillOpacity="1",j.style.pointerEvents="all")})},xe}(),Oe=function(){function xe(P,k,j,X){this.panels=[],this.panelButtons=[],this.markerjsContainer=P,this.displayMode=k,this.uiStyleSettings=j,this.styles=X,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return xe.prototype.addStyles=function(){var P;this.toolboxStyleClass=this.styles.addClass(new we("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 we("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new we("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new we("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new we("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 we("toolbox-panel-row_colors",`
|
|
|
background-color: `+((P=this.uiStyleSettings.toolboxBackgroundColor)!==null&&P!==void 0?P:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new we("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 we("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},xe.prototype.show=function(P){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=P,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},xe.prototype.setPanelButtons=function(P){var k,j,X=this;this.panels=P,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+" "+((j=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&j!==void 0?j:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(T){var _e;T.uiStyleSettings=X.uiStyleSettings;var kt=document.createElement("div");kt.className=X.toolboxButtonStyleClass.name+" "+((_e=X.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_e!==void 0?_e:X.toolboxButtonStyleColorsClass.name),kt.innerHTML=T.icon,kt.title=T.title,kt.addEventListener("click",function(){X.panelButtonClick(T)}),X.panelButtons.push(kt),X.buttonRow.appendChild(kt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},xe.prototype.panelButtonClick=function(P){var k=this,j=-1;if(P!==this.activePanel){j=this.panels.indexOf(P),this.panelRow.innerHTML="";var X=P.getUi();X.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(X),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=P}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,_e){var kt,Ue;T.className=k.toolboxButtonStyleClass.name+" "+(_e===j?""+((kt=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&kt!==void 0?kt:k.toolboxActiveButtonStyleColorsClass.name):""+((Ue=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:k.toolboxButtonStyleColorsClass.name))})},xe}(),Te=function(xe,P){this.title=xe,this.icon=P},Ae=function(xe){function P(k,j,X,T){var _e=xe.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 _e.colors=[],_e.addTransparent=!1,_e.colorBoxes=[],_e.colors=j,_e.currentColor=X,_e.setCurrentColor=_e.setCurrentColor.bind(_e),_e.getColorBox=_e.getColorBox.bind(_e),_e}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.whiteSpace="nowrap",this.colors.forEach(function(X){var T=k.getColorBox(X);j.appendChild(T),k.colorBoxes.push(T)}),j},P.prototype.getColorBox=function(k){var j=this,X=this.uiStyleSettings.toolbarHeight/4,T=this.uiStyleSettings.toolbarHeight-X,_e=document.createElement("div");_e.style.display="inline-block",_e.style.boxSizing="content-box",_e.style.width=T-2+"px",_e.style.height=T-2+"px",_e.style.padding="1px",_e.style.marginRight="2px",_e.style.marginBottom="2px",_e.style.borderWidth="2px",_e.style.borderStyle="solid",_e.style.borderRadius=(T+2)/2+"px",_e.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",_e.addEventListener("click",function(){j.setCurrentColor(k,_e)});var kt=document.createElement("div");return kt.style.display="inline-block",kt.style.width=T-2+"px",kt.style.height=T-2+"px",kt.style.backgroundColor=k,kt.style.borderRadius=T/2+"px",k==="transparent"&&(kt.style.fill=this.uiStyleSettings.toolboxAccentColor,kt.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>`),_e.appendChild(kt),_e},P.prototype.setCurrentColor=function(k,j){var X=this;this.currentColor=k,this.colorBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},P}(Te),Re=function(){function xe(P,k,j){this._state="new",this._isSelected=!1,this._container=P,this._overlayContainer=k,this.globalSettings=j,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(P){return!1},Object.defineProperty(xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},xe.prototype.pointerDown=function(P,k){},xe.prototype.dblClick=function(P,k){},xe.prototype.manipulate=function(P){},xe.prototype.pointerUp=function(P){this.stateChanged()},xe.prototype.dispose=function(){},xe.prototype.addMarkerVisualToContainer=function(P){this.container.childNodes.length>0?this.container.insertBefore(P,this.container.childNodes[0]):this.container.appendChild(P)},xe.prototype.getState=function(){return{typeName:xe.typeName,state:this.state,notes:this.notes}},xe.prototype.restoreState=function(P){this._state=P.state,this.notes=P.notes},xe.prototype.scale=function(P,k){},xe.prototype.colorChanged=function(P){this.onColorChanged&&this.onColorChanged(P),this.stateChanged()},xe.prototype.fillColorChanged=function(P){this.onFillColorChanged&&this.onFillColorChanged(P),this.stateChanged()},xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var P=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),P.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(P)&&this.onStateChanged(this)}},xe.typeName="MarkerBase",xe}(),de=function(){function xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return xe.prototype.findGripByVisual=function(P){return this.topLeft.ownsTarget(P)?this.topLeft:this.topCenter.ownsTarget(P)?this.topCenter:this.topRight.ownsTarget(P)?this.topRight:this.centerLeft.ownsTarget(P)?this.centerLeft:this.centerRight.ownsTarget(P)?this.centerRight:this.bottomLeft.ownsTarget(P)?this.bottomLeft:this.bottomCenter.ownsTarget(P)?this.bottomCenter:this.bottomRight.ownsTarget(P)?this.bottomRight:void 0},xe}(),pe=function(){function xe(){this.GRIP_SIZE=10,this.visual=F.createGroup(),this.visual.appendChild(F.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(F.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return xe.prototype.ownsTarget=function(P){return P===this.visual||P===this.visual.childNodes[0]||P===this.visual.childNodes[1]},xe}(),be=function(){function xe(){}return xe.toITransformMatrix=function(P){return{a:P.a,b:P.b,c:P.c,d:P.d,e:P.e,f:P.f}},xe.toSVGMatrix=function(P,k){return P.a=k.a,P.b=k.b,P.c=k.c,P.d=k.d,P.e=k.e,P.f=k.f,P},xe}(),me=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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(F.createTransform()),T.setupControlBox(),T}return I(P,xe),Object.defineProperty(P.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var j=F.createTransform();this._visual.transform.baseVal.appendItem(j)},enumerable:!1,configurable:!0}),P.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),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 X=this.unrotatePoint(k);if(this.manipulationStartX=X.x,this.manipulationStartY=X.y,this.offsetX=X.x-this.left,this.offsetY=X.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(j),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(j)){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 _e=this.container.transform.baseVal.getItem(0);_e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(_e,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},P.prototype.pointerUp=function(k){var j=this.state;xe.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",j==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},P.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},P.prototype.manipulate=function(k){var j=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(j.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(j.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(j):this.state==="rotate"&&this.rotate(k)},P.prototype.resize=function(k){var j=this.manipulationStartLeft,X=this.manipulationStartWidth,T=this.manipulationStartTop,_e=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:j=this.manipulationStartLeft+k.x-this.manipulationStartX,X=this.manipulationStartWidth+this.manipulationStartLeft-j;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:X=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,_e=this.manipulationStartHeight+this.manipulationStartTop-T;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:_e=this.manipulationStartHeight+k.y-this.manipulationStartY}X>=0?(this.left=j,this.width=X):(this.left=j+X,this.width=-X),_e>=0?(this.top=T,this.height=_e):(this.top=T+_e,this.height=-_e),this.setSize()},P.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},P.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var j=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*j,this.applyRotation()}},P.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)},P.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM(),X=F.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(j)).x,y:X.y}},P.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM();j=j.inverse();var X=F.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(j)).x,y:X.y}},P.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},P.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},P.prototype.setupControlBox=function(){this.controlBox=F.createGroup();var k=F.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=F.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=F.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 de,this.addControlGrips(),this.controlBox.style.display="none"},P.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()},P.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()},P.prototype.createGrip=function(){var k=new pe;return k.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(k.visual),k},P.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,j=-k/2,X=j,T=(this.width+this.CB_DISTANCE)/2-k/2,_e=(this.height+this.CB_DISTANCE)/2-k/2,kt=this.height+this.CB_DISTANCE-k/2,Ue=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,j,X),this.positionGrip(this.controlGrips.topCenter.visual,T,X),this.positionGrip(this.controlGrips.topRight.visual,Ue,X),this.positionGrip(this.controlGrips.centerLeft.visual,j,_e),this.positionGrip(this.controlGrips.centerRight.visual,Ue,_e),this.positionGrip(this.controlGrips.bottomLeft.visual,j,kt),this.positionGrip(this.controlGrips.bottomCenter.visual,T,kt),this.positionGrip(this.controlGrips.bottomRight.visual,Ue,kt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,T,X-3*this.CB_DISTANCE)},P.prototype.positionGrip=function(k,j,X){var T=k.transform.baseVal.getItem(0);T.setTranslate(j,X),k.transform.baseVal.replaceItem(T,0)},P.prototype.hideControlBox=function(){this.controlBox.style.display="none"},P.prototype.showControlBox=function(){this.controlBox.style.display=""},P.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:be.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:be.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},xe.prototype.getState.call(this))},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.left=j.left,this.top=j.top,this.width=j.width,this.height=j.height,this.rotationAngle=j.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(be.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,j.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(be.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,j.containerTransformMatrix))},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j);var X=this.rotatePoint({x:this.left,y:this.top}),T=this.unrotatePoint({x:X.x*k,y:X.y*j});this.left=T.x,this.top=T.y,this.width=this.width*k,this.height=this.height*j,this.adjustControlBox()},P}(Re),ke=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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 I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},P.prototype.createVisual=function(){this.visual=F.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},P.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this))},P.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.opacity=j.opacity,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.title="Rectangle marker",P}(me),ee=function(xe){function P(k,j,X,T){var _e=xe.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return _e.widths=[],_e.widthBoxes=[],_e.widths=j,_e.currentWidth=X,_e.setCurrentWidth=_e.setCurrentWidth.bind(_e),_e}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",this.widths.forEach(function(X){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=X===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentWidth(X,T)}),j.appendChild(T);var _e=document.createElement("div");_e.innerText=X.toString(),_e.style.marginRight="5px",T.appendChild(_e);var kt=document.createElement("div");kt.style.minHeight="20px",kt.style.flexGrow="2",kt.style.display="flex",kt.style.alignItems="center";var Ue=document.createElement("hr");Ue.style.minWidth="20px",Ue.style.border="0px",Ue.style.borderTop=X+"px solid "+k.uiStyleSettings.toolboxColor,Ue.style.flexGrow="2",kt.appendChild(Ue),T.appendChild(kt),k.widthBoxes.push(T)}),j},P.prototype.setCurrentWidth=function(k,j){var X=this;this.currentWidth=k,this.widthBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},P}(Te),Ne=function(xe){function P(k,j,X,T){var _e=xe.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 _e.styles=[],_e.styleBoxes=[],_e.styles=j,_e.currentStyle=X,_e.setCurrentStyle=_e.setCurrentStyle.bind(_e),_e}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",this.styles.forEach(function(X){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=X===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentStyle(X,T)}),j.appendChild(T);var _e=document.createElement("div");_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.overflow="hidden";var kt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(X!==""?'stroke-dasharray="'+X+'"':"")+` />
|
|
|
</svg>`;_e.innerHTML=kt,T.appendChild(_e),k.styleBoxes.push(T)}),j},P.prototype.setCurrentStyle=function(k,j){var X=this;this.currentStyle=k,this.styleBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},P}(Te),Ie=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Ae("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ne("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="FrameMarker",P.title="Frame marker",P.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',P}(ke),Pe=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"},Xe=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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 I(P,xe),P.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),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(j)?this.activeGrip=this.grip1:this.grip2.ownsTarget(j)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},P.prototype.pointerUp=function(k){var j=this.state;xe.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",j==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},P.prototype.adjustVisual=function(){},P.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)},P.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()},P.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},P.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},P.prototype.setupControlBox=function(){this.controlBox=F.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},P.prototype.adjustControlBox=function(){this.positionGrips()},P.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},P.prototype.createGrip=function(){var k=new pe;return k.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(k.visual),k},P.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)},P.prototype.positionGrip=function(k,j,X){var T=k.transform.baseVal.getItem(0);T.setTranslate(j,X),k.transform.baseVal.replaceItem(T,0)},P.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},xe.prototype.getState.call(this))},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.x1=j.x1,this.y1=j.y1,this.x2=j.x2,this.y2=j.y2},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.x1=this.x1*k,this.y1=this.y1*j,this.x2=this.x2*k,this.y2=this.y2*j,this.adjustVisual(),this.adjustControlBox()},P}(Re),Ye=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Ae("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ne("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},P.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorLine=F.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=F.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},P.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()),F.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.createVisual(),this.adjustVisual()},P.typeName="LineMarker",P.title="Line marker",P.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',P}(Xe),ie=function(xe){function P(k,j,X,T){var _e=xe.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 _e.fonts=[],_e.fontBoxes=[],_e.fonts=j,_e.currentFont=X,_e.setCurrentFont=_e.setCurrentFont.bind(_e),_e}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.flexGrow="2",this.fonts.forEach(function(X){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=X===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentFont(X,T)}),j.appendChild(T);var _e=document.createElement("div");_e.style.display="flex",_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.fontFamily=X,_e.style.overflow="hidden";var kt=document.createElement("div");kt.style.whiteSpace="nowrap",kt.style.overflow="hidden",kt.style.textOverflow="ellipsis",kt.innerHTML="The quick brown fox jumps over the lazy dog",_e.appendChild(kt),T.appendChild(_e),k.fontBoxes.push(T)}),j},P.prototype.setCurrentFont=function(k,j){var X=this;this.currentFont=k,this.fontBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},P}(Te),lt=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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=X.defaultColor,T.fontFamily=X.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 Ae("Color",X.defaultColorSet,X.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T}return I(P,xe),P.prototype.ownsTarget=function(k){if(xe.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var j=!1;return this.textElement.childNodes.forEach(function(X){X===k&&(j=!0)}),j},P.prototype.createVisual=function(){this.visual=F.createGroup(),this.bgRectangle=F.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=F.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.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(j){k.textElement.appendChild(F.createTSpan(j.trim()===""?" ":j.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},P.prototype.getTextScale=function(){var k=this.textElement.getBBox(),j=1;if(k.width>0&&k.height>0){var X=(1*this.width-this.width*this.padding*2/100)/k.width,T=(1*this.height-this.height*this.padding*2/100)/k.height;j=Math.min(X,T)}return j},P.prototype.getTextPosition=function(k){var j=this.textElement.getBBox(),X=0,T=0;return j.width>0&&j.height>0&&(X=(this.width-j.width*k)/2,T=this.height/2-j.height*k/2),{x:X,y:T}},P.prototype.sizeText=function(){var k=this.textElement.getBBox(),j=this.getTextScale(),X=this.getTextPosition(j);X.y-=k.y*j,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+X.x+"px, "+X.y+"px) scale("+j+", "+j+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(X.x,X.y),this.textElement.transform.baseVal.getItem(1).setScale(j,j))},P.prototype.manipulate=function(k){xe.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)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},P.prototype.pointerUp=function(k){var j=this.state;j==="creating"&&(this._suppressMarkerCreateEvent=!0),xe.prototype.pointerUp.call(this,k),this.setSize(),(j==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},P.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(j){j.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var j=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&j>.9;)j-=.1,k.textEditor.style.fontSize=Math.max(j,.9)+"em"}),this.textEditor.addEventListener("keyup",function(j){j.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(j){if(j.clipboardData){var X=j.clipboardData.getData("text"),T=window.getSelection();if(!T.rangeCount)return!1;T.deleteFromDocument(),T.getRangeAt(0).insertNode(document.createTextNode(X)),j.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")},P.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),j=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),X=this.textElement.getBBox(),T={x:X.width*k,y:X.height*k};j.x-=T.x/2,j.y-=T.y/2,this.textEditor.style.top=j.y+"px",this.textEditor.style.left=j.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-j.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},P.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()},P.prototype.select=function(){xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},P.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),xe.prototype.deselect.call(this)},P.prototype.dblClick=function(k,j){xe.prototype.dblClick.call(this,k,j),this.showTextEditor()},P.prototype.setColor=function(k){this.textElement&&F.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},P.prototype.setFont=function(k){this.textElement&&F.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},P.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},P.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){var j=k;this.color=j.color,this.fontFamily=j.fontFamily,this.padding=j.padding,this.text=j.text,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize(),this.sizeText(),this.positionTextEditor()},P.typeName="TextMarker",P.title="Text marker",P.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>',P}(me),We=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.color="transparent",T.lineWidth=3,T.drawing=!1,T.pixelRatio=1,T.color=X.defaultColor,T.lineWidth=X.defaultStrokeWidth,T.pixelRatio=X.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 Ae("Color",X.defaultColorSet,X.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.lineWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.lineWidthPanel.onWidthChanged=T.setLineWidth,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},P.prototype.createVisual=function(){this.visual=F.createGroup(),this.drawingImage=F.createImage(),this.visual.appendChild(this.drawingImage);var k=F.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},P.prototype.pointerDown=function(k,j){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):xe.prototype.pointerDown.call(this,k,j)},P.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},P.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):xe.prototype.pointerUp.call(this,k)},P.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)},P.prototype.select=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.select.call(this)},P.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.deselect.call(this)},P.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),j=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],X=j[0],T=j[1],_e=j[2],kt=j[3],Ue=!1,Be=0;Be<this.canvasElement.height;Be++)for(var mt=0;mt<this.canvasElement.width;mt++)k.data[Be*this.canvasElement.width*4+4*mt+3]>0&&(Ue=!0,Be<T&&(T=Be),mt<X&&(X=mt),Be>kt&&(kt=Be),mt>_e&&(_e=mt));if(Ue){this.left=X/this.pixelRatio,this.top=T/this.pixelRatio,this.width=(_e-X)/this.pixelRatio,this.height=(kt-T)/this.pixelRatio;var ct=document.createElement("canvas");ct.width=_e-X,ct.height=kt-T,ct.getContext("2d").putImageData(this.canvasContext.getImageData(X,T,_e-X,kt-T),0,0),this.drawingImgUrl=ct.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},P.prototype.setDrawingImage=function(){F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},P.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},P.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){this.createVisual(),xe.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setDrawingImage()},P.typeName="FreehandMarker",P.title="Freehand marker",P.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>',P}(me),Pt=function(xe){function P(k,j,X){var T=xe.call(this,k,X||'<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=j,T.setCurrentType=T.setCurrentType.bind(T),T}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2";for(var X=function(kt){var Ue="both";switch(kt){case 0:Ue="both";break;case 1:Ue="start";break;case 2:Ue="end";break;case 3:Ue="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Ue===T.currentType?T.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){k.setCurrentType(Ue,Be)}),j.appendChild(Be),Ue==="both"||Ue==="start"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.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>`,mt.style.marginLeft="5px",Be.appendChild(mt)}var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.style.flexGrow="2";var tt=document.createElement("hr");if(tt.style.minWidth="20px",tt.style.border="0px",tt.style.borderTop="3px solid "+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee"),tt.style.flexGrow="2",ct.appendChild(tt),Be.appendChild(ct),Ue==="both"||Ue==="end"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.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>`,It.style.marginRight="5px",Be.appendChild(It)}T.typeBoxes.push(Be)},T=this,_e=0;_e<4;_e++)X(_e);return j},P.prototype.setCurrentType=function(k,j){var X=this;this.currentType=k,this.typeBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},P}(Te),xt=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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 Pt("Arrow type","end"),T.arrowTypePanel.onArrowTypeChanged=T.setArrowType,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},P.prototype.getArrowPoints=function(k,j){var X=this.arrowBaseWidth+2*this.strokeWidth,T=this.arrowBaseHeight+2*this.strokeWidth;return k-X/2+","+(j+T/2)+" "+k+","+(j-T/2)+" "+(k+X/2)+","+(j+T/2)},P.prototype.createTips=function(){this.arrow1=F.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=F.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow2)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},P.prototype.adjustVisual=function(){if(xe.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",F.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),F.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 j=this.arrow1.transform.baseVal.getItem(0);j.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(j,0);var X=this.arrow2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(X,0)}},P.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.arrowType=j.arrowType,this.createTips(),this.adjustVisual()},P.typeName="ArrowMarker",P.title="Arrow marker",P.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',P}(Ye),Tt=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.fillColor=X.defaultFillColor,T.strokeWidth=0,T.fillPanel=new Ae("Color",X.defaultColorSet,X.defaultFillColor),T.fillPanel.onColorChanged=T.setFillColor,T}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="CoverMarker",P.title="Cover marker",P.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',P}(ke),Et=function(xe){function P(k,j,X,T){var _e=xe.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 _e.opacities=[],_e.opacityBoxes=[],_e.opacities=j,_e.currentOpacity=X,_e.setCurrentOpacity=_e.setCurrentOpacity.bind(_e),_e}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",j.style.justifyContent="space-between",this.opacities.forEach(function(X){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=X===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentOpacity(X,T)}),j.appendChild(T);var _e=document.createElement("div");_e.innerText=100*X+"%",T.appendChild(_e),k.opacityBoxes.push(T)}),j},P.prototype.setCurrentOpacity=function(k,j){var X=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(T){T.style.borderColor=T===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},P}(Te),wn=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.setOpacity=T.setOpacity.bind(T),T.fillColor=X.defaultHighlightColor,T.strokeWidth=0,T.opacity=X.defaultHighlightOpacity,T.fillPanel=new Ae("Color",X.defaultColorSet,T.fillColor),T.fillPanel.onColorChanged=T.setFillColor,T.opacityPanel=new Et("Opacity",X.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(P,xe),P.prototype.setOpacity=function(k){this.opacity=k,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="HighlightMarker",P.title="Highlight marker",P.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>',P}(Tt),qe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ae='<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>',le=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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=X.defaultStrokeColor,T.bgColor=X.defaultFillColor,T.fontFamily=X.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 Ae("Text color",X.defaultColorSet,T.color,qe),T.colorPanel.onColorChanged=T.setColor,T.bgColorPanel=new Ae("Fill color",X.defaultColorSet,T.bgColor,ae),T.bgColorPanel.onColorChanged=T.setBgColor,T.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.tipGrip=new pe,T.tipGrip.visual.transform.baseVal.appendItem(F.createTransform()),T.controlBox.appendChild(T.tipGrip.visual),T}return I(P,xe),P.prototype.ownsTarget=function(k){return xe.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},P.prototype.createTip=function(){F.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=F.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},P.prototype.pointerDown=function(k,j){this.state==="new"&&xe.prototype.pointerDown.call(this,k,j),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(j)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):xe.prototype.pointerDown.call(this,k,j)},P.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,xe.prototype.pointerUp.call(this,k);else{var j=this.state==="creating";xe.prototype.pointerUp.call(this,k),this.setTipPoints(j),this.positionTip()}},P.prototype.manipulate=function(k){if(this.tipMoving){var j=this.unrotatePoint(k);this.tipPosition={x:j.x-this.manipulationStartLeft,y:j.y-this.manipulationStartTop},this.positionTip()}else xe.prototype.manipulate.call(this,k)},P.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(F.setAttributes(this.bgRectangle,[["fill",k]]),F.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},P.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},P.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var j=Math.min(this.height/2,15),X=this.height/5;k&&(this.tipPosition={x:j+X/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))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:0},this.tipBase2Position={x:j+X,y:0}):(this.tipBase1Position={x:0,y:j},this.tipBase2Position={x:0,y:j+X}):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))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-X,y:0},this.tipBase2Position={x:this.width-j,y:0}):(this.tipBase1Position={x:this.width,y:j},this.tipBase2Position={x:this.width,y:j+X}):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))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-X,y:this.height},this.tipBase2Position={x:this.width-j,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-j-X},this.tipBase2Position={x:this.width,y:this.height-j}):T<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:this.height},this.tipBase2Position={x:j+X,y:this.height}):(this.tipBase1Position={x:0,y:this.height-j},this.tipBase2Position={x:0,y:this.height-j-X})},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.positionTip()},P.prototype.positionTip=function(){F.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(P.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),P.prototype.select=function(){this.positionTip(),xe.prototype.select.call(this)},P.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){var j=k;this.bgColor=j.bgColor,this.tipPosition=j.tipPosition,xe.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*j},this.positionTip()},P.typeName="CalloutMarker",P.title="Callout marker",P.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>',P}(lt),$t=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.fillColor=X.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 Ae("Line color",G(X.defaultColorSet,["transparent"]),X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Ae("Fill color",G(X.defaultColorSet,["transparent"]),T.fillColor,ae),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ne("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.opacityPanel=new Et("Opacity",X.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},P.prototype.createVisual=function(){this.visual=F.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),F.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},P.prototype.setOpacity=function(k){this.opacity=k,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.opacity=j.opacity,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.typeName="EllipseMarker",P.title="Ellipse marker",P.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>',P}(me),Vt=function(xe){function P(k,j,X){return xe.call(this,k,j,X)||this}return I(P,xe),Object.defineProperty(P.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},P.prototype.createTips=function(){this.tip1=F.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(F.createTransform()),this.visual.appendChild(this.tip1),this.tip2=F.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(F.createTransform()),this.visual.appendChild(this.tip2)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},P.prototype.adjustVisual=function(){if(xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(F.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()]]),F.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),j=this.tip1.transform.baseVal.getItem(0);j.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(j,0);var X=this.tip2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(X,0)}},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},P.typeName="MeasurementMarker",P.title="Measurement marker",P.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>',P}(Ye),St=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||this;return T.strokePanel.colors=X.defaultColorSet,T.fillColor="transparent",T}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="EllipseFrameMarker",P.title="Ellipse frame marker",P.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>',P}($t),un=function(){function xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),xe.prototype.addUndoStep=function(P){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(P)||(this.undoStack.push(P),JSON.stringify(this.lastRedoStep)!==JSON.stringify(P)&&this.redoStack.splice(0,this.redoStack.length))},xe.prototype.replaceLastUndoStep=function(P){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=P)},xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},xe.prototype.undo=function(){if(this.undoStack.length>1){var P=this.undoStack.pop();return P!==void 0&&this.redoStack.push(P),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},xe}(),Ft=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Ae("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ne("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},P.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},P.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorCurve=F.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=F.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),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(j)&&(this.activeGrip=this.curveGrip,this._state="resize")},P.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),F.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},P.prototype.setupControlBox=function(){xe.prototype.setupControlBox.call(this),this.curveControlLine1=F.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=F.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)},P.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,xe.prototype.addControlGrips.call(this)},P.prototype.positionGrips=function(){xe.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()))},P.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),xe.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)},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},P.prototype.scale=function(k,j){this.curveX=this.curveX*k,this.curveY=this.curveY*j,xe.prototype.scale.call(this,k,j)},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.curveX=j.curveX,this.curveY=j.curveY,this.createVisual(),this.adjustVisual()},P.typeName="CurveMarker",P.title="Curve marker",P.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>',P}(Xe),ai=function(xe){function P(k,j,X){var T=xe.call(this,k,j,X)||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=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.fillColor=X.defaultFillColor,T.textColor=X.defaultStrokeColor,T.fontFamily=X.defaultFontFamily,T.fontSize=X.defaultCaptionFontSize,T.captionText=X.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 Ae("Line color",G(X.defaultColorSet,["transparent"]),T.strokeColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Ae("Fill color",G(X.defaultColorSet,["transparent"]),T.fillColor,ae),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ne("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.textColorPanel=new Ae("Text color",X.defaultColorSet,T.textColor,qe),T.textColorPanel.onColorChanged=T.setTextColor,T}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},P.prototype.createVisual=function(){this.visual=F.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=F.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=F.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=F.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()},P.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.prototype.manipulate=function(k){xe.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)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.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),F.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')"]]),F.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')"]])},P.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(j){j.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(j){j.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(j){j.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()},P.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"))},P.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},P.prototype.setFont=function(k){this.captionElement&&F.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},P.prototype.setTextColor=function(k){this.captionElement&&F.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),F.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},P.prototype.dblClick=function(k,j){xe.prototype.dblClick.call(this,k,j),this.showTextEditor()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&F.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&F.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&F.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&F.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),P.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},xe.prototype.getState.call(this));return k.typeName=this.typeName,k},P.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.textColor=j.textColor,this.fontFamily=j.fontFamily,this.captionText=j.captionText,this.fontSize=j.fontSize,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.typeName="CaptionFrameMarker",P.title="Caption frame marker",P.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>',P}(me),On=function(){function xe(P,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=P,this.cancelable=k}return Object.defineProperty(xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),xe.prototype.preventDefault=function(){this._defaultPrevented=!0},xe}(),ni=function(xe){function P(k,j,X){var T=xe.call(this,k,!1)||this;return T.dataUrl=j,T.state=X,T}return I(P,xe),P}(On),Jn=function(xe){function P(k,j,X){X===void 0&&(X=!1);var T=xe.call(this,k,X)||this;return T.marker=j,T}return I(P,xe),P}(On),In=function(){function xe(){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 xe.prototype.addEventListener=function(P,k){this[P].push(k)},xe.prototype.removeEventListener=function(P,k){var j=this[P].indexOf(k);j>-1&&this[P].splice(j,1)},xe}(),Mn=function(){function xe(P){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Pe,this._isOpen=!1,this.undoRedoManager=new un,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 In,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=xe.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=P,this.targetRoot=document.body,this.width=P.clientWidth,this.height=P.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(xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ie,We,xt,lt,St,$t,wn,le,Vt,Tt,Ye,Ft,ai]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ie,We,xt,lt,$t,wn,le]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ie,We,xt,lt,wn]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(P){var k=this;this._availableMarkerTypes.splice(0),P.forEach(function(j){if(typeof j=="string"){var X=k.ALL_MARKER_TYPES.find(function(T){return T.typeName===j});X!==void 0&&k._availableMarkerTypes.push(X)}else k._availableMarkerTypes.push(j)})},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(P){this._zoomLevel=P,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(xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),xe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),M.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},xe.prototype.show=function(){var P=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new On(P))})},xe.prototype.render=function(){return O(this,void 0,void 0,function(){var P;return B(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(P=new he).naturalSize=this.renderAtNaturalSize,P.imageType=this.renderImageType,P.imageQuality=this.renderImageQuality,P.markersOnly=this.renderMarkersOnly,P.width=this.renderWidth,P.height=this.renderHeight,[4,P.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,P.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},xe.prototype.close=function(P){var k=this;if(P===void 0&&(P=!1),this.isOpen){var j=!1;P||this.eventListeners.beforeclose.forEach(function(X){var T=new On(k,!0);X(T),T.defaultPrevented&&(j=!0)}),j||(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(X){return X(new On(k))}),this.detachEvents(),this._isOpen=!1)}},xe.prototype.addMarkersToToolbar=function(){for(var P,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];(P=this._availableMarkerTypes).push.apply(P,k)},xe.prototype.addRenderEventListener=function(P){this.addEventListener("render",function(k){P(k.dataUrl,k.state)})},xe.prototype.removeRenderEventListener=function(P){},xe.prototype.addCloseEventListener=function(P){this.addEventListener("close",function(){P()})},xe.prototype.removeCloseEventListener=function(P){},xe.prototype.setupResizeObserver=function(){var P=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){P.resize(P.target.clientWidth,P.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return P.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},xe.prototype.onPopupTargetResize=function(){var P=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/P>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*P:this.editorCanvas.clientWidth,j=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/P;this.resize(k,j)},xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},xe.prototype.resize=function(P,k){this._isResizing=!0;var j=P/this.imageWidth,X=k/this.imageHeight;this.imageWidth=Math.round(P),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(j,X),this._isResizing=!1},xe.prototype.scaleMarkers=function(P,k){var j,X=this;this._currentMarker&&this._currentMarker instanceof lt?this._currentMarker.scale(P,k):(j=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(T){T!==X._currentMarker&&T.scale(P,k)}),j!==void 0&&this.setCurrentMarker(j)},xe.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"},xe.prototype.setTopLeft=function(){var P=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=P.left-k.left,this.top=P.top-k.top},xe.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)},xe.prototype.addDefs=function(){for(var P,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];this.defs=F.createDefs(),this.addDefsToImage(),(P=this.defs).append.apply(P,k)},xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},xe.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)},xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},xe.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)},xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},xe.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)},xe.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 P=document.createElement("a");P.href="https://markerjs.com/",P.target="_blank",P.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>',P.title="Powered by marker.js",P.style.display="grid",P.style.alignItems="center",P.style.justifyItems="center",P.style.padding="3px",P.style.width="20px",P.style.height="20px",this.logoUI.appendChild(P),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},xe.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")},xe.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"},xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},xe.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 P=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=P+"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 Je(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 Oe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},xe.prototype.removeMarker=function(P){this.markerImage.removeChild(P.container),this.markers.indexOf(P)>-1&&this.markers.splice(this.markers.indexOf(P),1),P.dispose()},xe.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())},xe.prototype.toolbarButtonClicked=function(P,k){if(P==="marker"&&k!==void 0)this.createNewMarker(k);else if(P==="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()}},xe.prototype.deleteSelectedMarker=function(){var P=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(X){var T=new Jn(P,P._currentMarker,!0);X(T),T.defaultPrevented&&(k=!0)}),!k){var j=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(X){return X(new Jn(P,j))})}}},xe.prototype.clear=function(){var P=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(_e){var kt=new Jn(P,void 0,!0);_e(kt),kt.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var j=function(_e){var kt=X.markers[_e];X.setCurrentMarker(X.markers[_e]),X._currentMarker.dispose(),X.markerImage.removeChild(X._currentMarker.container),X.markers.splice(X.markers.indexOf(X._currentMarker),1),X.eventListeners.markerdelete.forEach(function(Ue){return Ue(new Jn(P,kt))})},X=this,T=this.markers.length-1;T>=0;T--)j(T);this.addUndoStep()}},Object.defineProperty(xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),xe.prototype.showNotesEditor=function(){var P;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=(P=this._currentMarker.notes)!==null&&P!==void 0?P:"",this.overlayContainer.appendChild(this.notesArea))},xe.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)},xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},xe.prototype.addUndoStep=function(){var P=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),j=this.undoRedoManager.getLastUndoStep();if(!j||j.width===k.width&&j.height===k.height){var X=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),X<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(T){return T(new On(P))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(T){return T(new On(P))})}},xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},xe.prototype.undoStep=function(){var P=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(j){return j(new On(P))}))},xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},xe.prototype.redoStep=function(){var P=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(j){return j(new On(P))}))},xe.prototype.stepZoom=function(){var P=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=P<this.zoomSteps.length-1?this.zoomSteps[P+1]:this.zoomSteps[0]},xe.prototype.panTo=function(P){this.contentDiv.scrollBy({left:this.prevPanPoint.x-P.x,top:this.prevPanPoint.y-P.y}),this.prevPanPoint=P},xe.prototype.startRenderAndClose=function(){return O(this,void 0,void 0,function(){var P,k,j=this;return B(this,function(X){switch(X.label){case 0:return[4,this.render()];case 1:return P=X.sent(),k=this.getState(),this.eventListeners.render.forEach(function(T){return T(new ni(j,P,k))}),this.close(!0),[2]}})})},xe.prototype.getState=function(P){P===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(j){return k.markers.push(j.getState())}),k},xe.prototype.restoreState=function(P){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);P.markers.forEach(function(j){var X=k._availableMarkerTypes.find(function(_e){return _e.typeName===j.typeName});if(X!==void 0){var T=k.addNewMarker(X);T.restoreState(j),k.markers.push(T)}}),P.width&&P.height&&(P.width!==this.imageWidth||P.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/P.width,this.imageHeight/P.height),this.eventListeners.restorestate.forEach(function(j){return j(new On(k))})},xe.prototype.addNewMarker=function(P){var k=F.createGroup();return this.markerImage.appendChild(k),new P(k,this.overlayContainer,this.settings)},xe.prototype.createNewMarker=function(P){var k,j=this;(k=typeof P=="string"?this._availableMarkerTypes.find(function(X){return X.typeName===P}):P)&&(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(X){return X(new Jn(j,j._currentMarker))}))},xe.prototype.markerCreated=function(P){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(P),this.setCurrentMarker(P),P instanceof We&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(We):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(j){return j(new Jn(k,k._currentMarker))})},xe.prototype.colorChanged=function(P){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=P,this.settings.defaultStrokeColor=P)},xe.prototype.fillColorChanged=function(P){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=P)},xe.prototype.markerStateChanged=function(P){var k=this;this.eventListeners.markerchange.forEach(function(j){return j(new Jn(k,P))})},xe.prototype.setCurrentMarker=function(P){var k=this;this._currentMarker!==P&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(j){return j(new Jn(k,k._currentMarker))})),this._currentMarker=P,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(j){return j(new Jn(k,k._currentMarker))}))},xe.prototype.onPointerDown=function(P){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||P.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(j){return j.ownsTarget(P.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(P.clientX,P.clientY),P.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:P.clientX,y:P.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(P.clientX,P.clientY))},xe.prototype.onDblClick=function(P){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(j){return j.ownsTarget(P.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(P.clientX,P.clientY),P.target):this.setCurrentMarker()}},xe.prototype.onPointerMove=function(P){this.touchPoints!==1&&P.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||P.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(P.clientX,P.clientY)):this.zoomLevel>1&&this.panTo({x:P.clientX,y:P.clientY}))},xe.prototype.onPointerUp=function(P){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(P.clientX,P.clientY)),this.isDragging=!1,this.addUndoStep()},xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},xe.prototype.onKeyUp=function(P){this._currentMarker===void 0||this.notesArea!==void 0||P.key!=="Delete"&&P.key!=="Backspace"||this.deleteSelectedMarker()},xe.prototype.clientToLocalCoordinates=function(P,k){var j=this.markerImage.getBoundingClientRect();return{x:(P-j.left)/this.zoomLevel,y:(k-j.top)/this.zoomLevel}},xe.prototype.onWindowResize=function(){this.positionUI()},xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var P=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=P+"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()},xe.prototype.addLicenseKey=function(P){M.addKey(P)},xe.prototype.addEventListener=function(P,k){this.eventListeners.addEventListener(P,k)},xe.prototype.removeEventListener=function(P,k){this.eventListeners.removeEventListener(P,k)},xe.prototype.renderState=function(P){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(P),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),xe.prototype.focus=function(){var P=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 On(P))}))},xe.prototype.blur=function(){var P=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new On(P))}))},xe.instanceCounter=0,xe}()},67842:function(Q){"use strict";var C,h=59;Q.exports=v;function v(I){var O="&"+I+";",B;return C=C||document.createElement("i"),C.innerHTML=O,B=C.textContent,B.charCodeAt(B.length-1)===h&&I!=="semi"||B===O?!1:B}},12256:function(Q,C,h){"use strict";var v=h(47854),I=h(80501),O=h(22347),B=h(65207),G=h(21127),F=h(67842);Q.exports=wn;var M={}.hasOwnProperty,he=String.fromCharCode,ue=Function.prototype,te={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Me=9,we=10,Je=12,Oe=32,Te=38,Ae=59,Re=60,de=61,pe=35,be=88,me=120,ke=65533,ee="named",Ne="hexadecimal",Ie="decimal",Pe={};Pe[Ne]=16,Pe[Ie]=10;var Xe={};Xe[ee]=G,Xe[Ie]=O,Xe[Ne]=B;var Ye=1,ie=2,lt=3,We=4,Pt=5,xt=6,Tt=7,Et={};Et[Ye]="Named character references must be terminated by a semicolon",Et[ie]="Numeric character references must be terminated by a semicolon",Et[lt]="Named character references cannot be empty",Et[We]="Numeric character references cannot be empty",Et[Pt]="Named character references must be known",Et[xt]="Numeric character references cannot be disallowed",Et[Tt]="Numeric character references cannot be outside the permissible Unicode range";function wn($t,Vt){var St={},un,Ft;Vt||(Vt={});for(Ft in te)un=Vt[Ft],St[Ft]=un==null?te[Ft]:un;return(St.position.indent||St.position.start)&&(St.indent=St.position.indent||[],St.position=St.position.start),qe($t,St)}function qe($t,Vt){var St=Vt.additional,un=Vt.nonTerminated,Ft=Vt.text,ai=Vt.reference,On=Vt.warning,ni=Vt.textContext,Jn=Vt.referenceContext,In=Vt.warningContext,Mn=Vt.position,xe=Vt.indent||[],P=$t.length,k=0,j=-1,X=Mn.column||1,T=Mn.line||1,_e="",kt=[],Ue,Be,mt,ct,tt,It,an,en,Bt,cn,gn,Qe,Ut,tn,nn,He,Bn,kn,Kn;for(typeof St=="string"&&(St=St.charCodeAt(0)),He=Ti(),en=On?hi:ue,k--,P++;++k<P;)if(tt===we&&(X=xe[j]||1),tt=$t.charCodeAt(k),tt===Te){if(an=$t.charCodeAt(k+1),an===Me||an===we||an===Je||an===Oe||an===Te||an===Re||an!==an||St&&an===St){_e+=he(tt),X++;continue}for(Ut=k+1,Qe=Ut,Kn=Ut,an===pe?(Kn=++Qe,an=$t.charCodeAt(Kn),an===be||an===me?(tn=Ne,Kn=++Qe):tn=Ie):tn=ee,Ue="",gn="",ct="",nn=Xe[tn],Kn--;++Kn<P&&(an=$t.charCodeAt(Kn),!!nn(an));)ct+=he(an),tn===ee&&M.call(v,ct)&&(Ue=ct,gn=v[ct]);mt=$t.charCodeAt(Kn)===Ae,mt&&(Kn++,Be=tn===ee?F(ct):!1,Be&&(Ue=ct,gn=Be)),kn=1+Kn-Ut,!mt&&!un||(ct?tn===ee?(mt&&!gn?en(Pt,1):(Ue!==ct&&(Kn=Qe+Ue.length,kn=1+Kn-Qe,mt=!1),mt||(Bt=Ue?Ye:lt,Vt.attribute?(an=$t.charCodeAt(Kn),an===de?(en(Bt,kn),gn=null):G(an)?gn=null:en(Bt,kn)):en(Bt,kn))),It=gn):(mt||en(ie,kn),It=parseInt(ct,Pe[tn]),ae(It)?(en(Tt,kn),It=he(ke)):It in I?(en(xt,kn),It=I[It]):(cn="",le(It)&&en(xt,kn),It>65535&&(It-=65536,cn+=he(It>>>10|55296),It=56320|It&1023),It=cn+he(It))):tn!==ee&&en(We,kn)),It?(dn(),He=Ti(),k=Kn-1,X+=Kn-Ut+1,kt.push(It),Bn=Ti(),Bn.offset++,ai&&ai.call(Jn,It,{start:He,end:Bn},$t.slice(Ut-1,Kn)),He=Bn):(ct=$t.slice(Ut-1,Kn),_e+=ct,X+=ct.length,k=Kn-1)}else tt===10&&(T++,j++,X=0),tt===tt?(_e+=he(tt),X++):dn();return kt.join("");function Ti(){return{line:T,column:X,offset:k+(Mn.offset||0)}}function hi(sn,gr){var dr=Ti();dr.column+=gr,dr.offset+=gr,On.call(In,Et[sn],dr,sn)}function dn(){_e&&(kt.push(_e),Ft&&Ft.call(ni,_e,{start:He,end:Ti()}),_e="")}}function ae($t){return $t>=55296&&$t<=57343||$t>1114111}function le($t){return $t>=1&&$t<=8||$t===11||$t>=13&&$t<=31||$t>=127&&$t<=159||$t>=64976&&$t<=65007||($t&65535)===65535||($t&65535)===65534}},68398:function(Q,C,h){var v=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var I=function(O){var B=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,G=0,F={},M={manual:O.Prism&&O.Prism.manual,disableWorkerMessageHandler:O.Prism&&O.Prism.disableWorkerMessageHandler,util:{encode:function de(pe){return pe instanceof he?new he(pe.type,de(pe.content),pe.alias):Array.isArray(pe)?pe.map(de):pe.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(de){return Object.prototype.toString.call(de).slice(8,-1)},objId:function(de){return de.__id||Object.defineProperty(de,"__id",{value:++G}),de.__id},clone:function de(pe,be){be=be||{};var me,ke;switch(M.util.type(pe)){case"Object":if(ke=M.util.objId(pe),be[ke])return be[ke];me={},be[ke]=me;for(var ee in pe)pe.hasOwnProperty(ee)&&(me[ee]=de(pe[ee],be));return me;case"Array":return ke=M.util.objId(pe),be[ke]?be[ke]:(me=[],be[ke]=me,pe.forEach(function(Ne,Ie){me[Ie]=de(Ne,be)}),me);default:return pe}},getLanguage:function(de){for(;de;){var pe=B.exec(de.className);if(pe)return pe[1].toLowerCase();de=de.parentElement}return"none"},setLanguage:function(de,pe){de.className=de.className.replace(RegExp(B,"gi"),""),de.classList.add("language-"+pe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(me){var de=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(me.stack)||[])[1];if(de){var pe=document.getElementsByTagName("script");for(var be in pe)if(pe[be].src==de)return pe[be]}return null}},isActive:function(de,pe,be){for(var me="no-"+pe;de;){var ke=de.classList;if(ke.contains(pe))return!0;if(ke.contains(me))return!1;de=de.parentElement}return!!be}},languages:{plain:F,plaintext:F,text:F,txt:F,extend:function(de,pe){var be=M.util.clone(M.languages[de]);for(var me in pe)be[me]=pe[me];return be},insertBefore:function(de,pe,be,me){me=me||M.languages;var ke=me[de],ee={};for(var Ne in ke)if(ke.hasOwnProperty(Ne)){if(Ne==pe)for(var Ie in be)be.hasOwnProperty(Ie)&&(ee[Ie]=be[Ie]);be.hasOwnProperty(Ne)||(ee[Ne]=ke[Ne])}var Pe=me[de];return me[de]=ee,M.languages.DFS(M.languages,function(Xe,Ye){Ye===Pe&&Xe!=de&&(this[Xe]=ee)}),ee},DFS:function de(pe,be,me,ke){ke=ke||{};var ee=M.util.objId;for(var Ne in pe)if(pe.hasOwnProperty(Ne)){be.call(pe,Ne,pe[Ne],me||Ne);var Ie=pe[Ne],Pe=M.util.type(Ie);Pe==="Object"&&!ke[ee(Ie)]?(ke[ee(Ie)]=!0,de(Ie,be,null,ke)):Pe==="Array"&&!ke[ee(Ie)]&&(ke[ee(Ie)]=!0,de(Ie,be,Ne,ke))}}},plugins:{},highlightAll:function(de,pe){M.highlightAllUnder(document,de,pe)},highlightAllUnder:function(de,pe,be){var me={callback:be,container:de,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};M.hooks.run("before-highlightall",me),me.elements=Array.prototype.slice.apply(me.container.querySelectorAll(me.selector)),M.hooks.run("before-all-elements-highlight",me);for(var ke=0,ee;ee=me.elements[ke++];)M.highlightElement(ee,pe===!0,me.callback)},highlightElement:function(de,pe,be){var me=M.util.getLanguage(de),ke=M.languages[me];M.util.setLanguage(de,me);var ee=de.parentElement;ee&&ee.nodeName.toLowerCase()==="pre"&&M.util.setLanguage(ee,me);var Ne=de.textContent,Ie={element:de,language:me,grammar:ke,code:Ne};function Pe(Ye){Ie.highlightedCode=Ye,M.hooks.run("before-insert",Ie),Ie.element.innerHTML=Ie.highlightedCode,M.hooks.run("after-highlight",Ie),M.hooks.run("complete",Ie),be&&be.call(Ie.element)}if(M.hooks.run("before-sanity-check",Ie),ee=Ie.element.parentElement,ee&&ee.nodeName.toLowerCase()==="pre"&&!ee.hasAttribute("tabindex")&&ee.setAttribute("tabindex","0"),!Ie.code){M.hooks.run("complete",Ie),be&&be.call(Ie.element);return}if(M.hooks.run("before-highlight",Ie),!Ie.grammar){Pe(M.util.encode(Ie.code));return}if(pe&&O.Worker){var Xe=new Worker(M.filename);Xe.onmessage=function(Ye){Pe(Ye.data)},Xe.postMessage(JSON.stringify({language:Ie.language,code:Ie.code,immediateClose:!0}))}else Pe(M.highlight(Ie.code,Ie.grammar,Ie.language))},highlight:function(de,pe,be){var me={code:de,grammar:pe,language:be};if(M.hooks.run("before-tokenize",me),!me.grammar)throw new Error('The language "'+me.language+'" has no grammar.');return me.tokens=M.tokenize(me.code,me.grammar),M.hooks.run("after-tokenize",me),he.stringify(M.util.encode(me.tokens),me.language)},tokenize:function(de,pe){var be=pe.rest;if(be){for(var me in be)pe[me]=be[me];delete pe.rest}var ke=new Me;return we(ke,ke.head,de),te(de,ke,pe,ke.head,0),Oe(ke)},hooks:{all:{},add:function(de,pe){var be=M.hooks.all;be[de]=be[de]||[],be[de].push(pe)},run:function(de,pe){var be=M.hooks.all[de];if(!(!be||!be.length))for(var me=0,ke;ke=be[me++];)ke(pe)}},Token:he};O.Prism=M;function he(de,pe,be,me){this.type=de,this.content=pe,this.alias=be,this.length=(me||"").length|0}he.stringify=function de(pe,be){if(typeof pe=="string")return pe;if(Array.isArray(pe)){var me="";return pe.forEach(function(Pe){me+=de(Pe,be)}),me}var ke={type:pe.type,content:de(pe.content,be),tag:"span",classes:["token",pe.type],attributes:{},language:be},ee=pe.alias;ee&&(Array.isArray(ee)?Array.prototype.push.apply(ke.classes,ee):ke.classes.push(ee)),M.hooks.run("wrap",ke);var Ne="";for(var Ie in ke.attributes)Ne+=" "+Ie+'="'+(ke.attributes[Ie]||"").replace(/"/g,""")+'"';return"<"+ke.tag+' class="'+ke.classes.join(" ")+'"'+Ne+">"+ke.content+"</"+ke.tag+">"};function ue(de,pe,be,me){de.lastIndex=pe;var ke=de.exec(be);if(ke&&me&&ke[1]){var ee=ke[1].length;ke.index+=ee,ke[0]=ke[0].slice(ee)}return ke}function te(de,pe,be,me,ke,ee){for(var Ne in be)if(!(!be.hasOwnProperty(Ne)||!be[Ne])){var Ie=be[Ne];Ie=Array.isArray(Ie)?Ie:[Ie];for(var Pe=0;Pe<Ie.length;++Pe){if(ee&&ee.cause==Ne+","+Pe)return;var Xe=Ie[Pe],Ye=Xe.inside,ie=!!Xe.lookbehind,lt=!!Xe.greedy,We=Xe.alias;if(lt&&!Xe.pattern.global){var Pt=Xe.pattern.toString().match(/[imsuy]*$/)[0];Xe.pattern=RegExp(Xe.pattern.source,Pt+"g")}for(var xt=Xe.pattern||Xe,Tt=me.next,Et=ke;Tt!==pe.tail&&!(ee&&Et>=ee.reach);Et+=Tt.value.length,Tt=Tt.next){var wn=Tt.value;if(pe.length>de.length)return;if(!(wn instanceof he)){var qe=1,ae;if(lt){if(ae=ue(xt,Et,de,ie),!ae||ae.index>=de.length)break;var St=ae.index,le=ae.index+ae[0].length,$t=Et;for($t+=Tt.value.length;St>=$t;)Tt=Tt.next,$t+=Tt.value.length;if($t-=Tt.value.length,Et=$t,Tt.value instanceof he)continue;for(var Vt=Tt;Vt!==pe.tail&&($t<le||typeof Vt.value=="string");Vt=Vt.next)qe++,$t+=Vt.value.length;qe--,wn=de.slice(Et,$t),ae.index-=Et}else if(ae=ue(xt,0,wn,ie),!ae)continue;var St=ae.index,un=ae[0],Ft=wn.slice(0,St),ai=wn.slice(St+un.length),On=Et+wn.length;ee&&On>ee.reach&&(ee.reach=On);var ni=Tt.prev;Ft&&(ni=we(pe,ni,Ft),Et+=Ft.length),Je(pe,ni,qe);var Jn=new he(Ne,Ye?M.tokenize(un,Ye):un,We,un);if(Tt=we(pe,ni,Jn),ai&&we(pe,Tt,ai),qe>1){var In={cause:Ne+","+Pe,reach:On};te(de,pe,be,Tt.prev,Et,In),ee&&In.reach>ee.reach&&(ee.reach=In.reach)}}}}}}function Me(){var de={value:null,prev:null,next:null},pe={value:null,prev:de,next:null};de.next=pe,this.head=de,this.tail=pe,this.length=0}function we(de,pe,be){var me=pe.next,ke={value:be,prev:pe,next:me};return pe.next=ke,me.prev=ke,de.length++,ke}function Je(de,pe,be){for(var me=pe.next,ke=0;ke<be&&me!==de.tail;ke++)me=me.next;pe.next=me,me.prev=pe,de.length-=ke}function Oe(de){for(var pe=[],be=de.head.next;be!==de.tail;)pe.push(be.value),be=be.next;return pe}if(!O.document)return O.addEventListener&&(M.disableWorkerMessageHandler||O.addEventListener("message",function(de){var pe=JSON.parse(de.data),be=pe.language,me=pe.code,ke=pe.immediateClose;O.postMessage(M.highlight(me,M.languages[be],be)),ke&&O.close()},!1)),M;var Te=M.util.currentScript();Te&&(M.filename=Te.src,Te.hasAttribute("data-manual")&&(M.manual=!0));function Ae(){M.manual||M.highlightAll()}if(!M.manual){var Re=document.readyState;Re==="loading"||Re==="interactive"&&Te&&Te.defer?document.addEventListener("DOMContentLoaded",Ae):window.requestAnimationFrame?window.requestAnimationFrame(Ae):window.setTimeout(Ae,16)}return M}(v);Q.exports&&(Q.exports=I),typeof h.g!="undefined"&&(h.g.Prism=I)},88914:function(Q,C,h){"use strict";var v=h(47178),I=h(19095),O=h(1969),B="data";Q.exports=he;var G=/^data[-\w.:]+$/i,F=/-[a-z]/g,M=/[A-Z]/g;function he(Je,Oe){var Te=v(Oe),Ae=Oe,Re=O;return Te in Je.normal?Je.property[Je.normal[Te]]:(Te.length>4&&Te.slice(0,4)===B&&G.test(Oe)&&(Oe.charAt(4)==="-"?Ae=ue(Oe):Oe=te(Oe),Re=I),new Re(Ae,Oe))}function ue(Je){var Oe=Je.slice(5).replace(F,we);return B+Oe.charAt(0).toUpperCase()+Oe.slice(1)}function te(Je){var Oe=Je.slice(4);return F.test(Oe)?Je:(Oe=Oe.replace(M,Me),Oe.charAt(0)!=="-"&&(Oe="-"+Oe),B+Oe)}function Me(Je){return"-"+Je.toLowerCase()}function we(Je){return Je.charAt(1).toUpperCase()}},18795:function(Q,C,h){"use strict";var v=h(83576),I=h(8179),O=h(59780),B=h(68244),G=h(20019),F=h(38567);Q.exports=v([O,I,B,G,F])},20019:function(Q,C,h){"use strict";var v=h(70167),I=h(79318),O=v.booleanish,B=v.number,G=v.spaceSeparated;Q.exports=I({transform:F,properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:O,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:G,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:B,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:G,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:O,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null}});function F(M,he){return he==="role"?he:"aria-"+he.slice(4).toLowerCase()}},38567:function(Q,C,h){"use strict";var v=h(70167),I=h(79318),O=h(85804),B=v.boolean,G=v.overloadedBoolean,F=v.booleanish,M=v.number,he=v.spaceSeparated,ue=v.commaSeparated;Q.exports=I({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:O,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ue,acceptCharset:he,accessKey:he,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:he,autoFocus:B,autoPlay:B,capture:B,charSet:null,checked:B,cite:null,className:he,cols:M,colSpan:null,content:null,contentEditable:F,controls:B,controlsList:he,coords:M|ue,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:G,draggable:F,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:he,height:M,hidden:B,high:M,href:null,hrefLang:null,htmlFor:he,httpEquiv:he,id:null,imageSizes:null,imageSrcSet:ue,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:he,itemRef:he,itemScope:B,itemType:he,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,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:M,pattern:null,ping:he,placeholder:null,playsInline:B,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:he,required:B,reversed:B,rows:M,rowSpan:M,sandbox:he,scope:null,scoped:B,seamless:B,selected:B,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:F,src:null,srcDoc:null,srcLang:null,srcSet:ue,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:F,width:M,wrap:null,align:null,aLink:null,archive:he,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,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:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:F,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:M,security:null,unselectable:null}})},85804:function(Q,C,h){"use strict";var v=h(56432);Q.exports=I;function I(O,B){return v(O,B.toLowerCase())}},56432:function(Q){"use strict";Q.exports=C;function C(h,v){return v in h?h[v]:v}},79318:function(Q,C,h){"use strict";var v=h(47178),I=h(44347),O=h(19095);Q.exports=B;function B(G){var F=G.space,M=G.mustUseProperty||[],he=G.attributes||{},ue=G.properties,te=G.transform,Me={},we={},Je,Oe;for(Je in ue)Oe=new O(Je,te(he,Je),ue[Je],F),M.indexOf(Je)!==-1&&(Oe.mustUseProperty=!0),Me[Je]=Oe,we[v(Je)]=Je,we[v(Oe.attribute)]=Je;return new I(Me,we,F)}},19095:function(Q,C,h){"use strict";var v=h(1969),I=h(70167);Q.exports=G,G.prototype=new v,G.prototype.defined=!0;var O=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B=O.length;function G(M,he,ue,te){var Me=-1,we;for(F(this,"space",te),v.call(this,M,he);++Me<B;)we=O[Me],F(this,we,(ue&I[we])===I[we])}function F(M,he,ue){ue&&(M[he]=ue)}},1969:function(Q){"use strict";Q.exports=h;var C=h.prototype;C.space=null,C.attribute=null,C.property=null,C.boolean=!1,C.booleanish=!1,C.overloadedBoolean=!1,C.number=!1,C.commaSeparated=!1,C.spaceSeparated=!1,C.commaOrSpaceSeparated=!1,C.mustUseProperty=!1,C.defined=!1;function h(v,I){this.property=v,this.attribute=I}},83576:function(Q,C,h){"use strict";var v=h(97270),I=h(44347);Q.exports=O;function O(B){for(var G=B.length,F=[],M=[],he=-1,ue,te;++he<G;)ue=B[he],F.push(ue.property),M.push(ue.normal),te=ue.space;return new I(v.apply(null,F),v.apply(null,M),te)}},44347:function(Q){"use strict";Q.exports=h;var C=h.prototype;C.space=null,C.normal={},C.property={};function h(v,I,O){this.property=v,this.normal=I,O&&(this.space=O)}},70167:function(Q,C){"use strict";var h=0;C.boolean=v(),C.booleanish=v(),C.overloadedBoolean=v(),C.number=v(),C.spaceSeparated=v(),C.commaSeparated=v(),C.commaOrSpaceSeparated=v();function v(){return Math.pow(2,++h)}},8179:function(Q,C,h){"use strict";var v=h(79318);Q.exports=v({space:"xlink",transform:I,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function I(O,B){return"xlink:"+B.slice(5).toLowerCase()}},59780:function(Q,C,h){"use strict";var v=h(79318);Q.exports=v({space:"xml",transform:I,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(O,B){return"xml:"+B.slice(3).toLowerCase()}},68244:function(Q,C,h){"use strict";var v=h(79318),I=h(85804);Q.exports=v({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Q){"use strict";Q.exports=C;function C(h){return h.toLowerCase()}},17115:function(Q,C,h){"use strict";h.d(C,{ZP:function(){return M}});var v=h(33606),I=h(59301),O=h(47273),B=0,G=(0,O.Z)();function F(){var he;return G?(he=B,B+=1):he="TEST_OR_SSR",he}function M(he){var ue=I.useState(),te=(0,v.Z)(ue,2),Me=te[0],we=te[1];return I.useEffect(function(){we("rc_select_".concat(F()))},[]),he||Me}},77861:function(Q,C,h){"use strict";h.d(C,{Ac:function(){return It},Xo:function(){return Kn},Wx:function(){return hi},ZP:function(){return Wn},lk:function(){return me}});var v=h(92413),I=h(26407),O=h(400),B=h(33708),G=h(33606),F=h(37061),M=h(39559),he=h(18929),ue=h(48736),te=h(59301),Me=h(92310),we=h.n(Me),Je=h(34280),Oe=h(49658),Te=h(10228),Ae=h(8654),Re=function(Ve){var vn=Ve.className,Nn=Ve.customizeIcon,on=Ve.customizeIconProps,Ct=Ve.onMouseDown,Ke=Ve.onClick,Ht=Ve.children,Rt;return typeof Nn=="function"?Rt=Nn(on):Rt=Nn,te.createElement("span",{className:vn,onMouseDown:function(at){at.preventDefault(),Ct&&Ct(at)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ke,"aria-hidden":!0},Rt!==void 0?Rt:te.createElement("span",{className:we()(vn.split(/\s+/).map(function(jn){return"".concat(jn,"-icon")}))},Ht))},de=Re;function pe(vt,Ve,vn,Nn,on){var Ct=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ke=arguments.length>6?arguments[6]:void 0,Ht=arguments.length>7?arguments[7]:void 0,Rt=te.useMemo(function(){if((0,M.Z)(Nn)==="object")return Nn.clearIcon;if(on)return on},[Nn,on]),jn=te.useMemo(function(){return!!(!Ct&&Nn&&(vn.length||Ke)&&!(Ht==="combobox"&&Ke===""))},[Nn,Ct,vn.length,Ke,Ht]);return{allowClear:jn,clearIcon:te.createElement(de,{className:"".concat(vt,"-clear"),onMouseDown:Ve,customizeIcon:Rt},"\xD7")}}var be=te.createContext(null);function me(){return te.useContext(be)}function ke(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ve=te.useState(!1),vn=(0,G.Z)(Ve,2),Nn=vn[0],on=vn[1],Ct=te.useRef(null),Ke=function(){window.clearTimeout(Ct.current)};te.useEffect(function(){return Ke},[]);var Ht=function(jn,at){Ke(),Ct.current=window.setTimeout(function(){on(jn),at&&at()},vt)};return[Nn,Ht,Ke]}function ee(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ve=te.useRef(null),vn=te.useRef(null);te.useEffect(function(){return function(){window.clearTimeout(vn.current)}},[]);function Nn(on){(on||Ve.current===null)&&(Ve.current=on),window.clearTimeout(vn.current),vn.current=window.setTimeout(function(){Ve.current=null},vt)}return[function(){return Ve.current},Nn]}function Ne(vt,Ve,vn,Nn){var on=te.useRef(null);on.current={open:Ve,triggerOpen:vn,customizedTrigger:Nn},te.useEffect(function(){function Ct(Ke){var Ht;if(!((Ht=on.current)!==null&&Ht!==void 0&&Ht.customizedTrigger)){var Rt=Ke.target;Rt.shadowRoot&&Ke.composed&&(Rt=Ke.composedPath()[0]||Rt),on.current.open&&vt().filter(function(jn){return jn}).every(function(jn){return!jn.contains(Rt)&&jn!==Rt})&&on.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ct),function(){return window.removeEventListener("mousedown",Ct)}},[])}var Ie=h(26112),Pe=h(11780),Xe=function(Ve,vn){var Nn,on,Ct=Ve.prefixCls,Ke=Ve.id,Ht=Ve.inputElement,Rt=Ve.disabled,jn=Ve.tabIndex,at=Ve.autoFocus,hn=Ve.autoComplete,yt=Ve.editable,Ge=Ve.activeDescendantId,L=Ve.value,Dt=Ve.maxLength,Jt=Ve.onKeyDown,gt=Ve.onMouseDown,fn=Ve.onChange,Cn=Ve.onPaste,ui=Ve.onCompositionStart,Ln=Ve.onCompositionEnd,rt=Ve.open,Oi=Ve.attrs,Qi=Ht||te.createElement("input",null),Kt=Qi,zi=Kt.ref,J=Kt.props,re=J.onKeyDown,Hn=J.onChange,Fe=J.onMouseDown,wt=J.onCompositionStart,gi=J.onCompositionEnd,Rn=J.style;return(0,ue.Kp)(!("maxLength"in Qi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Qi=te.cloneElement(Qi,(0,B.Z)((0,B.Z)((0,B.Z)({type:"search"},J),{},{id:Ke,ref:(0,Ae.sQ)(vn,zi),disabled:Rt,tabIndex:jn,autoComplete:hn||"off",autoFocus:at,className:we()("".concat(Ct,"-selection-search-input"),(Nn=Qi)===null||Nn===void 0||(on=Nn.props)===null||on===void 0?void 0:on.className),role:"combobox","aria-label":"Search","aria-expanded":rt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ke,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ke,"_list"),"aria-activedescendant":rt?Ge:void 0},Oi),{},{value:yt?L:"",maxLength:Dt,readOnly:!yt,unselectable:yt?null:"on",style:(0,B.Z)((0,B.Z)({},Rn),{},{opacity:yt?null:0}),onKeyDown:function(Xt){Jt(Xt),re&&re(Xt)},onMouseDown:function(Xt){gt(Xt),Fe&&Fe(Xt)},onChange:function(Xt){fn(Xt),Hn&&Hn(Xt)},onCompositionStart:function(Xt){ui(Xt),wt&&wt(Xt)},onCompositionEnd:function(Xt){Ln(Xt),gi&&gi(Xt)},onPaste:Cn})),Qi},Ye=te.forwardRef(Xe);Ye.displayName="Input";var ie=Ye;function lt(vt){return Array.isArray(vt)?vt:vt!==void 0?[vt]:[]}var We=typeof window!="undefined"&&window.document&&window.document.documentElement,Pt=We;function xt(vt){return vt!=null}function Tt(vt){return!vt&&vt!==0}function Et(vt){return["string","number"].includes((0,M.Z)(vt))}function wn(vt){var Ve=void 0;return vt&&(Et(vt.title)?Ve=vt.title.toString():Et(vt.label)&&(Ve=vt.label.toString())),Ve}function qe(vt,Ve){Pt?te.useLayoutEffect(vt,Ve):te.useEffect(vt,Ve)}function ae(vt){var Ve;return(Ve=vt.key)!==null&&Ve!==void 0?Ve:vt.value}var le=function(Ve){Ve.preventDefault(),Ve.stopPropagation()},$t=function(Ve){var vn=Ve.id,Nn=Ve.prefixCls,on=Ve.values,Ct=Ve.open,Ke=Ve.searchValue,Ht=Ve.autoClearSearchValue,Rt=Ve.inputRef,jn=Ve.placeholder,at=Ve.disabled,hn=Ve.mode,yt=Ve.showSearch,Ge=Ve.autoFocus,L=Ve.autoComplete,Dt=Ve.activeDescendantId,Jt=Ve.tabIndex,gt=Ve.removeIcon,fn=Ve.maxTagCount,Cn=Ve.maxTagTextLength,ui=Ve.maxTagPlaceholder,Ln=ui===void 0?function(mr){return"+ ".concat(mr.length," ...")}:ui,rt=Ve.tagRender,Oi=Ve.onToggleOpen,Qi=Ve.onRemove,Kt=Ve.onInputChange,zi=Ve.onInputPaste,J=Ve.onInputKeyDown,re=Ve.onInputMouseDown,Hn=Ve.onInputCompositionStart,Fe=Ve.onInputCompositionEnd,wt=te.useRef(null),gi=(0,te.useState)(0),Rn=(0,G.Z)(gi,2),_i=Rn[0],Xt=Rn[1],Ei=(0,te.useState)(!1),Zt=(0,G.Z)(Ei,2),Bi=Zt[0],Gr=Zt[1],At="".concat(Nn,"-selection"),eo=Ct||hn==="multiple"&&Ht===!1||hn==="tags"?Ke:"",Qt=hn==="tags"||hn==="multiple"&&Ht===!1||yt&&(Ct||Bi);qe(function(){Xt(wt.current.scrollWidth)},[eo]);function Li(mr,Er,cr,Wr,Wi){return te.createElement("span",{className:we()("".concat(At,"-item"),(0,O.Z)({},"".concat(At,"-item-disabled"),cr)),title:wn(mr)},te.createElement("span",{className:"".concat(At,"-item-content")},Er),Wr&&te.createElement(de,{className:"".concat(At,"-item-remove"),onMouseDown:le,onClick:Wi,customizeIcon:gt},"\xD7"))}function wi(mr,Er,cr,Wr,Wi){var Kr=function(Ui){le(Ui),Oi(!Ct)};return te.createElement("span",{onMouseDown:Kr},rt({label:Er,value:mr,disabled:cr,closable:Wr,onClose:Wi}))}function pr(mr){var Er=mr.disabled,cr=mr.label,Wr=mr.value,Wi=!at&&!Er,Kr=cr;if(typeof Cn=="number"&&(typeof cr=="string"||typeof cr=="number")){var Ri=String(Kr);Ri.length>Cn&&(Kr="".concat(Ri.slice(0,Cn),"..."))}var Ui=function(Cr){Cr&&Cr.stopPropagation(),Qi(mr)};return typeof rt=="function"?wi(Wr,Kr,Er,Wi,Ui):Li(mr,Kr,Er,Wi,Ui)}function ar(mr){var Er=typeof Ln=="function"?Ln(mr):Ln;return Li({title:Er},Er,!1)}var Zn=te.createElement("div",{className:"".concat(At,"-search"),style:{width:_i},onFocus:function(){Gr(!0)},onBlur:function(){Gr(!1)}},te.createElement(ie,{ref:Rt,open:Ct,prefixCls:Nn,id:vn,inputElement:null,disabled:at,autoFocus:Ge,autoComplete:L,editable:Qt,activeDescendantId:Dt,value:eo,onKeyDown:J,onMouseDown:re,onChange:Kt,onPaste:zi,onCompositionStart:Hn,onCompositionEnd:Fe,tabIndex:Jt,attrs:(0,Ie.Z)(Ve,!0)}),te.createElement("span",{ref:wt,className:"".concat(At,"-search-mirror"),"aria-hidden":!0},eo,"\xA0")),ce=te.createElement(Pe.Z,{prefixCls:"".concat(At,"-overflow"),data:on,renderItem:pr,renderRest:ar,suffix:Zn,itemKey:ae,maxCount:fn});return te.createElement(te.Fragment,null,ce,!on.length&&!eo&&te.createElement("span",{className:"".concat(At,"-placeholder")},jn))},Vt=$t,St=function(Ve){var vn=Ve.inputElement,Nn=Ve.prefixCls,on=Ve.id,Ct=Ve.inputRef,Ke=Ve.disabled,Ht=Ve.autoFocus,Rt=Ve.autoComplete,jn=Ve.activeDescendantId,at=Ve.mode,hn=Ve.open,yt=Ve.values,Ge=Ve.placeholder,L=Ve.tabIndex,Dt=Ve.showSearch,Jt=Ve.searchValue,gt=Ve.activeValue,fn=Ve.maxLength,Cn=Ve.onInputKeyDown,ui=Ve.onInputMouseDown,Ln=Ve.onInputChange,rt=Ve.onInputPaste,Oi=Ve.onInputCompositionStart,Qi=Ve.onInputCompositionEnd,Kt=Ve.title,zi=te.useState(!1),J=(0,G.Z)(zi,2),re=J[0],Hn=J[1],Fe=at==="combobox",wt=Fe||Dt,gi=yt[0],Rn=Jt||"";Fe&>&&!re&&(Rn=gt),te.useEffect(function(){Fe&&Hn(!1)},[Fe,gt]);var _i=at!=="combobox"&&!hn&&!Dt?!1:!!Rn,Xt=Kt===void 0?wn(gi):Kt,Ei=function(){if(gi)return null;var Bi=_i?{visibility:"hidden"}:void 0;return te.createElement("span",{className:"".concat(Nn,"-selection-placeholder"),style:Bi},Ge)};return te.createElement(te.Fragment,null,te.createElement("span",{className:"".concat(Nn,"-selection-search")},te.createElement(ie,{ref:Ct,prefixCls:Nn,id:on,open:hn,inputElement:vn,disabled:Ke,autoFocus:Ht,autoComplete:Rt,editable:wt,activeDescendantId:jn,value:Rn,onKeyDown:Cn,onMouseDown:ui,onChange:function(Bi){Hn(!0),Ln(Bi)},onPaste:rt,onCompositionStart:Oi,onCompositionEnd:Qi,tabIndex:L,attrs:(0,Ie.Z)(Ve,!0),maxLength:Fe?fn:void 0})),!Fe&&gi?te.createElement("span",{className:"".concat(Nn,"-selection-item"),title:Xt,style:_i?{visibility:"hidden"}:void 0},gi.label):null,Ei())},un=St;function Ft(vt){return![Te.Z.ESC,Te.Z.SHIFT,Te.Z.BACKSPACE,Te.Z.TAB,Te.Z.WIN_KEY,Te.Z.ALT,Te.Z.META,Te.Z.WIN_KEY_RIGHT,Te.Z.CTRL,Te.Z.SEMICOLON,Te.Z.EQUALS,Te.Z.CAPS_LOCK,Te.Z.CONTEXT_MENU,Te.Z.F1,Te.Z.F2,Te.Z.F3,Te.Z.F4,Te.Z.F5,Te.Z.F6,Te.Z.F7,Te.Z.F8,Te.Z.F9,Te.Z.F10,Te.Z.F11,Te.Z.F12].includes(vt)}var ai=function(Ve,vn){var Nn=(0,te.useRef)(null),on=(0,te.useRef)(!1),Ct=Ve.prefixCls,Ke=Ve.open,Ht=Ve.mode,Rt=Ve.showSearch,jn=Ve.tokenWithEnter,at=Ve.autoClearSearchValue,hn=Ve.onSearch,yt=Ve.onSearchSubmit,Ge=Ve.onToggleOpen,L=Ve.onInputKeyDown,Dt=Ve.domRef;te.useImperativeHandle(vn,function(){return{focus:function(){Nn.current.focus()},blur:function(){Nn.current.blur()}}});var Jt=ee(0),gt=(0,G.Z)(Jt,2),fn=gt[0],Cn=gt[1],ui=function(Rn){var _i=Rn.which;(_i===Te.Z.UP||_i===Te.Z.DOWN)&&Rn.preventDefault(),L&&L(Rn),_i===Te.Z.ENTER&&Ht==="tags"&&!on.current&&!Ke&&(yt==null||yt(Rn.target.value)),Ft(_i)&&Ge(!0)},Ln=function(){Cn(!0)},rt=(0,te.useRef)(null),Oi=function(Rn){hn(Rn,!0,on.current)!==!1&&Ge(!0)},Qi=function(){on.current=!0},Kt=function(Rn){on.current=!1,Ht!=="combobox"&&Oi(Rn.target.value)},zi=function(Rn){var _i=Rn.target.value;if(jn&&rt.current&&/[\r\n]/.test(rt.current)){var Xt=rt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_i=_i.replace(Xt,rt.current)}rt.current=null,Oi(_i)},J=function(Rn){var _i=Rn.clipboardData,Xt=_i.getData("text");rt.current=Xt},re=function(Rn){var _i=Rn.target;if(_i!==Nn.current){var Xt=document.body.style.msTouchAction!==void 0;Xt?setTimeout(function(){Nn.current.focus()}):Nn.current.focus()}},Hn=function(Rn){var _i=fn();Rn.target!==Nn.current&&!_i&&Ht!=="combobox"&&Rn.preventDefault(),(Ht!=="combobox"&&(!Rt||!_i)||!Ke)&&(Ke&&at!==!1&&hn("",!0,!1),Ge())},Fe={inputRef:Nn,onInputKeyDown:ui,onInputMouseDown:Ln,onInputChange:zi,onInputPaste:J,onInputCompositionStart:Qi,onInputCompositionEnd:Kt},wt=Ht==="multiple"||Ht==="tags"?te.createElement(Vt,(0,v.Z)({},Ve,Fe)):te.createElement(un,(0,v.Z)({},Ve,Fe));return te.createElement("div",{ref:Dt,className:"".concat(Ct,"-selector"),onClick:re,onMouseDown:Hn},wt)},On=te.forwardRef(ai);On.displayName="Selector";var ni=On,Jn=h(35593),In=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Mn=function(Ve){var vn=Ve===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"}}},xe=function(Ve,vn){var Nn=Ve.prefixCls,on=Ve.disabled,Ct=Ve.visible,Ke=Ve.children,Ht=Ve.popupElement,Rt=Ve.animation,jn=Ve.transitionName,at=Ve.dropdownStyle,hn=Ve.dropdownClassName,yt=Ve.direction,Ge=yt===void 0?"ltr":yt,L=Ve.placement,Dt=Ve.builtinPlacements,Jt=Ve.dropdownMatchSelectWidth,gt=Ve.dropdownRender,fn=Ve.dropdownAlign,Cn=Ve.getPopupContainer,ui=Ve.empty,Ln=Ve.getTriggerDOMNode,rt=Ve.onPopupVisibleChange,Oi=Ve.onPopupMouseEnter,Qi=(0,F.Z)(Ve,In),Kt="".concat(Nn,"-dropdown"),zi=Ht;gt&&(zi=gt(Ht));var J=te.useMemo(function(){return Dt||Mn(Jt)},[Dt,Jt]),re=Rt?"".concat(Kt,"-").concat(Rt):jn,Hn=typeof Jt=="number",Fe=te.useMemo(function(){return Hn?null:Jt===!1?"minWidth":"width"},[Jt,Hn]),wt=at;Hn&&(wt=(0,B.Z)((0,B.Z)({},wt),{},{width:Jt}));var gi=te.useRef(null);return te.useImperativeHandle(vn,function(){return{getPopupElement:function(){return gi.current}}}),te.createElement(Jn.Z,(0,v.Z)({},Qi,{showAction:rt?["click"]:[],hideAction:rt?["click"]:[],popupPlacement:L||(Ge==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:J,prefixCls:Kt,popupTransitionName:re,popup:te.createElement("div",{ref:gi,onMouseEnter:Oi},zi),stretch:Fe,popupAlign:fn,popupVisible:Ct,getPopupContainer:Cn,popupClassName:we()(hn,(0,O.Z)({},"".concat(Kt,"-empty"),ui)),popupStyle:wt,getTriggerDOMNode:Ln,onPopupVisibleChange:rt}),Ke)},P=te.forwardRef(xe);P.displayName="SelectTrigger";var k=P,j=h(34589);function X(vt,Ve){var vn=vt.key,Nn;return"value"in vt&&(Nn=vt.value),vn!=null?vn:Nn!==void 0?Nn:"rc-index-key-".concat(Ve)}function T(vt,Ve){var vn=vt||{},Nn=vn.label,on=vn.value,Ct=vn.options,Ke=vn.groupLabel,Ht=Nn||(Ve?"children":"label");return{label:Ht,value:on||"value",options:Ct||"options",groupLabel:Ke||Ht}}function _e(vt){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vn=Ve.fieldNames,Nn=Ve.childrenAsData,on=[],Ct=T(vn,!1),Ke=Ct.label,Ht=Ct.value,Rt=Ct.options,jn=Ct.groupLabel;function at(hn,yt){hn.forEach(function(Ge){if(yt||!(Rt in Ge)){var L=Ge[Ht];on.push({key:X(Ge,on.length),groupOption:yt,data:Ge,label:Ge[Ke],value:L})}else{var Dt=Ge[jn];Dt===void 0&&Nn&&(Dt=Ge.label),on.push({key:X(Ge,on.length),group:!0,data:Ge,label:Dt}),at(Ge[Rt],!0)}})}return at(vt,!1),on}function kt(vt){var Ve=(0,B.Z)({},vt);return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,ue.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ve}}),Ve}function Ue(vt,Ve){if(!Ve||!Ve.length)return null;var vn=!1;function Nn(Ct,Ke){var Ht=(0,j.Z)(Ke),Rt=Ht[0],jn=Ht.slice(1);if(!Rt)return[Ct];var at=Ct.split(Rt);return vn=vn||at.length>1,at.reduce(function(hn,yt){return[].concat((0,I.Z)(hn),(0,I.Z)(Nn(yt,jn)))},[]).filter(function(hn){return hn})}var on=Nn(vt,Ve);return vn?on:null}var Be=["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"],mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ct(vt){return vt==="tags"||vt==="multiple"}var tt=te.forwardRef(function(vt,Ve){var vn,Nn,on=vt.id,Ct=vt.prefixCls,Ke=vt.className,Ht=vt.showSearch,Rt=vt.tagRender,jn=vt.direction,at=vt.omitDomProps,hn=vt.displayValues,yt=vt.onDisplayValuesChange,Ge=vt.emptyOptions,L=vt.notFoundContent,Dt=L===void 0?"Not Found":L,Jt=vt.onClear,gt=vt.mode,fn=vt.disabled,Cn=vt.loading,ui=vt.getInputElement,Ln=vt.getRawInputElement,rt=vt.open,Oi=vt.defaultOpen,Qi=vt.onDropdownVisibleChange,Kt=vt.activeValue,zi=vt.onActiveValueChange,J=vt.activeDescendantId,re=vt.searchValue,Hn=vt.autoClearSearchValue,Fe=vt.onSearch,wt=vt.onSearchSplit,gi=vt.tokenSeparators,Rn=vt.allowClear,_i=vt.suffixIcon,Xt=vt.clearIcon,Ei=vt.OptionList,Zt=vt.animation,Bi=vt.transitionName,Gr=vt.dropdownStyle,At=vt.dropdownClassName,eo=vt.dropdownMatchSelectWidth,Qt=vt.dropdownRender,Li=vt.dropdownAlign,wi=vt.placement,pr=vt.builtinPlacements,ar=vt.getPopupContainer,Zn=vt.showAction,ce=Zn===void 0?[]:Zn,mr=vt.onFocus,Er=vt.onBlur,cr=vt.onKeyUp,Wr=vt.onKeyDown,Wi=vt.onMouseDown,Kr=(0,F.Z)(vt,Be),Ri=ct(gt),Ui=(Ht!==void 0?Ht:Ri)||gt==="combobox",Di=(0,B.Z)({},Kr);mt.forEach(function(Vr){delete Di[Vr]}),at==null||at.forEach(function(Vr){delete Di[Vr]});var Cr=te.useState(!1),Tr=(0,G.Z)(Cr,2),io=Tr[0],bo=Tr[1];te.useEffect(function(){bo((0,Oe.Z)())},[]);var mi=te.useRef(null),Sa=te.useRef(null),Wo=te.useRef(null),Jo=te.useRef(null),Ta=te.useRef(null),Ya=ke(),ns=(0,G.Z)(Ya,3),Na=ns[0],cs=ns[1],Za=ns[2];te.useImperativeHandle(Ve,function(){var Vr,Co;return{focus:(Vr=Jo.current)===null||Vr===void 0?void 0:Vr.focus,blur:(Co=Jo.current)===null||Co===void 0?void 0:Co.blur,scrollTo:function(aa){var ro;return(ro=Ta.current)===null||ro===void 0?void 0:ro.scrollTo(aa)}}});var jo=te.useMemo(function(){var Vr;if(gt!=="combobox")return re;var Co=(Vr=hn[0])===null||Vr===void 0?void 0:Vr.value;return typeof Co=="string"||typeof Co=="number"?String(Co):""},[re,gt,hn]),Wt=gt==="combobox"&&typeof ui=="function"&&ui()||null,Ba=typeof Ln=="function"&&Ln(),eu=(0,Ae.x1)(Sa,Ba==null||(vn=Ba.props)===null||vn===void 0?void 0:vn.ref),ol=te.useState(!1),po=(0,G.Z)(ol,2),ko=po[0],yo=po[1];(0,Je.Z)(function(){yo(!0)},[]);var Mt=(0,he.Z)(!1,{defaultValue:Oi,value:rt}),Dr=(0,G.Z)(Mt,2),mo=Dr[0],Ea=Dr[1],xr=ko?mo:!1,Sn=!Dt&&Ge;(fn||Sn&&xr&>==="combobox")&&(xr=!1);var ur=Sn?!1:xr,vi=te.useCallback(function(Vr){var Co=Vr!==void 0?Vr:!xr;fn||(Ea(Co),xr!==Co&&(Qi==null||Qi(Co)))},[fn,xr,Ea,Qi]),Vo=te.useMemo(function(){return(gi||[]).some(function(Vr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Vr)})},[gi]),ma=function(Co,fa,aa){var ro=!0,sa=Co;zi==null||zi(null);var ga=aa?null:Ue(Co,gi);return gt!=="combobox"&&ga&&(sa="",wt==null||wt(ga),vi(!1),ro=!1),Fe&&jo!==sa&&Fe(sa,{source:fa?"typing":"effect"}),ro},is=function(Co){!Co||!Co.trim()||Fe(Co,{source:"submit"})};te.useEffect(function(){!xr&&!Ri&>!=="combobox"&&ma("",!1,!1)},[xr]),te.useEffect(function(){mo&&fn&&Ea(!1),fn&&cs(!1)},[fn]);var Rs=ee(),Ns=(0,G.Z)(Rs,2),si=Ns[0],Hi=Ns[1],ta=function(Co){var fa=si(),aa=Co.which;if(aa===Te.Z.ENTER&&(gt!=="combobox"&&Co.preventDefault(),xr||vi(!0)),Hi(!!jo),aa===Te.Z.BACKSPACE&&!fa&&Ri&&!jo&&hn.length){for(var ro=(0,I.Z)(hn),sa=null,ga=ro.length-1;ga>=0;ga-=1){var La=ro[ga];if(!La.disabled){ro.splice(ga,1),sa=La;break}}sa&&yt(ro,{type:"remove",values:[sa]})}for(var Aa=arguments.length,Gl=new Array(Aa>1?Aa-1:0),Ys=1;Ys<Aa;Ys++)Gl[Ys-1]=arguments[Ys];if(xr&&Ta.current){var ka;(ka=Ta.current).onKeyDown.apply(ka,[Co].concat(Gl))}Wr==null||Wr.apply(void 0,[Co].concat(Gl))},As=function(Co){for(var fa=arguments.length,aa=new Array(fa>1?fa-1:0),ro=1;ro<fa;ro++)aa[ro-1]=arguments[ro];if(xr&&Ta.current){var sa;(sa=Ta.current).onKeyUp.apply(sa,[Co].concat(aa))}cr==null||cr.apply(void 0,[Co].concat(aa))},Yo=function(Co){var fa=hn.filter(function(aa){return aa!==Co});yt(fa,{type:"remove",values:[Co]})},rs=te.useRef(!1),Lr=function(){cs(!0),fn||(mr&&!rs.current&&mr.apply(void 0,arguments),ce.includes("focus")&&vi(!0)),rs.current=!0},al=function(){cs(!1,function(){rs.current=!1,vi(!1)}),!fn&&(jo&&(gt==="tags"?Fe(jo,{source:"submit"}):gt==="multiple"&&Fe("",{source:"blur"})),Er&&Er.apply(void 0,arguments))},Ds=[];te.useEffect(function(){return function(){Ds.forEach(function(Vr){return clearTimeout(Vr)}),Ds.splice(0,Ds.length)}},[]);var Ps=function(Co){var fa,aa=Co.target,ro=(fa=Wo.current)===null||fa===void 0?void 0:fa.getPopupElement();if(ro&&ro.contains(aa)){var sa=setTimeout(function(){var Gl=Ds.indexOf(sa);if(Gl!==-1&&Ds.splice(Gl,1),Za(),!io&&!ro.contains(document.activeElement)){var Ys;(Ys=Jo.current)===null||Ys===void 0||Ys.focus()}});Ds.push(sa)}for(var ga=arguments.length,La=new Array(ga>1?ga-1:0),Aa=1;Aa<ga;Aa++)La[Aa-1]=arguments[Aa];Wi==null||Wi.apply(void 0,[Co].concat(La))},Ho=te.useState({}),os=(0,G.Z)(Ho,2),Ol=os[1];function Xa(){Ol({})}var Oa;Ba&&(Oa=function(Co){vi(Co)}),Ne(function(){var Vr;return[mi.current,(Vr=Wo.current)===null||Vr===void 0?void 0:Vr.getPopupElement()]},ur,vi,!!Ba);var ml=te.useMemo(function(){return(0,B.Z)((0,B.Z)({},vt),{},{notFoundContent:Dt,open:xr,triggerOpen:ur,id:on,showSearch:Ui,multiple:Ri,toggleOpen:vi})},[vt,Dt,ur,xr,on,Ui,Ri,vi]),Xo=!!_i||Cn,js;Xo&&(js=te.createElement(de,{className:we()("".concat(Ct,"-arrow"),(0,O.Z)({},"".concat(Ct,"-arrow-loading"),Cn)),customizeIcon:_i,customizeIconProps:{loading:Cn,searchValue:jo,open:xr,focused:Na,showSearch:Ui}}));var wu=function(){var Co;Jt==null||Jt(),(Co=Jo.current)===null||Co===void 0||Co.focus(),yt([],{type:"clear",values:hn}),ma("",!1,!1)},Ll=pe(Ct,wu,hn,Rn,Xt,fn,jo,gt),as=Ll.allowClear,Fa=Ll.clearIcon,Gs=te.createElement(Ei,{ref:Ta}),Ki=we()(Ct,Ke,(Nn={},(0,O.Z)(Nn,"".concat(Ct,"-focused"),Na),(0,O.Z)(Nn,"".concat(Ct,"-multiple"),Ri),(0,O.Z)(Nn,"".concat(Ct,"-single"),!Ri),(0,O.Z)(Nn,"".concat(Ct,"-allow-clear"),Rn),(0,O.Z)(Nn,"".concat(Ct,"-show-arrow"),Xo),(0,O.Z)(Nn,"".concat(Ct,"-disabled"),fn),(0,O.Z)(Nn,"".concat(Ct,"-loading"),Cn),(0,O.Z)(Nn,"".concat(Ct,"-open"),xr),(0,O.Z)(Nn,"".concat(Ct,"-customize-input"),Wt),(0,O.Z)(Nn,"".concat(Ct,"-show-search"),Ui),Nn)),ks=te.createElement(k,{ref:Wo,disabled:fn,prefixCls:Ct,visible:ur,popupElement:Gs,animation:Zt,transitionName:Bi,dropdownStyle:Gr,dropdownClassName:At,direction:jn,dropdownMatchSelectWidth:eo,dropdownRender:Qt,dropdownAlign:Li,placement:wi,builtinPlacements:pr,getPopupContainer:ar,empty:Ge,getTriggerDOMNode:function(){return Sa.current},onPopupVisibleChange:Oa,onPopupMouseEnter:Xa},Ba?te.cloneElement(Ba,{ref:eu}):te.createElement(ni,(0,v.Z)({},vt,{domRef:Sa,prefixCls:Ct,inputElement:Wt,ref:Jo,id:on,showSearch:Ui,autoClearSearchValue:Hn,mode:gt,activeDescendantId:J,tagRender:Rt,values:hn,open:xr,onToggleOpen:vi,activeValue:Kt,searchValue:jo,onSearch:ma,onSearchSubmit:is,onRemove:Yo,tokenWithEnter:Vo}))),Rl;return Ba?Rl=ks:Rl=te.createElement("div",(0,v.Z)({className:Ki},Di,{ref:mi,onMouseDown:Ps,onKeyDown:ta,onKeyUp:As,onFocus:Lr,onBlur:al}),Na&&!xr&&te.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(hn.map(function(Vr){var Co=Vr.label,fa=Vr.value;return["number","string"].includes((0,M.Z)(Co))?Co:fa}).join(", "))),ks,js,as&&Fa),te.createElement(be.Provider,{value:ml},Rl)}),It=tt,an=function(vt,Ve){var vn=te.useRef({values:new Map,options:new Map}),Nn=te.useMemo(function(){var Ct=vn.current,Ke=Ct.values,Ht=Ct.options,Rt=vt.map(function(hn){if(hn.label===void 0){var yt;return(0,B.Z)((0,B.Z)({},hn),{},{label:(yt=Ke.get(hn.value))===null||yt===void 0?void 0:yt.label})}return hn}),jn=new Map,at=new Map;return Rt.forEach(function(hn){jn.set(hn.value,hn),at.set(hn.value,Ve.get(hn.value)||Ht.get(hn.value))}),vn.current.values=jn,vn.current.options=at,Rt},[vt,Ve]),on=te.useCallback(function(Ct){return Ve.get(Ct)||vn.current.options.get(Ct)},[Ve]);return[Nn,on]};function en(vt,Ve){return lt(vt).join("").toUpperCase().includes(Ve)}var Bt=function(vt,Ve,vn,Nn,on){return te.useMemo(function(){if(!vn||Nn===!1)return vt;var Ct=Ve.options,Ke=Ve.label,Ht=Ve.value,Rt=[],jn=typeof Nn=="function",at=vn.toUpperCase(),hn=jn?Nn:function(Ge,L){return on?en(L[on],at):L[Ct]?en(L[Ke!=="children"?Ke:"label"],at):en(L[Ht],at)},yt=jn?function(Ge){return kt(Ge)}:function(Ge){return Ge};return vt.forEach(function(Ge){if(Ge[Ct]){var L=hn(vn,yt(Ge));if(L)Rt.push(Ge);else{var Dt=Ge[Ct].filter(function(Jt){return hn(vn,yt(Jt))});Dt.length&&Rt.push((0,B.Z)((0,B.Z)({},Ge),{},(0,O.Z)({},Ct,Dt)))}return}hn(vn,yt(Ge))&&Rt.push(Ge)}),Rt},[vt,Nn,on,vn,Ve])},cn=h(17115),gn=h(11592),Qe=["children","value"],Ut=["children"];function tn(vt){var Ve=vt,vn=Ve.key,Nn=Ve.props,on=Nn.children,Ct=Nn.value,Ke=(0,F.Z)(Nn,Qe);return(0,B.Z)({key:vn,value:Ct!==void 0?Ct:vn,children:on},Ke)}function nn(vt){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,gn.Z)(vt).map(function(vn,Nn){if(!te.isValidElement(vn)||!vn.type)return null;var on=vn,Ct=on.type.isSelectOptGroup,Ke=on.key,Ht=on.props,Rt=Ht.children,jn=(0,F.Z)(Ht,Ut);return Ve||!Ct?tn(vn):(0,B.Z)((0,B.Z)({key:"__RC_SELECT_GRP__".concat(Ke===null?Nn:Ke,"__"),label:Ke},jn),{},{options:nn(Rt)})}).filter(function(vn){return vn})}function He(vt,Ve,vn,Nn,on){return te.useMemo(function(){var Ct=vt,Ke=!vt;Ke&&(Ct=nn(Ve));var Ht=new Map,Rt=new Map,jn=function(yt,Ge,L){L&&typeof L=="string"&&yt.set(Ge[L],Ge)};function at(hn){for(var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=0;Ge<hn.length;Ge+=1){var L=hn[Ge];!L[vn.options]||yt?(Ht.set(L[vn.value],L),jn(Rt,L,vn.label),jn(Rt,L,Nn),jn(Rt,L,on)):at(L[vn.options],!0)}}return at(Ct),{options:Ct,valueOptions:Ht,labelOptions:Rt}},[vt,Ve,vn,Nn,on])}function Bn(vt){var Ve=te.useRef();Ve.current=vt;var vn=te.useCallback(function(){return Ve.current.apply(Ve,arguments)},[]);return vn}var kn=function(){return null};kn.isSelectOptGroup=!0;var Kn=kn,Ti=function(){return null};Ti.isSelectOption=!0;var hi=Ti,dn=h(80547),sn=h(2738),gr=h(57149),dr=te.createContext(null),qn=dr;function Rr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tr=["disabled","title","children","style","className"];function U(vt){return typeof vt=="string"||typeof vt=="number"}var br=function(Ve,vn){var Nn=me(),on=Nn.prefixCls,Ct=Nn.id,Ke=Nn.open,Ht=Nn.multiple,Rt=Nn.mode,jn=Nn.searchValue,at=Nn.toggleOpen,hn=Nn.notFoundContent,yt=Nn.onPopupScroll,Ge=te.useContext(qn),L=Ge.flattenOptions,Dt=Ge.onActiveValue,Jt=Ge.defaultActiveFirstOption,gt=Ge.onSelect,fn=Ge.menuItemSelectedIcon,Cn=Ge.rawValues,ui=Ge.fieldNames,Ln=Ge.virtual,rt=Ge.direction,Oi=Ge.listHeight,Qi=Ge.listItemHeight,Kt="".concat(on,"-item"),zi=(0,dn.Z)(function(){return L},[Ke,L],function(Li,wi){return wi[0]&&Li[1]!==wi[1]}),J=te.useRef(null),re=function(wi){wi.preventDefault()},Hn=function(wi){J.current&&J.current.scrollTo(typeof wi=="number"?{index:wi}:wi)},Fe=function(wi){for(var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ar=zi.length,Zn=0;Zn<ar;Zn+=1){var ce=(wi+Zn*pr+ar)%ar,mr=zi[ce],Er=mr.group,cr=mr.data;if(!Er&&!cr.disabled)return ce}return-1},wt=te.useState(function(){return Fe(0)}),gi=(0,G.Z)(wt,2),Rn=gi[0],_i=gi[1],Xt=function(wi){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_i(wi);var ar={source:pr?"keyboard":"mouse"},Zn=zi[wi];if(!Zn){Dt(null,-1,ar);return}Dt(Zn.value,wi,ar)};(0,te.useEffect)(function(){Xt(Jt!==!1?Fe(0):-1)},[zi.length,jn]);var Ei=te.useCallback(function(Li){return Cn.has(Li)&&Rt!=="combobox"},[Rt,(0,I.Z)(Cn).toString(),Cn.size]);(0,te.useEffect)(function(){var Li=setTimeout(function(){if(!Ht&&Ke&&Cn.size===1){var pr=Array.from(Cn)[0],ar=zi.findIndex(function(Zn){var ce=Zn.data;return ce.value===pr});ar!==-1&&(Xt(ar),Hn(ar))}});if(Ke){var wi;(wi=J.current)===null||wi===void 0||wi.scrollTo(void 0)}return function(){return clearTimeout(Li)}},[Ke,jn,L.length]);var Zt=function(wi){wi!==void 0&>(wi,{selected:!Cn.has(wi)}),Ht||at(!1)};if(te.useImperativeHandle(vn,function(){return{onKeyDown:function(wi){var pr=wi.which,ar=wi.ctrlKey;switch(pr){case Te.Z.N:case Te.Z.P:case Te.Z.UP:case Te.Z.DOWN:{var Zn=0;if(pr===Te.Z.UP?Zn=-1:pr===Te.Z.DOWN?Zn=1:Rr()&&ar&&(pr===Te.Z.N?Zn=1:pr===Te.Z.P&&(Zn=-1)),Zn!==0){var ce=Fe(Rn+Zn,Zn);Hn(ce),Xt(ce,!0)}break}case Te.Z.ENTER:{var mr=zi[Rn];mr&&!mr.data.disabled?Zt(mr.value):Zt(void 0),Ke&&wi.preventDefault();break}case Te.Z.ESC:at(!1),Ke&&wi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(wi){Hn(wi)}}}),zi.length===0)return te.createElement("div",{role:"listbox",id:"".concat(Ct,"_list"),className:"".concat(Kt,"-empty"),onMouseDown:re},hn);var Bi=Object.keys(ui).map(function(Li){return ui[Li]}),Gr=function(wi){return wi.label};function At(Li,wi){var pr=Li.group;return{role:pr?"presentation":"option",id:"".concat(Ct,"_list_").concat(wi)}}var eo=function(wi){var pr=zi[wi];if(!pr)return null;var ar=pr.data||{},Zn=ar.value,ce=pr.group,mr=(0,Ie.Z)(ar,!0),Er=Gr(pr);return pr?te.createElement("div",(0,v.Z)({"aria-label":typeof Er=="string"&&!ce?Er:null},mr,{key:wi},At(pr,wi),{"aria-selected":Ei(Zn)}),Zn):null},Qt={role:"listbox",id:"".concat(Ct,"_list")};return te.createElement(te.Fragment,null,Ln&&te.createElement("div",(0,v.Z)({},Qt,{style:{height:0,width:0,overflow:"hidden"}}),eo(Rn-1),eo(Rn),eo(Rn+1)),te.createElement(gr.Z,{itemKey:"key",ref:J,data:zi,height:Oi,itemHeight:Qi,fullHeight:!1,onMouseDown:re,onScroll:yt,virtual:Ln,direction:rt,innerProps:Ln?null:Qt},function(Li,wi){var pr,ar=Li.group,Zn=Li.groupOption,ce=Li.data,mr=Li.label,Er=Li.value,cr=ce.key;if(ar){var Wr,Wi=(Wr=ce.title)!==null&&Wr!==void 0?Wr:U(mr)?mr.toString():void 0;return te.createElement("div",{className:we()(Kt,"".concat(Kt,"-group")),title:Wi},mr!==void 0?mr:cr)}var Kr=ce.disabled,Ri=ce.title,Ui=ce.children,Di=ce.style,Cr=ce.className,Tr=(0,F.Z)(ce,tr),io=(0,sn.Z)(Tr,Bi),bo=Ei(Er),mi="".concat(Kt,"-option"),Sa=we()(Kt,mi,Cr,(pr={},(0,O.Z)(pr,"".concat(mi,"-grouped"),Zn),(0,O.Z)(pr,"".concat(mi,"-active"),Rn===wi&&!Kr),(0,O.Z)(pr,"".concat(mi,"-disabled"),Kr),(0,O.Z)(pr,"".concat(mi,"-selected"),bo),pr)),Wo=Gr(Li),Jo=!fn||typeof fn=="function"||bo,Ta=typeof Wo=="number"?Wo:Wo||Er,Ya=U(Ta)?Ta.toString():void 0;return Ri!==void 0&&(Ya=Ri),te.createElement("div",(0,v.Z)({},(0,Ie.Z)(io),Ln?{}:At(Li,wi),{"aria-selected":bo,className:Sa,title:Ya,onMouseMove:function(){Rn===wi||Kr||Xt(wi)},onClick:function(){Kr||Zt(Er)},style:Di}),te.createElement("div",{className:"".concat(mi,"-content")},Ta),te.isValidElement(fn)||bo,Jo&&te.createElement(de,{className:"".concat(Kt,"-option-state"),customizeIcon:fn,customizeIconProps:{isSelected:bo}},bo?"\u2713":null))}))},fr=te.forwardRef(br);fr.displayName="OptionList";var Fr=fr;function jr(vt){var Ve=vt.mode,vn=vt.options,Nn=vt.children,on=vt.backfill,Ct=vt.allowClear,Ke=vt.placeholder,Ht=vt.getInputElement,Rt=vt.showSearch,jn=vt.onSearch,at=vt.defaultOpen,hn=vt.autoFocus,yt=vt.labelInValue,Ge=vt.value,L=vt.inputValue,Dt=vt.optionLabelProp,Jt=isMultiple(Ve),gt=Rt!==void 0?Rt:Jt||Ve==="combobox",fn=vn||convertChildrenToData(Nn);if(warning(Ve!=="tags"||fn.every(function(rt){return!rt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ve==="tags"||Ve==="combobox"){var Cn=fn.some(function(rt){return rt.options?rt.options.some(function(Oi){return typeof("value"in Oi?Oi.value:Oi.key)=="number"}):typeof("value"in rt?rt.value:rt.key)=="number"});warning(!Cn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ve!=="combobox"||!Dt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ve==="combobox"||!on,"`backfill` only works with `combobox` mode."),warning(Ve==="combobox"||!Ht,"`getInputElement` only work with `combobox` mode."),noteOnce(Ve!=="combobox"||!Ht||!Ct||!Ke,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jn&&!gt&&Ve!=="combobox"&&Ve!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!at||hn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ge!=null){var ui=toArray(Ge);warning(!yt||ui.every(function(rt){return _typeof(rt)==="object"&&("key"in rt||"value"in rt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Jt||Array.isArray(Ge),"`value` should be array when `mode` is `multiple` or `tags`")}if(Nn){var Ln=null;toNodeArray(Nn).some(function(rt){if(!React.isValidElement(rt)||!rt.type)return!1;var Oi=rt,Qi=Oi.type;if(Qi.isSelectOption)return!1;if(Qi.isSelectOptGroup){var Kt=toNodeArray(rt.props.children).every(function(zi){return!React.isValidElement(zi)||!rt.type||zi.type.isSelectOption?!0:(Ln=zi.type,!1)});return!Kt}return Ln=Qi,!0}),Ln&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ln.displayName||Ln.name||Ln,"`.")),warning(L===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function so(vt,Ve){if(vt){var vn=function Nn(on){for(var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=0;Ke<on.length;Ke++){var Ht=on[Ke];if(Ht[Ve==null?void 0:Ve.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ct&&Array.isArray(Ht[Ve==null?void 0:Ve.options])&&Nn(Ht[Ve==null?void 0:Ve.options],!0))break}};vn(vt)}}var Ar=null,to=["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"],vr=["inputValue"];function Ji(vt){return!vt||(0,M.Z)(vt)!=="object"}var di=te.forwardRef(function(vt,Ve){var vn=vt.id,Nn=vt.mode,on=vt.prefixCls,Ct=on===void 0?"rc-select":on,Ke=vt.backfill,Ht=vt.fieldNames,Rt=vt.inputValue,jn=vt.searchValue,at=vt.onSearch,hn=vt.autoClearSearchValue,yt=hn===void 0?!0:hn,Ge=vt.onSelect,L=vt.onDeselect,Dt=vt.dropdownMatchSelectWidth,Jt=Dt===void 0?!0:Dt,gt=vt.filterOption,fn=vt.filterSort,Cn=vt.optionFilterProp,ui=vt.optionLabelProp,Ln=vt.options,rt=vt.children,Oi=vt.defaultActiveFirstOption,Qi=vt.menuItemSelectedIcon,Kt=vt.virtual,zi=vt.direction,J=vt.listHeight,re=J===void 0?200:J,Hn=vt.listItemHeight,Fe=Hn===void 0?20:Hn,wt=vt.value,gi=vt.defaultValue,Rn=vt.labelInValue,_i=vt.onChange,Xt=(0,F.Z)(vt,to),Ei=(0,cn.ZP)(vn),Zt=ct(Nn),Bi=!!(!Ln&&rt),Gr=te.useMemo(function(){return gt===void 0&&Nn==="combobox"?!1:gt},[gt,Nn]),At=te.useMemo(function(){return T(Ht,Bi)},[JSON.stringify(Ht),Bi]),eo=(0,he.Z)("",{value:jn!==void 0?jn:Rt,postState:function(Sn){return Sn||""}}),Qt=(0,G.Z)(eo,2),Li=Qt[0],wi=Qt[1],pr=He(Ln,rt,At,Cn,ui),ar=pr.valueOptions,Zn=pr.labelOptions,ce=pr.options,mr=te.useCallback(function(xr){var Sn=lt(xr);return Sn.map(function(ur){var vi,Vo,ma,is,Rs;if(Ji(ur))vi=ur;else{var Ns;ma=ur.key,Vo=ur.label,vi=(Ns=ur.value)!==null&&Ns!==void 0?Ns:ma}var si=ar.get(vi);if(si){var Hi;if(Vo===void 0&&(Vo=si==null?void 0:si[ui||At.label]),ma===void 0&&(ma=(Hi=si==null?void 0:si.key)!==null&&Hi!==void 0?Hi:vi),is=si==null?void 0:si.disabled,Rs=si==null?void 0:si.title,0)var ta}return{label:Vo,value:vi,key:ma,disabled:is,title:Rs}})},[At,ui,ar]),Er=(0,he.Z)(gi,{value:wt}),cr=(0,G.Z)(Er,2),Wr=cr[0],Wi=cr[1],Kr=te.useMemo(function(){var xr,Sn=mr(Wr);return Nn==="combobox"&&Tt((xr=Sn[0])===null||xr===void 0?void 0:xr.value)?[]:Sn},[Wr,mr,Nn]),Ri=an(Kr,ar),Ui=(0,G.Z)(Ri,2),Di=Ui[0],Cr=Ui[1],Tr=te.useMemo(function(){if(!Nn&&Di.length===1){var xr=Di[0];if(xr.value===null&&(xr.label===null||xr.label===void 0))return[]}return Di.map(function(Sn){var ur;return(0,B.Z)((0,B.Z)({},Sn),{},{label:(ur=Sn.label)!==null&&ur!==void 0?ur:Sn.value})})},[Nn,Di]),io=te.useMemo(function(){return new Set(Di.map(function(xr){return xr.value}))},[Di]);te.useEffect(function(){if(Nn==="combobox"){var xr,Sn=(xr=Di[0])===null||xr===void 0?void 0:xr.value;wi(xt(Sn)?String(Sn):"")}},[Di]);var bo=Bn(function(xr,Sn){var ur,vi=Sn!=null?Sn:xr;return ur={},(0,O.Z)(ur,At.value,xr),(0,O.Z)(ur,At.label,vi),ur}),mi=te.useMemo(function(){if(Nn!=="tags")return ce;var xr=(0,I.Z)(ce),Sn=function(vi){return ar.has(vi)};return(0,I.Z)(Di).sort(function(ur,vi){return ur.value<vi.value?-1:1}).forEach(function(ur){var vi=ur.value;Sn(vi)||xr.push(bo(vi,ur.label))}),xr},[bo,ce,ar,Di,Nn]),Sa=Bt(mi,At,Li,Gr,Cn),Wo=te.useMemo(function(){return Nn!=="tags"||!Li||Sa.some(function(xr){return xr[Cn||"value"]===Li})||Sa.some(function(xr){return xr[At.value]===Li})?Sa:[bo(Li)].concat((0,I.Z)(Sa))},[bo,Cn,Nn,Sa,Li,At]),Jo=te.useMemo(function(){return fn?(0,I.Z)(Wo).sort(function(xr,Sn){return fn(xr,Sn)}):Wo},[Wo,fn]),Ta=te.useMemo(function(){return _e(Jo,{fieldNames:At,childrenAsData:Bi})},[Jo,At,Bi]),Ya=function(Sn){var ur=mr(Sn);if(Wi(ur),_i&&(ur.length!==Di.length||ur.some(function(ma,is){var Rs;return((Rs=Di[is])===null||Rs===void 0?void 0:Rs.value)!==(ma==null?void 0:ma.value)}))){var vi=Rn?ur:ur.map(function(ma){return ma.value}),Vo=ur.map(function(ma){return kt(Cr(ma.value))});_i(Zt?vi:vi[0],Zt?Vo:Vo[0])}},ns=te.useState(null),Na=(0,G.Z)(ns,2),cs=Na[0],Za=Na[1],jo=te.useState(0),Wt=(0,G.Z)(jo,2),Ba=Wt[0],eu=Wt[1],ol=Oi!==void 0?Oi:Nn!=="combobox",po=te.useCallback(function(xr,Sn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vi=ur.source,Vo=vi===void 0?"keyboard":vi;eu(Sn),Ke&&Nn==="combobox"&&xr!==null&&Vo==="keyboard"&&Za(String(xr))},[Ke,Nn]),ko=function(Sn,ur,vi){var Vo=function(){var rs,Lr=Cr(Sn);return[Rn?{label:Lr==null?void 0:Lr[At.label],value:Sn,key:(rs=Lr==null?void 0:Lr.key)!==null&&rs!==void 0?rs:Sn}:Sn,kt(Lr)]};if(ur&&Ge){var ma=Vo(),is=(0,G.Z)(ma,2),Rs=is[0],Ns=is[1];Ge(Rs,Ns)}else if(!ur&&L&&vi!=="clear"){var si=Vo(),Hi=(0,G.Z)(si,2),ta=Hi[0],As=Hi[1];L(ta,As)}},yo=Bn(function(xr,Sn){var ur,vi=Zt?Sn.selected:!0;vi?ur=Zt?[].concat((0,I.Z)(Di),[xr]):[xr]:ur=Di.filter(function(Vo){return Vo.value!==xr}),Ya(ur),ko(xr,vi),Nn==="combobox"?Za(""):(!ct||yt)&&(wi(""),Za(""))}),Mt=function(Sn,ur){Ya(Sn);var vi=ur.type,Vo=ur.values;(vi==="remove"||vi==="clear")&&Vo.forEach(function(ma){ko(ma.value,!1,vi)})},Dr=function(Sn,ur){if(wi(Sn),Za(null),ur.source==="submit"){var vi=(Sn||"").trim();if(vi){var Vo=Array.from(new Set([].concat((0,I.Z)(io),[vi])));Ya(Vo),ko(vi,!0),wi("")}return}ur.source!=="blur"&&(Nn==="combobox"&&Ya(Sn),at==null||at(Sn))},mo=function(Sn){var ur=Sn;Nn!=="tags"&&(ur=Sn.map(function(Vo){var ma=Zn.get(Vo);return ma==null?void 0:ma.value}).filter(function(Vo){return Vo!==void 0}));var vi=Array.from(new Set([].concat((0,I.Z)(io),(0,I.Z)(ur))));Ya(vi),vi.forEach(function(Vo){ko(Vo,!0)})},Ea=te.useMemo(function(){var xr=Kt!==!1&&Jt!==!1;return(0,B.Z)((0,B.Z)({},pr),{},{flattenOptions:Ta,onActiveValue:po,defaultActiveFirstOption:ol,onSelect:yo,menuItemSelectedIcon:Qi,rawValues:io,fieldNames:At,virtual:xr,direction:zi,listHeight:re,listItemHeight:Fe,childrenAsData:Bi})},[pr,Ta,po,ol,yo,Qi,io,At,Kt,Jt,re,Fe,Bi]);return te.createElement(qn.Provider,{value:Ea},te.createElement(It,(0,v.Z)({},Xt,{id:Ei,prefixCls:Ct,ref:Ve,omitDomProps:vr,mode:Nn,displayValues:Tr,onDisplayValuesChange:Mt,direction:zi,searchValue:Li,onSearch:Dr,autoClearSearchValue:yt,onSearchSplit:mo,dropdownMatchSelectWidth:Jt,OptionList:Fr,emptyOptions:!Ta.length,activeValue:cs,activeDescendantId:"".concat(Ei,"_list_").concat(Ba)})))}),ft=di;ft.Option=hi,ft.OptGroup=Kn;var Un=ft,Wn=Un},9296:function(Q,C,h){"use strict";h.r(C),h.d(C,{ResizableTextArea:function(){return Ye},default:function(){return Tt}});var v=h(92413),I=h(33708),O=h(400),B=h(39559),G=h(33606),F=h(37061),M=h(26407),he=h(92310),ue=h.n(he),te=h(93681),Me=h(5643),we=h(18929),Je=h(59301),Oe=h(29301),Te=h(34280),Ae=h(16089),Re=`
|
|
|
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;
|
|
|
`,de=["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"],pe={},be;function me(Et){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=Et.getAttribute("id")||Et.getAttribute("data-reactid")||Et.getAttribute("name");if(wn&&pe[qe])return pe[qe];var ae=window.getComputedStyle(Et),le=ae.getPropertyValue("box-sizing")||ae.getPropertyValue("-moz-box-sizing")||ae.getPropertyValue("-webkit-box-sizing"),$t=parseFloat(ae.getPropertyValue("padding-bottom"))+parseFloat(ae.getPropertyValue("padding-top")),Vt=parseFloat(ae.getPropertyValue("border-bottom-width"))+parseFloat(ae.getPropertyValue("border-top-width")),St=de.map(function(Ft){return"".concat(Ft,":").concat(ae.getPropertyValue(Ft))}).join(";"),un={sizingStyle:St,paddingSize:$t,borderSize:Vt,boxSizing:le};return wn&&qe&&(pe[qe]=un),un}function ke(Et){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),document.body.appendChild(be)),Et.getAttribute("wrap")?be.setAttribute("wrap",Et.getAttribute("wrap")):be.removeAttribute("wrap");var le=me(Et,wn),$t=le.paddingSize,Vt=le.borderSize,St=le.boxSizing,un=le.sizingStyle;be.setAttribute("style","".concat(un,";").concat(Re)),be.value=Et.value||Et.placeholder||"";var Ft=void 0,ai=void 0,On,ni=be.scrollHeight;if(St==="border-box"?ni+=Vt:St==="content-box"&&(ni-=$t),qe!==null||ae!==null){be.value=" ";var Jn=be.scrollHeight-$t;qe!==null&&(Ft=Jn*qe,St==="border-box"&&(Ft=Ft+$t+Vt),ni=Math.max(Ft,ni)),ae!==null&&(ai=Jn*ae,St==="border-box"&&(ai=ai+$t+Vt),On=ni>ai?"":"hidden",ni=Math.min(ai,ni))}var In={height:ni,overflowY:On,resize:"none"};return Ft&&(In.minHeight=Ft),ai&&(In.maxHeight=ai),In}var ee=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ne=0,Ie=1,Pe=2,Xe=Je.forwardRef(function(Et,wn){var qe=Et,ae=qe.prefixCls,le=qe.onPressEnter,$t=qe.defaultValue,Vt=qe.value,St=qe.autoSize,un=qe.onResize,Ft=qe.className,ai=qe.style,On=qe.disabled,ni=qe.onChange,Jn=qe.onInternalAutoSize,In=(0,F.Z)(qe,ee),Mn=(0,we.Z)($t,{value:Vt,postState:function(Kn){return Kn!=null?Kn:""}}),xe=(0,G.Z)(Mn,2),P=xe[0],k=xe[1],j=function(Kn){k(Kn.target.value),ni==null||ni(Kn)},X=Je.useRef();Je.useImperativeHandle(wn,function(){return{textArea:X.current}});var T=Je.useMemo(function(){return St&&(0,B.Z)(St)==="object"?[St.minRows,St.maxRows]:[]},[St]),_e=(0,G.Z)(T,2),kt=_e[0],Ue=_e[1],Be=!!St,mt=function(){try{if(document.activeElement===X.current){var Kn=X.current,Ti=Kn.selectionStart,hi=Kn.selectionEnd,dn=Kn.scrollTop;X.current.setSelectionRange(Ti,hi),X.current.scrollTop=dn}}catch(sn){}},ct=Je.useState(Pe),tt=(0,G.Z)(ct,2),It=tt[0],an=tt[1],en=Je.useState(),Bt=(0,G.Z)(en,2),cn=Bt[0],gn=Bt[1],Qe=function(){an(Ne)};(0,Te.Z)(function(){Be&&Qe()},[Vt,kt,Ue,Be]),(0,Te.Z)(function(){if(It===Ne)an(Ie);else if(It===Ie){var kn=ke(X.current,!1,kt,Ue);an(Pe),gn(kn)}else mt()},[It]);var Ut=Je.useRef(),tn=function(){Ae.Z.cancel(Ut.current)},nn=function(Kn){It===Pe&&(un==null||un(Kn),St&&(tn(),Ut.current=(0,Ae.Z)(function(){Qe()})))};Je.useEffect(function(){return tn},[]);var He=Be?cn:null,Bn=(0,I.Z)((0,I.Z)({},ai),He);return(It===Ne||It===Ie)&&(Bn.overflowY="hidden",Bn.overflowX="hidden"),Je.createElement(Oe.Z,{onResize:nn,disabled:!(St||un)},Je.createElement("textarea",(0,v.Z)({},In,{ref:X,style:Bn,className:ue()(ae,Ft,(0,O.Z)({},"".concat(ae,"-disabled"),On)),disabled:On,value:P,onChange:j})))}),Ye=Xe,ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function lt(Et,wn){return(0,M.Z)(Et||"").slice(0,wn).join("")}function We(Et,wn,qe,ae){var le=qe;return Et?le=lt(qe,ae):(0,M.Z)(wn||"").length<qe.length&&(0,M.Z)(qe||"").length>ae&&(le=wn),le}var Pt=Je.forwardRef(function(Et,wn){var qe,ae=Et.defaultValue,le=Et.value,$t=Et.onFocus,Vt=Et.onBlur,St=Et.onChange,un=Et.allowClear,Ft=Et.maxLength,ai=Et.onCompositionStart,On=Et.onCompositionEnd,ni=Et.suffix,Jn=Et.prefixCls,In=Jn===void 0?"rc-textarea":Jn,Mn=Et.classes,xe=Et.showCount,P=Et.className,k=Et.style,j=Et.disabled,X=Et.hidden,T=Et.classNames,_e=Et.styles,kt=Et.onResize,Ue=(0,F.Z)(Et,ie),Be=(0,we.Z)(ae,{value:le,defaultValue:ae}),mt=(0,G.Z)(Be,2),ct=mt[0],tt=mt[1],It=(0,Je.useRef)(null),an=Je.useState(!1),en=(0,G.Z)(an,2),Bt=en[0],cn=en[1],gn=Je.useState(!1),Qe=(0,G.Z)(gn,2),Ut=Qe[0],tn=Qe[1],nn=Je.useRef(),He=Je.useRef(0),Bn=Je.useState(null),kn=(0,G.Z)(Bn,2),Kn=kn[0],Ti=kn[1],hi=function(){var Ji;(Ji=It.current)===null||Ji===void 0||Ji.textArea.focus()};(0,Je.useImperativeHandle)(wn,function(){return{resizableTextArea:It.current,focus:hi,blur:function(){var Ji;(Ji=It.current)===null||Ji===void 0||Ji.textArea.blur()}}}),(0,Je.useEffect)(function(){cn(function(vr){return!j&&vr})},[j]);var dn=Number(Ft)>0,sn=function(Ji){tn(!0),nn.current=ct,He.current=Ji.currentTarget.selectionStart,ai==null||ai(Ji)},gr=function(Ji){tn(!1);var di=Ji.currentTarget.value;if(dn){var ft,Un=He.current>=Ft+1||He.current===((ft=nn.current)===null||ft===void 0?void 0:ft.length);di=We(Un,nn.current,di,Ft)}di!==ct&&(tt(di),(0,Me.rJ)(Ji.currentTarget,Ji,St,di)),On==null||On(Ji)},dr=function(Ji){var di=Ji.target.value;if(!Ut&&dn){var ft=Ji.target.selectionStart>=Ft+1||Ji.target.selectionStart===di.length||!Ji.target.selectionStart;di=We(ft,ct,di,Ft)}tt(di),(0,Me.rJ)(Ji.currentTarget,Ji,St,di)},qn=function(Ji){var di=Ue.onPressEnter,ft=Ue.onKeyDown;Ji.key==="Enter"&&di&&di(Ji),ft==null||ft(Ji)},Rr=function(Ji){cn(!0),$t==null||$t(Ji)},tr=function(Ji){cn(!1),Vt==null||Vt(Ji)},U=function(Ji){var di;tt(""),hi(),(0,Me.rJ)((di=It.current)===null||di===void 0?void 0:di.textArea,Ji,St)},br=(0,Me.D7)(ct);!Ut&&dn&&le==null&&(br=lt(br,Ft));var fr=ni,Fr;if(xe){var jr=(0,M.Z)(br).length;(0,B.Z)(xe)==="object"?Fr=xe.formatter({value:br,count:jr,maxLength:Ft}):Fr="".concat(jr).concat(dn?" / ".concat(Ft):""),fr=Je.createElement(Je.Fragment,null,fr,Je.createElement("span",{className:ue()("".concat(In,"-data-count"),T==null?void 0:T.count),style:_e==null?void 0:_e.count},Fr))}var so=function(Ji){var di;kt==null||kt(Ji),(di=It.current)!==null&&di!==void 0&&di.textArea.style.height&&Ti(!0)},Ar=!Ue.autoSize&&!xe&&!un,to=Je.createElement(te.BaseInput,{value:br,allowClear:un,handleReset:U,suffix:fr,prefixCls:In,classes:{affixWrapper:ue()(Mn==null?void 0:Mn.affixWrapper,(qe={},(0,O.Z)(qe,"".concat(In,"-show-count"),xe),(0,O.Z)(qe,"".concat(In,"-textarea-allow-clear"),un),qe))},disabled:j,focused:Bt,className:P,style:(0,I.Z)((0,I.Z)({},k),Kn&&!Ar?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fr=="string"?Fr:void 0}},hidden:X,inputElement:Je.createElement(Ye,(0,v.Z)({},Ue,{onKeyDown:qn,onChange:dr,onFocus:Rr,onBlur:tr,onCompositionStart:sn,onCompositionEnd:gr,className:T==null?void 0:T.textarea,style:(0,I.Z)((0,I.Z)({},_e==null?void 0:_e.textarea),{},{resize:k==null?void 0:k.resize}),disabled:j,prefixCls:In,onResize:so,ref:It}))});return to}),xt=Pt,Tt=xt},39417:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Ie}});var v=h(92413),I=h(400),O=h(37061),B=h(33708),G=h(6909),F=h(4771),M=h(25314),he=h(9427),ue=h(25440),te=h(92310),Me=h.n(te),we=h(26112),Je=h(59301),Oe=h(39378),Te=function(Xe){for(var Ye=Xe.prefixCls,ie=Xe.level,lt=Xe.isStart,We=Xe.isEnd,Pt="".concat(Ye,"-indent-unit"),xt=[],Tt=0;Tt<ie;Tt+=1){var Et;xt.push(Je.createElement("span",{key:Tt,className:Me()(Pt,(Et={},(0,I.Z)(Et,"".concat(Pt,"-start"),lt[Tt]),(0,I.Z)(Et,"".concat(Pt,"-end"),We[Tt]),Et))}))}return Je.createElement("span",{"aria-hidden":"true",className:"".concat(Ye,"-indent")},xt)},Ae=Je.memo(Te),Re=h(67841),de=h(71430),pe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],be="open",me="close",ke="---",ee=function(Pe){(0,he.Z)(Ye,Pe);var Xe=(0,ue.Z)(Ye);function Ye(){var ie;(0,G.Z)(this,Ye);for(var lt=arguments.length,We=new Array(lt),Pt=0;Pt<lt;Pt++)We[Pt]=arguments[Pt];return ie=Xe.call.apply(Xe,[this].concat(We)),ie.state={dragNodeHighlight:!1},ie.selectHandle=void 0,ie.cacheIndent=void 0,ie.onSelectorClick=function(xt){var Tt=ie.props.context.onNodeClick;Tt(xt,(0,de.F)(ie.props)),ie.isSelectable()?ie.onSelect(xt):ie.onCheck(xt)},ie.onSelectorDoubleClick=function(xt){var Tt=ie.props.context.onNodeDoubleClick;Tt(xt,(0,de.F)(ie.props))},ie.onSelect=function(xt){if(!ie.isDisabled()){var Tt=ie.props.context.onNodeSelect;Tt(xt,(0,de.F)(ie.props))}},ie.onCheck=function(xt){if(!ie.isDisabled()){var Tt=ie.props,Et=Tt.disableCheckbox,wn=Tt.checked,qe=ie.props.context.onNodeCheck;if(!(!ie.isCheckable()||Et)){var ae=!wn;qe(xt,(0,de.F)(ie.props),ae)}}},ie.onMouseEnter=function(xt){var Tt=ie.props.context.onNodeMouseEnter;Tt(xt,(0,de.F)(ie.props))},ie.onMouseLeave=function(xt){var Tt=ie.props.context.onNodeMouseLeave;Tt(xt,(0,de.F)(ie.props))},ie.onContextMenu=function(xt){var Tt=ie.props.context.onNodeContextMenu;Tt(xt,(0,de.F)(ie.props))},ie.onDragStart=function(xt){var Tt=ie.props.context.onNodeDragStart;xt.stopPropagation(),ie.setState({dragNodeHighlight:!0}),Tt(xt,(0,M.Z)(ie));try{xt.dataTransfer.setData("text/plain","")}catch(Et){}},ie.onDragEnter=function(xt){var Tt=ie.props.context.onNodeDragEnter;xt.preventDefault(),xt.stopPropagation(),Tt(xt,(0,M.Z)(ie))},ie.onDragOver=function(xt){var Tt=ie.props.context.onNodeDragOver;xt.preventDefault(),xt.stopPropagation(),Tt(xt,(0,M.Z)(ie))},ie.onDragLeave=function(xt){var Tt=ie.props.context.onNodeDragLeave;xt.stopPropagation(),Tt(xt,(0,M.Z)(ie))},ie.onDragEnd=function(xt){var Tt=ie.props.context.onNodeDragEnd;xt.stopPropagation(),ie.setState({dragNodeHighlight:!1}),Tt(xt,(0,M.Z)(ie))},ie.onDrop=function(xt){var Tt=ie.props.context.onNodeDrop;xt.preventDefault(),xt.stopPropagation(),ie.setState({dragNodeHighlight:!1}),Tt(xt,(0,M.Z)(ie))},ie.onExpand=function(xt){var Tt=ie.props,Et=Tt.loading,wn=Tt.context.onNodeExpand;Et||wn(xt,(0,de.F)(ie.props))},ie.setSelectHandle=function(xt){ie.selectHandle=xt},ie.getNodeState=function(){var xt=ie.props.expanded;return ie.isLeaf()?null:xt?be:me},ie.hasChildren=function(){var xt=ie.props.eventKey,Tt=ie.props.context.keyEntities,Et=(0,Re.Z)(Tt,xt)||{},wn=Et.children;return!!(wn||[]).length},ie.isLeaf=function(){var xt=ie.props,Tt=xt.isLeaf,Et=xt.loaded,wn=ie.props.context.loadData,qe=ie.hasChildren();return Tt===!1?!1:Tt||!wn&&!qe||wn&&Et&&!qe},ie.isDisabled=function(){var xt=ie.props.disabled,Tt=ie.props.context.disabled;return!!(Tt||xt)},ie.isCheckable=function(){var xt=ie.props.checkable,Tt=ie.props.context.checkable;return!Tt||xt===!1?!1:Tt},ie.syncLoadData=function(xt){var Tt=xt.expanded,Et=xt.loading,wn=xt.loaded,qe=ie.props.context,ae=qe.loadData,le=qe.onNodeLoad;Et||ae&&Tt&&!ie.isLeaf()&&!ie.hasChildren()&&!wn&&le((0,de.F)(ie.props))},ie.isDraggable=function(){var xt=ie.props,Tt=xt.data,Et=xt.context.draggable;return!!(Et&&(!Et.nodeDraggable||Et.nodeDraggable(Tt)))},ie.renderDragHandler=function(){var xt=ie.props.context,Tt=xt.draggable,Et=xt.prefixCls;return Tt!=null&&Tt.icon?Je.createElement("span",{className:"".concat(Et,"-draggable-icon")},Tt.icon):null},ie.renderSwitcherIconDom=function(xt){var Tt=ie.props.switcherIcon,Et=ie.props.context.switcherIcon,wn=Tt||Et;return typeof wn=="function"?wn((0,B.Z)((0,B.Z)({},ie.props),{},{isLeaf:xt})):wn},ie.renderSwitcher=function(){var xt=ie.props.expanded,Tt=ie.props.context.prefixCls;if(ie.isLeaf()){var Et=ie.renderSwitcherIconDom(!0);return Et!==!1?Je.createElement("span",{className:Me()("".concat(Tt,"-switcher"),"".concat(Tt,"-switcher-noop"))},Et):null}var wn=Me()("".concat(Tt,"-switcher"),"".concat(Tt,"-switcher_").concat(xt?be:me)),qe=ie.renderSwitcherIconDom(!1);return qe!==!1?Je.createElement("span",{onClick:ie.onExpand,className:wn},qe):null},ie.renderCheckbox=function(){var xt=ie.props,Tt=xt.checked,Et=xt.halfChecked,wn=xt.disableCheckbox,qe=ie.props.context.prefixCls,ae=ie.isDisabled(),le=ie.isCheckable();if(!le)return null;var $t=typeof le!="boolean"?le:null;return Je.createElement("span",{className:Me()("".concat(qe,"-checkbox"),Tt&&"".concat(qe,"-checkbox-checked"),!Tt&&Et&&"".concat(qe,"-checkbox-indeterminate"),(ae||wn)&&"".concat(qe,"-checkbox-disabled")),onClick:ie.onCheck},$t)},ie.renderIcon=function(){var xt=ie.props.loading,Tt=ie.props.context.prefixCls;return Je.createElement("span",{className:Me()("".concat(Tt,"-iconEle"),"".concat(Tt,"-icon__").concat(ie.getNodeState()||"docu"),xt&&"".concat(Tt,"-icon_loading"))})},ie.renderSelector=function(){var xt=ie.state.dragNodeHighlight,Tt=ie.props,Et=Tt.title,wn=Et===void 0?ke:Et,qe=Tt.selected,ae=Tt.icon,le=Tt.loading,$t=Tt.data,Vt=ie.props.context,St=Vt.prefixCls,un=Vt.showIcon,Ft=Vt.icon,ai=Vt.loadData,On=Vt.titleRender,ni=ie.isDisabled(),Jn="".concat(St,"-node-content-wrapper"),In;if(un){var Mn=ae||Ft;In=Mn?Je.createElement("span",{className:Me()("".concat(St,"-iconEle"),"".concat(St,"-icon__customize"))},typeof Mn=="function"?Mn(ie.props):Mn):ie.renderIcon()}else ai&&le&&(In=ie.renderIcon());var xe;typeof wn=="function"?xe=wn($t):On?xe=On($t):xe=wn;var P=Je.createElement("span",{className:"".concat(St,"-title")},xe);return Je.createElement("span",{ref:ie.setSelectHandle,title:typeof wn=="string"?wn:"",className:Me()("".concat(Jn),"".concat(Jn,"-").concat(ie.getNodeState()||"normal"),!ni&&(qe||xt)&&"".concat(St,"-node-selected")),onMouseEnter:ie.onMouseEnter,onMouseLeave:ie.onMouseLeave,onContextMenu:ie.onContextMenu,onClick:ie.onSelectorClick,onDoubleClick:ie.onSelectorDoubleClick},In,P,ie.renderDropIndicator())},ie.renderDropIndicator=function(){var xt=ie.props,Tt=xt.disabled,Et=xt.eventKey,wn=ie.props.context,qe=wn.draggable,ae=wn.dropLevelOffset,le=wn.dropPosition,$t=wn.prefixCls,Vt=wn.indent,St=wn.dropIndicatorRender,un=wn.dragOverNodeKey,Ft=wn.direction,ai=!!qe,On=!Tt&&ai&&un===Et,ni=Vt!=null?Vt:ie.cacheIndent;return ie.cacheIndent=Vt,On?St({dropPosition:le,dropLevelOffset:ae,indent:ni,prefixCls:$t,direction:Ft}):null},ie}return(0,F.Z)(Ye,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var lt=this.props.selectable,We=this.props.context.selectable;return typeof lt=="boolean"?lt:We}},{key:"render",value:function(){var lt,We=this.props,Pt=We.eventKey,xt=We.className,Tt=We.style,Et=We.dragOver,wn=We.dragOverGapTop,qe=We.dragOverGapBottom,ae=We.isLeaf,le=We.isStart,$t=We.isEnd,Vt=We.expanded,St=We.selected,un=We.checked,Ft=We.halfChecked,ai=We.loading,On=We.domRef,ni=We.active,Jn=We.data,In=We.onMouseMove,Mn=We.selectable,xe=(0,O.Z)(We,pe),P=this.props.context,k=P.prefixCls,j=P.filterTreeNode,X=P.keyEntities,T=P.dropContainerKey,_e=P.dropTargetKey,kt=P.draggingNodeKey,Ue=this.isDisabled(),Be=(0,we.Z)(xe,{aria:!0,data:!0}),mt=(0,Re.Z)(X,Pt)||{},ct=mt.level,tt=$t[$t.length-1],It=this.isDraggable(),an=!Ue&&It,en=kt===Pt,Bt=Mn!==void 0?{"aria-selected":!!Mn}:void 0;return Je.createElement("div",(0,v.Z)({ref:On,className:Me()(xt,"".concat(k,"-treenode"),(lt={},(0,I.Z)(lt,"".concat(k,"-treenode-disabled"),Ue),(0,I.Z)(lt,"".concat(k,"-treenode-switcher-").concat(Vt?"open":"close"),!ae),(0,I.Z)(lt,"".concat(k,"-treenode-checkbox-checked"),un),(0,I.Z)(lt,"".concat(k,"-treenode-checkbox-indeterminate"),Ft),(0,I.Z)(lt,"".concat(k,"-treenode-selected"),St),(0,I.Z)(lt,"".concat(k,"-treenode-loading"),ai),(0,I.Z)(lt,"".concat(k,"-treenode-active"),ni),(0,I.Z)(lt,"".concat(k,"-treenode-leaf-last"),tt),(0,I.Z)(lt,"".concat(k,"-treenode-draggable"),It),(0,I.Z)(lt,"dragging",en),(0,I.Z)(lt,"drop-target",_e===Pt),(0,I.Z)(lt,"drop-container",T===Pt),(0,I.Z)(lt,"drag-over",!Ue&&Et),(0,I.Z)(lt,"drag-over-gap-top",!Ue&&wn),(0,I.Z)(lt,"drag-over-gap-bottom",!Ue&&qe),(0,I.Z)(lt,"filter-node",j&&j((0,de.F)(this.props))),lt)),style:Tt,draggable:an,"aria-grabbed":en,onDragStart:an?this.onDragStart:void 0,onDragEnter:It?this.onDragEnter:void 0,onDragOver:It?this.onDragOver:void 0,onDragLeave:It?this.onDragLeave:void 0,onDrop:It?this.onDrop:void 0,onDragEnd:It?this.onDragEnd:void 0,onMouseMove:In},Bt,Be),Je.createElement(Ae,{prefixCls:k,level:ct,isStart:le,isEnd:$t}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ye}(Je.Component),Ne=function(Xe){return Je.createElement(Oe.k.Consumer,null,function(Ye){return Je.createElement(ee,(0,v.Z)({},Xe,{context:Ye}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Ie=Ne},39378:function(Q,C,h){"use strict";h.d(C,{k:function(){return I}});var v=h(59301),I=v.createContext(null)},23130:function(Q,C,h){"use strict";h.d(C,{O:function(){return Ie.Z},Z:function(){return P}});var v=h(92413),I=h(400),O=h(39559),B=h(33708),G=h(26407),F=h(6909),M=h(4771),he=h(25314),ue=h(9427),te=h(25440),Me=h(92310),we=h.n(Me),Je=h(10228),Oe=h(26112),Te=h(48736),Ae=h(59301),Re=h(39378);function de(k){var j=k.dropPosition,X=k.dropLevelOffset,T=k.indent,_e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(j){case-1:_e.top=0,_e.left=-X*T;break;case 1:_e.bottom=0,_e.left=-X*T;break;case 0:_e.bottom=0,_e.left=T;break}return Ae.createElement("div",{style:_e})}function pe(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var be=h(33606),me=h(37061),ke=h(34280),ee=h(57149),Ne=h(77900),Ie=h(39417);function Pe(k,j){var X=Ae.useState(!1),T=(0,be.Z)(X,2),_e=T[0],kt=T[1];Ae.useLayoutEffect(function(){if(_e)return k(),function(){j()}},[_e]),Ae.useLayoutEffect(function(){return kt(!0),function(){kt(!1)}},[])}var Xe=h(71430),Ye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ie=function(j,X){var T=j.className,_e=j.style,kt=j.motion,Ue=j.motionNodes,Be=j.motionType,mt=j.onMotionStart,ct=j.onMotionEnd,tt=j.active,It=j.treeNodeRequiredProps,an=(0,me.Z)(j,Ye),en=Ae.useState(!0),Bt=(0,be.Z)(en,2),cn=Bt[0],gn=Bt[1],Qe=Ae.useContext(Re.k),Ut=Qe.prefixCls,tn=Ue&&Be!=="hide";(0,ke.Z)(function(){Ue&&tn!==cn&&gn(tn)},[Ue]);var nn=function(){Ue&&mt()},He=Ae.useRef(!1),Bn=function(){Ue&&!He.current&&(He.current=!0,ct())};Pe(nn,Bn);var kn=function(Ti){tn===Ti&&Bn()};return Ue?Ae.createElement(Ne.default,(0,v.Z)({ref:X,visible:cn},kt,{motionAppear:Be==="show",onVisibleChanged:kn}),function(Kn,Ti){var hi=Kn.className,dn=Kn.style;return Ae.createElement("div",{ref:Ti,className:we()("".concat(Ut,"-treenode-motion"),hi),style:dn},Ue.map(function(sn){var gr=(0,v.Z)({},(pe(sn.data),sn.data)),dr=sn.title,qn=sn.key,Rr=sn.isStart,tr=sn.isEnd;delete gr.children;var U=(0,Xe.H8)(qn,It);return Ae.createElement(Ie.Z,(0,v.Z)({},gr,U,{title:dr,active:tt,data:sn.data,key:qn,isStart:Rr,isEnd:tr}))}))}):Ae.createElement(Ie.Z,(0,v.Z)({domRef:X,className:T,style:_e},an,{active:tt}))};ie.displayName="MotionTreeNode";var lt=Ae.forwardRef(ie),We=lt;function Pt(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=k.length,T=j.length;if(Math.abs(X-T)!==1)return{add:!1,key:null};function _e(kt,Ue){var Be=new Map;kt.forEach(function(ct){Be.set(ct,!0)});var mt=Ue.filter(function(ct){return!Be.has(ct)});return mt.length===1?mt[0]:null}return X<T?{add:!0,key:_e(k,j)}:{add:!1,key:_e(j,k)}}function xt(k,j,X){var T=k.findIndex(function(Be){return Be.key===X}),_e=k[T+1],kt=j.findIndex(function(Be){return Be.key===X});if(_e){var Ue=j.findIndex(function(Be){return Be.key===_e.key});return j.slice(kt+1,Ue)}return j.slice(kt+1)}var Tt=["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"],Et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wn=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),ae={key:qe},le={key:qe,level:0,index:0,pos:"0",node:ae,nodes:[ae]},$t={parent:null,children:[],pos:le.pos,data:ae,title:null,key:qe,isStart:[],isEnd:[]};function Vt(k,j,X,T){return j===!1||!X?k:k.slice(0,Math.ceil(X/T)+1)}function St(k){var j=k.key,X=k.pos;return(0,Xe.km)(j,X)}function un(k){for(var j=String(k.data.key),X=k;X.parent;)X=X.parent,j="".concat(X.data.key," > ").concat(j);return j}var Ft=Ae.forwardRef(function(k,j){var X=k.prefixCls,T=k.data,_e=k.selectable,kt=k.checkable,Ue=k.expandedKeys,Be=k.selectedKeys,mt=k.checkedKeys,ct=k.loadedKeys,tt=k.loadingKeys,It=k.halfCheckedKeys,an=k.keyEntities,en=k.disabled,Bt=k.dragging,cn=k.dragOverNodeKey,gn=k.dropPosition,Qe=k.motion,Ut=k.height,tn=k.itemHeight,nn=k.virtual,He=k.focusable,Bn=k.activeItem,kn=k.focused,Kn=k.tabIndex,Ti=k.onKeyDown,hi=k.onFocus,dn=k.onBlur,sn=k.onActiveChange,gr=k.onListChangeStart,dr=k.onListChangeEnd,qn=(0,me.Z)(k,Tt),Rr=Ae.useRef(null),tr=Ae.useRef(null);Ae.useImperativeHandle(j,function(){return{scrollTo:function(hn){Rr.current.scrollTo(hn)},getIndentWidth:function(){return tr.current.offsetWidth}}});var U=Ae.useState(Ue),br=(0,be.Z)(U,2),fr=br[0],Fr=br[1],jr=Ae.useState(T),so=(0,be.Z)(jr,2),Ar=so[0],to=so[1],vr=Ae.useState(T),Ji=(0,be.Z)(vr,2),di=Ji[0],ft=Ji[1],Un=Ae.useState([]),Wn=(0,be.Z)(Un,2),vt=Wn[0],Ve=Wn[1],vn=Ae.useState(null),Nn=(0,be.Z)(vn,2),on=Nn[0],Ct=Nn[1],Ke=Ae.useRef(T);Ke.current=T;function Ht(){var at=Ke.current;to(at),ft(at),Ve([]),Ct(null),dr()}(0,ke.Z)(function(){Fr(Ue);var at=Pt(fr,Ue);if(at.key!==null)if(at.add){var hn=Ar.findIndex(function(gt){var fn=gt.key;return fn===at.key}),yt=Vt(xt(Ar,T,at.key),nn,Ut,tn),Ge=Ar.slice();Ge.splice(hn+1,0,$t),ft(Ge),Ve(yt),Ct("show")}else{var L=T.findIndex(function(gt){var fn=gt.key;return fn===at.key}),Dt=Vt(xt(T,Ar,at.key),nn,Ut,tn),Jt=T.slice();Jt.splice(L+1,0,$t),ft(Jt),Ve(Dt),Ct("hide")}else Ar!==T&&(to(T),ft(T))},[Ue,T]),Ae.useEffect(function(){Bt||Ht()},[Bt]);var Rt=Qe?di:T,jn={expandedKeys:Ue,selectedKeys:Be,loadedKeys:ct,loadingKeys:tt,checkedKeys:mt,halfCheckedKeys:It,dragOverNodeKey:cn,dropPosition:gn,keyEntities:an};return Ae.createElement(Ae.Fragment,null,kn&&Bn&&Ae.createElement("span",{style:Et,"aria-live":"assertive"},un(Bn)),Ae.createElement("div",null,Ae.createElement("input",{style:Et,disabled:He===!1||en,tabIndex:He!==!1?Kn:null,onKeyDown:Ti,onFocus:hi,onBlur:dn,value:"",onChange:wn,"aria-label":"for screen reader"})),Ae.createElement("div",{className:"".concat(X,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ae.createElement("div",{className:"".concat(X,"-indent")},Ae.createElement("div",{ref:tr,className:"".concat(X,"-indent-unit")}))),Ae.createElement(ee.Z,(0,v.Z)({},qn,{data:Rt,itemKey:St,height:Ut,fullHeight:!1,virtual:nn,itemHeight:tn,prefixCls:"".concat(X,"-list"),ref:Rr,onVisibleChange:function(hn,yt){var Ge=new Set(hn),L=yt.filter(function(Dt){return!Ge.has(Dt)});L.some(function(Dt){return St(Dt)===qe})&&Ht()}}),function(at){var hn=at.pos,yt=(0,v.Z)({},(pe(at.data),at.data)),Ge=at.title,L=at.key,Dt=at.isStart,Jt=at.isEnd,gt=(0,Xe.km)(L,hn);delete yt.key,delete yt.children;var fn=(0,Xe.H8)(gt,jn);return Ae.createElement(We,(0,v.Z)({},yt,fn,{title:Ge,active:!!Bn&&L===Bn.key,pos:hn,data:at.data,isStart:Dt,isEnd:Jt,motion:Qe,motionNodes:L===qe?vt:null,motionType:on,onMotionStart:gr,onMotionEnd:Ht,treeNodeRequiredProps:jn,onMouseMove:function(){sn(null)}}))}))});Ft.displayName="NodeList";var ai=Ft,On=h(35654),ni=h(90782),Jn=h(67841),In=10,Mn=function(k){(0,ue.Z)(X,k);var j=(0,te.Z)(X);function X(){var T;(0,F.Z)(this,X);for(var _e=arguments.length,kt=new Array(_e),Ue=0;Ue<_e;Ue++)kt[Ue]=arguments[Ue];return T=j.call.apply(j,[this].concat(kt)),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,Xe.w$)()},T.dragStartMousePosition=null,T.dragNode=void 0,T.currentMouseOverDroppableNodeKey=null,T.listRef=Ae.createRef(),T.onNodeDragStart=function(Be,mt){var ct=T.state,tt=ct.expandedKeys,It=ct.keyEntities,an=T.props.onDragStart,en=mt.props.eventKey;T.dragNode=mt,T.dragStartMousePosition={x:Be.clientX,y:Be.clientY};var Bt=(0,On._5)(tt,en);T.setState({draggingNodeKey:en,dragChildrenKeys:(0,On.wA)(en,It),indent:T.listRef.current.getIndentWidth()}),T.setExpandedKeys(Bt),window.addEventListener("dragend",T.onWindowDragEnd),an==null||an({event:Be,node:(0,Xe.F)(mt.props)})},T.onNodeDragEnter=function(Be,mt){var ct=T.state,tt=ct.expandedKeys,It=ct.keyEntities,an=ct.dragChildrenKeys,en=ct.flattenNodes,Bt=ct.indent,cn=T.props,gn=cn.onDragEnter,Qe=cn.onExpand,Ut=cn.allowDrop,tn=cn.direction,nn=mt.props,He=nn.pos,Bn=nn.eventKey,kn=(0,he.Z)(T),Kn=kn.dragNode;if(T.currentMouseOverDroppableNodeKey!==Bn&&(T.currentMouseOverDroppableNodeKey=Bn),!Kn){T.resetDragState();return}var Ti=(0,On.OM)(Be,Kn,mt,Bt,T.dragStartMousePosition,Ut,en,It,tt,tn),hi=Ti.dropPosition,dn=Ti.dropLevelOffset,sn=Ti.dropTargetKey,gr=Ti.dropContainerKey,dr=Ti.dropTargetPos,qn=Ti.dropAllowed,Rr=Ti.dragOverNodeKey;if(an.indexOf(sn)!==-1||!qn){T.resetDragState();return}if(T.delayedDragEnterLogic||(T.delayedDragEnterLogic={}),Object.keys(T.delayedDragEnterLogic).forEach(function(tr){clearTimeout(T.delayedDragEnterLogic[tr])}),Kn.props.eventKey!==mt.props.eventKey&&(Be.persist(),T.delayedDragEnterLogic[He]=window.setTimeout(function(){if(T.state.draggingNodeKey!==null){var tr=(0,G.Z)(tt),U=(0,Jn.Z)(It,mt.props.eventKey);U&&(U.children||[]).length&&(tr=(0,On.L0)(tt,mt.props.eventKey)),"expandedKeys"in T.props||T.setExpandedKeys(tr),Qe==null||Qe(tr,{node:(0,Xe.F)(mt.props),expanded:!0,nativeEvent:Be.nativeEvent})}},800)),Kn.props.eventKey===sn&&dn===0){T.resetDragState();return}T.setState({dragOverNodeKey:Rr,dropPosition:hi,dropLevelOffset:dn,dropTargetKey:sn,dropContainerKey:gr,dropTargetPos:dr,dropAllowed:qn}),gn==null||gn({event:Be,node:(0,Xe.F)(mt.props),expandedKeys:tt})},T.onNodeDragOver=function(Be,mt){var ct=T.state,tt=ct.dragChildrenKeys,It=ct.flattenNodes,an=ct.keyEntities,en=ct.expandedKeys,Bt=ct.indent,cn=T.props,gn=cn.onDragOver,Qe=cn.allowDrop,Ut=cn.direction,tn=(0,he.Z)(T),nn=tn.dragNode;if(nn){var He=(0,On.OM)(Be,nn,mt,Bt,T.dragStartMousePosition,Qe,It,an,en,Ut),Bn=He.dropPosition,kn=He.dropLevelOffset,Kn=He.dropTargetKey,Ti=He.dropContainerKey,hi=He.dropAllowed,dn=He.dropTargetPos,sn=He.dragOverNodeKey;tt.indexOf(Kn)!==-1||!hi||(nn.props.eventKey===Kn&&kn===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():Bn===T.state.dropPosition&&kn===T.state.dropLevelOffset&&Kn===T.state.dropTargetKey&&Ti===T.state.dropContainerKey&&dn===T.state.dropTargetPos&&hi===T.state.dropAllowed&&sn===T.state.dragOverNodeKey||T.setState({dropPosition:Bn,dropLevelOffset:kn,dropTargetKey:Kn,dropContainerKey:Ti,dropTargetPos:dn,dropAllowed:hi,dragOverNodeKey:sn}),gn==null||gn({event:Be,node:(0,Xe.F)(mt.props)}))}},T.onNodeDragLeave=function(Be,mt){T.currentMouseOverDroppableNodeKey===mt.props.eventKey&&!Be.currentTarget.contains(Be.relatedTarget)&&(T.resetDragState(),T.currentMouseOverDroppableNodeKey=null);var ct=T.props.onDragLeave;ct==null||ct({event:Be,node:(0,Xe.F)(mt.props)})},T.onWindowDragEnd=function(Be){T.onNodeDragEnd(Be,null,!0),window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDragEnd=function(Be,mt){var ct=T.props.onDragEnd;T.setState({dragOverNodeKey:null}),T.cleanDragState(),ct==null||ct({event:Be,node:(0,Xe.F)(mt.props)}),T.dragNode=null,window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDrop=function(Be,mt){var ct,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=T.state,an=It.dragChildrenKeys,en=It.dropPosition,Bt=It.dropTargetKey,cn=It.dropTargetPos,gn=It.dropAllowed;if(gn){var Qe=T.props.onDrop;if(T.setState({dragOverNodeKey:null}),T.cleanDragState(),Bt!==null){var Ut=(0,B.Z)((0,B.Z)({},(0,Xe.H8)(Bt,T.getTreeNodeRequiredProps())),{},{active:((ct=T.getActiveItem())===null||ct===void 0?void 0:ct.key)===Bt,data:(0,Jn.Z)(T.state.keyEntities,Bt).node}),tn=an.indexOf(Bt)!==-1;(0,Te.ZP)(!tn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var nn=(0,On.yx)(cn),He={event:Be,node:(0,Xe.F)(Ut),dragNode:T.dragNode?(0,Xe.F)(T.dragNode.props):null,dragNodesKeys:[T.dragNode.props.eventKey].concat(an),dropToGap:en!==0,dropPosition:en+Number(nn[nn.length-1])};tt||Qe==null||Qe(He),T.dragNode=null}}},T.cleanDragState=function(){var Be=T.state.draggingNodeKey;Be!==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(Be,mt){var ct=T.state,tt=ct.expandedKeys,It=ct.flattenNodes,an=mt.expanded,en=mt.key,Bt=mt.isLeaf;if(!(Bt||Be.shiftKey||Be.metaKey||Be.ctrlKey)){var cn=It.filter(function(Qe){return Qe.key===en})[0],gn=(0,Xe.F)((0,B.Z)((0,B.Z)({},(0,Xe.H8)(en,T.getTreeNodeRequiredProps())),{},{data:cn.data}));T.setExpandedKeys(an?(0,On._5)(tt,en):(0,On.L0)(tt,en)),T.onNodeExpand(Be,gn)}},T.onNodeClick=function(Be,mt){var ct=T.props,tt=ct.onClick,It=ct.expandAction;It==="click"&&T.triggerExpandActionExpand(Be,mt),tt==null||tt(Be,mt)},T.onNodeDoubleClick=function(Be,mt){var ct=T.props,tt=ct.onDoubleClick,It=ct.expandAction;It==="doubleClick"&&T.triggerExpandActionExpand(Be,mt),tt==null||tt(Be,mt)},T.onNodeSelect=function(Be,mt){var ct=T.state.selectedKeys,tt=T.state,It=tt.keyEntities,an=tt.fieldNames,en=T.props,Bt=en.onSelect,cn=en.multiple,gn=mt.selected,Qe=mt[an.key],Ut=!gn;Ut?cn?ct=(0,On.L0)(ct,Qe):ct=[Qe]:ct=(0,On._5)(ct,Qe);var tn=ct.map(function(nn){var He=(0,Jn.Z)(It,nn);return He?He.node:null}).filter(function(nn){return nn});T.setUncontrolledState({selectedKeys:ct}),Bt==null||Bt(ct,{event:"select",selected:Ut,node:mt,selectedNodes:tn,nativeEvent:Be.nativeEvent})},T.onNodeCheck=function(Be,mt,ct){var tt=T.state,It=tt.keyEntities,an=tt.checkedKeys,en=tt.halfCheckedKeys,Bt=T.props,cn=Bt.checkStrictly,gn=Bt.onCheck,Qe=mt.key,Ut,tn={event:"check",node:mt,checked:ct,nativeEvent:Be.nativeEvent};if(cn){var nn=ct?(0,On.L0)(an,Qe):(0,On._5)(an,Qe),He=(0,On._5)(en,Qe);Ut={checked:nn,halfChecked:He},tn.checkedNodes=nn.map(function(dn){return(0,Jn.Z)(It,dn)}).filter(function(dn){return dn}).map(function(dn){return dn.node}),T.setUncontrolledState({checkedKeys:nn})}else{var Bn=(0,ni.S)([].concat((0,G.Z)(an),[Qe]),!0,It),kn=Bn.checkedKeys,Kn=Bn.halfCheckedKeys;if(!ct){var Ti=new Set(kn);Ti.delete(Qe);var hi=(0,ni.S)(Array.from(Ti),{checked:!1,halfCheckedKeys:Kn},It);kn=hi.checkedKeys,Kn=hi.halfCheckedKeys}Ut=kn,tn.checkedNodes=[],tn.checkedNodesPositions=[],tn.halfCheckedKeys=Kn,kn.forEach(function(dn){var sn=(0,Jn.Z)(It,dn);if(sn){var gr=sn.node,dr=sn.pos;tn.checkedNodes.push(gr),tn.checkedNodesPositions.push({node:gr,pos:dr})}}),T.setUncontrolledState({checkedKeys:kn},!1,{halfCheckedKeys:Kn})}gn==null||gn(Ut,tn)},T.onNodeLoad=function(Be){var mt=Be.key,ct=new Promise(function(tt,It){T.setState(function(an){var en=an.loadedKeys,Bt=en===void 0?[]:en,cn=an.loadingKeys,gn=cn===void 0?[]:cn,Qe=T.props,Ut=Qe.loadData,tn=Qe.onLoad;if(!Ut||Bt.indexOf(mt)!==-1||gn.indexOf(mt)!==-1)return null;var nn=Ut(Be);return nn.then(function(){var He=T.state.loadedKeys,Bn=(0,On.L0)(He,mt);tn==null||tn(Bn,{event:"load",node:Be}),T.setUncontrolledState({loadedKeys:Bn}),T.setState(function(kn){return{loadingKeys:(0,On._5)(kn.loadingKeys,mt)}}),tt()}).catch(function(He){if(T.setState(function(kn){return{loadingKeys:(0,On._5)(kn.loadingKeys,mt)}}),T.loadingRetryTimes[mt]=(T.loadingRetryTimes[mt]||0)+1,T.loadingRetryTimes[mt]>=In){var Bn=T.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),T.setUncontrolledState({loadedKeys:(0,On.L0)(Bn,mt)}),tt()}It(He)}),{loadingKeys:(0,On.L0)(gn,mt)}})});return ct.catch(function(){}),ct},T.onNodeMouseEnter=function(Be,mt){var ct=T.props.onMouseEnter;ct==null||ct({event:Be,node:mt})},T.onNodeMouseLeave=function(Be,mt){var ct=T.props.onMouseLeave;ct==null||ct({event:Be,node:mt})},T.onNodeContextMenu=function(Be,mt){var ct=T.props.onRightClick;ct&&(Be.preventDefault(),ct({event:Be,node:mt}))},T.onFocus=function(){var Be=T.props.onFocus;T.setState({focused:!0});for(var mt=arguments.length,ct=new Array(mt),tt=0;tt<mt;tt++)ct[tt]=arguments[tt];Be==null||Be.apply(void 0,ct)},T.onBlur=function(){var Be=T.props.onBlur;T.setState({focused:!1}),T.onActiveChange(null);for(var mt=arguments.length,ct=new Array(mt),tt=0;tt<mt;tt++)ct[tt]=arguments[tt];Be==null||Be.apply(void 0,ct)},T.getTreeNodeRequiredProps=function(){var Be=T.state,mt=Be.expandedKeys,ct=Be.selectedKeys,tt=Be.loadedKeys,It=Be.loadingKeys,an=Be.checkedKeys,en=Be.halfCheckedKeys,Bt=Be.dragOverNodeKey,cn=Be.dropPosition,gn=Be.keyEntities;return{expandedKeys:mt||[],selectedKeys:ct||[],loadedKeys:tt||[],loadingKeys:It||[],checkedKeys:an||[],halfCheckedKeys:en||[],dragOverNodeKey:Bt,dropPosition:cn,keyEntities:gn}},T.setExpandedKeys=function(Be){var mt=T.state,ct=mt.treeData,tt=mt.fieldNames,It=(0,Xe.oH)(ct,Be,tt);T.setUncontrolledState({expandedKeys:Be,flattenNodes:It},!0)},T.onNodeExpand=function(Be,mt){var ct=T.state.expandedKeys,tt=T.state,It=tt.listChanging,an=tt.fieldNames,en=T.props,Bt=en.onExpand,cn=en.loadData,gn=mt.expanded,Qe=mt[an.key];if(!It){var Ut=ct.indexOf(Qe),tn=!gn;if((0,Te.ZP)(gn&&Ut!==-1||!gn&&Ut===-1,"Expand state not sync with index check"),tn?ct=(0,On.L0)(ct,Qe):ct=(0,On._5)(ct,Qe),T.setExpandedKeys(ct),Bt==null||Bt(ct,{node:mt,expanded:tn,nativeEvent:Be.nativeEvent}),tn&&cn){var nn=T.onNodeLoad(mt);nn&&nn.then(function(){var He=(0,Xe.oH)(T.state.treeData,ct,an);T.setUncontrolledState({flattenNodes:He})}).catch(function(){var He=T.state.expandedKeys,Bn=(0,On._5)(He,Qe);T.setExpandedKeys(Bn)})}}},T.onListChangeStart=function(){T.setUncontrolledState({listChanging:!0})},T.onListChangeEnd=function(){setTimeout(function(){T.setUncontrolledState({listChanging:!1})})},T.onActiveChange=function(Be){var mt=T.state.activeKey,ct=T.props.onActiveChange;mt!==Be&&(T.setState({activeKey:Be}),Be!==null&&T.scrollTo({key:Be}),ct==null||ct(Be))},T.getActiveItem=function(){var Be=T.state,mt=Be.activeKey,ct=Be.flattenNodes;return mt===null?null:ct.find(function(tt){var It=tt.key;return It===mt})||null},T.offsetActiveKey=function(Be){var mt=T.state,ct=mt.flattenNodes,tt=mt.activeKey,It=ct.findIndex(function(Bt){var cn=Bt.key;return cn===tt});It===-1&&Be<0&&(It=ct.length),It=(It+Be+ct.length)%ct.length;var an=ct[It];if(an){var en=an.key;T.onActiveChange(en)}else T.onActiveChange(null)},T.onKeyDown=function(Be){var mt=T.state,ct=mt.activeKey,tt=mt.expandedKeys,It=mt.checkedKeys,an=mt.fieldNames,en=T.props,Bt=en.onKeyDown,cn=en.checkable,gn=en.selectable;switch(Be.which){case Je.Z.UP:{T.offsetActiveKey(-1),Be.preventDefault();break}case Je.Z.DOWN:{T.offsetActiveKey(1),Be.preventDefault();break}}var Qe=T.getActiveItem();if(Qe&&Qe.data){var Ut=T.getTreeNodeRequiredProps(),tn=Qe.data.isLeaf===!1||!!(Qe.data[an.children]||[]).length,nn=(0,Xe.F)((0,B.Z)((0,B.Z)({},(0,Xe.H8)(ct,Ut)),{},{data:Qe.data,active:!0}));switch(Be.which){case Je.Z.LEFT:{tn&&tt.includes(ct)?T.onNodeExpand({},nn):Qe.parent&&T.onActiveChange(Qe.parent.key),Be.preventDefault();break}case Je.Z.RIGHT:{tn&&!tt.includes(ct)?T.onNodeExpand({},nn):Qe.children&&Qe.children.length&&T.onActiveChange(Qe.children[0].key),Be.preventDefault();break}case Je.Z.ENTER:case Je.Z.SPACE:{cn&&!nn.disabled&&nn.checkable!==!1&&!nn.disableCheckbox?T.onNodeCheck({},nn,!It.includes(ct)):!cn&&gn&&!nn.disabled&&nn.selectable!==!1&&T.onNodeSelect({},nn);break}}}Bt==null||Bt(Be)},T.setUncontrolledState=function(Be){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!T.destroyed){var tt=!1,It=!0,an={};Object.keys(Be).forEach(function(en){if(en in T.props){It=!1;return}tt=!0,an[en]=Be[en]}),tt&&(!mt||It)&&T.setState((0,B.Z)((0,B.Z)({},an),ct))}},T.scrollTo=function(Be){T.listRef.current.scrollTo(Be)},T}return(0,M.Z)(X,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _e=this.props.activeKey;_e!==void 0&&_e!==this.state.activeKey&&(this.setState({activeKey:_e}),_e!==null&&this.scrollTo({key:_e}))}},{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 _e,kt=this.state,Ue=kt.focused,Be=kt.flattenNodes,mt=kt.keyEntities,ct=kt.draggingNodeKey,tt=kt.activeKey,It=kt.dropLevelOffset,an=kt.dropContainerKey,en=kt.dropTargetKey,Bt=kt.dropPosition,cn=kt.dragOverNodeKey,gn=kt.indent,Qe=this.props,Ut=Qe.prefixCls,tn=Qe.className,nn=Qe.style,He=Qe.showLine,Bn=Qe.focusable,kn=Qe.tabIndex,Kn=kn===void 0?0:kn,Ti=Qe.selectable,hi=Qe.showIcon,dn=Qe.icon,sn=Qe.switcherIcon,gr=Qe.draggable,dr=Qe.checkable,qn=Qe.checkStrictly,Rr=Qe.disabled,tr=Qe.motion,U=Qe.loadData,br=Qe.filterTreeNode,fr=Qe.height,Fr=Qe.itemHeight,jr=Qe.virtual,so=Qe.titleRender,Ar=Qe.dropIndicatorRender,to=Qe.onContextMenu,vr=Qe.onScroll,Ji=Qe.direction,di=Qe.rootClassName,ft=Qe.rootStyle,Un=(0,Oe.Z)(this.props,{aria:!0,data:!0}),Wn;return gr&&((0,O.Z)(gr)==="object"?Wn=gr:typeof gr=="function"?Wn={nodeDraggable:gr}:Wn={}),Ae.createElement(Re.k.Provider,{value:{prefixCls:Ut,selectable:Ti,showIcon:hi,icon:dn,switcherIcon:sn,draggable:Wn,draggingNodeKey:ct,checkable:dr,checkStrictly:qn,disabled:Rr,keyEntities:mt,dropLevelOffset:It,dropContainerKey:an,dropTargetKey:en,dropPosition:Bt,dragOverNodeKey:cn,indent:gn,direction:Ji,dropIndicatorRender:Ar,loadData:U,filterTreeNode:br,titleRender:so,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}},Ae.createElement("div",{role:"tree",className:we()(Ut,tn,di,(_e={},(0,I.Z)(_e,"".concat(Ut,"-show-line"),He),(0,I.Z)(_e,"".concat(Ut,"-focused"),Ue),(0,I.Z)(_e,"".concat(Ut,"-active-focused"),tt!==null),_e)),style:ft},Ae.createElement(ai,(0,v.Z)({ref:this.listRef,prefixCls:Ut,style:nn,data:Be,disabled:Rr,selectable:Ti,checkable:!!dr,motion:tr,dragging:ct!==null,height:fr,itemHeight:Fr,virtual:jr,focusable:Bn,focused:Ue,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:to,onScroll:vr},this.getTreeNodeRequiredProps(),Un))))}}],[{key:"getDerivedStateFromProps",value:function(_e,kt){var Ue=kt.prevProps,Be={prevProps:_e};function mt(Bn){return!Ue&&Bn in _e||Ue&&Ue[Bn]!==_e[Bn]}var ct,tt=kt.fieldNames;if(mt("fieldNames")&&(tt=(0,Xe.w$)(_e.fieldNames),Be.fieldNames=tt),mt("treeData")?ct=_e.treeData:mt("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=(0,Xe.zn)(_e.children)),ct){Be.treeData=ct;var It=(0,Xe.I8)(ct,{fieldNames:tt});Be.keyEntities=(0,B.Z)((0,I.Z)({},qe,le),It.keyEntities)}var an=Be.keyEntities||kt.keyEntities;if(mt("expandedKeys")||Ue&&mt("autoExpandParent"))Be.expandedKeys=_e.autoExpandParent||!Ue&&_e.defaultExpandParent?(0,On.r7)(_e.expandedKeys,an):_e.expandedKeys;else if(!Ue&&_e.defaultExpandAll){var en=(0,B.Z)({},an);delete en[qe],Be.expandedKeys=Object.keys(en).map(function(Bn){return en[Bn].key})}else!Ue&&_e.defaultExpandedKeys&&(Be.expandedKeys=_e.autoExpandParent||_e.defaultExpandParent?(0,On.r7)(_e.defaultExpandedKeys,an):_e.defaultExpandedKeys);if(Be.expandedKeys||delete Be.expandedKeys,ct||Be.expandedKeys){var Bt=(0,Xe.oH)(ct||kt.treeData,Be.expandedKeys||kt.expandedKeys,tt);Be.flattenNodes=Bt}if(_e.selectable&&(mt("selectedKeys")?Be.selectedKeys=(0,On.BT)(_e.selectedKeys,_e):!Ue&&_e.defaultSelectedKeys&&(Be.selectedKeys=(0,On.BT)(_e.defaultSelectedKeys,_e))),_e.checkable){var cn;if(mt("checkedKeys")?cn=(0,On.E6)(_e.checkedKeys)||{}:!Ue&&_e.defaultCheckedKeys?cn=(0,On.E6)(_e.defaultCheckedKeys)||{}:ct&&(cn=(0,On.E6)(_e.checkedKeys)||{checkedKeys:kt.checkedKeys,halfCheckedKeys:kt.halfCheckedKeys}),cn){var gn=cn,Qe=gn.checkedKeys,Ut=Qe===void 0?[]:Qe,tn=gn.halfCheckedKeys,nn=tn===void 0?[]:tn;if(!_e.checkStrictly){var He=(0,ni.S)(Ut,!0,an);Ut=He.checkedKeys,nn=He.halfCheckedKeys}Be.checkedKeys=Ut,Be.halfCheckedKeys=nn}}return mt("loadedKeys")&&(Be.loadedKeys=_e.loadedKeys),Be}}]),X}(Ae.Component);Mn.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:de,allowDrop:function(){return!0},expandAction:!1},Mn.TreeNode=Ie.Z;var xe=Mn,P=xe},35654:function(Q,C,h){"use strict";h.d(C,{BT:function(){return Ae},E6:function(){return pe},L0:function(){return te},OM:function(){return Te},_5:function(){return ue},r7:function(){return be},wA:function(){return we},yx:function(){return Me}});var v=h(26407),I=h(39559),O=h(48736),B=h(59301),G=h(39417),F=h(67841),M=h(71430),he=null;function ue(me,ke){if(!me)return[];var ee=me.slice(),Ne=ee.indexOf(ke);return Ne>=0&&ee.splice(Ne,1),ee}function te(me,ke){var ee=(me||[]).slice();return ee.indexOf(ke)===-1&&ee.push(ke),ee}function Me(me){return me.split("-")}function we(me,ke){var ee=[],Ne=(0,F.Z)(ke,me);function Ie(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Pe.forEach(function(Xe){var Ye=Xe.key,ie=Xe.children;ee.push(Ye),Ie(ie)})}return Ie(Ne.children),ee}function Je(me){if(me.parent){var ke=Me(me.pos);return Number(ke[ke.length-1])===me.parent.children.length-1}return!1}function Oe(me){var ke=Me(me.pos);return Number(ke[ke.length-1])===0}function Te(me,ke,ee,Ne,Ie,Pe,Xe,Ye,ie,lt){var We,Pt=me.clientX,xt=me.clientY,Tt=me.target.getBoundingClientRect(),Et=Tt.top,wn=Tt.height,qe=(lt==="rtl"?-1:1)*(((Ie==null?void 0:Ie.x)||0)-Pt),ae=(qe-12)/Ne,le=(0,F.Z)(Ye,ee.props.eventKey);if(xt<Et+wn/2){var $t=Xe.findIndex(function(P){return P.key===le.key}),Vt=$t<=0?0:$t-1,St=Xe[Vt].key;le=(0,F.Z)(Ye,St)}var un=le.key,Ft=le,ai=le.key,On=0,ni=0;if(!ie.includes(un))for(var Jn=0;Jn<ae&&Je(le);Jn+=1)le=le.parent,ni+=1;var In=ke.props.data,Mn=le.node,xe=!0;return Oe(le)&&le.level===0&&xt<Et+wn/2&&Pe({dragNode:In,dropNode:Mn,dropPosition:-1})&&le.key===ee.props.eventKey?On=-1:(Ft.children||[]).length&&ie.includes(ai)?Pe({dragNode:In,dropNode:Mn,dropPosition:0})?On=0:xe=!1:ni===0?ae>-1.5?Pe({dragNode:In,dropNode:Mn,dropPosition:1})?On=1:xe=!1:Pe({dragNode:In,dropNode:Mn,dropPosition:0})?On=0:Pe({dragNode:In,dropNode:Mn,dropPosition:1})?On=1:xe=!1:Pe({dragNode:In,dropNode:Mn,dropPosition:1})?On=1:xe=!1,{dropPosition:On,dropLevelOffset:ni,dropTargetKey:le.key,dropTargetPos:le.pos,dragOverNodeKey:ai,dropContainerKey:On===0?null:((We=le.parent)===null||We===void 0?void 0:We.key)||null,dropAllowed:xe}}function Ae(me,ke){if(me){var ee=ke.multiple;return ee?me.slice():me.length?[me[0]]:me}}var Re=function(ke){return ke};function de(me,ke){if(!me)return[];var ee=ke||{},Ne=ee.processProps,Ie=Ne===void 0?Re:Ne,Pe=Array.isArray(me)?me:[me];return Pe.map(function(Xe){var Ye=Xe.children,ie=_objectWithoutProperties(Xe,he),lt=de(Ye,ke);return React.createElement(TreeNode,_extends({key:ie.key},Ie(ie)),lt)})}function pe(me){if(!me)return null;var ke;if(Array.isArray(me))ke={checkedKeys:me,halfCheckedKeys:void 0};else if((0,I.Z)(me)==="object")ke={checkedKeys:me.checked||void 0,halfCheckedKeys:me.halfChecked||void 0};else return(0,O.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function be(me,ke){var ee=new Set;function Ne(Ie){if(!ee.has(Ie)){var Pe=(0,F.Z)(ke,Ie);if(Pe){ee.add(Ie);var Xe=Pe.parent,Ye=Pe.node;Ye.disabled||Xe&&Ne(Xe.key)}}}return(me||[]).forEach(function(Ie){Ne(Ie)}),(0,v.Z)(ee)}},90782:function(Q,C,h){"use strict";h.d(C,{S:function(){return M}});var v=h(48736),I=h(67841);function O(he,ue){var te=new Set;return he.forEach(function(Me){ue.has(Me)||te.add(Me)}),te}function B(he){var ue=he||{},te=ue.disabled,Me=ue.disableCheckbox,we=ue.checkable;return!!(te||Me)||we===!1}function G(he,ue,te,Me){for(var we=new Set(he),Je=new Set,Oe=0;Oe<=te;Oe+=1){var Te=ue.get(Oe)||new Set;Te.forEach(function(pe){var be=pe.key,me=pe.node,ke=pe.children,ee=ke===void 0?[]:ke;we.has(be)&&!Me(me)&&ee.filter(function(Ne){return!Me(Ne.node)}).forEach(function(Ne){we.add(Ne.key)})})}for(var Ae=new Set,Re=te;Re>=0;Re-=1){var de=ue.get(Re)||new Set;de.forEach(function(pe){var be=pe.parent,me=pe.node;if(!(Me(me)||!pe.parent||Ae.has(pe.parent.key))){if(Me(pe.parent.node)){Ae.add(be.key);return}var ke=!0,ee=!1;(be.children||[]).filter(function(Ne){return!Me(Ne.node)}).forEach(function(Ne){var Ie=Ne.key,Pe=we.has(Ie);ke&&!Pe&&(ke=!1),!ee&&(Pe||Je.has(Ie))&&(ee=!0)}),ke&&we.add(be.key),ee&&Je.add(be.key),Ae.add(be.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(O(Je,we))}}function F(he,ue,te,Me,we){for(var Je=new Set(he),Oe=new Set(ue),Te=0;Te<=Me;Te+=1){var Ae=te.get(Te)||new Set;Ae.forEach(function(be){var me=be.key,ke=be.node,ee=be.children,Ne=ee===void 0?[]:ee;!Je.has(me)&&!Oe.has(me)&&!we(ke)&&Ne.filter(function(Ie){return!we(Ie.node)}).forEach(function(Ie){Je.delete(Ie.key)})})}Oe=new Set;for(var Re=new Set,de=Me;de>=0;de-=1){var pe=te.get(de)||new Set;pe.forEach(function(be){var me=be.parent,ke=be.node;if(!(we(ke)||!be.parent||Re.has(be.parent.key))){if(we(be.parent.node)){Re.add(me.key);return}var ee=!0,Ne=!1;(me.children||[]).filter(function(Ie){return!we(Ie.node)}).forEach(function(Ie){var Pe=Ie.key,Xe=Je.has(Pe);ee&&!Xe&&(ee=!1),!Ne&&(Xe||Oe.has(Pe))&&(Ne=!0)}),ee||Je.delete(me.key),Ne&&Oe.add(me.key),Re.add(me.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(O(Oe,Je))}}function M(he,ue,te,Me){var we=[],Je;Me?Je=Me:Je=B;var Oe=new Set(he.filter(function(de){var pe=!!(0,I.Z)(te,de);return pe||we.push(de),pe})),Te=new Map,Ae=0;Object.keys(te).forEach(function(de){var pe=te[de],be=pe.level,me=Te.get(be);me||(me=new Set,Te.set(be,me)),me.add(pe),Ae=Math.max(Ae,be)}),(0,v.ZP)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(de){return"'".concat(de,"'")}).join(", ")));var Re;return ue===!0?Re=G(Oe,Te,Ae,Je):Re=F(Oe,ue.halfCheckedKeys,Te,Ae,Je),Re}},67841:function(Q,C,h){"use strict";h.d(C,{Z:function(){return v}});function v(I,O){return I[O]}},71430:function(Q,C,h){"use strict";h.d(C,{F:function(){return be},H8:function(){return pe},I8:function(){return de},km:function(){return we},oH:function(){return Ae},w$:function(){return Je},zn:function(){return Te}});var v=h(39559),I=h(26407),O=h(33708),B=h(37061),G=h(11592),F=h(2738),M=h(48736),he=h(67841),ue=["children"];function te(me,ke){return"".concat(me,"-").concat(ke)}function Me(me){return me&&me.type&&me.type.isTreeNode}function we(me,ke){return me!=null?me:ke}function Je(me){var ke=me||{},ee=ke.title,Ne=ke._title,Ie=ke.key,Pe=ke.children,Xe=ee||"title";return{title:Xe,_title:Ne||[Xe],key:Ie||"key",children:Pe||"children"}}function Oe(me,ke){var ee=new Map;function Ne(Ie){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ie||[]).forEach(function(Xe){var Ye=Xe[ke.key],ie=Xe[ke.children];warning(Ye!=null,"Tree node must have a certain key: [".concat(Pe).concat(Ye,"]"));var lt=String(Ye);warning(!ee.has(lt)||Ye===null||Ye===void 0,"Same 'key' exist in the Tree: ".concat(lt)),ee.set(lt,!0),Ne(ie,"".concat(Pe).concat(lt," > "))})}Ne(me)}function Te(me){function ke(ee){var Ne=(0,G.Z)(ee);return Ne.map(function(Ie){if(!Me(Ie))return(0,M.ZP)(!Ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Pe=Ie.key,Xe=Ie.props,Ye=Xe.children,ie=(0,B.Z)(Xe,ue),lt=(0,O.Z)({key:Pe},ie),We=ke(Ye);return We.length&&(lt.children=We),lt}).filter(function(Ie){return Ie})}return ke(me)}function Ae(me,ke,ee){var Ne=Je(ee),Ie=Ne._title,Pe=Ne.key,Xe=Ne.children,Ye=new Set(ke===!0?[]:ke),ie=[];function lt(We){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return We.map(function(xt,Tt){for(var Et=te(Pt?Pt.pos:"0",Tt),wn=we(xt[Pe],Et),qe,ae=0;ae<Ie.length;ae+=1){var le=Ie[ae];if(xt[le]!==void 0){qe=xt[le];break}}var $t=(0,O.Z)((0,O.Z)({},(0,F.Z)(xt,[].concat((0,I.Z)(Ie),[Pe,Xe]))),{},{title:qe,key:wn,parent:Pt,pos:Et,children:null,data:xt,isStart:[].concat((0,I.Z)(Pt?Pt.isStart:[]),[Tt===0]),isEnd:[].concat((0,I.Z)(Pt?Pt.isEnd:[]),[Tt===We.length-1])});return ie.push($t),ke===!0||Ye.has(wn)?$t.children=lt(xt[Xe]||[],$t):$t.children=[],$t})}return lt(me),ie}function Re(me,ke,ee){var Ne={};(0,v.Z)(ee)==="object"?Ne=ee:Ne={externalGetKey:ee},Ne=Ne||{};var Ie=Ne,Pe=Ie.childrenPropName,Xe=Ie.externalGetKey,Ye=Ie.fieldNames,ie=Je(Ye),lt=ie.key,We=ie.children,Pt=Pe||We,xt;Xe?typeof Xe=="string"?xt=function(wn){return wn[Xe]}:typeof Xe=="function"&&(xt=function(wn){return Xe(wn)}):xt=function(wn,qe){return we(wn[lt],qe)};function Tt(Et,wn,qe,ae){var le=Et?Et[Pt]:me,$t=Et?te(qe.pos,wn):"0",Vt=Et?[].concat((0,I.Z)(ae),[Et]):[];if(Et){var St=xt(Et,$t),un={node:Et,index:wn,pos:$t,key:St,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:Vt};ke(un)}le&&le.forEach(function(Ft,ai){Tt(Ft,ai,{node:Et,pos:$t,level:qe?qe.level+1:-1},Vt)})}Tt(null)}function de(me){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=ke.initWrapper,Ne=ke.processEntity,Ie=ke.onProcessFinished,Pe=ke.externalGetKey,Xe=ke.childrenPropName,Ye=ke.fieldNames,ie=arguments.length>2?arguments[2]:void 0,lt=Pe||ie,We={},Pt={},xt={posEntities:We,keyEntities:Pt};return ee&&(xt=ee(xt)||xt),Re(me,function(Tt){var Et=Tt.node,wn=Tt.index,qe=Tt.pos,ae=Tt.key,le=Tt.parentPos,$t=Tt.level,Vt=Tt.nodes,St={node:Et,nodes:Vt,index:wn,key:ae,pos:qe,level:$t},un=we(ae,qe);We[qe]=St,Pt[un]=St,St.parent=We[le],St.parent&&(St.parent.children=St.parent.children||[],St.parent.children.push(St)),Ne&&Ne(St,xt)},{externalGetKey:lt,childrenPropName:Xe,fieldNames:Ye}),Ie&&Ie(xt),xt}function pe(me,ke){var ee=ke.expandedKeys,Ne=ke.selectedKeys,Ie=ke.loadedKeys,Pe=ke.loadingKeys,Xe=ke.checkedKeys,Ye=ke.halfCheckedKeys,ie=ke.dragOverNodeKey,lt=ke.dropPosition,We=ke.keyEntities,Pt=(0,he.Z)(We,me),xt={eventKey:me,expanded:ee.indexOf(me)!==-1,selected:Ne.indexOf(me)!==-1,loaded:Ie.indexOf(me)!==-1,loading:Pe.indexOf(me)!==-1,checked:Xe.indexOf(me)!==-1,halfChecked:Ye.indexOf(me)!==-1,pos:String(Pt?Pt.pos:""),dragOver:ie===me&<===0,dragOverGapTop:ie===me&<===-1,dragOverGapBottom:ie===me&<===1};return xt}function be(me){var ke=me.data,ee=me.expanded,Ne=me.selected,Ie=me.checked,Pe=me.loaded,Xe=me.loading,Ye=me.halfChecked,ie=me.dragOver,lt=me.dragOverGapTop,We=me.dragOverGapBottom,Pt=me.pos,xt=me.active,Tt=me.eventKey,Et=(0,O.Z)((0,O.Z)({},ke),{},{expanded:ee,selected:Ne,checked:Ie,loaded:Pe,loading:Xe,halfChecked:Ye,dragOver:ie,dragOverGapTop:lt,dragOverGapBottom:We,pos:Pt,active:xt,key:Tt});return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return(0,M.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),me}}),Et}},8224:function(Q,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(4676);function I(O,B,G,F){var M=v.unstable_batchedUpdates?function(ue){v.unstable_batchedUpdates(G,ue)}:G;return O!=null&&O.addEventListener&&O.addEventListener(B,M,F),{remove:function(){O!=null&&O.removeEventListener&&O.removeEventListener(B,M,F)}}}},55468:function(Q,C,h){"use strict";h.d(C,{g1:function(){return Me},os:function(){return Je}});var v=/margin|padding|width|height|max|min|offset/,I={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function B(Oe){return Oe.nodeType===1?Oe.ownerDocument.defaultView.getComputedStyle(Oe,null):{}}function G(Oe,Te,Ae){if(Te=Te.toLowerCase(),Ae==="auto"){if(Te==="height")return Oe.offsetHeight;if(Te==="width")return Oe.offsetWidth}return Te in I||(I[Te]=v.test(Te)),I[Te]?parseFloat(Ae)||0:Ae}function F(Oe,Te){var Ae=arguments.length,Re=B(Oe);return Te=O[Te]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":Te,Ae===1?Re:G(Oe,Te,Re[Te]||Oe.style[Te])}function M(Oe,Te,Ae){var Re=arguments.length;if(Te=O[Te]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":Te,Re===3)return typeof Ae=="number"&&v.test(Te)&&(Ae="".concat(Ae,"px")),Oe.style[Te]=Ae,Ae;for(var de in Te)Te.hasOwnProperty(de)&&M(Oe,de,Te[de]);return B(Oe)}function he(Oe){return Oe===document.body?document.documentElement.clientWidth:Oe.offsetWidth}function ue(Oe){return Oe===document.body?window.innerHeight||document.documentElement.clientHeight:Oe.offsetHeight}function te(){var Oe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Oe,height:Te}}function Me(){var Oe=document.documentElement.clientWidth,Te=window.innerHeight||document.documentElement.clientHeight;return{width:Oe,height:Te}}function we(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Je(Oe){var Te=Oe.getBoundingClientRect(),Ae=document.documentElement;return{left:Te.left+(window.pageXOffset||Ae.scrollLeft)-(Ae.clientLeft||document.body.clientLeft||0),top:Te.top+(window.pageYOffset||Ae.scrollTop)-(Ae.clientTop||document.body.clientTop||0)}}},24514:function(Q,C,h){"use strict";h.d(C,{G:function(){return B}});var v=h(47273),I=function(F){if((0,v.Z)()&&window.document.documentElement){var M=Array.isArray(F)?F:[F],he=window.document.documentElement;return M.some(function(ue){return ue in he.style})}return!1},O=function(F,M){if(!I(F))return!1;var he=document.createElement("div"),ue=he.style[F];return he.style[F]=M,he.style[F]!==ue};function B(G,F){return!Array.isArray(G)&&F!==void 0?O(G,F):I(G)}},57149:function(Q,C,h){"use strict";h.d(C,{Z:function(){return xe}});var v=h(92413),I=h(39559),O=h(33708),B=h(400),G=h(33606),F=h(37061),M=h(92310),he=h.n(M),ue=h(29301),te=h(70425),Me=h(34280),we=h(59301),Je=h(4676),Oe=we.forwardRef(function(P,k){var j=P.height,X=P.offsetY,T=P.offsetX,_e=P.children,kt=P.prefixCls,Ue=P.onInnerResize,Be=P.innerProps,mt=P.rtl,ct=P.extra,tt={},It={display:"flex",flexDirection:"column"};return X!==void 0&&(tt={height:j,position:"relative",overflow:"hidden"},It=(0,O.Z)((0,O.Z)({},It),{},(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({transform:"translateY(".concat(X,"px)")},mt?"marginRight":"marginLeft",-T),"position","absolute"),"left",0),"right",0),"top",0))),we.createElement("div",{style:tt},we.createElement(ue.Z,{onResize:function(en){var Bt=en.offsetHeight;Bt&&Ue&&Ue()}},we.createElement("div",(0,v.Z)({style:It,className:he()((0,B.Z)({},"".concat(kt,"-holder-inner"),kt)),ref:k},Be),_e,ct)))});Oe.displayName="Filler";var Te=Oe;function Ae(P){var k=P.children,j=P.setRef,X=we.useCallback(function(T){j(T)},[]);return we.cloneElement(k,{ref:X})}function Re(P,k,j,X,T,_e,kt,Ue){var Be=Ue.getKey;return P.slice(k,j+1).map(function(mt,ct){var tt=k+ct,It=kt(mt,tt,{style:{width:X},offsetX:T}),an=Be(mt);return we.createElement(Ae,{key:an,setRef:function(Bt){return _e(mt,Bt)}},It)})}function de(P,k,j,X){var T=j-P,_e=k-j,kt=Math.min(T,_e)*2;if(X<=kt){var Ue=Math.floor(X/2);return X%2?j+Ue+1:j-Ue}return T>_e?j-(X-_e):j+(X-T)}function pe(P,k,j){var X=P.length,T=k.length,_e,kt;if(X===0&&T===0)return null;X<T?(_e=P,kt=k):(_e=k,kt=P);var Ue={__EMPTY_ITEM__:!0};function Be(en){return en!==void 0?j(en):Ue}for(var mt=null,ct=Math.abs(X-T)!==1,tt=0;tt<kt.length;tt+=1){var It=Be(_e[tt]),an=Be(kt[tt]);if(It!==an){mt=tt,ct=ct||It!==Be(kt[tt+1]);break}}return mt===null?null:{index:mt,multiple:ct}}function be(P,k,j){var X=we.useState(P),T=(0,G.Z)(X,2),_e=T[0],kt=T[1],Ue=we.useState(null),Be=(0,G.Z)(Ue,2),mt=Be[0],ct=Be[1];return we.useEffect(function(){var tt=pe(_e||[],P||[],k);(tt==null?void 0:tt.index)!==void 0&&(j==null||j(tt.index),ct(P[tt.index])),kt(P)},[P]),[mt]}var me=h(16089),ke=(typeof navigator=="undefined"?"undefined":(0,I.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ee=ke,Ne=function(P,k,j,X){var T=(0,we.useRef)(!1),_e=(0,we.useRef)(null);function kt(){clearTimeout(_e.current),T.current=!0,_e.current=setTimeout(function(){T.current=!1},50)}var Ue=(0,we.useRef)({top:P,bottom:k,left:j,right:X});return Ue.current.top=P,Ue.current.bottom=k,Ue.current.left=j,Ue.current.right=X,function(Be,mt){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,tt=Be?mt<0&&Ue.current.left||mt>0&&Ue.current.right:mt<0&&Ue.current.top||mt>0&&Ue.current.bottom;return ct&&tt?(clearTimeout(_e.current),T.current=!1):(!tt||T.current)&&kt(),!T.current&&tt}};function Ie(P,k,j,X,T,_e,kt){var Ue=(0,we.useRef)(0),Be=(0,we.useRef)(null),mt=(0,we.useRef)(null),ct=(0,we.useRef)(!1),tt=Ne(k,j,X,T);function It(Qe,Ut){if(me.Z.cancel(Be.current),!tt(!1,Ut)){var tn=Qe;if(!tn._virtualHandled)tn._virtualHandled=!0;else return;Ue.current+=Ut,mt.current=Ut,ee||tn.preventDefault(),Be.current=(0,me.Z)(function(){var nn=ct.current?10:1;kt(Ue.current*nn,!1),Ue.current=0})}}function an(Qe,Ut){kt(Ut,!0),ee||Qe.preventDefault()}var en=(0,we.useRef)(null),Bt=(0,we.useRef)(null);function cn(Qe){if(P){me.Z.cancel(Bt.current),Bt.current=(0,me.Z)(function(){en.current=null},2);var Ut=Qe.deltaX,tn=Qe.deltaY,nn=Qe.shiftKey,He=Ut,Bn=tn;(en.current==="sx"||!en.current&&nn&&tn&&!Ut)&&(He=tn,Bn=0,en.current="sx");var kn=Math.abs(He),Kn=Math.abs(Bn);en.current===null&&(en.current=_e&&kn>Kn?"x":"y"),en.current==="y"?It(Qe,Bn):an(Qe,He)}}function gn(Qe){P&&(ct.current=Qe.detail===mt.current)}return[cn,gn]}function Pe(P,k,j,X){var T=we.useMemo(function(){return[new Map,[]]},[P,j.id,X]),_e=(0,G.Z)(T,2),kt=_e[0],Ue=_e[1],Be=function(ct){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,It=kt.get(ct),an=kt.get(tt);if(It===void 0||an===void 0)for(var en=P.length,Bt=Ue.length;Bt<en;Bt+=1){var cn,gn=P[Bt],Qe=k(gn);kt.set(Qe,Bt);var Ut=(cn=j.get(Qe))!==null&&cn!==void 0?cn:X;if(Ue[Bt]=(Ue[Bt-1]||0)+Ut,Qe===ct&&(It=Bt),Qe===tt&&(an=Bt),It!==void 0&&an!==void 0)break}return{top:Ue[It-1]||0,bottom:Ue[an]}};return Be}var Xe=h(76846),Ye=h(6909),ie=h(4771),lt=function(){function P(){(0,Ye.Z)(this,P),(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,ie.Z)(P,[{key:"set",value:function(j,X){this.maps[j]=X,this.id+=1,this.diffKeys.add(j)}},{key:"get",value:function(j){return this.maps[j]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),P}(),We=lt;function Pt(P){var k=parseFloat(P);return isNaN(k)?0:k}function xt(P,k,j){var X=we.useState(0),T=(0,G.Z)(X,2),_e=T[0],kt=T[1],Ue=(0,we.useRef)(new Map),Be=(0,we.useRef)(new We),mt=(0,we.useRef)(0);function ct(){mt.current+=1}function tt(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ct();var en=function(){var gn=!1;Ue.current.forEach(function(Qe,Ut){if(Qe&&Qe.offsetParent){var tn=(0,Xe.ZP)(Qe),nn=tn.offsetHeight,He=getComputedStyle(tn),Bn=He.marginTop,kn=He.marginBottom,Kn=Pt(Bn),Ti=Pt(kn),hi=nn+Kn+Ti;Be.current.get(Ut)!==hi&&(Be.current.set(Ut,hi),gn=!0)}}),gn&&kt(function(Qe){return Qe+1})};if(an)en();else{mt.current+=1;var Bt=mt.current;Promise.resolve().then(function(){Bt===mt.current&&en()})}}function It(an,en){var Bt=P(an),cn=Ue.current.get(Bt);en?(Ue.current.set(Bt,en),tt()):Ue.current.delete(Bt),!cn!=!en&&(en?k==null||k(an):j==null||j(an))}return(0,we.useEffect)(function(){return ct},[]),[It,tt,Be.current,_e]}var Tt=14/15;function Et(P,k,j){var X=(0,we.useRef)(!1),T=(0,we.useRef)(0),_e=(0,we.useRef)(0),kt=(0,we.useRef)(null),Ue=(0,we.useRef)(null),Be,mt=function(an){if(X.current){var en=Math.ceil(an.touches[0].pageX),Bt=Math.ceil(an.touches[0].pageY),cn=T.current-en,gn=_e.current-Bt,Qe=Math.abs(cn)>Math.abs(gn);Qe?T.current=en:_e.current=Bt;var Ut=j(Qe,Qe?cn:gn,!1,an);Ut&&an.preventDefault(),clearInterval(Ue.current),Ut&&(Ue.current=setInterval(function(){Qe?cn*=Tt:gn*=Tt;var tn=Math.floor(Qe?cn:gn);(!j(Qe,tn,!0)||Math.abs(tn)<=.1)&&clearInterval(Ue.current)},16))}},ct=function(){X.current=!1,Be()},tt=function(an){Be(),an.touches.length===1&&!X.current&&(X.current=!0,T.current=Math.ceil(an.touches[0].pageX),_e.current=Math.ceil(an.touches[0].pageY),kt.current=an.target,kt.current.addEventListener("touchmove",mt,{passive:!1}),kt.current.addEventListener("touchend",ct,{passive:!0}))};Be=function(){kt.current&&(kt.current.removeEventListener("touchmove",mt),kt.current.removeEventListener("touchend",ct))},(0,Me.Z)(function(){return P&&k.current.addEventListener("touchstart",tt,{passive:!0}),function(){var It;(It=k.current)===null||It===void 0||It.removeEventListener("touchstart",tt),Be(),clearInterval(Ue.current)}},[P])}function wn(P){return Math.floor(Math.pow(P,.5))}function qe(P,k){var j="touches"in P?P.touches[0]:P;return j[k?"pageX":"pageY"]-window[k?"scrollX":"scrollY"]}function ae(P,k,j){we.useEffect(function(){var X=k.current;if(P&&X){var T=!1,_e,kt,Ue=function(){me.Z.cancel(_e)},Be=function It(){Ue(),_e=(0,me.Z)(function(){j(kt),It()})},mt=function(an){if(!an.target.draggable){var en=an;en._virtualHandled||(en._virtualHandled=!0,T=!0)}},ct=function(){T=!1,Ue()},tt=function(an){if(T){var en=qe(an,!1),Bt=X.getBoundingClientRect(),cn=Bt.top,gn=Bt.bottom;if(en<=cn){var Qe=cn-en;kt=-wn(Qe),Be()}else if(en>=gn){var Ut=en-gn;kt=wn(Ut),Be()}else Ue()}};return X.addEventListener("mousedown",mt),X.ownerDocument.addEventListener("mouseup",ct),X.ownerDocument.addEventListener("mousemove",tt),function(){X.removeEventListener("mousedown",mt),X.ownerDocument.removeEventListener("mouseup",ct),X.ownerDocument.removeEventListener("mousemove",tt),Ue()}}},[P])}var le=10;function $t(P,k,j,X,T,_e,kt,Ue){var Be=we.useRef(),mt=we.useState(null),ct=(0,G.Z)(mt,2),tt=ct[0],It=ct[1];return(0,Me.Z)(function(){if(tt&&tt.times<le){if(!P.current){It(function(U){return(0,O.Z)({},U)});return}_e();var an=tt.targetAlign,en=tt.originAlign,Bt=tt.index,cn=tt.offset,gn=P.current.clientHeight,Qe=!1,Ut=an,tn=null;if(gn){for(var nn=an||en,He=0,Bn=0,kn=0,Kn=Math.min(k.length-1,Bt),Ti=0;Ti<=Kn;Ti+=1){var hi=T(k[Ti]);Bn=He;var dn=j.get(hi);kn=Bn+(dn===void 0?X:dn),He=kn}for(var sn=nn==="top"?cn:gn-cn,gr=Kn;gr>=0;gr-=1){var dr=T(k[gr]),qn=j.get(dr);if(qn===void 0){Qe=!0;break}if(sn-=qn,sn<=0)break}switch(nn){case"top":tn=Bn-cn;break;case"bottom":tn=kn-gn+cn;break;default:{var Rr=P.current.scrollTop,tr=Rr+gn;Bn<Rr?Ut="top":kn>tr&&(Ut="bottom")}}tn!==null&&kt(tn),tn!==tt.lastTop&&(Qe=!0)}Qe&&It((0,O.Z)((0,O.Z)({},tt),{},{times:tt.times+1,targetAlign:Ut,lastTop:tn}))}},[tt,P.current]),function(an){if(an==null){Ue();return}if(me.Z.cancel(Be.current),typeof an=="number")kt(an);else if(an&&(0,I.Z)(an)==="object"){var en,Bt=an.align;"index"in an?en=an.index:en=k.findIndex(function(Qe){return T(Qe)===an.key});var cn=an.offset,gn=cn===void 0?0:cn;It({times:0,index:en,offset:gn,originAlign:Bt})}}}var Vt=we.forwardRef(function(P,k){var j=P.prefixCls,X=P.rtl,T=P.scrollOffset,_e=P.scrollRange,kt=P.onStartMove,Ue=P.onStopMove,Be=P.onScroll,mt=P.horizontal,ct=P.spinSize,tt=P.containerSize,It=P.style,an=P.thumbStyle,en=P.showScrollBar,Bt=we.useState(!1),cn=(0,G.Z)(Bt,2),gn=cn[0],Qe=cn[1],Ut=we.useState(null),tn=(0,G.Z)(Ut,2),nn=tn[0],He=tn[1],Bn=we.useState(null),kn=(0,G.Z)(Bn,2),Kn=kn[0],Ti=kn[1],hi=!X,dn=we.useRef(),sn=we.useRef(),gr=we.useState(en),dr=(0,G.Z)(gr,2),qn=dr[0],Rr=dr[1],tr=we.useRef(),U=function(){en===!0||en===!1||(clearTimeout(tr.current),Rr(!0),tr.current=setTimeout(function(){Rr(!1)},3e3))},br=_e-tt||0,fr=tt-ct||0,Fr=we.useMemo(function(){if(T===0||br===0)return 0;var Un=T/br;return Un*fr},[T,br,fr]),jr=function(Wn){Wn.stopPropagation(),Wn.preventDefault()},so=we.useRef({top:Fr,dragging:gn,pageY:nn,startTop:Kn});so.current={top:Fr,dragging:gn,pageY:nn,startTop:Kn};var Ar=function(Wn){Qe(!0),He(qe(Wn,mt)),Ti(so.current.top),kt(),Wn.stopPropagation(),Wn.preventDefault()};we.useEffect(function(){var Un=function(vn){vn.preventDefault()},Wn=dn.current,vt=sn.current;return Wn.addEventListener("touchstart",Un,{passive:!1}),vt.addEventListener("touchstart",Ar,{passive:!1}),function(){Wn.removeEventListener("touchstart",Un),vt.removeEventListener("touchstart",Ar)}},[]);var to=we.useRef();to.current=br;var vr=we.useRef();vr.current=fr,we.useEffect(function(){if(gn){var Un,Wn=function(vn){var Nn=so.current,on=Nn.dragging,Ct=Nn.pageY,Ke=Nn.startTop;me.Z.cancel(Un);var Ht=dn.current.getBoundingClientRect(),Rt=tt/(mt?Ht.width:Ht.height);if(on){var jn=(qe(vn,mt)-Ct)*Rt,at=Ke;!hi&&mt?at-=jn:at+=jn;var hn=to.current,yt=vr.current,Ge=yt?at/yt:0,L=Math.ceil(Ge*hn);L=Math.max(L,0),L=Math.min(L,hn),Un=(0,me.Z)(function(){Be(L,mt)})}},vt=function(){Qe(!1),Ue()};return window.addEventListener("mousemove",Wn,{passive:!0}),window.addEventListener("touchmove",Wn,{passive:!0}),window.addEventListener("mouseup",vt,{passive:!0}),window.addEventListener("touchend",vt,{passive:!0}),function(){window.removeEventListener("mousemove",Wn),window.removeEventListener("touchmove",Wn),window.removeEventListener("mouseup",vt),window.removeEventListener("touchend",vt),me.Z.cancel(Un)}}},[gn]),we.useEffect(function(){return U(),function(){clearTimeout(tr.current)}},[T]),we.useImperativeHandle(k,function(){return{delayHidden:U}});var Ji="".concat(j,"-scrollbar"),di={position:"absolute",visibility:qn?null:"hidden"},ft={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return mt?(di.height=8,di.left=0,di.right=0,di.bottom=0,ft.height="100%",ft.width=ct,hi?ft.left=Fr:ft.right=Fr):(di.width=8,di.top=0,di.bottom=0,hi?di.right=0:di.left=0,ft.width="100%",ft.height=ct,ft.top=Fr),we.createElement("div",{ref:dn,className:he()(Ji,(0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(Ji,"-horizontal"),mt),"".concat(Ji,"-vertical"),!mt),"".concat(Ji,"-visible"),qn)),style:(0,O.Z)((0,O.Z)({},di),It),onMouseDown:jr,onMouseMove:U},we.createElement("div",{ref:sn,className:he()("".concat(Ji,"-thumb"),(0,B.Z)({},"".concat(Ji,"-thumb-moving"),gn)),style:(0,O.Z)((0,O.Z)({},ft),an),onMouseDown:Ar}))}),St=Vt,un=20;function Ft(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=P/k*P;return isNaN(j)&&(j=0),j=Math.max(j,un),Math.floor(j)}var ai=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],On=[],ni={overflowY:"auto",overflowAnchor:"none"};function Jn(P,k){var j=P.prefixCls,X=j===void 0?"rc-virtual-list":j,T=P.className,_e=P.height,kt=P.itemHeight,Ue=P.fullHeight,Be=Ue===void 0?!0:Ue,mt=P.style,ct=P.data,tt=P.children,It=P.itemKey,an=P.virtual,en=P.direction,Bt=P.scrollWidth,cn=P.component,gn=cn===void 0?"div":cn,Qe=P.onScroll,Ut=P.onVirtualScroll,tn=P.onVisibleChange,nn=P.innerProps,He=P.extraRender,Bn=P.styles,kn=P.showScrollBar,Kn=kn===void 0?"optional":kn,Ti=(0,F.Z)(P,ai),hi=we.useCallback(function(Ri){return typeof It=="function"?It(Ri):Ri==null?void 0:Ri[It]},[It]),dn=xt(hi,null,null),sn=(0,G.Z)(dn,4),gr=sn[0],dr=sn[1],qn=sn[2],Rr=sn[3],tr=!!(an!==!1&&_e&&kt),U=we.useMemo(function(){return Object.values(qn.maps).reduce(function(Ri,Ui){return Ri+Ui},0)},[qn.id,qn.maps]),br=tr&&ct&&(Math.max(kt*ct.length,U)>_e||!!Bt),fr=en==="rtl",Fr=he()(X,(0,B.Z)({},"".concat(X,"-rtl"),fr),T),jr=ct||On,so=(0,we.useRef)(),Ar=(0,we.useRef)(),to=(0,we.useRef)(),vr=(0,we.useState)(0),Ji=(0,G.Z)(vr,2),di=Ji[0],ft=Ji[1],Un=(0,we.useState)(0),Wn=(0,G.Z)(Un,2),vt=Wn[0],Ve=Wn[1],vn=(0,we.useState)(!1),Nn=(0,G.Z)(vn,2),on=Nn[0],Ct=Nn[1],Ke=function(){Ct(!0)},Ht=function(){Ct(!1)},Rt={getKey:hi};function jn(Ri){ft(function(Ui){var Di;typeof Ri=="function"?Di=Ri(Ui):Di=Ri;var Cr=wt(Di);return so.current.scrollTop=Cr,Cr})}var at=(0,we.useRef)({start:0,end:jr.length}),hn=(0,we.useRef)(),yt=be(jr,hi),Ge=(0,G.Z)(yt,1),L=Ge[0];hn.current=L;var Dt=we.useMemo(function(){if(!tr)return{scrollHeight:void 0,start:0,end:jr.length-1,offset:void 0};if(!br){var Ri;return{scrollHeight:((Ri=Ar.current)===null||Ri===void 0?void 0:Ri.offsetHeight)||0,start:0,end:jr.length-1,offset:void 0}}for(var Ui=0,Di,Cr,Tr,io=jr.length,bo=0;bo<io;bo+=1){var mi=jr[bo],Sa=hi(mi),Wo=qn.get(Sa),Jo=Ui+(Wo===void 0?kt:Wo);Jo>=di&&Di===void 0&&(Di=bo,Cr=Ui),Jo>di+_e&&Tr===void 0&&(Tr=bo),Ui=Jo}return Di===void 0&&(Di=0,Cr=0,Tr=Math.ceil(_e/kt)),Tr===void 0&&(Tr=jr.length-1),Tr=Math.min(Tr+1,jr.length-1),{scrollHeight:Ui,start:Di,end:Tr,offset:Cr}},[br,tr,di,jr,Rr,_e]),Jt=Dt.scrollHeight,gt=Dt.start,fn=Dt.end,Cn=Dt.offset;at.current.start=gt,at.current.end=fn,we.useLayoutEffect(function(){var Ri=qn.getRecord();if(Ri.size===1){var Ui=Array.from(Ri)[0],Di=jr[gt];if(Di){var Cr=hi(Di);if(Cr===Ui){var Tr=qn.get(Ui),io=Tr-kt;jn(function(bo){return bo+io})}}}qn.resetRecord()},[Jt]);var ui=we.useState({width:0,height:_e}),Ln=(0,G.Z)(ui,2),rt=Ln[0],Oi=Ln[1],Qi=function(Ui){Oi({width:Ui.offsetWidth,height:Ui.offsetHeight})},Kt=(0,we.useRef)(),zi=(0,we.useRef)(),J=we.useMemo(function(){return Ft(rt.width,Bt)},[rt.width,Bt]),re=we.useMemo(function(){return Ft(rt.height,Jt)},[rt.height,Jt]),Hn=Jt-_e,Fe=(0,we.useRef)(Hn);Fe.current=Hn;function wt(Ri){var Ui=Ri;return Number.isNaN(Fe.current)||(Ui=Math.min(Ui,Fe.current)),Ui=Math.max(Ui,0),Ui}var gi=di<=0,Rn=di>=Hn,_i=vt<=0,Xt=vt>=Bt,Ei=Ne(gi,Rn,_i,Xt),Zt=function(){return{x:fr?-vt:vt,y:di}},Bi=(0,we.useRef)(Zt()),Gr=(0,te.useEvent)(function(Ri){if(Ut){var Ui=(0,O.Z)((0,O.Z)({},Zt()),Ri);(Bi.current.x!==Ui.x||Bi.current.y!==Ui.y)&&(Ut(Ui),Bi.current=Ui)}});function At(Ri,Ui){var Di=Ri;Ui?((0,Je.flushSync)(function(){Ve(Di)}),Gr()):jn(Di)}function eo(Ri){var Ui=Ri.currentTarget.scrollTop;Ui!==di&&jn(Ui),Qe==null||Qe(Ri),Gr()}var Qt=function(Ui){var Di=Ui,Cr=Bt?Bt-rt.width:0;return Di=Math.max(Di,0),Di=Math.min(Di,Cr),Di},Li=(0,te.useEvent)(function(Ri,Ui){Ui?((0,Je.flushSync)(function(){Ve(function(Di){var Cr=Di+(fr?-Ri:Ri);return Qt(Cr)})}),Gr()):jn(function(Di){var Cr=Di+Ri;return Cr})}),wi=Ie(tr,gi,Rn,_i,Xt,!!Bt,Li),pr=(0,G.Z)(wi,2),ar=pr[0],Zn=pr[1];Et(tr,so,function(Ri,Ui,Di,Cr){var Tr=Cr;return Ei(Ri,Ui,Di)?!1:!Tr||!Tr._virtualHandled?(Tr&&(Tr._virtualHandled=!0),ar({preventDefault:function(){},deltaX:Ri?Ui:0,deltaY:Ri?0:Ui}),!0):!1}),ae(br,so,function(Ri){jn(function(Ui){return Ui+Ri})}),(0,Me.Z)(function(){function Ri(Di){var Cr=gi&&Di.detail<0,Tr=Rn&&Di.detail>0;tr&&!Cr&&!Tr&&Di.preventDefault()}var Ui=so.current;return Ui.addEventListener("wheel",ar,{passive:!1}),Ui.addEventListener("DOMMouseScroll",Zn,{passive:!0}),Ui.addEventListener("MozMousePixelScroll",Ri,{passive:!1}),function(){Ui.removeEventListener("wheel",ar),Ui.removeEventListener("DOMMouseScroll",Zn),Ui.removeEventListener("MozMousePixelScroll",Ri)}},[tr,gi,Rn]),(0,Me.Z)(function(){if(Bt){var Ri=Qt(vt);Ve(Ri),Gr({x:Ri})}},[rt.width,Bt]);var ce=function(){var Ui,Di;(Ui=Kt.current)===null||Ui===void 0||Ui.delayHidden(),(Di=zi.current)===null||Di===void 0||Di.delayHidden()},mr=$t(so,jr,qn,kt,hi,function(){return dr(!0)},jn,ce);we.useImperativeHandle(k,function(){return{nativeElement:to.current,getScrollInfo:Zt,scrollTo:function(Ui){function Di(Cr){return Cr&&(0,I.Z)(Cr)==="object"&&("left"in Cr||"top"in Cr)}Di(Ui)?(Ui.left!==void 0&&Ve(Qt(Ui.left)),mr(Ui.top)):mr(Ui)}}}),(0,Me.Z)(function(){if(tn){var Ri=jr.slice(gt,fn+1);tn(Ri,jr)}},[gt,fn,jr]);var Er=Pe(jr,hi,qn,kt),cr=He==null?void 0:He({start:gt,end:fn,virtual:br,offsetX:vt,offsetY:Cn,rtl:fr,getSize:Er}),Wr=Re(jr,gt,fn,Bt,vt,gr,tt,Rt),Wi=null;_e&&(Wi=(0,O.Z)((0,B.Z)({},Be?"height":"maxHeight",_e),ni),tr&&(Wi.overflowY="hidden",Bt&&(Wi.overflowX="hidden"),on&&(Wi.pointerEvents="none")));var Kr={};return fr&&(Kr.dir="rtl"),we.createElement("div",(0,v.Z)({ref:to,style:(0,O.Z)((0,O.Z)({},mt),{},{position:"relative"}),className:Fr},Kr,Ti),we.createElement(ue.Z,{onResize:Qi},we.createElement(gn,{className:"".concat(X,"-holder"),style:Wi,ref:so,onScroll:eo,onMouseEnter:ce},we.createElement(Te,{prefixCls:X,height:Jt,offsetX:vt,offsetY:Cn,scrollWidth:Bt,onInnerResize:dr,ref:Ar,innerProps:nn,rtl:fr,extra:cr},Wr))),br&&Jt>_e&&we.createElement(St,{ref:Kt,prefixCls:X,scrollOffset:di,scrollRange:Jt,rtl:fr,onScroll:At,onStartMove:Ke,onStopMove:Ht,spinSize:re,containerSize:rt.height,style:Bn==null?void 0:Bn.verticalScrollBar,thumbStyle:Bn==null?void 0:Bn.verticalScrollBarThumb,showScrollBar:Kn}),br&&Bt>rt.width&&we.createElement(St,{ref:zi,prefixCls:X,scrollOffset:vt,scrollRange:Bt,rtl:fr,onScroll:At,onStartMove:Ke,onStopMove:Ht,spinSize:J,containerSize:rt.width,horizontal:!0,style:Bn==null?void 0:Bn.horizontalScrollBar,thumbStyle:Bn==null?void 0:Bn.horizontalScrollBarThumb,showScrollBar:Kn}))}var In=we.forwardRef(Jn);In.displayName="List";var Mn=In,xe=Mn},77596:function(Q,C,h){"use strict";h.d(C,{Z:function(){return ae}});var v=h(37061),I=h(26407),O=h(400),B=h(59301),G=h(92413);function F(le,$t){var Vt=Object.keys(le);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(le);$t&&(St=St.filter(function(un){return Object.getOwnPropertyDescriptor(le,un).enumerable})),Vt.push.apply(Vt,St)}return Vt}function M(le){for(var $t=1;$t<arguments.length;$t++){var Vt=arguments[$t]!=null?arguments[$t]:{};$t%2?F(Object(Vt),!0).forEach(function(St){(0,O.Z)(le,St,Vt[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(Vt)):F(Object(Vt)).forEach(function(St){Object.defineProperty(le,St,Object.getOwnPropertyDescriptor(Vt,St))})}return le}function he(le){var $t=le.length;if($t===0||$t===1)return le;if($t===2)return[le[0],le[1],"".concat(le[0],".").concat(le[1]),"".concat(le[1],".").concat(le[0])];if($t===3)return[le[0],le[1],le[2],"".concat(le[0],".").concat(le[1]),"".concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[0]),"".concat(le[1],".").concat(le[2]),"".concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[1],".").concat(le[0])];if($t>=4)return[le[0],le[1],le[2],le[3],"".concat(le[0],".").concat(le[1]),"".concat(le[0],".").concat(le[2]),"".concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[0]),"".concat(le[1],".").concat(le[2]),"".concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[1]),"".concat(le[2],".").concat(le[3]),"".concat(le[3],".").concat(le[0]),"".concat(le[3],".").concat(le[1]),"".concat(le[3],".").concat(le[2]),"".concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[1],".").concat(le[3]),"".concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[2],".").concat(le[3]),"".concat(le[0],".").concat(le[3],".").concat(le[1]),"".concat(le[0],".").concat(le[3],".").concat(le[2]),"".concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[1],".").concat(le[2],".").concat(le[3]),"".concat(le[1],".").concat(le[3],".").concat(le[0]),"".concat(le[1],".").concat(le[3],".").concat(le[2]),"".concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[0],".").concat(le[3]),"".concat(le[2],".").concat(le[1],".").concat(le[0]),"".concat(le[2],".").concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[3],".").concat(le[0]),"".concat(le[2],".").concat(le[3],".").concat(le[1]),"".concat(le[3],".").concat(le[0],".").concat(le[1]),"".concat(le[3],".").concat(le[0],".").concat(le[2]),"".concat(le[3],".").concat(le[1],".").concat(le[0]),"".concat(le[3],".").concat(le[1],".").concat(le[2]),"".concat(le[3],".").concat(le[2],".").concat(le[0]),"".concat(le[3],".").concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[1],".").concat(le[2],".").concat(le[3]),"".concat(le[0],".").concat(le[1],".").concat(le[3],".").concat(le[2]),"".concat(le[0],".").concat(le[2],".").concat(le[1],".").concat(le[3]),"".concat(le[0],".").concat(le[2],".").concat(le[3],".").concat(le[1]),"".concat(le[0],".").concat(le[3],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[3],".").concat(le[2],".").concat(le[1]),"".concat(le[1],".").concat(le[0],".").concat(le[2],".").concat(le[3]),"".concat(le[1],".").concat(le[0],".").concat(le[3],".").concat(le[2]),"".concat(le[1],".").concat(le[2],".").concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[2],".").concat(le[3],".").concat(le[0]),"".concat(le[1],".").concat(le[3],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[3],".").concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[0],".").concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[0],".").concat(le[3],".").concat(le[1]),"".concat(le[2],".").concat(le[1],".").concat(le[0],".").concat(le[3]),"".concat(le[2],".").concat(le[1],".").concat(le[3],".").concat(le[0]),"".concat(le[2],".").concat(le[3],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[3],".").concat(le[1],".").concat(le[0]),"".concat(le[3],".").concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[3],".").concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[3],".").concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[3],".").concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[3],".").concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[3],".").concat(le[2],".").concat(le[1],".").concat(le[0])]}var ue={};function te(le){if(le.length===0||le.length===1)return le;var $t=le.join(".");return ue[$t]||(ue[$t]=he(le)),ue[$t]}function Me(le){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Vt=arguments.length>2?arguments[2]:void 0,St=le.filter(function(Ft){return Ft!=="token"}),un=te(St);return un.reduce(function(Ft,ai){return M(M({},Ft),Vt[ai])},$t)}function we(le){return le.join(" ")}function Je(le,$t){var Vt=0;return function(St){return Vt+=1,St.map(function(un,Ft){return Oe({node:un,stylesheet:le,useInlineStyles:$t,key:"code-segment-".concat(Vt,"-").concat(Ft)})})}}function Oe(le){var $t=le.node,Vt=le.stylesheet,St=le.style,un=St===void 0?{}:St,Ft=le.useInlineStyles,ai=le.key,On=$t.properties,ni=$t.type,Jn=$t.tagName,In=$t.value;if(ni==="text")return In;if(Jn){var Mn=Je(Vt,Ft),xe;if(!Ft)xe=M(M({},On),{},{className:we(On.className)});else{var P=Object.keys(Vt).reduce(function(T,_e){return _e.split(".").forEach(function(kt){T.includes(kt)||T.push(kt)}),T},[]),k=On.className&&On.className.includes("token")?["token"]:[],j=On.className&&k.concat(On.className.filter(function(T){return!P.includes(T)}));xe=M(M({},On),{},{className:we(j)||void 0,style:Me(On.className,Object.assign({},On.style,un),Vt)})}var X=Mn($t.children);return B.createElement(Jn,(0,G.Z)({key:ai},xe),X)}}var Te=function(le,$t){var Vt=le.listLanguages();return Vt.indexOf($t)!==-1},Ae=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Re(le,$t){var Vt=Object.keys(le);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(le);$t&&(St=St.filter(function(un){return Object.getOwnPropertyDescriptor(le,un).enumerable})),Vt.push.apply(Vt,St)}return Vt}function de(le){for(var $t=1;$t<arguments.length;$t++){var Vt=arguments[$t]!=null?arguments[$t]:{};$t%2?Re(Object(Vt),!0).forEach(function(St){(0,O.Z)(le,St,Vt[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(Vt)):Re(Object(Vt)).forEach(function(St){Object.defineProperty(le,St,Object.getOwnPropertyDescriptor(Vt,St))})}return le}var pe=/\n/g;function be(le){return le.match(pe)}function me(le){var $t=le.lines,Vt=le.startingLineNumber,St=le.style;return $t.map(function(un,Ft){var ai=Ft+Vt;return B.createElement("span",{key:"line-".concat(Ft),className:"react-syntax-highlighter-line-number",style:typeof St=="function"?St(ai):St},"".concat(ai,`
|
|
|
`))})}function ke(le){var $t=le.codeString,Vt=le.codeStyle,St=le.containerStyle,un=St===void 0?{float:"left",paddingRight:"10px"}:St,Ft=le.numberStyle,ai=Ft===void 0?{}:Ft,On=le.startingLineNumber;return B.createElement("code",{style:Object.assign({},Vt,un)},me({lines:$t.replace(/\n$/,"").split(`
|
|
|
`),style:ai,startingLineNumber:On}))}function ee(le){return"".concat(le.toString().length,".25em")}function Ne(le,$t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(le),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:$t},children:[{type:"text",value:le}]}}function Ie(le,$t,Vt){var St={display:"inline-block",minWidth:ee(Vt),paddingRight:"1em",textAlign:"right",userSelect:"none"},un=typeof le=="function"?le($t):le,Ft=de(de({},St),un);return Ft}function Pe(le){var $t=le.children,Vt=le.lineNumber,St=le.lineNumberStyle,un=le.largestLineNumber,Ft=le.showInlineLineNumbers,ai=le.lineProps,On=ai===void 0?{}:ai,ni=le.className,Jn=ni===void 0?[]:ni,In=le.showLineNumbers,Mn=le.wrapLongLines,xe=le.wrapLines,P=xe===void 0?!1:xe,k=P?de({},typeof On=="function"?On(Vt):On):{};if(k.className=k.className?[].concat((0,I.Z)(k.className.trim().split(/\s+/)),(0,I.Z)(Jn)):Jn,Vt&&Ft){var j=Ie(St,Vt,un);$t.unshift(Ne(Vt,j))}return Mn&In&&(k.style=de({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:$t}}function Xe(le){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],St=0;St<le.length;St++){var un=le[St];if(un.type==="text")Vt.push(Pe({children:[un],className:(0,I.Z)(new Set($t))}));else if(un.children){var Ft=$t.concat(un.properties.className);Xe(un.children,Ft).forEach(function(ai){return Vt.push(ai)})}}return Vt}function Ye(le,$t,Vt,St,un,Ft,ai,On,ni){var Jn,In=Xe(le.value),Mn=[],xe=-1,P=0;function k(Be,mt){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Pe({children:Be,lineNumber:mt,lineNumberStyle:On,largestLineNumber:ai,showInlineLineNumbers:un,lineProps:Vt,className:ct,showLineNumbers:St,wrapLongLines:ni,wrapLines:$t})}function j(Be,mt){if(St&&mt&&un){var ct=Ie(On,mt,ai);Be.unshift(Ne(mt,ct))}return Be}function X(Be,mt){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return $t||ct.length>0?k(Be,mt,ct):j(Be,mt)}for(var T=function(){var mt=In[P],ct=mt.children[0].value,tt=be(ct);if(tt){var It=ct.split(`
|
|
|
`);It.forEach(function(an,en){var Bt=St&&Mn.length+Ft,cn={type:"text",value:"".concat(an,`
|
|
|
`)};if(en===0){var gn=In.slice(xe+1,P).concat(Pe({children:[cn],className:mt.properties.className})),Qe=X(gn,Bt);Mn.push(Qe)}else if(en===It.length-1){var Ut=In[P+1]&&In[P+1].children&&In[P+1].children[0],tn={type:"text",value:"".concat(an)};if(Ut){var nn=Pe({children:[tn],className:mt.properties.className});In.splice(P+1,0,nn)}else{var He=[tn],Bn=X(He,Bt,mt.properties.className);Mn.push(Bn)}}else{var kn=[cn],Kn=X(kn,Bt,mt.properties.className);Mn.push(Kn)}}),xe=P}P++};P<In.length;)T();if(xe!==In.length-1){var _e=In.slice(xe+1,In.length);if(_e&&_e.length){var kt=St&&Mn.length+Ft,Ue=X(_e,kt);Mn.push(Ue)}}return $t?Mn:(Jn=[]).concat.apply(Jn,Mn)}function ie(le){var $t=le.rows,Vt=le.stylesheet,St=le.useInlineStyles;return $t.map(function(un,Ft){return Oe({node:un,stylesheet:Vt,useInlineStyles:St,key:"code-segement".concat(Ft)})})}function lt(le){return le&&typeof le.highlightAuto!="undefined"}function We(le){var $t=le.astGenerator,Vt=le.language,St=le.code,un=le.defaultCodeValue;if(lt($t)){var Ft=Te($t,Vt);return Vt==="text"?{value:un,language:"text"}:Ft?$t.highlight(Vt,St):$t.highlightAuto(St)}try{return Vt&&Vt!=="text"?{value:$t.highlight(St,Vt)}:{value:un}}catch(ai){return{value:un}}}function Pt(le,$t){return function(St){var un=St.language,Ft=St.children,ai=St.style,On=ai===void 0?$t:ai,ni=St.customStyle,Jn=ni===void 0?{}:ni,In=St.codeTagProps,Mn=In===void 0?{className:un?"language-".concat(un):void 0,style:de(de({},On['code[class*="language-"]']),On['code[class*="language-'.concat(un,'"]')])}:In,xe=St.useInlineStyles,P=xe===void 0?!0:xe,k=St.showLineNumbers,j=k===void 0?!1:k,X=St.showInlineLineNumbers,T=X===void 0?!0:X,_e=St.startingLineNumber,kt=_e===void 0?1:_e,Ue=St.lineNumberContainerStyle,Be=St.lineNumberStyle,mt=Be===void 0?{}:Be,ct=St.wrapLines,tt=St.wrapLongLines,It=tt===void 0?!1:tt,an=St.lineProps,en=an===void 0?{}:an,Bt=St.renderer,cn=St.PreTag,gn=cn===void 0?"pre":cn,Qe=St.CodeTag,Ut=Qe===void 0?"code":Qe,tn=St.code,nn=tn===void 0?(Array.isArray(Ft)?Ft[0]:Ft)||"":tn,He=St.astGenerator,Bn=(0,v.Z)(St,Ae);He=He||le;var kn=j?B.createElement(ke,{containerStyle:Ue,codeStyle:Mn.style||{},numberStyle:mt,startingLineNumber:kt,codeString:nn}):null,Kn=On.hljs||On['pre[class*="language-"]']||{backgroundColor:"#fff"},Ti=lt(He)?"hljs":"prismjs",hi=P?Object.assign({},Bn,{style:Object.assign({},Kn,Jn)}):Object.assign({},Bn,{className:Bn.className?"".concat(Ti," ").concat(Bn.className):Ti,style:Object.assign({},Jn)});if(It?Mn.style=de({whiteSpace:"pre-wrap"},Mn.style):Mn.style=de({whiteSpace:"pre"},Mn.style),!He)return B.createElement(gn,hi,kn,B.createElement(Ut,Mn,nn));(ct===void 0&&Bt||It)&&(ct=!0),Bt=Bt||ie;var dn=[{type:"text",value:nn}],sn=We({astGenerator:He,language:un,code:nn,defaultCodeValue:dn});sn.language===null&&(sn.value=dn);var gr=sn.value.length;gr===1&&sn.value[0].type==="text"&&(gr=sn.value[0].value.split(`
|
|
|
`).length);var dr=gr+kt,qn=Ye(sn,ct,en,j,T,kt,dr,mt,It);return B.createElement(gn,hi,B.createElement(Ut,Mn,!T&&kn,Bt({rows:qn,stylesheet:On,useInlineStyles:P})))}}var xt={'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"}},Tt=h(11594),Et=h.n(Tt),wn=["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"],qe=Pt(Et(),xt);qe.supportedLanguages=wn;var ae=qe},14179:function(Q,C){"use strict";C.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(Q,C,h){"use strict";h(84126);var v=h(59301),I=60103;if(C.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;I=O("react.element"),C.Fragment=O("react.fragment")}var B=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,G=Object.prototype.hasOwnProperty,F={key:!0,ref:!0,__self:!0,__source:!0};function M(he,ue,te){var Me,we={},Je=null,Oe=null;te!==void 0&&(Je=""+te),ue.key!==void 0&&(Je=""+ue.key),ue.ref!==void 0&&(Oe=ue.ref);for(Me in ue)G.call(ue,Me)&&!F.hasOwnProperty(Me)&&(we[Me]=ue[Me]);if(he&&he.defaultProps)for(Me in ue=he.defaultProps,ue)we[Me]===void 0&&(we[Me]=ue[Me]);return{$$typeof:I,type:he,key:Je,ref:Oe,props:we,_owner:B.current}}C.jsx=M,C.jsxs=M},37712:function(Q,C,h){"use strict";Q.exports=h(19524)},95489:function(Q,C,h){"use strict";var v=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof h.g=="object"?h.g:{},I=ke();v.Prism={manual:!0,disableWorkerMessageHandler:!0};var O=h(43621),B=h(12256),G=h(68398),F=h(70614),M=h(54212),he=h(9720),ue=h(88786);I();var te={}.hasOwnProperty;function Me(){}Me.prototype=G;var we=new Me;Q.exports=we,we.highlight=Te,we.register=Je,we.alias=Oe,we.registered=Ae,we.listLanguages=Re,Je(F),Je(M),Je(he),Je(ue),we.util.encode=be,we.Token.stringify=de;function Je(ee){if(typeof ee!="function"||!ee.displayName)throw new Error("Expected `function` for `grammar`, got `"+ee+"`");we.languages[ee.displayName]===void 0&&ee(we)}function Oe(ee,Ne){var Ie=we.languages,Pe=ee,Xe,Ye,ie,lt;Ne&&(Pe={},Pe[ee]=Ne);for(Xe in Pe)for(Ye=Pe[Xe],Ye=typeof Ye=="string"?[Ye]:Ye,ie=Ye.length,lt=-1;++lt<ie;)Ie[Ye[lt]]=Ie[Xe]}function Te(ee,Ne){var Ie=G.highlight,Pe;if(typeof ee!="string")throw new Error("Expected `string` for `value`, got `"+ee+"`");if(we.util.type(Ne)==="Object")Pe=Ne,Ne=null;else{if(typeof Ne!="string")throw new Error("Expected `string` for `name`, got `"+Ne+"`");if(te.call(we.languages,Ne))Pe=we.languages[Ne];else throw new Error("Unknown language: `"+Ne+"` is not registered")}return Ie.call(this,ee,Pe,Ne)}function Ae(ee){if(typeof ee!="string")throw new Error("Expected `string` for `language`, got `"+ee+"`");return te.call(we.languages,ee)}function Re(){var ee=we.languages,Ne=[],Ie;for(Ie in ee)te.call(ee,Ie)&&typeof ee[Ie]=="object"&&Ne.push(Ie);return Ne}function de(ee,Ne,Ie){var Pe;return typeof ee=="string"?{type:"text",value:ee}:we.util.type(ee)==="Array"?pe(ee,Ne):(Pe={type:ee.type,content:we.Token.stringify(ee.content,Ne,Ie),tag:"span",classes:["token",ee.type],attributes:{},language:Ne,parent:Ie},ee.alias&&(Pe.classes=Pe.classes.concat(ee.alias)),we.hooks.run("wrap",Pe),O(Pe.tag+"."+Pe.classes.join("."),me(Pe.attributes),Pe.content))}function pe(ee,Ne){for(var Ie=[],Pe=ee.length,Xe=-1,Ye;++Xe<Pe;)Ye=ee[Xe],Ye!==""&&Ye!==null&&Ye!==void 0&&Ie.push(Ye);for(Xe=-1,Pe=Ie.length;++Xe<Pe;)Ye=Ie[Xe],Ie[Xe]=we.Token.stringify(Ye,Ne,Ie);return Ie}function be(ee){return ee}function me(ee){var Ne;for(Ne in ee)ee[Ne]=B(ee[Ne]);return ee}function ke(){var ee="Prism"in v,Ne=ee?v.Prism:void 0;return Ie;function Ie(){ee?v.Prism=Ne:delete v.Prism,ee=void 0,Ne=void 0}}},11594:function(Q,C,h){"use strict";var v=h(95489);Q.exports=v,v.register(h(79007)),v.register(h(15465)),v.register(h(42746)),v.register(h(93281)),v.register(h(95143)),v.register(h(65924)),v.register(h(65043)),v.register(h(43556)),v.register(h(14901)),v.register(h(4248)),v.register(h(17758)),v.register(h(33335)),v.register(h(17427)),v.register(h(22956)),v.register(h(56007)),v.register(h(45652)),v.register(h(33819)),v.register(h(84230)),v.register(h(20803)),v.register(h(65235)),v.register(h(52406)),v.register(h(79571)),v.register(h(3058)),v.register(h(51422)),v.register(h(1618)),v.register(h(35851)),v.register(h(51274)),v.register(h(23796)),v.register(h(13979)),v.register(h(87994)),v.register(h(47035)),v.register(h(36142)),v.register(h(85290)),v.register(h(7407)),v.register(h(79440)),v.register(h(7110)),v.register(h(73435)),v.register(h(91372)),v.register(h(63663)),v.register(h(92987)),v.register(h(91657)),v.register(h(34367)),v.register(h(35348)),v.register(h(26841)),v.register(h(87071)),v.register(h(13652)),v.register(h(87648)),v.register(h(10617)),v.register(h(5348)),v.register(h(71053)),v.register(h(69820)),v.register(h(41929)),v.register(h(51837)),v.register(h(4182)),v.register(h(22117)),v.register(h(95627)),v.register(h(34265)),v.register(h(50618)),v.register(h(32126)),v.register(h(26737)),v.register(h(90134)),v.register(h(51348)),v.register(h(60841)),v.register(h(42857)),v.register(h(81269)),v.register(h(31134)),v.register(h(83125)),v.register(h(9438)),v.register(h(27771)),v.register(h(86549)),v.register(h(37079)),v.register(h(59250)),v.register(h(81226)),v.register(h(65245)),v.register(h(25040)),v.register(h(40284)),v.register(h(39187)),v.register(h(34302)),v.register(h(90515)),v.register(h(33534)),v.register(h(9885)),v.register(h(76364)),v.register(h(56452)),v.register(h(8477)),v.register(h(58230)),v.register(h(66192)),v.register(h(81084)),v.register(h(50318)),v.register(h(95769)),v.register(h(14155)),v.register(h(92823)),v.register(h(63092)),v.register(h(21550)),v.register(h(29710)),v.register(h(2050)),v.register(h(67967)),v.register(h(29138)),v.register(h(67915)),v.register(h(54853)),v.register(h(68330)),v.register(h(76823)),v.register(h(86712)),v.register(h(72252)),v.register(h(78634)),v.register(h(43583)),v.register(h(23328)),v.register(h(74494)),v.register(h(46745)),v.register(h(22152)),v.register(h(83698)),v.register(h(26619)),v.register(h(53990)),v.register(h(7093)),v.register(h(4005)),v.register(h(53510)),v.register(h(24799)),v.register(h(97443)),v.register(h(80746)),v.register(h(17015)),v.register(h(89246)),v.register(h(487)),v.register(h(79539)),v.register(h(15628)),v.register(h(14320)),v.register(h(73222)),v.register(h(92486)),v.register(h(24103)),v.register(h(40604)),v.register(h(23109)),v.register(h(32082)),v.register(h(77674)),v.register(h(37524)),v.register(h(6658)),v.register(h(24824)),v.register(h(22776)),v.register(h(89700)),v.register(h(99296)),v.register(h(39940)),v.register(h(34973)),v.register(h(98135)),v.register(h(36907)),v.register(h(3567)),v.register(h(23763)),v.register(h(29509)),v.register(h(40472)),v.register(h(44695)),v.register(h(53885)),v.register(h(51478)),v.register(h(16928)),v.register(h(13586)),v.register(h(37164)),v.register(h(25153)),v.register(h(33245)),v.register(h(32218)),v.register(h(65626)),v.register(h(60090)),v.register(h(40722)),v.register(h(37783)),v.register(h(41224)),v.register(h(71365)),v.register(h(42846)),v.register(h(32964)),v.register(h(78830)),v.register(h(88799)),v.register(h(66791)),v.register(h(41735)),v.register(h(13490)),v.register(h(7383)),v.register(h(66894)),v.register(h(45779)),v.register(h(27734)),v.register(h(91889)),v.register(h(55965)),v.register(h(37326)),v.register(h(92949)),v.register(h(5681)),v.register(h(70696)),v.register(h(35790)),v.register(h(25777)),v.register(h(65889)),v.register(h(53852)),v.register(h(97719)),v.register(h(63839)),v.register(h(67623)),v.register(h(32530)),v.register(h(8938)),v.register(h(55259)),v.register(h(67411)),v.register(h(15375)),v.register(h(12093)),v.register(h(83588)),v.register(h(94127)),v.register(h(21294)),v.register(h(38709)),v.register(h(15008)),v.register(h(96549)),v.register(h(5221)),v.register(h(27447)),v.register(h(73191)),v.register(h(75542)),v.register(h(50323)),v.register(h(44298)),v.register(h(9634)),v.register(h(75266)),v.register(h(48139)),v.register(h(97534)),v.register(h(90826)),v.register(h(63919)),v.register(h(68862)),v.register(h(39523)),v.register(h(31207)),v.register(h(75308)),v.register(h(45315)),v.register(h(13794)),v.register(h(41299)),v.register(h(98177)),v.register(h(48780)),v.register(h(79793)),v.register(h(52085)),v.register(h(65411)),v.register(h(84750)),v.register(h(88216)),v.register(h(66433)),v.register(h(34855)),v.register(h(12998)),v.register(h(10202)),v.register(h(41186)),v.register(h(68963)),v.register(h(5569)),v.register(h(69435)),v.register(h(42766)),v.register(h(46449)),v.register(h(89032)),v.register(h(40241)),v.register(h(24812)),v.register(h(16747)),v.register(h(73584)),v.register(h(79243)),v.register(h(31788)),v.register(h(60871)),v.register(h(21023)),v.register(h(14693)),v.register(h(8743)),v.register(h(1689)),v.register(h(69210)),v.register(h(58710)),v.register(h(60452)),v.register(h(92784)),v.register(h(36489)),v.register(h(78380)),v.register(h(10409)),v.register(h(6539)),v.register(h(82028)),v.register(h(62282)),v.register(h(55686)),v.register(h(70889)),v.register(h(37116)),v.register(h(66963)),v.register(h(21078)),v.register(h(96198)),v.register(h(17723)),v.register(h(67771)),v.register(h(30307)),v.register(h(8921)),v.register(h(13429)),v.register(h(65197)),v.register(h(88904)),v.register(h(35)),v.register(h(86095)),v.register(h(76998)),v.register(h(14409)),v.register(h(33460)),v.register(h(28108))},79007:function(Q){"use strict";Q.exports=C,C.displayName="abap",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="abnf",C.aliases=[];function C(h){(function(v){var I="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";v.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-])"+I+"|<"+I+">)(?![\\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(Q){"use strict";Q.exports=C,C.displayName="actionscript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="ada",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="agda",C.aliases=[];function C(h){(function(v){v.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(Q){"use strict";Q.exports=C,C.displayName="al",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="antlr4",C.aliases=["g4"];function C(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(Q){"use strict";Q.exports=C,C.displayName="apacheconf",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(69435);Q.exports=I,I.displayName="apex",I.aliases=[];function I(O){O.register(v),function(B){var G=/\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,F=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return G.source});function M(ue){return RegExp(ue.replace(/<CLASS-NAME>/g,function(){return F}),"i")}var he={keyword:G,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:M(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:he},{pattern:M(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:he},{pattern:M(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:he}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:G,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(Q){"use strict";Q.exports=C,C.displayName="apl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="applescript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="aql",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(87071);Q.exports=I,I.displayName="arduino",I.aliases=["ino"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="arff",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="asciidoc",C.aliases=["adoc"];function C(h){(function(v){var I={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=v.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:I,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:I.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:I,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(G){G=G.split(" ");for(var F={},M=0,he=G.length;M<he;M++)F[G[M]]=O[G[M]];return F}I.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"),v.hooks.add("wrap",function(G){G.type==="entity"&&(G.attributes.title=G.content.value.replace(/&/,"&"))}),v.languages.adoc=v.languages.asciidoc})(h)}},45652:function(Q){"use strict";Q.exports=C,C.displayName="asm6502",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="asmatmel",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(87648);Q.exports=I,I.displayName="aspnet",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="autohotkey",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="autoit",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="avisynth",C.aliases=["avs"];function C(h){(function(v){function I(ue,te){return ue.replace(/<<(\d+)>>/g,function(Me,we){return te[+we]})}function O(ue,te,Me){return RegExp(I(ue,te),Me||"")}var B=/bool|clip|float|int|string|val/.source,G=[/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("|"),F=[/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("|"),M=[/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("|"),he=[G,F,M].join("|");v.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,[he],"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:/[{}\[\]();,.]/},v.languages.avs=v.languages.avisynth})(h)}},79571:function(Q){"use strict";Q.exports=C,C.displayName="avroIdl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="bash",C.aliases=["shell"];function C(h){(function(v){var I="\\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("\\$"+I),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("(\\{)"+I),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})/};v.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;|&]|[<>]\\()"+I),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("\\$?"+I),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=v.languages.bash;for(var G=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],F=B.variable[1].inside,M=0;M<G.length;M++)F[G[M]]=v.languages.bash[G[M]];v.languages.shell=v.languages.bash})(h)}},51422:function(Q){"use strict";Q.exports=C,C.displayName="basic",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="batch",C.aliases=[];function C(h){(function(v){var I=/%%?[~:\w]+%?|!\S+!/,O={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},B=/"(?:[\\"]"|[^"])*"(?!")/,G=/(?:\b|-)\d+\b/;v.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:I,number:G,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:I,number:G,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:[I,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:G,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:I,number:G,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(h)}},35851:function(Q){"use strict";Q.exports=C,C.displayName="bbcode",C.aliases=["shortcode"];function C(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(Q){"use strict";Q.exports=C,C.displayName="bicep",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="birb",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="bison",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="bnf",C.aliases=["rbnf"];function C(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(Q){"use strict";Q.exports=C,C.displayName="brainfuck",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="brightscript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="bro",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="bsl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="c",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="cfscript",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(87071);Q.exports=I,I.displayName="chaiscript",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="cil",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="clike",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="clojure",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="cmake",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="cobol",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="coffeescript",C.aliases=["coffee"];function C(h){(function(v){var I=/#(?!\{).+/,O={pattern:/#\{[^}]+\}/,alias:"variable"};v.languages.coffeescript=v.languages.extend("javascript",{comment:I,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"}}),v.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:I,interpolation:O}}}),v.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:v.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:O}}]}),v.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete v.languages.coffeescript["template-string"],v.languages.coffee=v.languages.coffeescript})(h)}},35348:function(Q){"use strict";Q.exports=C,C.displayName="concurnas",C.aliases=["conc"];function C(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(Q){"use strict";Q.exports=C,C.displayName="coq",C.aliases=[];function C(h){(function(v){for(var I=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,O=0;O<2;O++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,"[]"),v.languages.coq={comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return I})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(I),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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="cpp",I.aliases=[];function I(O){O.register(v),function(B){var G=/\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/,F=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return G.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 G.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:G,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 F})+")"),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(Q,C,h){"use strict";var v=h(75308);Q.exports=I,I.displayName="crystal",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="csharp",C.aliases=["dotnet","cs"];function C(h){(function(v){function I(wn,qe){return wn.replace(/<<(\d+)>>/g,function(ae,le){return"(?:"+qe[+le]+")"})}function O(wn,qe,ae){return RegExp(I(wn,qe),ae||"")}function B(wn,qe){for(var ae=0;ae<qe;ae++)wn=wn.replace(/<<self>>/g,function(){return"(?:"+wn+")"});return wn.replace(/<<self>>/g,"[^\\s\\S]")}var G={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 F(wn){return"\\b(?:"+wn.trim().replace(/ /g,"|")+")\\b"}var M=F(G.typeDeclaration),he=RegExp(F(G.type+" "+G.typeDeclaration+" "+G.contextual+" "+G.other)),ue=F(G.typeDeclaration+" "+G.contextual+" "+G.other),te=F(G.type+" "+G.typeDeclaration+" "+G.other),Me=B(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),we=B(/\((?:[^()]|<<self>>)*\)/.source,2),Je=/@?\b[A-Za-z_]\w*\b/.source,Oe=I(/<<0>>(?:\s*<<1>>)?/.source,[Je,Me]),Te=I(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[ue,Oe]),Ae=/\[\s*(?:,\s*)*\]/.source,Re=I(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Te,Ae]),de=I(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Me,we,Ae]),pe=I(/\(<<0>>+(?:,<<0>>+)+\)/.source,[de]),be=I(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[pe,Te,Ae]),me={keyword:he,punctuation:/[<>()?,.:[\]]/},ke=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,ee=/"(?:\\.|[^\\"\r\n])*"/.source,Ne=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;v.languages.csharp=v.languages.extend("clike",{string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Ne]),lookbehind:!0,greedy:!0},{pattern:O(/(^|[^@$\\])<<0>>/.source,[ee]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Te]),lookbehind:!0,inside:me},{pattern:O(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Je,be]),lookbehind:!0,inside:me},{pattern:O(/(\busing\s+)<<0>>(?=\s*=)/.source,[Je]),lookbehind:!0},{pattern:O(/(\b<<0>>\s+)<<1>>/.source,[M,Oe]),lookbehind:!0,inside:me},{pattern:O(/(\bcatch\s*\(\s*)<<0>>/.source,[Te]),lookbehind:!0,inside:me},{pattern:O(/(\bwhere\s+)<<0>>/.source,[Je]),lookbehind:!0},{pattern:O(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Re]),lookbehind:!0,inside:me},{pattern:O(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[be,te,Je]),inside:me}],keyword:he,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:/\?\.?|::|[{}[\];(),.:]/}),v.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),v.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:O(/([(,]\s*)<<0>>(?=\s*:)/.source,[Je]),lookbehind:!0,alias:"punctuation"}}),v.languages.insertBefore("csharp","class-name",{namespace:{pattern:O(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Je]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:O(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[we]),lookbehind:!0,alias:"class-name",inside:me},"return-type":{pattern:O(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[be,Te]),inside:me,alias:"class-name"},"constructor-invocation":{pattern:O(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[be]),lookbehind:!0,inside:me,alias:"class-name"},"generic-method":{pattern:O(/<<0>>\s*<<1>>(?=\s*\()/.source,[Je,Me]),inside:{function:O(/^<<0>>/.source,[Je]),generic:{pattern:RegExp(Me),alias:"class-name",inside:me}}},"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,[M,Oe,Je,be,he.source,we,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:O(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Oe,we]),lookbehind:!0,greedy:!0,inside:v.languages.csharp},keyword:he,"class-name":{pattern:RegExp(be),greedy:!0,inside:me},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 Ie=ee+"|"+ke,Pe=I(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Ie]),Xe=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Pe]),2),Ye=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ie=I(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Te,Xe]);v.languages.insertBefore("csharp","class-name",{attribute:{pattern:O(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Ye,ie]),lookbehind:!0,greedy:!0,inside:{target:{pattern:O(/^<<0>>(?=\s*:)/.source,[Ye]),alias:"keyword"},"attribute-arguments":{pattern:O(/\(<<0>>*\)/.source,[Xe]),inside:v.languages.csharp},"class-name":{pattern:RegExp(Te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var lt=/:[^}\r\n]+/.source,We=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Pe]),2),Pt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[We,lt]),xt=B(I(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Ie]),2),Tt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[xt,lt]);function Et(wn,qe){return{interpolation:{pattern:O(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[wn]),lookbehind:!0,inside:{"format-string":{pattern:O(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[qe,lt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:v.languages.csharp}}},string:/[\s\S]+/}}v.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:O(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Pt]),lookbehind:!0,greedy:!0,inside:Et(Pt,We)},{pattern:O(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Tt]),lookbehind:!0,greedy:!0,inside:Et(Tt,xt)}],char:{pattern:RegExp(ke),greedy:!0}}),v.languages.dotnet=v.languages.cs=v.languages.csharp})(h)}},10617:function(Q,C,h){"use strict";var v=h(87648);Q.exports=I,I.displayName="cshtml",I.aliases=["razor"];function I(O){O.register(v),function(B){var G=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,F=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function M(Re,de){for(var pe=0;pe<de;pe++)Re=Re.replace(/<self>/g,function(){return"(?:"+Re+")"});return Re.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+F+")").replace(/<comment>/g,"(?:"+G+")")}var he=M(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),ue=M(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),te=M(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),Me=M(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),we=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Je=/(?!\d)[^\s>\/=$<%]+/.source+we+/\s*\/?>/.source,Oe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+we+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Je+"|"+M(/<\1/.source+we+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Je+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Je+")";B.languages.cshtml=B.languages.extend("markup",{});var Te=B.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Oe),greedy:!0,inside:B.languages.cshtml}},{csharp:B.languages.extend("csharp",{})}),Ae={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:Te};B.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[te,/(?:code|functions)\s*/.source+te,/(?:for|foreach|lock|switch|using|while)\s*/.source+he+/\s*/.source+te,/do\s*/.source+te+/\s*while\s*/.source+he+/(?:\s*;)?/.source,/try\s*/.source+te+/\s*catch\s*/.source+he+/\s*/.source+te+/\s*finally\s*/.source+te,/if\s*/.source+he+/\s*/.source+te+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+he+")?"+/\s*/.source+te+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:Ae}},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:Ae}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+he+")(?:"+/[?!]?\.\w+\b/.source+"|"+he+"|"+ue+"|"+Me+he+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:Ae}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),B.languages.razor=B.languages.cshtml}(O)}},5348:function(Q){"use strict";Q.exports=C,C.displayName="csp",C.aliases=[];function C(h){(function(v){function I(O){return RegExp(/([ \t])/.source+"(?:"+O+")"+/(?=[\s;]|$)/.source,"i")}v.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:I(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:I(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:I(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:I(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:I(/[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:I(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:I(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(h)}},71053:function(Q){"use strict";Q.exports=C,C.displayName="cssExtras",C.aliases=[];function C(h){(function(v){var I=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,O;v.languages.css.selector={pattern:v.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(`\\[(?:[^[\\]"']|`+I.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":[I,{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:/[(),]/}},v.languages.css.atrule.inside["selector-function-argument"].inside=O,v.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},G={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};v.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:G,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:B,number:G})})(h)}},54212:function(Q){"use strict";Q.exports=C,C.displayName="css",C.aliases=[];function C(h){(function(v){var I=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;v.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\\((?:"+I.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+I.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+I.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:I,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:/[(){};:,]/},v.languages.css.atrule.inside.rest=v.languages.css;var O=v.languages.markup;O&&(O.tag.addInlined("style","css"),O.tag.addAttribute("style","css"))})(h)}},69820:function(Q){"use strict";Q.exports=C,C.displayName="csv",C.aliases=[];function C(h){h.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Q){"use strict";Q.exports=C,C.displayName="cypher",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="d",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="dart",C.aliases=[];function C(h){(function(v){var I=[/\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:/\./}}}};v.languages.dart=v.languages.extend("clike",{"class-name":[B,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:I,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),v.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:v.languages.dart}}},string:/[\s\S]+/}},string:void 0}),v.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),v.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":B,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(h)}},22117:function(Q){"use strict";Q.exports=C,C.displayName="dataweave",C.aliases=[];function C(h){(function(v){v.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(Q){"use strict";Q.exports=C,C.displayName="dax",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="dhall",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="diff",C.aliases=[];function C(h){(function(v){v.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var I={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(I).forEach(function(O){var B=I[O],G=[];/^\w+$/.test(O)||G.push(/\w+/.exec(O)[0]),O==="diff"&&G.push("bold"),v.languages.diff[O]={pattern:RegExp("^(?:["+B+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:G,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(O)[0]}}}}),Object.defineProperty(v.languages.diff,"PREFIXES",{value:I})})(h)}},32126:function(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="django",I.aliases=["jinja2"];function I(O){O.register(v),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 G=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,F=B.languages["markup-templating"];B.hooks.add("before-tokenize",function(M){F.buildPlaceholders(M,"django",G)}),B.hooks.add("after-tokenize",function(M){F.tokenizePlaceholders(M,"django")}),B.languages.jinja2=B.languages.django,B.hooks.add("before-tokenize",function(M){F.buildPlaceholders(M,"jinja2",G)}),B.hooks.add("after-tokenize",function(M){F.tokenizePlaceholders(M,"jinja2")})}(O)}},26737:function(Q){"use strict";Q.exports=C,C.displayName="dnsZoneFile",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="docker",C.aliases=["dockerfile"];function C(h){(function(v){var I=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,O=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return I}),B=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,G=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return B}),F={pattern:RegExp(B),greedy:!0},M={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function he(ue,te){return ue=ue.replace(/<OPT>/g,function(){return G}).replace(/<SP>/g,function(){return O}),RegExp(ue,te)}v.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:he(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[F,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:he(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:he(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:he(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:M,string:F,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:M},v.languages.dockerfile=v.languages.docker})(h)}},51348:function(Q){"use strict";Q.exports=C,C.displayName="dot",C.aliases=["gv"];function C(h){(function(v){var I="(?:"+[/[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:v.languages.markup}};function B(G,F){return RegExp(G.replace(/<ID>/g,function(){return I}),F)}v.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:/[\[\]{};,]/},v.languages.gv=v.languages.dot})(h)}},60841:function(Q){"use strict";Q.exports=C,C.displayName="ebnf",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="editorconfig",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="eiffel",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="ejs",I.aliases=["eta"];function I(O){O.register(v),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(G){var F=/<%(?!%)[\s\S]+?%>/g;B.languages["markup-templating"].buildPlaceholders(G,"ejs",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"ejs")}),B.languages.eta=B.languages.ejs}(O)}},83125:function(Q){"use strict";Q.exports=C,C.displayName="elixir",C.aliases=[];function C(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(v){v.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:h.languages.elixir}}}})}},9438:function(Q){"use strict";Q.exports=C,C.displayName="elm",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(75308),I=h(51478);Q.exports=O,O.displayName="erb",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:G.languages.ruby}},G.hooks.add("before-tokenize",function(F){var M=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;G.languages["markup-templating"].buildPlaceholders(F,"erb",M)}),G.hooks.add("after-tokenize",function(F){G.languages["markup-templating"].tokenizePlaceholders(F,"erb")})}(B)}},86549:function(Q){"use strict";Q.exports=C,C.displayName="erlang",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(29509),I=h(51478);Q.exports=O,O.displayName="etlua",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:G.languages.lua}},G.hooks.add("before-tokenize",function(F){var M=/<%[\s\S]+?%>/g;G.languages["markup-templating"].buildPlaceholders(F,"etlua",M)}),G.hooks.add("after-tokenize",function(F){G.languages["markup-templating"].tokenizePlaceholders(F,"etlua")})}(B)}},59250:function(Q){"use strict";Q.exports=C,C.displayName="excelFormula",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="factor",C.aliases=[];function C(h){(function(v){var I={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:I},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:I},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:I}],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}},G=function(ue){return(ue+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},F=function(ue){return new RegExp("(^|\\s)(?:"+ue.map(G).join("|")+")(?=\\s|$)")},M={"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(M).forEach(function(ue){B[ue].pattern=F(M[ue])});var he=["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=F(he),v.languages.factor=B})(h)}},65245:function(Q){"use strict";Q.exports=C,C.displayName="$false",C.aliases=[];function C(h){(function(v){v.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(Q){"use strict";Q.exports=C,C.displayName="firestoreSecurityRules",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="flow",C.aliases=[];function C(h){(function(v){v.languages.flow=v.languages.extend("javascript",{}),v.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),v.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 v.languages.flow.parameter,v.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(v.languages.flow.keyword)||(v.languages.flow.keyword=[v.languages.flow.keyword]),v.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(Q){"use strict";Q.exports=C,C.displayName="fortran",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="fsharp",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="ftl",I.aliases=[];function I(O){O.register(v),function(B){for(var G=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,F=0;F<2;F++)G=G.replace(/<expr>/g,function(){return G});G=G.replace(/<expr>/g,/[^\s\S]/.source);var M={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return G})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return G})),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:/[,;.:()[\]{}]/};M.string[1].inside.interpolation.inside.rest=M,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:M}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:M}}}},B.hooks.add("before-tokenize",function(he){var ue=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return G}),"gi");B.languages["markup-templating"].buildPlaceholders(he,"ftl",ue)}),B.hooks.add("after-tokenize",function(he){B.languages["markup-templating"].tokenizePlaceholders(he,"ftl")})}(O)}},33534:function(Q){"use strict";Q.exports=C,C.displayName="gap",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="gcode",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="gdscript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="gedcom",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="gherkin",C.aliases=[];function C(h){(function(v){var I=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;v.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("("+I+")(?:"+I+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(I),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(Q){"use strict";Q.exports=C,C.displayName="git",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="glsl",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="gml",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="gn",C.aliases=["gni"];function C(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(Q){"use strict";Q.exports=C,C.displayName="goModule",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="go",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="graphql",C.aliases=[];function C(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(I){if(I.language!=="graphql")return;var O=I.tokens.filter(function(Ae){return typeof Ae!="string"&&Ae.type!=="comment"&&Ae.type!=="scalar"}),B=0;function G(Ae){return O[B+Ae]}function F(Ae,Re){Re=Re||0;for(var de=0;de<Ae.length;de++){var pe=G(de+Re);if(!pe||pe.type!==Ae[de])return!1}return!0}function M(Ae,Re){for(var de=1,pe=B;pe<O.length;pe++){var be=O[pe],me=be.content;if(be.type==="punctuation"&&typeof me=="string"){if(Ae.test(me))de++;else if(Re.test(me)&&(de--,de===0))return pe}}return-1}function he(Ae,Re){var de=Ae.alias;de?Array.isArray(de)||(Ae.alias=de=[de]):Ae.alias=de=[],de.push(Re)}for(;B<O.length;){var ue=O[B++];if(ue.type==="keyword"&&ue.content==="mutation"){var te=[];if(F(["definition-mutation","punctuation"])&&G(1).content==="("){B+=2;var Me=M(/^\($/,/^\)$/);if(Me===-1)continue;for(;B<Me;B++){var we=G(0);we.type==="variable"&&(he(we,"variable-input"),te.push(we.content))}B=Me+1}if(F(["punctuation","property-query"])&&G(0).content==="{"&&(B++,he(G(0),"property-mutation"),te.length>0)){var Je=M(/^\{$/,/^\}$/);if(Je===-1)continue;for(var Oe=B;Oe<Je;Oe++){var Te=O[Oe];Te.type==="variable"&&te.indexOf(Te.content)>=0&&he(Te,"variable-input")}}}}})}},63092:function(Q){"use strict";Q.exports=C,C.displayName="groovy",C.aliases=[];function C(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(v){if(v.language==="groovy"&&v.type==="string"){var I=v.content.value[0];if(I!="'"){var O=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;I==="$"&&(O=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),v.content.value=v.content.value.replace(/</g,"<").replace(/&/g,"&"),v.content=h.highlight(v.content.value,{expression:{pattern:O,lookbehind:!0,inside:h.languages.groovy}}),v.classes.push(I==="/"?"regex":"gstring")}}})}},21550:function(Q,C,h){"use strict";var v=h(75308);Q.exports=I,I.displayName="haml",I.aliases=[];function I(O){O.register(v),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 G="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",F=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],M={},he=0,ue=F.length;he<ue;he++){var te=F[he];te=typeof te=="string"?{filter:te,language:te}:te,B.languages[te.language]&&(M["filter-"+te.filter]={pattern:RegExp(G.replace("{{filter_name}}",function(){return te.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[te.language,"language-"+te.language],inside:B.languages[te.language]}}})}B.languages.insertBefore("haml","filter",M)}(O)}},29710:function(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="handlebars",I.aliases=["hbs"];function I(O){O.register(v),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(G){var F=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;B.languages["markup-templating"].buildPlaceholders(G,"handlebars",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"handlebars")}),B.languages.hbs=B.languages.handlebars}(O)}},2050:function(Q){"use strict";Q.exports=C,C.displayName="haskell",C.aliases=["hs"];function C(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(Q){"use strict";Q.exports=C,C.displayName="haxe",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="hcl",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="hlsl",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="hoon",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="hpkp",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="hsts",C.aliases=[];function C(h){h.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Q){"use strict";Q.exports=C,C.displayName="http",C.aliases=[];function C(h){(function(v){function I(te){return RegExp("(^(?:"+te+"):[ ]*(?![ ]))[^]+","i")}v.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:v.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:I(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:v.languages.csp},{pattern:I(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:v.languages.hpkp},{pattern:I(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:v.languages.hsts},{pattern:I(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var O=v.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},G={"application/json":!0,"application/xml":!0};function F(te){var Me=te.replace(/^[a-z]+\//,""),we="\\w+/(?:[\\w.-]+\\+)+"+Me+"(?![+\\w.-])";return"(?:"+te+"|"+we+")"}var M;for(var he in B)if(B[he]){M=M||{};var ue=G[he]?F(he):he;M[he.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+ue+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:B[he]}}M&&v.languages.insertBefore("http","header",M)})(h)}},72252:function(Q){"use strict";Q.exports=C,C.displayName="ichigojam",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="icon",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="icuMessageFormat",C.aliases=[];function C(h){(function(v){function I(he,ue){return ue<=0?/[]/.source:he.replace(/<SELF>/g,function(){return I(he,ue-1)})}var O=/'[{}:=,](?:[^']|'')*'(?!')/,B={pattern:/''/,greedy:!0,alias:"operator"},G={pattern:O,greedy:!0,inside:{escape:B}},F=I(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return O.source}),8),M={pattern:RegExp(F),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};v.languages["icu-message-format"]={argument:{pattern:RegExp(F),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":M,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":M,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+I(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:B,string:G},M.inside.message.inside=v.languages["icu-message-format"],v.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=v.languages["icu-message-format"]})(h)}},23328:function(Q,C,h){"use strict";var v=h(2050);Q.exports=I,I.displayName="idris",I.aliases=["idr"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="iecst",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="ignore",C.aliases=["gitignore","hgignore","npmignore"];function C(h){(function(v){v.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},v.languages.gitignore=v.languages.ignore,v.languages.hgignore=v.languages.ignore,v.languages.npmignore=v.languages.ignore})(h)}},22152:function(Q){"use strict";Q.exports=C,C.displayName="inform7",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="ini",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="io",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="j",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="java",C.aliases=[];function C(h){(function(v){var I=/\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:/\./}};v.languages.java=v.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:I,function:[v.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}}),v.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),v.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:I,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 I.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(h)}},4005:function(Q,C,h){"use strict";var v=h(7093),I=h(53510);Q.exports=O,O.displayName="javadoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,M=/#\s*\w+(?:\s*\([^()]*\))?/.source,he=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return M});G.languages.javadoc=G.languages.extend("javadoclike",{}),G.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+he+")"),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:G.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:F,lookbehind:!0,inside:G.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:F,lookbehind:!0,inside:{tag:G.languages.markup.tag,entity:G.languages.markup.entity,code:{pattern:/.+/,inside:G.languages.java,alias:"language-java"}}}}}],tag:G.languages.markup.tag,entity:G.languages.markup.entity}),G.languages.javadoclike.addSupport("java",G.languages.javadoc)}(B)}},53510:function(Q){"use strict";Q.exports=C,C.displayName="javadoclike",C.aliases=[];function C(h){(function(v){var I=v.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(G,F){var M="doc-comment",he=v.languages[G];if(he){var ue=he[M];if(!ue){var te={};te[M]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},he=v.languages.insertBefore(G,"comment",te),ue=he[M]}if(ue instanceof RegExp&&(ue=he[M]={pattern:ue}),Array.isArray(ue))for(var Me=0,we=ue.length;Me<we;Me++)ue[Me]instanceof RegExp&&(ue[Me]={pattern:ue[Me]}),F(ue[Me]);else F(ue)}}function B(G,F){typeof G=="string"&&(G=[G]),G.forEach(function(M){O(M,function(he){he.inside||(he.inside={}),he.inside.rest=F})})}Object.defineProperty(I,"addSupport",{value:B}),I.addSupport(["java","javascript","php"],I)})(h)}},88786:function(Q){"use strict";Q.exports=C,C.displayName="javascript",C.aliases=["js"];function C(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(Q){"use strict";Q.exports=C,C.displayName="javastacktrace",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="jexl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="jolie",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="jq",C.aliases=[];function C(h){(function(v){var I=/\\\((?:[^()]|\([^()]*\))*\)/.source,O=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return I})),B={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+I),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},G=v.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=G})(h)}},89246:function(Q){"use strict";Q.exports=C,C.displayName="jsExtras",C.aliases=[];function C(h){(function(v){v.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+v.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),v.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+v.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),v.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 I(he,ue){return RegExp(he.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),ue)}v.languages.insertBefore("javascript","keyword",{imports:{pattern:I(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:v.languages.javascript},exports:{pattern:I(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:v.languages.javascript}}),v.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"}),v.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),v.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:I(/(\.\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 G=O[B],F=v.languages.javascript[G];v.util.type(F)==="RegExp"&&(F=v.languages.javascript[G]={pattern:F});var M=F.inside||{};F.inside=M,M["maybe-class-name"]=/^[A-Z][\s\S]*/}})(h)}},487:function(Q){"use strict";Q.exports=C,C.displayName="jsTemplates",C.aliases=[];function C(h){(function(v){var I=v.languages.javascript["template-string"],O=I.pattern.source,B=I.inside.interpolation,G=B.inside["interpolation-punctuation"],F=B.pattern.source;function M(Oe,Te){if(v.languages[Oe])return{pattern:RegExp("((?:"+Te+")\\s*)"+O),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Oe}}}}v.languages.javascript["template-string"]=[M("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),M("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),M("svg",/\bsvg/.source),M("markdown",/\b(?:markdown|md)/.source),M("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),M("sql",/\bsql/.source),I].filter(Boolean);function he(Oe,Te){return"___"+Te.toUpperCase()+"_"+Oe+"___"}function ue(Oe,Te,Ae){var Re={code:Oe,grammar:Te,language:Ae};return v.hooks.run("before-tokenize",Re),Re.tokens=v.tokenize(Re.code,Re.grammar),v.hooks.run("after-tokenize",Re),Re.tokens}function te(Oe){var Te={};Te["interpolation-punctuation"]=G;var Ae=v.tokenize(Oe,Te);if(Ae.length===3){var Re=[1,1];Re.push.apply(Re,ue(Ae[1],v.languages.javascript,"javascript")),Ae.splice.apply(Ae,Re)}return new v.Token("interpolation",Ae,B.alias,Oe)}function Me(Oe,Te,Ae){var Re=v.tokenize(Oe,{interpolation:{pattern:RegExp(F),lookbehind:!0}}),de=0,pe={},be=Re.map(function(Ne){if(typeof Ne=="string")return Ne;for(var Ie=Ne.content,Pe;Oe.indexOf(Pe=he(de++,Ae))!==-1;);return pe[Pe]=Ie,Pe}).join(""),me=ue(be,Te,Ae),ke=Object.keys(pe);de=0;function ee(Ne){for(var Ie=0;Ie<Ne.length;Ie++){if(de>=ke.length)return;var Pe=Ne[Ie];if(typeof Pe=="string"||typeof Pe.content=="string"){var Xe=ke[de],Ye=typeof Pe=="string"?Pe:Pe.content,ie=Ye.indexOf(Xe);if(ie!==-1){++de;var lt=Ye.substring(0,ie),We=te(pe[Xe]),Pt=Ye.substring(ie+Xe.length),xt=[];if(lt&&xt.push(lt),xt.push(We),Pt){var Tt=[Pt];ee(Tt),xt.push.apply(xt,Tt)}typeof Pe=="string"?(Ne.splice.apply(Ne,[Ie,1].concat(xt)),Ie+=xt.length-1):Pe.content=xt}}else{var Et=Pe.content;Array.isArray(Et)?ee(Et):ee([Et])}}}return ee(me),new v.Token(Ae,me,"language-"+Ae,Oe)}var we={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};v.hooks.add("after-tokenize",function(Oe){if(!(Oe.language in we))return;function Te(Ae){for(var Re=0,de=Ae.length;Re<de;Re++){var pe=Ae[Re];if(typeof pe!="string"){var be=pe.content;if(!Array.isArray(be)){typeof be!="string"&&Te([be]);continue}if(pe.type==="template-string"){var me=be[1];if(be.length===3&&typeof me!="string"&&me.type==="embedded-code"){var ke=Je(me),ee=me.alias,Ne=Array.isArray(ee)?ee[0]:ee,Ie=v.languages[Ne];if(!Ie)continue;be[1]=Me(ke,Ie,Ne)}}else Te(be)}}}Te(Oe.tokens)});function Je(Oe){return typeof Oe=="string"?Oe:Array.isArray(Oe)?Oe.map(Je).join(""):Je(Oe.content)}})(h)}},79539:function(Q,C,h){"use strict";var v=h(53510),I=h(92784);Q.exports=O,O.displayName="jsdoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=G.languages.javascript,M=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,he="(@(?:arg|argument|param|property)\\s+(?:"+M+"\\s+)?)";G.languages.jsdoc=G.languages.extend("javadoclike",{parameter:{pattern:RegExp(he+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),G.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(he+/\[(?:(?!\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:F,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 M})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+M),lookbehind:!0,inside:{string:F.string,number:F.number,boolean:F.boolean,keyword:G.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:F,alias:"language-javascript"}}}}),G.languages.javadoclike.addSupport("javascript",G.languages.jsdoc)}(B)}},15628:function(Q){"use strict";Q.exports=C,C.displayName="json",C.aliases=["webmanifest"];function C(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(Q,C,h){"use strict";var v=h(15628);Q.exports=I,I.displayName="json5",I.aliases=[];function I(O){O.register(v),function(B){var G=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;B.languages.json5=B.languages.extend("json",{property:[{pattern:RegExp(G.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:G,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(O)}},73222:function(Q,C,h){"use strict";var v=h(15628);Q.exports=I,I.displayName="jsonp",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="jsstacktrace",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="jsx",C.aliases=[];function C(h){(function(v){var I=v.util.clone(v.languages.javascript),O=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,B=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,G=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function F(ue,te){return ue=ue.replace(/<S>/g,function(){return O}).replace(/<BRACES>/g,function(){return B}).replace(/<SPREAD>/g,function(){return G}),RegExp(ue,te)}G=F(G).source,v.languages.jsx=v.languages.extend("markup",I),v.languages.jsx.tag.pattern=F(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),v.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,v.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,v.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,v.languages.jsx.tag.inside.comment=I.comment,v.languages.insertBefore("inside","attr-name",{spread:{pattern:F(/<SPREAD>/.source),inside:v.languages.jsx}},v.languages.jsx.tag),v.languages.insertBefore("inside","special-attr",{script:{pattern:F(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:v.languages.jsx}}},v.languages.jsx.tag);var M=function(ue){return ue?typeof ue=="string"?ue:typeof ue.content=="string"?ue.content:ue.content.map(M).join(""):""},he=function(ue){for(var te=[],Me=0;Me<ue.length;Me++){var we=ue[Me],Je=!1;if(typeof we!="string"&&(we.type==="tag"&&we.content[0]&&we.content[0].type==="tag"?we.content[0].content[0].content==="</"?te.length>0&&te[te.length-1].tagName===M(we.content[0].content[1])&&te.pop():we.content[we.content.length-1].content==="/>"||te.push({tagName:M(we.content[0].content[1]),openedBraces:0}):te.length>0&&we.type==="punctuation"&&we.content==="{"?te[te.length-1].openedBraces++:te.length>0&&te[te.length-1].openedBraces>0&&we.type==="punctuation"&&we.content==="}"?te[te.length-1].openedBraces--:Je=!0),(Je||typeof we=="string")&&te.length>0&&te[te.length-1].openedBraces===0){var Oe=M(we);Me<ue.length-1&&(typeof ue[Me+1]=="string"||ue[Me+1].type==="plain-text")&&(Oe+=M(ue[Me+1]),ue.splice(Me+1,1)),Me>0&&(typeof ue[Me-1]=="string"||ue[Me-1].type==="plain-text")&&(Oe=M(ue[Me-1])+Oe,ue.splice(Me-1,1),Me--),ue[Me]=new v.Token("plain-text",Oe,null,Oe)}we.content&&typeof we.content!="string"&&he(we.content)}};v.hooks.add("after-tokenize",function(ue){ue.language!=="jsx"&&ue.language!=="tsx"||he(ue.tokens)})})(h)}},40604:function(Q){"use strict";Q.exports=C,C.displayName="julia",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="keepalived",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="keyman",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="kotlin",C.aliases=["kt","kts"];function C(h){(function(v){v.languages.kotlin=v.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 v.languages.kotlin["class-name"];var I={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:v.languages.kotlin}};v.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:I},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:I},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete v.languages.kotlin.string,v.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),v.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),v.languages.kt=v.languages.kotlin,v.languages.kts=v.languages.kotlin})(h)}},37524:function(Q){"use strict";Q.exports=C,C.displayName="kumir",C.aliases=["kum"];function C(h){(function(v){var I=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function O(B,G){return RegExp(B.replace(/<nonId>/g,I),G)}v.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"}},v.languages.kum=v.languages.kumir})(h)}},6658:function(Q){"use strict";Q.exports=C,C.displayName="kusto",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="latex",C.aliases=["tex","context"];function C(h){(function(v){var I=/\\(?:[^a-z()[\]]|[a-z*]+)/i,O={"equation-command":{pattern:I,alias:"regex"}};v.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:I,alias:"selector"},punctuation:/[[\]{}&]/},v.languages.tex=v.languages.latex,v.languages.context=v.languages.latex})(h)}},22776:function(Q,C,h){"use strict";var v=h(51478),I=h(53852);Q.exports=O,O.displayName="latte",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.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:G.languages.php}};var F=G.languages.extend("markup",{});G.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:G.languages.php}}}}}},F.tag),G.hooks.add("before-tokenize",function(M){if(M.language==="latte"){var he=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;G.languages["markup-templating"].buildPlaceholders(M,"latte",he),M.grammar=F}}),G.hooks.add("after-tokenize",function(M){G.languages["markup-templating"].tokenizePlaceholders(M,"latte")})}(B)}},89700:function(Q){"use strict";Q.exports=C,C.displayName="less",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(48780);Q.exports=I,I.displayName="lilypond",I.aliases=[];function I(O){O.register(v),function(B){for(var G=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,F=5,M=0;M<F;M++)G=G.replace(/<expr>/g,function(){return G});G=G.replace(/<expr>/g,/[^\s\S]/.source);var he=B.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return G}),"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/};he["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=he,B.languages.ly=he}(O)}},39940:function(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="liquid",I.aliases=[];function I(O){O.register(v),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 G=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,F=!1;O.languages["markup-templating"].buildPlaceholders(B,"liquid",G,function(M){var he=/^\{%-?\s*(\w+)/.exec(M);if(he){var ue=he[1];if(ue==="raw"&&!F)return F=!0,!0;if(ue==="endraw")return F=!1,!0}return!F})}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"liquid")})}},34973:function(Q){"use strict";Q.exports=C,C.displayName="lisp",C.aliases=[];function C(h){(function(v){function I(Oe){return RegExp(/(\()/.source+"(?:"+Oe+")"+/(?=[\s\)])/.source)}function O(Oe){return RegExp(/([\s([])/.source+"(?:"+Oe+")"+/(?=[\s)])/.source)}var B=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,G="&"+B,F="(\\()",M="(?=\\))",he="(?=\\s)",ue=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,te={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(F+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+he),lookbehind:!0},{pattern:RegExp(F+"(?:append|by|collect|concat|do|finally|for|in|return)"+he),lookbehind:!0}],declare:{pattern:I(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:I(/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(F+"def(?:const|custom|group|var)\\s+"+B),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(B)}},defun:{pattern:RegExp(F+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+B+/\s+\(/.source+ue+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+B),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(F+"lambda\\s+\\(\\s*(?:&?"+B+"(?:\\s+&?"+B+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(F+B),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Me={"lisp-marker":RegExp(G),varform:{pattern:RegExp(/\(/.source+B+/\s+(?=\S)/.source+ue+/\)/.source),inside:te},argument:{pattern:RegExp(/(^|[\s(])/.source+B),lookbehind:!0,alias:"variable"},rest:te},we="\\S+(?:\\s+\\S+)*",Je={pattern:RegExp(F+ue+M),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+we),inside:Me},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+we),inside:Me},keys:{pattern:RegExp("&key\\s+"+we+"(?:\\s+&allow-other-keys)?"),inside:Me},argument:{pattern:RegExp(B),alias:"variable"},punctuation:/[()]/}};te.lambda.inside.arguments=Je,te.defun.inside.arguments=v.util.clone(Je),te.defun.inside.arguments.inside.sublist=Je,v.languages.lisp=te,v.languages.elisp=te,v.languages.emacs=te,v.languages["emacs-lisp"]=te})(h)}},98135:function(Q){"use strict";Q.exports=C,C.displayName="livescript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="llvm",C.aliases=[];function C(h){(function(v){v.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(Q){"use strict";Q.exports=C,C.displayName="log",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="lolcode",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="lua",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="magma",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="makefile",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="markdown",C.aliases=["md"];function C(h){(function(v){var I=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function O(Me){return Me=Me.replace(/<inner>/g,function(){return I}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Me+")")}var B=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,G=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return B}),F=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;v.languages.markdown=v.languages.extend("markup",{}),v.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:v.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+G+F+"(?:"+G+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+G+F+")(?:"+G+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(B),inside:v.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+G+")"+F+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+G+"$"),inside:{"table-header":{pattern:RegExp(B),alias:"important",inside:v.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(Me){["url","bold","italic","strike","code-snippet"].forEach(function(we){Me!==we&&(v.languages.markdown[Me].inside.content.inside[we]=v.languages.markdown[we])})}),v.hooks.add("after-tokenize",function(Me){if(Me.language!=="markdown"&&Me.language!=="md")return;function we(Je){if(!(!Je||typeof Je=="string"))for(var Oe=0,Te=Je.length;Oe<Te;Oe++){var Ae=Je[Oe];if(Ae.type!=="code"){we(Ae.content);continue}var Re=Ae.content[1],de=Ae.content[3];if(Re&&de&&Re.type==="code-language"&&de.type==="code-block"&&typeof Re.content=="string"){var pe=Re.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");pe=(/[a-z][\w-]*/i.exec(pe)||[""])[0].toLowerCase();var be="language-"+pe;de.alias?typeof de.alias=="string"?de.alias=[de.alias,be]:de.alias.push(be):de.alias=[be]}}}we(Me.tokens)}),v.hooks.add("wrap",function(Me){if(Me.type==="code-block"){for(var we="",Je=0,Oe=Me.classes.length;Je<Oe;Je++){var Te=Me.classes[Je],Ae=/language-(.+)/.exec(Te);if(Ae){we=Ae[1];break}}var Re=v.languages[we];if(Re)Me.content=v.highlight(te(Me.content.value),Re,we);else if(we&&we!=="none"&&v.plugins.autoloader){var de="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);Me.attributes.id=de,v.plugins.autoloader.loadLanguages(we,function(){var pe=document.getElementById(de);pe&&(pe.innerHTML=v.highlight(pe.textContent,v.languages[we],we))})}}});var M=RegExp(v.languages.markup.tag.pattern.source,"gi"),he={amp:"&",lt:"<",gt:">",quot:'"'},ue=String.fromCodePoint||String.fromCharCode;function te(Me){var we=Me.replace(M,"");return we=we.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Je,Oe){if(Oe=Oe.toLowerCase(),Oe[0]==="#"){var Te;return Oe[1]==="x"?Te=parseInt(Oe.slice(2),16):Te=Number(Oe.slice(1)),ue(Te)}else{var Ae=he[Oe];return Ae||Je}}),we}v.languages.md=v.languages.markdown})(h)}},51478:function(Q){"use strict";Q.exports=C,C.displayName="markupTemplating",C.aliases=[];function C(h){(function(v){function I(O,B){return"___"+O.toUpperCase()+B+"___"}Object.defineProperties(v.languages["markup-templating"]={},{buildPlaceholders:{value:function(O,B,G,F){if(O.language===B){var M=O.tokenStack=[];O.code=O.code.replace(G,function(he){if(typeof F=="function"&&!F(he))return he;for(var ue=M.length,te;O.code.indexOf(te=I(B,ue))!==-1;)++ue;return M[ue]=he,te}),O.grammar=v.languages.markup}}},tokenizePlaceholders:{value:function(O,B){if(O.language!==B||!O.tokenStack)return;O.grammar=v.languages[B];var G=0,F=Object.keys(O.tokenStack);function M(he){for(var ue=0;ue<he.length&&!(G>=F.length);ue++){var te=he[ue];if(typeof te=="string"||te.content&&typeof te.content=="string"){var Me=F[G],we=O.tokenStack[Me],Je=typeof te=="string"?te:te.content,Oe=I(B,Me),Te=Je.indexOf(Oe);if(Te>-1){++G;var Ae=Je.substring(0,Te),Re=new v.Token(B,v.tokenize(we,O.grammar),"language-"+B,we),de=Je.substring(Te+Oe.length),pe=[];Ae&&pe.push.apply(pe,M([Ae])),pe.push(Re),de&&pe.push.apply(pe,M([de])),typeof te=="string"?he.splice.apply(he,[ue,1].concat(pe)):te.content=pe}}else te.content&&M(te.content)}return he}M(O.tokens)}}})})(h)}},70614:function(Q){"use strict";Q.exports=C,C.displayName="markup",C.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function C(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(v){v.type==="entity"&&(v.attributes.title=v.content.value.replace(/&/,"&"))}),Object.defineProperty(h.languages.markup.tag,"addInlined",{value:function(I,O){var B={};B["language-"+O]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:h.languages[O]},B.cdata=/^<!\[CDATA\[|\]\]>$/i;var G={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:B}};G["language-"+O]={pattern:/[\s\S]+/,inside:h.languages[O]};var F={};F[I]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return I}),"i"),lookbehind:!0,greedy:!0,inside:G},h.languages.insertBefore("markup","cdata",F)}}),Object.defineProperty(h.languages.markup.tag,"addAttribute",{value:function(v,I){h.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+v+")"+/\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:[I,"language-"+I],inside:h.languages[I]},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(Q){"use strict";Q.exports=C,C.displayName="matlab",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="maxscript",C.aliases=[];function C(h){(function(v){var I=/\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;v.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)+")[ ]*)(?!"+I.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+I.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:I,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(Q){"use strict";Q.exports=C,C.displayName="mel",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="mermaid",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="mizar",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="mongodb",C.aliases=[];function C(h){(function(v){var I=["$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"];I=I.map(function(G){return G.replace("$","\\$")});var B="(?:"+I.join("|")+")\\b";v.languages.mongodb=v.languages.extend("javascript",{}),v.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)?$")}}}),v.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}},v.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+O.join("|")+")\\b"),alias:"keyword"}})})(h)}},65626:function(Q){"use strict";Q.exports=C,C.displayName="monkey",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="moonscript",C.aliases=["moon"];function C(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(Q){"use strict";Q.exports=C,C.displayName="n1ql",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="n4js",C.aliases=["n4jsd"];function C(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(Q){"use strict";Q.exports=C,C.displayName="nand2tetrisHdl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="naniscript",C.aliases=[];function C(h){(function(v){var I=/\{[^\r\n\[\]{}]*\}/,O={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:I,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};v.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:I,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:I,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":/[\[\]]/}}}}},v.languages.nani=v.languages.naniscript,v.hooks.add("after-tokenize",function(F){var M=F.tokens;M.forEach(function(he){if(typeof he!="string"&&he.type==="generic-text"){var ue=G(he);B(ue)||(he.type="bad-line",he.content=ue)}})});function B(F){for(var M="[]{}",he=[],ue=0;ue<F.length;ue++){var te=F[ue],Me=M.indexOf(te);if(Me!==-1){if(Me%2===0)he.push(Me+1);else if(he.pop()!==Me)return!1}}return he.length===0}function G(F){return typeof F=="string"?F:Array.isArray(F)?F.map(G).join(""):G(F.content)}})(h)}},42846:function(Q){"use strict";Q.exports=C,C.displayName="nasm",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="neon",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="nevod",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="nginx",C.aliases=[];function C(h){(function(v){var I=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;v.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:I}},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:I}},punctuation:/[{};]/}})(h)}},66791:function(Q){"use strict";Q.exports=C,C.displayName="nim",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="nix",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="nsis",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="objectivec",I.aliases=["objc"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="ocaml",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(79440);Q.exports=I,I.displayName="opencl",I.aliases=[];function I(O){O.register(v),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 G={"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",G),B.languages.cpp&&(G["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",G))}(O)}},27734:function(Q){"use strict";Q.exports=C,C.displayName="openqasm",C.aliases=["qasm"];function C(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(Q){"use strict";Q.exports=C,C.displayName="oz",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="parigp",C.aliases=[];function C(h){h.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var v=["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 v=v.map(function(I){return I.split("").join(" *")}).join("|"),RegExp("\\b(?:"+v+")\\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(Q){"use strict";Q.exports=C,C.displayName="parser",C.aliases=[];function C(h){(function(v){var I=v.languages.parser=v.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:/[\[\](){};]/});I=v.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:I.keyword,variable:I.variable,function:I.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:I.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:I.punctuation}}}),v.languages.insertBefore("inside","punctuation",{expression:I.expression,keyword:I.keyword,variable:I.variable,function:I.function,escape:I.escape,"parser-punctuation":{pattern:I.punctuation,alias:"punctuation"}},I.tag.inside["attr-value"])})(h)}},92949:function(Q){"use strict";Q.exports=C,C.displayName="pascal",C.aliases=["objectpascal"];function C(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(Q){"use strict";Q.exports=C,C.displayName="pascaligo",C.aliases=[];function C(h){(function(v){var I=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,O=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return I}),B=v.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:/\(\.|\.\)|[()\[\]:;,.{}]/},G=["comment","keyword","builtin","operator","punctuation"].reduce(function(F,M){return F[M]=B[M],F},{});B["class-name"].forEach(function(F){F.inside=G})})(h)}},70696:function(Q){"use strict";Q.exports=C,C.displayName="pcaxis",C.aliases=["px"];function C(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(Q){"use strict";Q.exports=C,C.displayName="peoplecode",C.aliases=["pcode"];function C(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(Q){"use strict";Q.exports=C,C.displayName="perl",C.aliases=[];function C(h){(function(v){var I=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;v.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,I].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,I].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,I+/\s*/.source+I].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(Q,C,h){"use strict";var v=h(53852);Q.exports=I,I.displayName="phpExtras",I.aliases=[];function I(O){O.register(v),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(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="php",I.aliases=[];function I(O){O.register(v),function(B){var G=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,F=[{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*\()/],M=/\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,he=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,ue=/[{}\[\](),:;]/;B.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:G,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:F,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:M,operator:he,punctuation:ue};var te={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:B.languages.php},Me=[{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:te}},{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:te}}];B.languages.insertBefore("php","variable",{string:Me,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:G,string:Me,"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:F,number:M,operator:he,punctuation:ue}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),B.hooks.add("before-tokenize",function(we){if(/<\?/.test(we.code)){var Je=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;B.languages["markup-templating"].buildPlaceholders(we,"php",Je)}}),B.hooks.add("after-tokenize",function(we){B.languages["markup-templating"].tokenizePlaceholders(we,"php")})}(O)}},97719:function(Q,C,h){"use strict";var v=h(53852),I=h(53510);Q.exports=O,O.displayName="phpdoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;G.languages.phpdoc=G.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+F+"\\s+)?)\\$\\w+"),lookbehind:!0}}),G.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+F),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),G.languages.javadoclike.addSupport("php",G.languages.phpdoc)}(B)}},63839:function(Q,C,h){"use strict";var v=h(69435);Q.exports=I,I.displayName="plsql",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="powerquery",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="powershell",C.aliases=[];function C(h){(function(v){var I=v.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:/[|{}[\];(),.]/};I.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:I},boolean:I.boolean,variable:I.variable}})(h)}},8938:function(Q){"use strict";Q.exports=C,C.displayName="processing",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="prolog",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="promql",C.aliases=[];function C(h){(function(v){var I=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],O=["on","ignoring","group_right","group_left","by","without"],B=["offset"],G=I.concat(O,B);v.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(?:"+G.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(Q){"use strict";Q.exports=C,C.displayName="properties",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="protobuf",C.aliases=[];function C(h){(function(v){var I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;v.languages.protobuf=v.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}),v.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:I}},builtin:I,"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(Q){"use strict";Q.exports=C,C.displayName="psl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="pug",C.aliases=[];function C(h){(function(v){v.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:v.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:v.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:v.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:v.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:v.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:v.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:v.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:v.languages.javascript}],punctuation:/[.\-!=|]+/};for(var I=/(^([\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={},G=0,F=O.length;G<F;G++){var M=O[G];M=typeof M=="string"?{filter:M,language:M}:M,v.languages[M.language]&&(B["filter-"+M.filter]={pattern:RegExp(I.replace("<filter_name>",function(){return M.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[M.language,"language-"+M.language],inside:v.languages[M.language]}}})}v.languages.insertBefore("pug","filter",B)})(h)}},21294:function(Q){"use strict";Q.exports=C,C.displayName="puppet",C.aliases=[];function C(h){(function(v){v.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 I=[{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:v.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];v.languages.puppet.heredoc[0].inside.interpolation=I,v.languages.puppet.string.inside["double-quoted"].inside.interpolation=I})(h)}},38709:function(Q){"use strict";Q.exports=C,C.displayName="pure",C.aliases=[];function C(h){(function(v){v.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 I=["c",{lang:"c++",alias:"cpp"},"fortran"],O=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;I.forEach(function(B){var G=B;if(typeof B!="string"&&(G=B.alias,B=B.lang),v.languages[G]){var F={};F["inline-lang-"+G]={pattern:RegExp(O.replace("<lang>",B.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:v.util.clone(v.languages.pure["inline-lang"].inside)},F["inline-lang-"+G].inside.rest=v.util.clone(v.languages[G]),v.languages.insertBefore("pure","inline-lang",F)}}),v.languages.c&&(v.languages.pure["inline-lang"].inside.rest=v.util.clone(v.languages.c))})(h)}},15008:function(Q){"use strict";Q.exports=C,C.displayName="purebasic",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(2050);Q.exports=I,I.displayName="purescript",I.aliases=["purs"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="python",C.aliases=["py"];function C(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(Q){"use strict";Q.exports=C,C.displayName="q",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="qml",C.aliases=[];function C(h){(function(v){for(var I=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,O=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,B=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return I}).replace(/<comment>/g,function(){return O}),G=0;G<2;G++)B=B.replace(/<expr>/g,function(){return B});B=B.replace(/<expr>/g,"[^\\s\\S]"),v.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:v.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:v.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(h)}},75542:function(Q){"use strict";Q.exports=C,C.displayName="qore",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="qsharp",C.aliases=["qs"];function C(h){(function(v){function I(Je,Oe){return Je.replace(/<<(\d+)>>/g,function(Te,Ae){return"(?:"+Oe[+Ae]+")"})}function O(Je,Oe,Te){return RegExp(I(Je,Oe),Te||"")}function B(Je,Oe){for(var Te=0;Te<Oe;Te++)Je=Je.replace(/<<self>>/g,function(){return"(?:"+Je+")"});return Je.replace(/<<self>>/g,"[^\\s\\S]")}var G={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 F(Je){return"\\b(?:"+Je.trim().replace(/ /g,"|")+")\\b"}var M=RegExp(F(G.type+" "+G.other)),he=/\b[A-Za-z_]\w*\b/.source,ue=I(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[he]),te={keyword:M,punctuation:/[<>()?,.:[\]]/},Me=/"(?:\\.|[^\\"])*"/.source;v.languages.qsharp=v.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Me]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[ue]),lookbehind:!0,inside:te},{pattern:O(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[ue]),lookbehind:!0,inside:te}],keyword:M,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:/::|[{}[\];(),.:]/}),v.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var we=B(I(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[Me]),2);v.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:O(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[we]),greedy:!0,inside:{interpolation:{pattern:O(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[we]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:v.languages.qsharp}}},string:/[\s\S]+/}}})})(h),h.languages.qs=h.languages.qsharp}},44298:function(Q){"use strict";Q.exports=C,C.displayName="r",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(48780);Q.exports=I,I.displayName="racket",I.aliases=["rkt"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="reason",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="regex",C.aliases=[];function C(h){(function(v){var I={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"},G={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},F="(?:[^\\\\-]|"+O.source+")",M=RegExp(F+"-"+F),he={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};v.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:M,inside:{escape:O,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":I,"char-set":G,escape:O}},"special-escape":I,"char-set":B,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":he}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:O,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":he}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(h)}},97534:function(Q){"use strict";Q.exports=C,C.displayName="rego",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="renpy",C.aliases=["rpy"];function C(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(Q){"use strict";Q.exports=C,C.displayName="rest",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="rip",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="roboconf",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="robotframework",C.aliases=[];function C(h){(function(v){var I={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},O={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function B(he,ue){var te={};te["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Me in ue)te[Me]=ue[Me];return te.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},te.variable=O,te.comment=I,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return he}),"im"),alias:"section",inside:te}}var G={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},F={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:O}},M={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:O}};v.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":F,documentation:G,property:M}),keywords:B("Keywords",{"keyword-name":F,documentation:G,property:M}),tasks:B("Tasks",{"task-name":F,documentation:G,property:M}),comment:I},v.languages.robot=v.languages.robotframework})(h)}},75308:function(Q){"use strict";Q.exports=C,C.displayName="ruby",C.aliases=["rb"];function C(h){(function(v){v.languages.ruby=v.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:/[(){}[\].,;]/}),v.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var I={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:v.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete v.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;v.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+O+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:I,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:/\./}}}),v.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+O),greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:I,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:I,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:I,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete v.languages.ruby.string,v.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)/}),v.languages.rb=v.languages.ruby})(h)}},45315:function(Q){"use strict";Q.exports=C,C.displayName="rust",C.aliases=[];function C(h){(function(v){for(var I=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,O=0;O<2;O++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,function(){return/[^\s\S]/.source}),v.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+I),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},v.languages.rust["closure-params"].inside.rest=v.languages.rust,v.languages.rust.attribute.inside.string=v.languages.rust.string})(h)}},13794:function(Q){"use strict";Q.exports=C,C.displayName="sas",C.aliases=[];function C(h){(function(v){var I=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,O=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,B={pattern:RegExp(I+"[bx]"),alias:"number"},G={pattern:/&[a-z_]\w*/i},F={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"},M={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},he=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],ue={pattern:RegExp(I),greedy:!0},te=/[$%@.(){}\[\];,\\]/,Me={pattern:/%?\b\w+(?=\()/,alias:"keyword"},we={function:Me,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":G,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:O,"numeric-constant":B,punctuation:te,string:ue},Je={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Oe={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},Te={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"},Ae={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},Re=/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,de={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return Re}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return Re}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:he,function:Me,"arg-value":we["arg-value"],operator:we.operator,argument:we.arg,number:O,"numeric-constant":B,punctuation:te,string:ue}},pe={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};v.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 I}),"im"),alias:"language-sql",inside:v.languages.sql},"global-statements":Te,"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:te,string:ue}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:he,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-groovy",inside:v.languages.groovy},keyword:pe,"submit-statement":Ae,"global-statements":Te,number:O,"numeric-constant":B,punctuation:te,string:ue}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:he,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-lua",inside:v.languages.lua},keyword:pe,"submit-statement":Ae,"global-statements":Te,number:O,"numeric-constant":B,punctuation:te,string:ue}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:he,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:we}},"cas-actions":de,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:we},step:M,keyword:pe,function:Me,format:Je,altformat:Oe,"global-statements":Te,number:O,"numeric-constant":B,punctuation:te,string:ue}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,inside:we},"macro-keyword":F,"macro-variable":G,"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":F,"macro-variable":G,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:te}},"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:he,number:O,"numeric-constant":B}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:we},"cas-actions":de,comment:he,function:Me,format:Je,altformat:Oe,"numeric-constant":B,datetime:{pattern:RegExp(I+"(?:dt?|t)"),alias:"number"},string:ue,step:M,keyword:pe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:O,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:te}})(h)}},41299:function(Q){"use strict";Q.exports=C,C.displayName="sass",C.aliases=[];function C(h){(function(v){v.languages.sass=v.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),v.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete v.languages.sass.atrule;var I=/\$[-\w]+|#\{\$[-\w]+\}/,O=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];v.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:I,operator:O}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:I,operator:O,important:v.languages.sass.important}}}),delete v.languages.sass.property,delete v.languages.sass.important,v.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(Q,C,h){"use strict";var v=h(7093);Q.exports=I,I.displayName="scala",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="scheme",C.aliases=[];function C(h){(function(v){v.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(I({"<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 I(O){for(var B in O)O[B]=O[B].replace(/<[\w\s]+>/g,function(G){return"(?:"+O[G].trim()+")"});return O[B]}})(h)}},79793:function(Q){"use strict";Q.exports=C,C.displayName="scss",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(3058);Q.exports=I,I.displayName="shellSession",I.aliases=[];function I(O){O.register(v),function(B){var G=[/"(?:\\[\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 G}),"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(Q){"use strict";Q.exports=C,C.displayName="smali",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="smalltalk",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="smarty",I.aliases=[];function I(O){O.register(v),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 G=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,F=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return G.source}),"g");B.hooks.add("before-tokenize",function(M){var he="{literal}",ue="{/literal}",te=!1;B.languages["markup-templating"].buildPlaceholders(M,"smarty",F,function(Me){return Me===ue&&(te=!1),te?!1:(Me===he&&(te=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"smarty")})}(O)}},66433:function(Q){"use strict";Q.exports=C,C.displayName="sml",C.aliases=["smlnj"];function C(h){(function(v){var I=/\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;v.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 I.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:I,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:/[(){}\[\].:,;]/},v.languages.sml["class-name"][0].inside=v.languages.sml,v.languages.smlnj=v.languages.sml})(h)}},34855:function(Q){"use strict";Q.exports=C,C.displayName="solidity",C.aliases=["sol"];function C(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(Q){"use strict";Q.exports=C,C.displayName="solutionFile",C.aliases=[];function C(h){(function(v){var I={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};v.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:I}},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:I}},guid:I,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},v.languages.sln=v.languages["solution-file"]})(h)}},10202:function(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="soy",I.aliases=[];function I(O){O.register(v),function(B){var G=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,F=/\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:G,greedy:!0},number:F,punctuation:/[\[\].?]/}},string:{pattern:G,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:F,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},B.hooks.add("before-tokenize",function(M){var he=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,ue="{literal}",te="{/literal}",Me=!1;B.languages["markup-templating"].buildPlaceholders(M,"soy",he,function(we){return we===te&&(Me=!1),Me?!1:(we===ue&&(Me=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"soy")})}(O)}},41186:function(Q,C,h){"use strict";var v=h(58710);Q.exports=I,I.displayName="sparql",I.aliases=["rq"];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="splunkSpl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="sqf",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="sql",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="squirrel",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="stan",C.aliases=[];function C(h){(function(v){var I=/\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/;v.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("("+I.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/,I],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:/[()\[\]{},;]/},v.languages.stan.constraint.inside.expression.inside=v.languages.stan})(h)}},89032:function(Q){"use strict";Q.exports=C,C.displayName="stylus",C.aliases=[];function C(h){(function(v){var I={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:I,number:O,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:I,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}},v.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(Q){"use strict";Q.exports=C,C.displayName="swift",C.aliases=[];function C(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(v){v.inside.interpolation.inside=h.languages.swift})}},24812:function(Q){"use strict";Q.exports=C,C.displayName="systemd",C.aliases=[];function C(h){(function(v){var I={pattern:/^[;#].*/m,greedy:!0},O=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;v.languages.systemd={comment:I,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:I,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(Q,C,h){"use strict";var v=h(73584),I=h(87648);Q.exports=O,O.displayName="t4Cs",O.aliases=[];function O(B){B.register(v),B.register(I),B.languages.t4=B.languages["t4-cs"]=B.languages["t4-templating"].createT4("csharp")}},73584:function(Q){"use strict";Q.exports=C,C.displayName="t4Templating",C.aliases=[];function C(h){(function(v){function I(B,G,F){return{pattern:RegExp("<#"+B+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+B+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:G,alias:F}}}}function O(B){var G=v.languages[B],F="language-"+B;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:I("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:I("=",G,F),"class-feature":I("\\+",G,F),standard:I("",G,F)}}}}v.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:O})})(h)}},79243:function(Q,C,h){"use strict";var v=h(73584),I=h(55686);Q.exports=O,O.displayName="t4Vb",O.aliases=[];function O(B){B.register(v),B.register(I),B.languages["t4-vb"]=B.languages["t4-templating"].createT4("vbnet")}},31788:function(Q,C,h){"use strict";var v=h(14409);Q.exports=I,I.displayName="tap",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="tcl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="textile",C.aliases=[];function C(h){(function(v){var I=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,O=/\)|\((?![^|()\n]+\))/.source;function B(Me,we){return RegExp(Me.replace(/<MOD>/g,function(){return"(?:"+I+")"}).replace(/<PAR>/g,function(){return"(?:"+O+")"}),we||"")}var G={css:{pattern:/\{[^{}]+\}/,inside:{rest:v.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},F=v.languages.textile=v.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:G},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:B(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:B(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:G},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:G},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:G},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:G},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:G},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:/[()]/}}}}}),M=F.phrase.inside,he={inline:M.inline,link:M.link,image:M.image,footnote:M.footnote,acronym:M.acronym,mark:M.mark};F.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var ue=M.inline.inside;ue.bold.inside=he,ue.italic.inside=he,ue.inserted.inside=he,ue.deleted.inside=he,ue.span.inside=he;var te=M.table.inside;te.inline=he.inline,te.link=he.link,te.image=he.image,te.footnote=he.footnote,te.acronym=he.acronym,te.mark=he.mark})(h)}},14693:function(Q){"use strict";Q.exports=C,C.displayName="toml",C.aliases=[];function C(h){(function(v){var I=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function O(B){return B.replace(/__/g,function(){return I})}v.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(Q){"use strict";Q.exports=C,C.displayName="tremor",C.aliases=[];function C(h){(function(v){v.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 I=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;v.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+I+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+I+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(I),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:v.languages.tremor}}},string:/[\s\S]+/}},v.languages.troy=v.languages.tremor,v.languages.trickle=v.languages.tremor})(h)}},1689:function(Q,C,h){"use strict";var v=h(24103),I=h(92784);Q.exports=O,O.displayName="tsx",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=G.util.clone(G.languages.typescript);G.languages.tsx=G.languages.extend("jsx",F),delete G.languages.tsx.parameter,delete G.languages.tsx["literal-property"];var M=G.languages.tsx.tag;M.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+M.pattern.source+")",M.pattern.flags),M.lookbehind=!0}(B)}},69210:function(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="tt2",I.aliases=[];function I(O){O.register(v),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(G){var F=/\[%[\s\S]+?%\]/g;B.languages["markup-templating"].buildPlaceholders(G,"tt2",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"tt2")})}(O)}},58710:function(Q){"use strict";Q.exports=C,C.displayName="turtle",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(51478);Q.exports=I,I.displayName="twig",I.aliases=[];function I(O){O.register(v),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 G=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;O.languages["markup-templating"].buildPlaceholders(B,"twig",G)}}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"twig")})}},92784:function(Q){"use strict";Q.exports=C,C.displayName="typescript",C.aliases=["ts"];function C(h){(function(v){v.languages.typescript=v.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/}),v.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 v.languages.typescript.parameter,delete v.languages.typescript["literal-property"];var I=v.languages.extend("typescript",{});delete I["class-name"],v.languages.typescript["class-name"].inside=I,v.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:I}}}}),v.languages.ts=v.languages.typescript})(h)}},36489:function(Q){"use strict";Q.exports=C,C.displayName="typoscript",C.aliases=["tsconfig"];function C(h){(function(v){var I=/\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/;v.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:I}},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:I,number:/^\d+$/,punctuation:/[,|:]/}},keyword:I,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},v.languages.tsconfig=v.languages.typoscript})(h)}},78380:function(Q){"use strict";Q.exports=C,C.displayName="unrealscript",C.aliases=["uc","uscript"];function C(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(Q){"use strict";Q.exports=C,C.displayName="uorazor",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="uri",C.aliases=["url"];function C(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(Q){"use strict";Q.exports=C,C.displayName="v",C.aliases=[];function C(h){(function(v){var I={pattern:/[\s\S]+/,inside:null};v.languages.v=v.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":I}}}},"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/}),I.inside=v.languages.v,v.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),v.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+/}}}),v.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:v.languages.v.generic.inside}}}})})(h)}},62282:function(Q){"use strict";Q.exports=C,C.displayName="vala",C.aliases=[];function C(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(Q,C,h){"use strict";var v=h(51422);Q.exports=I,I.displayName="vbnet",I.aliases=[];function I(O){O.register(v),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(Q){"use strict";Q.exports=C,C.displayName="velocity",C.aliases=[];function C(h){(function(v){v.languages.velocity=v.languages.extend("markup",{});var I={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:/[(){}[\]:,.]/};I.variable.inside={string:I.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:I.number,boolean:I.boolean,punctuation:I.punctuation},v.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:I}},variable:I.variable}),v.languages.velocity.tag.inside["attr-value"].inside.rest=v.languages.velocity})(h)}},37116:function(Q){"use strict";Q.exports=C,C.displayName="verilog",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="vhdl",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="vim",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="visualBasic",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="warpscript",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="wasm",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="webIdl",C.aliases=[];function C(h){(function(v){var I=/(?:\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+I+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,B={};v.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+I),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+I+/\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+I),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+I),lookbehind:!0},RegExp(I+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+I),lookbehind:!0},{pattern:RegExp(O+"(?="+/\s*(?:\.{3}\s*)?/.source+I+/\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 G in v.languages["web-idl"])G!=="class-name"&&(B[G]=v.languages["web-idl"][G]);v.languages.webidl=v.languages["web-idl"]})(h)}},8921:function(Q){"use strict";Q.exports=C,C.displayName="wiki",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="wolfram",C.aliases=["mathematica","wl","nb"];function C(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(Q){"use strict";Q.exports=C,C.displayName="wren",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="xeora",C.aliases=["xeoracube"];function C(h){(function(v){v.languages.xeora=v.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"}}),v.languages.insertBefore("inside","punctuation",{variable:v.languages.xeora["function-inline"].inside.variable},v.languages.xeora["function-block"]),v.languages.xeoracube=v.languages.xeora})(h)}},35:function(Q){"use strict";Q.exports=C,C.displayName="xmlDoc",C.aliases=[];function C(h){(function(v){function I(F,M){v.languages[F]&&v.languages.insertBefore(F,"comment",{"doc-comment":M})}var O=v.languages.markup.tag,B={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:O}},G={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:O}};I("csharp",B),I("fsharp",B),I("vbnet",G)})(h)}},86095:function(Q){"use strict";Q.exports=C,C.displayName="xojo",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="xquery",C.aliases=[];function C(h){(function(v){v.languages.xquery=v.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:/[[\](){},;:/]/}),v.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,v.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,v.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,v.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:v.languages.xquery,alias:"language-xquery"};var I=function(B){return typeof B=="string"?B:typeof B.content=="string"?B.content:B.content.map(I).join("")},O=function(B){for(var G=[],F=0;F<B.length;F++){var M=B[F],he=!1;if(typeof M!="string"&&(M.type==="tag"&&M.content[0]&&M.content[0].type==="tag"?M.content[0].content[0].content==="</"?G.length>0&&G[G.length-1].tagName===I(M.content[0].content[1])&&G.pop():M.content[M.content.length-1].content==="/>"||G.push({tagName:I(M.content[0].content[1]),openedBraces:0}):G.length>0&&M.type==="punctuation"&&M.content==="{"&&(!B[F+1]||B[F+1].type!=="punctuation"||B[F+1].content!=="{")&&(!B[F-1]||B[F-1].type!=="plain-text"||B[F-1].content!=="{")?G[G.length-1].openedBraces++:G.length>0&&G[G.length-1].openedBraces>0&&M.type==="punctuation"&&M.content==="}"?G[G.length-1].openedBraces--:M.type!=="comment"&&(he=!0)),(he||typeof M=="string")&&G.length>0&&G[G.length-1].openedBraces===0){var ue=I(M);F<B.length-1&&(typeof B[F+1]=="string"||B[F+1].type==="plain-text")&&(ue+=I(B[F+1]),B.splice(F+1,1)),F>0&&(typeof B[F-1]=="string"||B[F-1].type==="plain-text")&&(ue=I(B[F-1])+ue,B.splice(F-1,1),F--),/^\s+$/.test(ue)?B[F]=ue:B[F]=new v.Token("plain-text",ue,null,ue)}M.content&&typeof M.content!="string"&&O(M.content)}};v.hooks.add("after-tokenize",function(B){B.language==="xquery"&&O(B.tokens)})})(h)}},14409:function(Q){"use strict";Q.exports=C,C.displayName="yaml",C.aliases=["yml"];function C(h){(function(v){var I=/[*&][^\s[\]{},]+/,O=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,B="(?:"+O.source+"(?:[ ]+"+I.source+")?|"+I.source+"(?:[ ]+"+O.source+")?)",G=/(?:[^\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}),F=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function M(he,ue){ue=(ue||"").replace(/m/g,"")+"m";var te=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<value>>/g,function(){return he});return RegExp(te,ue)}v.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"(?:"+G+"|"+F+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:M(/\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:M(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:M(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:M(F),lookbehind:!0,greedy:!0},number:{pattern:M(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:O,important:I,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},v.languages.yml=v.languages.yaml})(h)}},33460:function(Q){"use strict";Q.exports=C,C.displayName="yang",C.aliases=[];function C(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(Q){"use strict";Q.exports=C,C.displayName="zig",C.aliases=[];function C(h){(function(v){function I(ue){return function(){return ue}}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",G=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,F=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,I(G)),M=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,I(B)),he="(?!\\s)(?:!?\\s*(?:"+F+"\\s*)*"+M+")+";v.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,I(he)).replace(/<ALIGN>/g,I(G))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,I(he)).replace(/<ALIGN>/g,I(G))),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:/[.:,;(){}[\]]/},v.languages.zig["class-name"].forEach(function(ue){ue.inside===null&&(ue.inside=v.languages.zig)})})(h)}},92848:function(Q,C){"use strict";var h;C.Q=B,h=G;var v="",I=" ",O=/[ \t\n\r\f]+/g;function B(F){var M=String(F||v).trim();return M===v?[]:M.split(O)}function G(F){return F.join(I).trim()}},58970:function(Q,C,h){"use strict";var v=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(C,"__esModule",{value:!0}),C.default=O;var I=v(h(93193));function O(B,G){var F=null;if(!B||typeof B!="string")return F;var M=(0,I.default)(B),he=typeof G=="function";return M.forEach(function(ue){if(ue.type==="declaration"){var te=ue.property,Me=ue.value;he?G(te,Me,ue):Me&&(F=F||{},F[te]=Me)}}),F}},97270:function(Q){Q.exports=h;var C=Object.prototype.hasOwnProperty;function h(){for(var v={},I=0;I<arguments.length;I++){var O=arguments[I];for(var B in O)C.call(O,B)&&(v[B]=O[B])}return v}},90302:function(Q,C,h){"use strict";h.d(C,{ZP:function(){return me}});const v=-1,I=0,O=1,B=2,G=3,F=4,M=5,he=6,ue=7,te=8,Me=typeof self=="object"?self:globalThis,we=(ke,ee)=>{const Ne=(Pe,Xe)=>(ke.set(Xe,Pe),Pe),Ie=Pe=>{if(ke.has(Pe))return ke.get(Pe);const[Xe,Ye]=ee[Pe];switch(Xe){case I:case v:return Ne(Ye,Pe);case O:{const ie=Ne([],Pe);for(const lt of Ye)ie.push(Ie(lt));return ie}case B:{const ie=Ne({},Pe);for(const[lt,We]of Ye)ie[Ie(lt)]=Ie(We);return ie}case G:return Ne(new Date(Ye),Pe);case F:{const{source:ie,flags:lt}=Ye;return Ne(new RegExp(ie,lt),Pe)}case M:{const ie=Ne(new Map,Pe);for(const[lt,We]of Ye)ie.set(Ie(lt),Ie(We));return ie}case he:{const ie=Ne(new Set,Pe);for(const lt of Ye)ie.add(Ie(lt));return ie}case ue:{const{name:ie,message:lt}=Ye;return Ne(new Me[ie](lt),Pe)}case te:return Ne(BigInt(Ye),Pe);case"BigInt":return Ne(Object(BigInt(Ye)),Pe);case"ArrayBuffer":return Ne(new Uint8Array(Ye).buffer,Ye);case"DataView":{const{buffer:ie}=new Uint8Array(Ye);return Ne(new DataView(ie),Ye)}}return Ne(new Me[Xe](Ye),Pe)};return Ie},Je=ke=>we(new Map,ke)(0),Oe="",{toString:Te}={},{keys:Ae}=Object,Re=ke=>{const ee=typeof ke;if(ee!=="object"||!ke)return[I,ee];const Ne=Te.call(ke).slice(8,-1);switch(Ne){case"Array":return[O,Oe];case"Object":return[B,Oe];case"Date":return[G,Oe];case"RegExp":return[F,Oe];case"Map":return[M,Oe];case"Set":return[he,Oe];case"DataView":return[O,Ne]}return Ne.includes("Array")?[O,Ne]:Ne.includes("Error")?[ue,Ne]:[B,Ne]},de=([ke,ee])=>ke===I&&(ee==="function"||ee==="symbol"),pe=(ke,ee,Ne,Ie)=>{const Pe=(Ye,ie)=>{const lt=Ie.push(Ye)-1;return Ne.set(ie,lt),lt},Xe=Ye=>{if(Ne.has(Ye))return Ne.get(Ye);let[ie,lt]=Re(Ye);switch(ie){case I:{let Pt=Ye;switch(lt){case"bigint":ie=te,Pt=Ye.toString();break;case"function":case"symbol":if(ke)throw new TypeError("unable to serialize "+lt);Pt=null;break;case"undefined":return Pe([v],Ye)}return Pe([ie,Pt],Ye)}case O:{if(lt){let Tt=Ye;return lt==="DataView"?Tt=new Uint8Array(Ye.buffer):lt==="ArrayBuffer"&&(Tt=new Uint8Array(Ye)),Pe([lt,[...Tt]],Ye)}const Pt=[],xt=Pe([ie,Pt],Ye);for(const Tt of Ye)Pt.push(Xe(Tt));return xt}case B:{if(lt)switch(lt){case"BigInt":return Pe([lt,Ye.toString()],Ye);case"Boolean":case"Number":case"String":return Pe([lt,Ye.valueOf()],Ye)}if(ee&&"toJSON"in Ye)return Xe(Ye.toJSON());const Pt=[],xt=Pe([ie,Pt],Ye);for(const Tt of Ae(Ye))(ke||!de(Re(Ye[Tt])))&&Pt.push([Xe(Tt),Xe(Ye[Tt])]);return xt}case G:return Pe([ie,Ye.toISOString()],Ye);case F:{const{source:Pt,flags:xt}=Ye;return Pe([ie,{source:Pt,flags:xt}],Ye)}case M:{const Pt=[],xt=Pe([ie,Pt],Ye);for(const[Tt,Et]of Ye)(ke||!(de(Re(Tt))||de(Re(Et))))&&Pt.push([Xe(Tt),Xe(Et)]);return xt}case he:{const Pt=[],xt=Pe([ie,Pt],Ye);for(const Tt of Ye)(ke||!de(Re(Tt)))&&Pt.push(Xe(Tt));return xt}}const{message:We}=Ye;return Pe([ie,{name:lt,message:We}],Ye)};return Xe},be=(ke,{json:ee,lossy:Ne}={})=>{const Ie=[];return pe(!(ee||Ne),!!ee,new Map,Ie)(ke),Ie};var me=typeof structuredClone=="function"?(ke,ee)=>ee&&("json"in ee||"lossy"in ee)?Je(be(ke,ee)):structuredClone(ke):(ke,ee)=>Je(be(ke,ee))},11630:function(Q,C,h){"use strict";h.d(C,{P:function(){return I},Q:function(){return v}});function v(O){const B=[],G=String(O||"");let F=G.indexOf(","),M=0,he=!1;for(;!he;){F===-1&&(F=G.length,he=!0);const ue=G.slice(M,F).trim();(ue||!he)&&B.push(ue),M=F+1,F=G.indexOf(",",M)}return B}function I(O,B){const G=B||{};return(O[O.length-1]===""?[...O,""]:O).join((G.padRight?" ":"")+","+(G.padLeft===!1?"":" ")).trim()}},87342:function(Q,C,h){"use strict";h.d(C,{ok:function(){return O},t1:function(){return B}});function v(G){return G}function I(){}function O(){}function B(){}},81994:function(Q,C,h){"use strict";h.d(C,{h:function(){return Ae},s:function(){return Re}});var v=h(58222),I=h(11630);const O=/[#.]/g;function B(de,pe){const be=de||"",me={};let ke=0,ee,Ne;for(;ke<be.length;){O.lastIndex=ke;const Ie=O.exec(be),Pe=be.slice(ke,Ie?Ie.index:be.length);Pe&&(ee?ee==="#"?me.id=Pe:Array.isArray(me.className)?me.className.push(Pe):me.className=[Pe]:Ne=Pe,ke+=Pe.length),Ie&&(ee=Ie[0],ke++)}return{type:"element",tagName:Ne||pe||"div",properties:me,children:[]}}var G=h(84837),F=h(64326),M=h(71523);function he(de,pe,be){const me=be?Oe(be):void 0;function ke(ee,Ne,...Ie){let Pe;if(ee==null){Pe={type:"root",children:[]};const Xe=Ne;Ie.unshift(Xe)}else{Pe=B(ee,pe);const Xe=Pe.tagName.toLowerCase(),Ye=me?me.get(Xe):void 0;if(Pe.tagName=Ye||Xe,ue(Ne))Ie.unshift(Ne);else for(const[ie,lt]of Object.entries(Ne))te(de,Pe.properties,ie,lt)}for(const Xe of Ie)Me(Pe.children,Xe);return Pe.type==="element"&&Pe.tagName==="template"&&(Pe.content={type:"root",children:Pe.children},Pe.children=[]),Pe}return ke}function ue(de){if(de===null||typeof de!="object"||Array.isArray(de))return!0;if(typeof de.type!="string")return!1;const pe=de,be=Object.keys(de);for(const me of be){const ke=pe[me];if(ke&&typeof ke=="object"){if(!Array.isArray(ke))return!0;const ee=ke;for(const Ne of ee)if(typeof Ne!="number"&&typeof Ne!="string")return!0}}return!!("children"in de&&Array.isArray(de.children))}function te(de,pe,be,me){const ke=(0,G.s)(de,be);let ee;if(me!=null){if(typeof me=="number"){if(Number.isNaN(me))return;ee=me}else typeof me=="boolean"?ee=me:typeof me=="string"?ke.spaceSeparated?ee=(0,M.Q)(me):ke.commaSeparated?ee=(0,I.Q)(me):ke.commaOrSpaceSeparated?ee=(0,M.Q)((0,I.Q)(me).join(" ")):ee=we(ke,ke.property,me):Array.isArray(me)?ee=[...me]:ee=ke.property==="style"?Je(me):String(me);if(Array.isArray(ee)){const Ne=[];for(const Ie of ee)Ne.push(we(ke,ke.property,Ie));ee=Ne}ke.property==="className"&&Array.isArray(pe.className)&&(ee=pe.className.concat(ee)),pe[ke.property]=ee}}function Me(de,pe){if(pe!=null)if(typeof pe=="number"||typeof pe=="string")de.push({type:"text",value:String(pe)});else if(Array.isArray(pe))for(const be of pe)Me(de,be);else if(typeof pe=="object"&&"type"in pe)pe.type==="root"?Me(de,pe.children):de.push(pe);else throw new Error("Expected node, nodes, or string, got `"+pe+"`")}function we(de,pe,be){if(typeof be=="string"){if(de.number&&be&&!Number.isNaN(Number(be)))return Number(be);if((de.boolean||de.overloadedBoolean)&&(be===""||(0,F.F)(be)===(0,F.F)(pe)))return!0}return be}function Je(de){const pe=[];for(const[be,me]of Object.entries(de))pe.push([be,me].join(": "));return pe.join("; ")}function Oe(de){const pe=new Map;for(const be of de)pe.set(be.toLowerCase(),be);return pe}const Te=["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"],Ae=he(v.dy,"div"),Re=he(v.YP,"g",Te)},26735:function(Q,C,h){"use strict";h.d(C,{f:function(){return I}});var v=h(80722);function I(O,B,G,F){const M=F?F-1:Number.POSITIVE_INFINITY;let he=0;return ue;function ue(Me){return(0,v.xz)(Me)?(O.enter(G),te(Me)):B(Me)}function te(Me){return(0,v.xz)(Me)&&he++<M?(O.consume(Me),te):(O.exit(G),B(Me))}}},80722:function(Q,C,h){"use strict";h.d(C,{AF:function(){return F},Av:function(){return B},B8:function(){return we},Ch:function(){return he},H$:function(){return I},Xh:function(){return Me},jv:function(){return v},n9:function(){return O},pY:function(){return G},sR:function(){return M},xz:function(){return te},z3:function(){return ue}});const v=Je(/[A-Za-z]/),I=Je(/[\dA-Za-z]/),O=Je(/[#-'*+\--9=?A-Z^-~]/);function B(Oe){return Oe!==null&&(Oe<32||Oe===127)}const G=Je(/\d/),F=Je(/[\dA-Fa-f]/),M=Je(/[!-/:-@[-`{-~]/);function he(Oe){return Oe!==null&&Oe<-2}function ue(Oe){return Oe!==null&&(Oe<0||Oe===32)}function te(Oe){return Oe===-2||Oe===-1||Oe===32}const Me=Je(new RegExp("\\p{P}|\\p{S}","u")),we=Je(/\s/);function Je(Oe){return Te;function Te(Ae){return Ae!==null&&Ae>-1&&Oe.test(String.fromCharCode(Ae))}}},58222:function(Q,C,h){"use strict";h.d(C,{dy:function(){return Te},YP:function(){return Ae}});class v{constructor(de,pe,be){this.normal=pe,this.property=de,be&&(this.space=be)}}v.prototype.normal={},v.prototype.property={},v.prototype.space=void 0;function I(Re,de){const pe={},be={};for(const me of Re)Object.assign(pe,me.property),Object.assign(be,me.normal);return new v(pe,be,de)}var O=h(64326),B=h(95516);function G(Re){const de={},pe={};for(const[be,me]of Object.entries(Re.properties)){const ke=new B.I(be,Re.transform(Re.attributes||{},be),me,Re.space);Re.mustUseProperty&&Re.mustUseProperty.includes(be)&&(ke.mustUseProperty=!0),de[be]=ke,pe[(0,O.F)(be)]=be,pe[(0,O.F)(ke.attribute)]=be}return new v(de,pe,Re.space)}var F=h(56488);const M=G({properties:{ariaActiveDescendant:null,ariaAtomic:F.booleanish,ariaAutoComplete:null,ariaBusy:F.booleanish,ariaChecked:F.booleanish,ariaColCount:F.number,ariaColIndex:F.number,ariaColSpan:F.number,ariaControls:F.spaceSeparated,ariaCurrent:null,ariaDescribedBy:F.spaceSeparated,ariaDetails:null,ariaDisabled:F.booleanish,ariaDropEffect:F.spaceSeparated,ariaErrorMessage:null,ariaExpanded:F.booleanish,ariaFlowTo:F.spaceSeparated,ariaGrabbed:F.booleanish,ariaHasPopup:null,ariaHidden:F.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:F.spaceSeparated,ariaLevel:F.number,ariaLive:null,ariaModal:F.booleanish,ariaMultiLine:F.booleanish,ariaMultiSelectable:F.booleanish,ariaOrientation:null,ariaOwns:F.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:F.number,ariaPressed:F.booleanish,ariaReadOnly:F.booleanish,ariaRelevant:null,ariaRequired:F.booleanish,ariaRoleDescription:F.spaceSeparated,ariaRowCount:F.number,ariaRowIndex:F.number,ariaRowSpan:F.number,ariaSelected:F.booleanish,ariaSetSize:F.number,ariaSort:null,ariaValueMax:F.number,ariaValueMin:F.number,ariaValueNow:F.number,ariaValueText:null,role:null},transform(Re,de){return de==="role"?de:"aria-"+de.slice(4).toLowerCase()}});function he(Re,de){return de in Re?Re[de]:de}function ue(Re,de){return he(Re,de.toLowerCase())}const te=G({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:F.commaSeparated,acceptCharset:F.spaceSeparated,accessKey:F.spaceSeparated,action:null,allow:null,allowFullScreen:F.boolean,allowPaymentRequest:F.boolean,allowUserMedia:F.boolean,alt:null,as:null,async:F.boolean,autoCapitalize:null,autoComplete:F.spaceSeparated,autoFocus:F.boolean,autoPlay:F.boolean,blocking:F.spaceSeparated,capture:null,charSet:null,checked:F.boolean,cite:null,className:F.spaceSeparated,cols:F.number,colSpan:null,content:null,contentEditable:F.booleanish,controls:F.boolean,controlsList:F.spaceSeparated,coords:F.number|F.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F.boolean,defer:F.boolean,dir:null,dirName:null,disabled:F.boolean,download:F.overloadedBoolean,draggable:F.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F.boolean,formTarget:null,headers:F.spaceSeparated,height:F.number,hidden:F.boolean,high:F.number,href:null,hrefLang:null,htmlFor:F.spaceSeparated,httpEquiv:F.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:F.boolean,inputMode:null,integrity:null,is:null,isMap:F.boolean,itemId:null,itemProp:F.spaceSeparated,itemRef:F.spaceSeparated,itemScope:F.boolean,itemType:F.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F.boolean,low:F.number,manifest:null,max:null,maxLength:F.number,media:null,method:null,min:null,minLength:F.number,multiple:F.boolean,muted:F.boolean,name:null,nonce:null,noModule:F.boolean,noValidate:F.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:F.boolean,optimum:F.number,pattern:null,ping:F.spaceSeparated,placeholder:null,playsInline:F.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F.boolean,referrerPolicy:null,rel:F.spaceSeparated,required:F.boolean,reversed:F.boolean,rows:F.number,rowSpan:F.number,sandbox:F.spaceSeparated,scope:null,scoped:F.boolean,seamless:F.boolean,selected:F.boolean,shadowRootClonable:F.boolean,shadowRootDelegatesFocus:F.boolean,shadowRootMode:null,shape:null,size:F.number,sizes:null,slot:null,span:F.number,spellCheck:F.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F.number,step:null,style:null,tabIndex:F.number,target:null,title:null,translate:null,type:null,typeMustMatch:F.boolean,useMap:null,value:F.booleanish,width:F.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:F.spaceSeparated,axis:null,background:null,bgColor:null,border:F.number,borderColor:null,bottomMargin:F.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F.boolean,declare:F.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:F.number,leftMargin:F.number,link:null,longDesc:null,lowSrc:null,marginHeight:F.number,marginWidth:F.number,noResize:F.boolean,noHref:F.boolean,noShade:F.boolean,noWrap:F.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:F.number,rules:null,scheme:null,scrolling:F.booleanish,standby:null,summary:null,text:null,topMargin:F.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F.boolean,disableRemotePlayback:F.boolean,prefix:null,property:null,results:F.number,security:null,unselectable:null},space:"html",transform:ue}),Me=G({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"},properties:{about:F.commaOrSpaceSeparated,accentHeight:F.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F.number,amplitude:F.number,arabicForm:null,ascent:F.number,attributeName:null,attributeType:null,azimuth:F.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F.number,by:null,calcMode:null,capHeight:F.number,className:F.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:F.number,diffuseConstant:F.number,direction:null,display:null,dur:null,divisor:F.number,dominantBaseline:null,download:F.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:F.number,enableBackground:null,end:null,event:null,exponent:F.number,externalResourcesRequired:null,fill:null,fillOpacity:F.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:F.commaSeparated,g2:F.commaSeparated,glyphName:F.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F.number,horizOriginX:F.number,horizOriginY:F.number,id:null,ideographic:F.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F.number,k:F.number,k1:F.number,k2:F.number,k3:F.number,k4:F.number,kernelMatrix:F.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F.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:F.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:F.number,overlineThickness:F.number,paintOrder:null,panose1:null,path:null,pathLength:F.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:F.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F.number,pointsAtY:F.number,pointsAtZ:F.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:F.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:F.commaOrSpaceSeparated,rev:F.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:F.commaOrSpaceSeparated,requiredFeatures:F.commaOrSpaceSeparated,requiredFonts:F.commaOrSpaceSeparated,requiredFormats:F.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:F.number,specularExponent:F.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F.number,strikethroughThickness:F.number,string:null,stroke:null,strokeDashArray:F.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F.number,strokeOpacity:F.number,strokeWidth:null,style:null,surfaceScale:F.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:F.commaOrSpaceSeparated,tabIndex:F.number,tableValues:null,target:null,targetX:F.number,targetY:F.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:F.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F.number,underlineThickness:F.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F.number,values:null,vAlphabetic:F.number,vMathematical:F.number,vectorEffect:null,vHanging:F.number,vIdeographic:F.number,version:null,vertAdvY:F.number,vertOriginX:F.number,vertOriginY:F.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:he}),we=G({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(Re,de){return"xlink:"+de.slice(5).toLowerCase()}}),Je=G({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ue}),Oe=G({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(Re,de){return"xml:"+de.slice(3).toLowerCase()}}),Te=I([M,te,we,Je,Oe],"html"),Ae=I([M,Me,we,Je,Oe],"svg")},84837:function(Q,C,h){"use strict";h.d(C,{s:function(){return M}});var v=h(95516),I=h(56038),O=h(64326);const B=/[A-Z]/g,G=/-[a-z]/g,F=/^data[-\w.:]+$/i;function M(te,Me){const we=(0,O.F)(Me);let Je=Me,Oe=I.k;if(we in te.normal)return te.property[te.normal[we]];if(we.length>4&&we.slice(0,4)==="data"&&F.test(Me)){if(Me.charAt(4)==="-"){const Te=Me.slice(5).replace(G,ue);Je="data"+Te.charAt(0).toUpperCase()+Te.slice(1)}else{const Te=Me.slice(4);if(!G.test(Te)){let Ae=Te.replace(B,he);Ae.charAt(0)!=="-"&&(Ae="-"+Ae),Me="data"+Ae}}Oe=v.I}return new Oe(Je,Me)}function he(te){return"-"+te.toLowerCase()}function ue(te){return te.charAt(1).toUpperCase()}},64326:function(Q,C,h){"use strict";h.d(C,{F:function(){return v}});function v(I){return I.toLowerCase()}},95516:function(Q,C,h){"use strict";h.d(C,{I:function(){return B}});var v=h(56038),I=h(56488);const O=Object.keys(I);class B extends v.k{constructor(M,he,ue,te){let Me=-1;if(super(M,he),G(this,"space",te),typeof ue=="number")for(;++Me<O.length;){const we=O[Me];G(this,O[Me],(ue&I[we])===I[we])}}}B.prototype.defined=!0;function G(F,M,he){he&&(F[M]=he)}},56038:function(Q,C,h){"use strict";h.d(C,{k:function(){return v}});class v{constructor(O,B){this.attribute=B,this.property=O}}v.prototype.attribute="",v.prototype.booleanish=!1,v.prototype.boolean=!1,v.prototype.commaOrSpaceSeparated=!1,v.prototype.commaSeparated=!1,v.prototype.defined=!1,v.prototype.mustUseProperty=!1,v.prototype.number=!1,v.prototype.overloadedBoolean=!1,v.prototype.property="",v.prototype.spaceSeparated=!1,v.prototype.space=void 0},56488:function(Q,C,h){"use strict";h.r(C),h.d(C,{boolean:function(){return I},booleanish:function(){return O},commaOrSpaceSeparated:function(){return he},commaSeparated:function(){return M},number:function(){return G},overloadedBoolean:function(){return B},spaceSeparated:function(){return F}});let v=0;const I=ue(),O=ue(),B=ue(),G=ue(),F=ue(),M=ue(),he=ue();function ue(){return ny(2,++v)}},46739:function(Q,C,h){"use strict";h.d(C,{UG:function(){return Gn}});var v={};h.r(v),h.d(v,{attentionMarkers:function(){return Ns},contentInitial:function(){return ur},disable:function(){return si},document:function(){return Sn},flow:function(){return Vo},flowInitial:function(){return vi},insideSpan:function(){return Rs},string:function(){return ma},text:function(){return is}});var I=h(87342),O=h(11630);const B=/[$_\p{ID_Start}]/u,G=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,F=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,M=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,he=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ue={};function te(E){return E?B.test(String.fromCodePoint(E)):!1}function Me(E,_){const q=(_||ue).jsx?F:G;return E?q.test(String.fromCodePoint(E)):!1}function we(E,_){return((_||ue).jsx?he:M).test(E)}const Je=/[ \t\n\f\r]/g;function Oe(E){return typeof E=="object"?E.type==="text"?Te(E.value):!1:Te(E)}function Te(E){return E.replace(Je,"")===""}var Ae=h(58222),Re=h(84837);const de={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 pe=h(71523),be=h(58970),me=be.default||be,ke=h(17970);function ee(E){return!E||typeof E!="object"?"":"position"in E||"type"in E?Ie(E.position):"start"in E||"end"in E?Ie(E):"line"in E||"column"in E?Ne(E):""}function Ne(E){return Pe(E&&E.line)+":"+Pe(E&&E.column)}function Ie(E){return Ne(E&&E.start)+"-"+Ne(E&&E.end)}function Pe(E){return E&&typeof E=="number"?E:1}class Xe extends Error{constructor(_,W,q){super(),typeof W=="string"&&(q=W,W=void 0);let fe="",Ce={},$e=!1;if(W&&("line"in W&&"column"in W?Ce={place:W}:"start"in W&&"end"in W?Ce={place:W}:"type"in W?Ce={ancestors:[W],place:W.position}:Ce=Uo({},W)),typeof _=="string"?fe=_:!Ce.cause&&_&&($e=!0,fe=_.message,Ce.cause=_),!Ce.ruleId&&!Ce.source&&typeof q=="string"){const jt=q.indexOf(":");jt===-1?Ce.ruleId=q:(Ce.source=q.slice(0,jt),Ce.ruleId=q.slice(jt+1))}if(!Ce.place&&Ce.ancestors&&Ce.ancestors){const jt=Ce.ancestors[Ce.ancestors.length-1];jt&&(Ce.place=jt.position)}const it=Ce.place&&"start"in Ce.place?Ce.place.start:Ce.place;this.ancestors=Ce.ancestors||void 0,this.cause=Ce.cause||void 0,this.column=it?it.column:void 0,this.fatal=void 0,this.file,this.message=fe,this.line=it?it.line:void 0,this.name=ee(Ce.place)||"1:1",this.place=Ce.place||void 0,this.reason=this.message,this.ruleId=Ce.ruleId||void 0,this.source=Ce.source||void 0,this.stack=$e&&Ce.cause&&typeof Ce.cause.stack=="string"?Ce.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xe.prototype.file="",Xe.prototype.name="",Xe.prototype.reason="",Xe.prototype.message="",Xe.prototype.stack="",Xe.prototype.column=void 0,Xe.prototype.line=void 0,Xe.prototype.ancestors=void 0,Xe.prototype.cause=void 0,Xe.prototype.fatal=void 0,Xe.prototype.place=void 0,Xe.prototype.ruleId=void 0,Xe.prototype.source=void 0;const Ye={}.hasOwnProperty,ie=new Map,lt=/[A-Z]/g,We=/-([a-z])/g,Pt=new Set(["table","tbody","thead","tfoot","tr"]),xt=new Set(["td","th"]),Tt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Et(E,_){if(!_||_.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const W=_.filePath||void 0;let q;if(_.development){if(typeof _.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");q=On(W,_.jsxDEV)}else{if(typeof _.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof _.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");q=ai(W,_.jsx,_.jsxs)}const fe={Fragment:_.Fragment,ancestors:[],components:_.components||{},create:q,elementAttributeNameCase:_.elementAttributeNameCase||"react",evaluater:_.createEvaluater?_.createEvaluater():void 0,filePath:W,ignoreInvalidStyle:_.ignoreInvalidStyle||!1,passKeys:_.passKeys!==!1,passNode:_.passNode||!1,schema:_.space==="svg"?Ae.YP:Ae.dy,stylePropertyNameCase:_.stylePropertyNameCase||"dom",tableCellAlignToStyle:_.tableCellAlignToStyle!==!1},Ce=wn(fe,E,void 0);return Ce&&typeof Ce!="string"?Ce:fe.create(E,fe.Fragment,{children:Ce||void 0},void 0)}function wn(E,_,W){if(_.type==="element")return qe(E,_,W);if(_.type==="mdxFlowExpression"||_.type==="mdxTextExpression")return ae(E,_);if(_.type==="mdxJsxFlowElement"||_.type==="mdxJsxTextElement")return $t(E,_,W);if(_.type==="mdxjsEsm")return le(E,_);if(_.type==="root")return Vt(E,_,W);if(_.type==="text")return St(E,_)}function qe(E,_,W){const q=E.schema;let fe=q;_.tagName.toLowerCase()==="svg"&&q.space==="html"&&(fe=Ae.YP,E.schema=fe),E.ancestors.push(_);const Ce=P(E,_.tagName,!1),$e=ni(E,_);let it=In(E,_);return Pt.has(_.tagName)&&(it=it.filter(function(jt){return typeof jt=="string"?!Oe(jt):!0})),un(E,$e,Ce,_),Ft($e,it),E.ancestors.pop(),E.schema=q,E.create(_,Ce,$e,W)}function ae(E,_){if(_.data&&_.data.estree&&E.evaluater){const q=_.data.estree.body[0];return(0,I.ok)(q.type==="ExpressionStatement"),E.evaluater.evaluateExpression(q.expression)}k(E,_.position)}function le(E,_){if(_.data&&_.data.estree&&E.evaluater)return E.evaluater.evaluateProgram(_.data.estree);k(E,_.position)}function $t(E,_,W){const q=E.schema;let fe=q;_.name==="svg"&&q.space==="html"&&(fe=Ae.YP,E.schema=fe),E.ancestors.push(_);const Ce=_.name===null?E.Fragment:P(E,_.name,!0),$e=Jn(E,_),it=In(E,_);return un(E,$e,Ce,_),Ft($e,it),E.ancestors.pop(),E.schema=q,E.create(_,Ce,$e,W)}function Vt(E,_,W){const q={};return Ft(q,In(E,_)),E.create(_,E.Fragment,q,W)}function St(E,_){return _.value}function un(E,_,W,q){typeof W!="string"&&W!==E.Fragment&&E.passNode&&(_.node=q)}function Ft(E,_){if(_.length>0){const W=_.length>1?_:_[0];W&&(E.children=W)}}function ai(E,_,W){return q;function q(fe,Ce,$e,it){const Lt=Array.isArray($e.children)?W:_;return it?Lt(Ce,$e,it):Lt(Ce,$e)}}function On(E,_){return W;function W(q,fe,Ce,$e){const it=Array.isArray(Ce.children),jt=(0,ke.Pk)(q);return _(fe,Ce,$e,it,{columnNumber:jt?jt.column-1:void 0,fileName:E,lineNumber:jt?jt.line:void 0},void 0)}}function ni(E,_){const W={};let q,fe;for(fe in _.properties)if(fe!=="children"&&Ye.call(_.properties,fe)){const Ce=Mn(E,fe,_.properties[fe]);if(Ce){const[$e,it]=Ce;E.tableCellAlignToStyle&&$e==="align"&&typeof it=="string"&&xt.has(_.tagName)?q=it:W[$e]=it}}if(q){const Ce=W.style||(W.style={});Ce[E.stylePropertyNameCase==="css"?"text-align":"textAlign"]=q}return W}function Jn(E,_){const W={};for(const q of _.attributes)if(q.type==="mdxJsxExpressionAttribute")if(q.data&&q.data.estree&&E.evaluater){const Ce=q.data.estree.body[0];(0,I.ok)(Ce.type==="ExpressionStatement");const $e=Ce.expression;(0,I.ok)($e.type==="ObjectExpression");const it=$e.properties[0];(0,I.ok)(it.type==="SpreadElement"),Object.assign(W,E.evaluater.evaluateExpression(it.argument))}else k(E,_.position);else{const fe=q.name;let Ce;if(q.value&&typeof q.value=="object")if(q.value.data&&q.value.data.estree&&E.evaluater){const it=q.value.data.estree.body[0];(0,I.ok)(it.type==="ExpressionStatement"),Ce=E.evaluater.evaluateExpression(it.expression)}else k(E,_.position);else Ce=q.value===null?!0:q.value;W[fe]=Ce}return W}function In(E,_){const W=[];let q=-1;const fe=E.passKeys?new Map:ie;for(;++q<_.children.length;){const Ce=_.children[q];let $e;if(E.passKeys){const jt=Ce.type==="element"?Ce.tagName:Ce.type==="mdxJsxFlowElement"||Ce.type==="mdxJsxTextElement"?Ce.name:void 0;if(jt){const Lt=fe.get(jt)||0;$e=jt+"-"+Lt,fe.set(jt,Lt+1)}}const it=wn(E,Ce,$e);it!==void 0&&W.push(it)}return W}function Mn(E,_,W){const q=(0,Re.s)(E.schema,_);if(!(W==null||typeof W=="number"&&Number.isNaN(W))){if(Array.isArray(W)&&(W=q.commaSeparated?(0,O.P)(W):(0,pe.P)(W)),q.property==="style"){let fe=typeof W=="object"?W:xe(E,String(W));return E.stylePropertyNameCase==="css"&&(fe=j(fe)),["style",fe]}return[E.elementAttributeNameCase==="react"&&q.space?de[q.property]||q.property:q.attribute,W]}}function xe(E,_){const W={};try{me(_,q)}catch(fe){if(!E.ignoreInvalidStyle){const Ce=fe,$e=new Xe("Cannot parse `style` attribute",{ancestors:E.ancestors,cause:Ce,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw $e.file=E.filePath||void 0,$e.url=Tt+"#cannot-parse-style-attribute",$e}}return W;function q(fe,Ce){let $e=fe;$e.slice(0,2)!=="--"&&($e.slice(0,4)==="-ms-"&&($e="ms-"+$e.slice(4)),$e=$e.replace(We,T)),W[$e]=Ce}}function P(E,_,W){let q;if(!W)q={type:"Literal",value:_};else if(_.includes(".")){const fe=_.split(".");let Ce=-1,$e;for(;++Ce<fe.length;){const it=we(fe[Ce])?{type:"Identifier",name:fe[Ce]}:{type:"Literal",value:fe[Ce]};$e=$e?{type:"MemberExpression",object:$e,property:it,computed:!!(Ce&&it.type==="Literal"),optional:!1}:it}(0,I.ok)($e,"always a result"),q=$e}else q=we(_)&&!/^[a-z]/.test(_)?{type:"Identifier",name:_}:{type:"Literal",value:_};if(q.type==="Literal"){const fe=q.value;return Ye.call(E.components,fe)?E.components[fe]:fe}if(E.evaluater)return E.evaluater.evaluateExpression(q);k(E)}function k(E,_){const W=new Xe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:E.ancestors,place:_,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw W.file=E.filePath||void 0,W.url=Tt+"#cannot-handle-mdx-estrees-without-createevaluater",W}function j(E){const _={};let W;for(W in E)Ye.call(E,W)&&(_[X(W)]=E[W]);return _}function X(E){let _=E.replace(lt,_e);return _.slice(0,3)==="ms-"&&(_="-"+_),_}function T(E,_){return _.toUpperCase()}function _e(E){return"-"+E.toLowerCase()}const kt={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 Ue=h(37712),Be=h(59301);const mt={};function ct(E,_){const W=_||mt,q=typeof W.includeImageAlt=="boolean"?W.includeImageAlt:!0,fe=typeof W.includeHtml=="boolean"?W.includeHtml:!0;return tt(E,q,fe)}function tt(E,_,W){if(an(E)){if("value"in E)return E.type==="html"&&!W?"":E.value;if(_&&"alt"in E&&E.alt)return E.alt;if("children"in E)return It(E.children,_,W)}return Array.isArray(E)?It(E,_,W):""}function It(E,_,W){const q=[];let fe=-1;for(;++fe<E.length;)q[fe]=tt(E[fe],_,W);return q.join("")}function an(E){return!!(E&&typeof E=="object")}function en(E,_,W,q){const fe=E.length;let Ce=0,$e;if(_<0?_=-_>fe?0:fe+_:_=_>fe?fe:_,W=W>0?W:0,q.length<1e4)$e=Array.from(q),$e.unshift(_,W),E.splice(...$e);else for(W&&E.splice(_,W);Ce<q.length;)$e=q.slice(Ce,Ce+1e4),$e.unshift(_,0),E.splice(...$e),Ce+=1e4,_+=1e4}function Bt(E,_){return E.length>0?(en(E,E.length,0,_),E):_}class cn{constructor(_){this.left=_?[..._]:[],this.right=[]}get(_){if(_<0||_>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+_+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return _<this.left.length?this.left[_]:this.right[this.right.length-_+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(_,W){const q=W==null?Number.POSITIVE_INFINITY:W;return q<this.left.length?this.left.slice(_,q):_>this.left.length?this.right.slice(this.right.length-q+this.left.length,this.right.length-_+this.left.length).reverse():this.left.slice(_).concat(this.right.slice(this.right.length-q+this.left.length).reverse())}splice(_,W,q){const fe=W||0;this.setCursor(Math.trunc(_));const Ce=this.right.splice(this.right.length-fe,Number.POSITIVE_INFINITY);return q&&gn(this.left,q),Ce.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(_){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(_)}pushMany(_){this.setCursor(Number.POSITIVE_INFINITY),gn(this.left,_)}unshift(_){this.setCursor(0),this.right.push(_)}unshiftMany(_){this.setCursor(0),gn(this.right,_.reverse())}setCursor(_){if(!(_===this.left.length||_>this.left.length&&this.right.length===0||_<0&&this.left.length===0))if(_<this.left.length){const W=this.left.splice(_,Number.POSITIVE_INFINITY);gn(this.right,W.reverse())}else{const W=this.right.splice(this.left.length+this.right.length-_,Number.POSITIVE_INFINITY);gn(this.left,W.reverse())}}}function gn(E,_){let W=0;if(_.length<1e4)E.push(..._);else for(;W<_.length;)E.push(..._.slice(W,W+1e4)),W+=1e4}function Qe(E){const _={};let W=-1,q,fe,Ce,$e,it,jt,Lt;const dt=new cn(E);for(;++W<dt.length;){for(;W in _;)W=_[W];if(q=dt.get(W),W&&q[1].type==="chunkFlow"&&dt.get(W-1)[1].type==="listItemPrefix"&&(jt=q[1]._tokenizer.events,Ce=0,Ce<jt.length&&jt[Ce][1].type==="lineEndingBlank"&&(Ce+=2),Ce<jt.length&&jt[Ce][1].type==="content"))for(;++Ce<jt.length&&jt[Ce][1].type!=="content";)jt[Ce][1].type==="chunkText"&&(jt[Ce][1]._isInFirstContentOfListItem=!0,Ce++);if(q[0]==="enter")q[1].contentType&&(Object.assign(_,Ut(dt,W)),W=_[W],Lt=!0);else if(q[1]._container){for(Ce=W,fe=void 0;Ce--;)if($e=dt.get(Ce),$e[1].type==="lineEnding"||$e[1].type==="lineEndingBlank")$e[0]==="enter"&&(fe&&(dt.get(fe)[1].type="lineEndingBlank"),$e[1].type="lineEnding",fe=Ce);else if(!($e[1].type==="linePrefix"||$e[1].type==="listItemIndent"))break;fe&&(q[1].end=Uo({},dt.get(fe)[1].start),it=dt.slice(fe,W),it.unshift(q),dt.splice(fe,W-fe+1,it))}}return en(E,0,Number.POSITIVE_INFINITY,dt.slice(0)),!Lt}function Ut(E,_){const W=E.get(_)[1],q=E.get(_)[2];let fe=_-1;const Ce=[];let $e=W._tokenizer;$e||($e=q.parser[W.contentType](W.start),W._contentTypeTextTrailing&&($e._contentTypeTextTrailing=!0));const it=$e.events,jt=[],Lt={};let dt,Yt,qt=-1,zt=W,Si=0,li=0;const lr=[li];for(;zt;){for(;E.get(++fe)[1]!==zt;);Ce.push(fe),zt._tokenizer||(dt=q.sliceStream(zt),zt.next||dt.push(null),Yt&&$e.defineSkip(zt.start),zt._isInFirstContentOfListItem&&($e._gfmTasklistFirstContentOfListItem=!0),$e.write(dt),zt._isInFirstContentOfListItem&&($e._gfmTasklistFirstContentOfListItem=void 0)),Yt=zt,zt=zt.next}for(zt=W;++qt<it.length;)it[qt][0]==="exit"&&it[qt-1][0]==="enter"&&it[qt][1].type===it[qt-1][1].type&&it[qt][1].start.line!==it[qt][1].end.line&&(li=qt+1,lr.push(li),zt._tokenizer=void 0,zt.previous=void 0,zt=zt.next);for($e.events=[],zt?(zt._tokenizer=void 0,zt.previous=void 0):lr.pop(),qt=lr.length;qt--;){const Ni=it.slice(lr[qt],lr[qt+1]),Mr=Ce.pop();jt.push([Mr,Mr+Ni.length-1]),E.splice(Mr,2,Ni)}for(jt.reverse(),qt=-1;++qt<jt.length;)Lt[Si+jt[qt][0]]=Si+jt[qt][1],Si+=jt[qt][1]-jt[qt][0]-1;return Lt}function tn(E){for(;!Qe(E););return E}const nn={}.hasOwnProperty;function He(E){const _={};let W=-1;for(;++W<E.length;)Bn(_,E[W]);return _}function Bn(E,_){let W;for(W in _){const fe=(nn.call(E,W)?E[W]:void 0)||(E[W]={}),Ce=_[W];let $e;if(Ce)for($e in Ce){nn.call(fe,$e)||(fe[$e]=[]);const it=Ce[$e];kn(fe[$e],Array.isArray(it)?it:it?[it]:[])}}}function kn(E,_){let W=-1;const q=[];for(;++W<_.length;)(_[W].add==="after"?E:q).push(_[W]);en(E,0,0,q)}function Kn(E){const _={};let W=-1;for(;++W<E.length;)Ti(_,E[W]);return _}function Ti(E,_){let W;for(W in _){const fe=(nn.call(E,W)?E[W]:void 0)||(E[W]={}),Ce=_[W];let $e;if(Ce)for($e in Ce)fe[$e]=Ce[$e]}}var hi=h(26735),dn=h(80722);const sn={tokenize:gr};function gr(E){const _=E.attempt(this.parser.constructs.contentInitial,q,fe);let W;return _;function q(it){if(it===null){E.consume(it);return}return E.enter("lineEnding"),E.consume(it),E.exit("lineEnding"),(0,hi.f)(E,_,"linePrefix")}function fe(it){return E.enter("paragraph"),Ce(it)}function Ce(it){const jt=E.enter("chunkText",{contentType:"text",previous:W});return W&&(W.next=jt),W=jt,$e(it)}function $e(it){if(it===null){E.exit("chunkText"),E.exit("paragraph"),E.consume(it);return}return(0,dn.Ch)(it)?(E.consume(it),E.exit("chunkText"),Ce):(E.consume(it),$e)}}const dr={tokenize:Rr},qn={tokenize:tr};function Rr(E){const _=this,W=[];let q=0,fe,Ce,$e;return it;function it(Zi){if(q<W.length){const oo=W[q];return _.containerState=oo[1],E.attempt(oo[0].continuation,jt,Lt)(Zi)}return Lt(Zi)}function jt(Zi){if(q++,_.containerState._closeFlow){_.containerState._closeFlow=void 0,fe&&Mr();const oo=_.events.length;let uo=oo,ii;for(;uo--;)if(_.events[uo][0]==="exit"&&_.events[uo][1].type==="chunkFlow"){ii=_.events[uo][1].end;break}Ni(q);let qi=oo;for(;qi<_.events.length;)_.events[qi][1].end=Uo({},ii),qi++;return en(_.events,uo+1,0,_.events.slice(oo)),_.events.length=qi,Lt(Zi)}return it(Zi)}function Lt(Zi){if(q===W.length){if(!fe)return qt(Zi);if(fe.currentConstruct&&fe.currentConstruct.concrete)return Si(Zi);_.interrupt=!!(fe.currentConstruct&&!fe._gfmTableDynamicInterruptHack)}return _.containerState={},E.check(qn,dt,Yt)(Zi)}function dt(Zi){return fe&&Mr(),Ni(q),qt(Zi)}function Yt(Zi){return _.parser.lazy[_.now().line]=q!==W.length,$e=_.now().offset,Si(Zi)}function qt(Zi){return _.containerState={},E.attempt(qn,zt,Si)(Zi)}function zt(Zi){return q++,W.push([_.currentConstruct,_.containerState]),qt(Zi)}function Si(Zi){if(Zi===null){fe&&Mr(),Ni(0),E.consume(Zi);return}return fe=fe||_.parser.flow(_.now()),E.enter("chunkFlow",{_tokenizer:fe,contentType:"flow",previous:Ce}),li(Zi)}function li(Zi){if(Zi===null){lr(E.exit("chunkFlow"),!0),Ni(0),E.consume(Zi);return}return(0,dn.Ch)(Zi)?(E.consume(Zi),lr(E.exit("chunkFlow")),q=0,_.interrupt=void 0,it):(E.consume(Zi),li)}function lr(Zi,oo){const uo=_.sliceStream(Zi);if(oo&&uo.push(null),Zi.previous=Ce,Ce&&(Ce.next=Zi),Ce=Zi,fe.defineSkip(Zi.start),fe.write(uo),_.parser.lazy[Zi.start.line]){let ii=fe.events.length;for(;ii--;)if(fe.events[ii][1].start.offset<$e&&(!fe.events[ii][1].end||fe.events[ii][1].end.offset>$e))return;const qi=_.events.length;let Qr=qi,qr,no;for(;Qr--;)if(_.events[Qr][0]==="exit"&&_.events[Qr][1].type==="chunkFlow"){if(qr){no=_.events[Qr][1].end;break}qr=!0}for(Ni(q),ii=qi;ii<_.events.length;)_.events[ii][1].end=Uo({},no),ii++;en(_.events,Qr+1,0,_.events.slice(qi)),_.events.length=ii}}function Ni(Zi){let oo=W.length;for(;oo-- >Zi;){const uo=W[oo];_.containerState=uo[1],uo[0].exit.call(_,E)}W.length=Zi}function Mr(){fe.write([null]),Ce=void 0,fe=void 0,_.containerState._closeFlow=void 0}}function tr(E,_,W){return(0,hi.f)(E,E.attempt(this.parser.constructs.document,_,W),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const U={partial:!0,tokenize:br};function br(E,_,W){return q;function q(Ce){return(0,dn.xz)(Ce)?(0,hi.f)(E,fe,"linePrefix")(Ce):fe(Ce)}function fe(Ce){return Ce===null||(0,dn.Ch)(Ce)?_(Ce):W(Ce)}}const fr={resolve:jr,tokenize:so},Fr={partial:!0,tokenize:Ar};function jr(E){return Qe(E),E}function so(E,_){let W;return q;function q(it){return E.enter("content"),W=E.enter("chunkContent",{contentType:"content"}),fe(it)}function fe(it){return it===null?Ce(it):(0,dn.Ch)(it)?E.check(Fr,$e,Ce)(it):(E.consume(it),fe)}function Ce(it){return E.exit("chunkContent"),E.exit("content"),_(it)}function $e(it){return E.consume(it),E.exit("chunkContent"),W.next=E.enter("chunkContent",{contentType:"content",previous:W}),W=W.next,fe}}function Ar(E,_,W){const q=this;return fe;function fe($e){return E.exit("chunkContent"),E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),(0,hi.f)(E,Ce,"linePrefix")}function Ce($e){if($e===null||(0,dn.Ch)($e))return W($e);const it=q.events[q.events.length-1];return!q.parser.constructs.disable.null.includes("codeIndented")&&it&&it[1].type==="linePrefix"&&it[2].sliceSerialize(it[1],!0).length>=4?_($e):E.interrupt(q.parser.constructs.flow,W,_)($e)}}const to={tokenize:vr};function vr(E){const _=this,W=E.attempt(U,q,E.attempt(this.parser.constructs.flowInitial,fe,(0,hi.f)(E,E.attempt(this.parser.constructs.flow,fe,E.attempt(fr,fe)),"linePrefix")));return W;function q(Ce){if(Ce===null){E.consume(Ce);return}return E.enter("lineEndingBlank"),E.consume(Ce),E.exit("lineEndingBlank"),_.currentConstruct=void 0,W}function fe(Ce){if(Ce===null){E.consume(Ce);return}return E.enter("lineEnding"),E.consume(Ce),E.exit("lineEnding"),_.currentConstruct=void 0,W}}const Ji={resolveAll:Wn()},di=Un("string"),ft=Un("text");function Un(E){return{resolveAll:Wn(E==="text"?vt:void 0),tokenize:_};function _(W){const q=this,fe=this.parser.constructs[E],Ce=W.attempt(fe,$e,it);return $e;function $e(dt){return Lt(dt)?Ce(dt):it(dt)}function it(dt){if(dt===null){W.consume(dt);return}return W.enter("data"),W.consume(dt),jt}function jt(dt){return Lt(dt)?(W.exit("data"),Ce(dt)):(W.consume(dt),jt)}function Lt(dt){if(dt===null)return!0;const Yt=fe[dt];let qt=-1;if(Yt)for(;++qt<Yt.length;){const zt=Yt[qt];if(!zt.previous||zt.previous.call(q,q.previous))return!0}return!1}}}function Wn(E){return _;function _(W,q){let fe=-1,Ce;for(;++fe<=W.length;)Ce===void 0?W[fe]&&W[fe][1].type==="data"&&(Ce=fe,fe++):(!W[fe]||W[fe][1].type!=="data")&&(fe!==Ce+2&&(W[Ce][1].end=W[fe-1][1].end,W.splice(Ce+2,fe-Ce-2),fe=Ce+2),Ce=void 0);return E?E(W,q):W}}function vt(E,_){let W=0;for(;++W<=E.length;)if((W===E.length||E[W][1].type==="lineEnding")&&E[W-1][1].type==="data"){const q=E[W-1][1],fe=_.sliceStream(q);let Ce=fe.length,$e=-1,it=0,jt;for(;Ce--;){const Lt=fe[Ce];if(typeof Lt=="string"){for($e=Lt.length;Lt.charCodeAt($e-1)===32;)it++,$e--;if($e)break;$e=-1}else if(Lt===-2)jt=!0,it++;else if(Lt!==-1){Ce++;break}}if(_._contentTypeTextTrailing&&W===E.length&&(it=0),it){const Lt={type:W===E.length||jt||it<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ce?$e:q.start._bufferIndex+$e,_index:q.start._index+Ce,line:q.end.line,column:q.end.column-it,offset:q.end.offset-it},end:Uo({},q.end)};q.end=Uo({},Lt.start),q.start.offset===q.end.offset?Object.assign(q,Lt):(E.splice(W,0,["enter",Lt,_],["exit",Lt,_]),W+=2)}W++}return E}const Ve={name:"thematicBreak",tokenize:vn};function vn(E,_,W){let q=0,fe;return Ce;function Ce(Lt){return E.enter("thematicBreak"),$e(Lt)}function $e(Lt){return fe=Lt,it(Lt)}function it(Lt){return Lt===fe?(E.enter("thematicBreakSequence"),jt(Lt)):q>=3&&(Lt===null||(0,dn.Ch)(Lt))?(E.exit("thematicBreak"),_(Lt)):W(Lt)}function jt(Lt){return Lt===fe?(E.consume(Lt),q++,jt):(E.exit("thematicBreakSequence"),(0,dn.xz)(Lt)?(0,hi.f)(E,it,"whitespace")(Lt):it(Lt))}}const Nn={continuation:{tokenize:Ht},exit:jn,name:"list",tokenize:Ke},on={partial:!0,tokenize:at},Ct={partial:!0,tokenize:Rt};function Ke(E,_,W){const q=this,fe=q.events[q.events.length-1];let Ce=fe&&fe[1].type==="linePrefix"?fe[2].sliceSerialize(fe[1],!0).length:0,$e=0;return it;function it(zt){const Si=q.containerState.type||(zt===42||zt===43||zt===45?"listUnordered":"listOrdered");if(Si==="listUnordered"?!q.containerState.marker||zt===q.containerState.marker:(0,dn.pY)(zt)){if(q.containerState.type||(q.containerState.type=Si,E.enter(Si,{_container:!0})),Si==="listUnordered")return E.enter("listItemPrefix"),zt===42||zt===45?E.check(Ve,W,Lt)(zt):Lt(zt);if(!q.interrupt||zt===49)return E.enter("listItemPrefix"),E.enter("listItemValue"),jt(zt)}return W(zt)}function jt(zt){return(0,dn.pY)(zt)&&++$e<10?(E.consume(zt),jt):(!q.interrupt||$e<2)&&(q.containerState.marker?zt===q.containerState.marker:zt===41||zt===46)?(E.exit("listItemValue"),Lt(zt)):W(zt)}function Lt(zt){return E.enter("listItemMarker"),E.consume(zt),E.exit("listItemMarker"),q.containerState.marker=q.containerState.marker||zt,E.check(U,q.interrupt?W:dt,E.attempt(on,qt,Yt))}function dt(zt){return q.containerState.initialBlankLine=!0,Ce++,qt(zt)}function Yt(zt){return(0,dn.xz)(zt)?(E.enter("listItemPrefixWhitespace"),E.consume(zt),E.exit("listItemPrefixWhitespace"),qt):W(zt)}function qt(zt){return q.containerState.size=Ce+q.sliceSerialize(E.exit("listItemPrefix"),!0).length,_(zt)}}function Ht(E,_,W){const q=this;return q.containerState._closeFlow=void 0,E.check(U,fe,Ce);function fe(it){return q.containerState.furtherBlankLines=q.containerState.furtherBlankLines||q.containerState.initialBlankLine,(0,hi.f)(E,_,"listItemIndent",q.containerState.size+1)(it)}function Ce(it){return q.containerState.furtherBlankLines||!(0,dn.xz)(it)?(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,$e(it)):(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,E.attempt(Ct,_,$e)(it))}function $e(it){return q.containerState._closeFlow=!0,q.interrupt=void 0,(0,hi.f)(E,E.attempt(Nn,_,W),"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it)}}function Rt(E,_,W){const q=this;return(0,hi.f)(E,fe,"listItemIndent",q.containerState.size+1);function fe(Ce){const $e=q.events[q.events.length-1];return $e&&$e[1].type==="listItemIndent"&&$e[2].sliceSerialize($e[1],!0).length===q.containerState.size?_(Ce):W(Ce)}}function jn(E){E.exit(this.containerState.type)}function at(E,_,W){const q=this;return(0,hi.f)(E,fe,"listItemPrefixWhitespace",q.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function fe(Ce){const $e=q.events[q.events.length-1];return!(0,dn.xz)(Ce)&&$e&&$e[1].type==="listItemPrefixWhitespace"?_(Ce):W(Ce)}}const hn={continuation:{tokenize:Ge},exit:L,name:"blockQuote",tokenize:yt};function yt(E,_,W){const q=this;return fe;function fe($e){if($e===62){const it=q.containerState;return it.open||(E.enter("blockQuote",{_container:!0}),it.open=!0),E.enter("blockQuotePrefix"),E.enter("blockQuoteMarker"),E.consume($e),E.exit("blockQuoteMarker"),Ce}return W($e)}function Ce($e){return(0,dn.xz)($e)?(E.enter("blockQuotePrefixWhitespace"),E.consume($e),E.exit("blockQuotePrefixWhitespace"),E.exit("blockQuotePrefix"),_):(E.exit("blockQuotePrefix"),_($e))}}function Ge(E,_,W){const q=this;return fe;function fe($e){return(0,dn.xz)($e)?(0,hi.f)(E,Ce,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($e):Ce($e)}function Ce($e){return E.attempt(hn,_,W)($e)}}function L(E){E.exit("blockQuote")}function Dt(E,_,W,q,fe,Ce,$e,it,jt){const Lt=jt||Number.POSITIVE_INFINITY;let dt=0;return Yt;function Yt(Ni){return Ni===60?(E.enter(q),E.enter(fe),E.enter(Ce),E.consume(Ni),E.exit(Ce),qt):Ni===null||Ni===32||Ni===41||(0,dn.Av)(Ni)?W(Ni):(E.enter(q),E.enter($e),E.enter(it),E.enter("chunkString",{contentType:"string"}),li(Ni))}function qt(Ni){return Ni===62?(E.enter(Ce),E.consume(Ni),E.exit(Ce),E.exit(fe),E.exit(q),_):(E.enter(it),E.enter("chunkString",{contentType:"string"}),zt(Ni))}function zt(Ni){return Ni===62?(E.exit("chunkString"),E.exit(it),qt(Ni)):Ni===null||Ni===60||(0,dn.Ch)(Ni)?W(Ni):(E.consume(Ni),Ni===92?Si:zt)}function Si(Ni){return Ni===60||Ni===62||Ni===92?(E.consume(Ni),zt):zt(Ni)}function li(Ni){return!dt&&(Ni===null||Ni===41||(0,dn.z3)(Ni))?(E.exit("chunkString"),E.exit(it),E.exit($e),E.exit(q),_(Ni)):dt<Lt&&Ni===40?(E.consume(Ni),dt++,li):Ni===41?(E.consume(Ni),dt--,li):Ni===null||Ni===32||Ni===40||(0,dn.Av)(Ni)?W(Ni):(E.consume(Ni),Ni===92?lr:li)}function lr(Ni){return Ni===40||Ni===41||Ni===92?(E.consume(Ni),li):li(Ni)}}function Jt(E,_,W,q,fe,Ce){const $e=this;let it=0,jt;return Lt;function Lt(zt){return E.enter(q),E.enter(fe),E.consume(zt),E.exit(fe),E.enter(Ce),dt}function dt(zt){return it>999||zt===null||zt===91||zt===93&&!jt||zt===94&&!it&&"_hiddenFootnoteSupport"in $e.parser.constructs?W(zt):zt===93?(E.exit(Ce),E.enter(fe),E.consume(zt),E.exit(fe),E.exit(q),_):(0,dn.Ch)(zt)?(E.enter("lineEnding"),E.consume(zt),E.exit("lineEnding"),dt):(E.enter("chunkString",{contentType:"string"}),Yt(zt))}function Yt(zt){return zt===null||zt===91||zt===93||(0,dn.Ch)(zt)||it++>999?(E.exit("chunkString"),dt(zt)):(E.consume(zt),jt||(jt=!(0,dn.xz)(zt)),zt===92?qt:Yt)}function qt(zt){return zt===91||zt===92||zt===93?(E.consume(zt),it++,Yt):Yt(zt)}}function gt(E,_,W,q,fe,Ce){let $e;return it;function it(qt){return qt===34||qt===39||qt===40?(E.enter(q),E.enter(fe),E.consume(qt),E.exit(fe),$e=qt===40?41:qt,jt):W(qt)}function jt(qt){return qt===$e?(E.enter(fe),E.consume(qt),E.exit(fe),E.exit(q),_):(E.enter(Ce),Lt(qt))}function Lt(qt){return qt===$e?(E.exit(Ce),jt($e)):qt===null?W(qt):(0,dn.Ch)(qt)?(E.enter("lineEnding"),E.consume(qt),E.exit("lineEnding"),(0,hi.f)(E,Lt,"linePrefix")):(E.enter("chunkString",{contentType:"string"}),dt(qt))}function dt(qt){return qt===$e||qt===null||(0,dn.Ch)(qt)?(E.exit("chunkString"),Lt(qt)):(E.consume(qt),qt===92?Yt:dt)}function Yt(qt){return qt===$e||qt===92?(E.consume(qt),dt):dt(qt)}}function fn(E,_){let W;return q;function q(fe){return(0,dn.Ch)(fe)?(E.enter("lineEnding"),E.consume(fe),E.exit("lineEnding"),W=!0,q):(0,dn.xz)(fe)?(0,hi.f)(E,q,W?"linePrefix":"lineSuffix")(fe):_(fe)}}function Cn(E){return E.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ui={name:"definition",tokenize:rt},Ln={partial:!0,tokenize:Oi};function rt(E,_,W){const q=this;let fe;return Ce;function Ce(zt){return E.enter("definition"),$e(zt)}function $e(zt){return Jt.call(q,E,it,W,"definitionLabel","definitionLabelMarker","definitionLabelString")(zt)}function it(zt){return fe=Cn(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)),zt===58?(E.enter("definitionMarker"),E.consume(zt),E.exit("definitionMarker"),jt):W(zt)}function jt(zt){return(0,dn.z3)(zt)?fn(E,Lt)(zt):Lt(zt)}function Lt(zt){return Dt(E,dt,W,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(zt)}function dt(zt){return E.attempt(Ln,Yt,Yt)(zt)}function Yt(zt){return(0,dn.xz)(zt)?(0,hi.f)(E,qt,"whitespace")(zt):qt(zt)}function qt(zt){return zt===null||(0,dn.Ch)(zt)?(E.exit("definition"),q.parser.defined.push(fe),_(zt)):W(zt)}}function Oi(E,_,W){return q;function q(it){return(0,dn.z3)(it)?fn(E,fe)(it):W(it)}function fe(it){return gt(E,Ce,W,"definitionTitle","definitionTitleMarker","definitionTitleString")(it)}function Ce(it){return(0,dn.xz)(it)?(0,hi.f)(E,$e,"whitespace")(it):$e(it)}function $e(it){return it===null||(0,dn.Ch)(it)?_(it):W(it)}}const Qi={name:"codeIndented",tokenize:zi},Kt={partial:!0,tokenize:J};function zi(E,_,W){const q=this;return fe;function fe(Lt){return E.enter("codeIndented"),(0,hi.f)(E,Ce,"linePrefix",5)(Lt)}function Ce(Lt){const dt=q.events[q.events.length-1];return dt&&dt[1].type==="linePrefix"&&dt[2].sliceSerialize(dt[1],!0).length>=4?$e(Lt):W(Lt)}function $e(Lt){return Lt===null?jt(Lt):(0,dn.Ch)(Lt)?E.attempt(Kt,$e,jt)(Lt):(E.enter("codeFlowValue"),it(Lt))}function it(Lt){return Lt===null||(0,dn.Ch)(Lt)?(E.exit("codeFlowValue"),$e(Lt)):(E.consume(Lt),it)}function jt(Lt){return E.exit("codeIndented"),_(Lt)}}function J(E,_,W){const q=this;return fe;function fe($e){return q.parser.lazy[q.now().line]?W($e):(0,dn.Ch)($e)?(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),fe):(0,hi.f)(E,Ce,"linePrefix",5)($e)}function Ce($e){const it=q.events[q.events.length-1];return it&&it[1].type==="linePrefix"&&it[2].sliceSerialize(it[1],!0).length>=4?_($e):(0,dn.Ch)($e)?fe($e):W($e)}}const re={name:"headingAtx",resolve:Hn,tokenize:Fe};function Hn(E,_){let W=E.length-2,q=3,fe,Ce;return E[q][1].type==="whitespace"&&(q+=2),W-2>q&&E[W][1].type==="whitespace"&&(W-=2),E[W][1].type==="atxHeadingSequence"&&(q===W-1||W-4>q&&E[W-2][1].type==="whitespace")&&(W-=q+1===W?2:4),W>q&&(fe={type:"atxHeadingText",start:E[q][1].start,end:E[W][1].end},Ce={type:"chunkText",start:E[q][1].start,end:E[W][1].end,contentType:"text"},en(E,q,W-q+1,[["enter",fe,_],["enter",Ce,_],["exit",Ce,_],["exit",fe,_]])),E}function Fe(E,_,W){let q=0;return fe;function fe(dt){return E.enter("atxHeading"),Ce(dt)}function Ce(dt){return E.enter("atxHeadingSequence"),$e(dt)}function $e(dt){return dt===35&&q++<6?(E.consume(dt),$e):dt===null||(0,dn.z3)(dt)?(E.exit("atxHeadingSequence"),it(dt)):W(dt)}function it(dt){return dt===35?(E.enter("atxHeadingSequence"),jt(dt)):dt===null||(0,dn.Ch)(dt)?(E.exit("atxHeading"),_(dt)):(0,dn.xz)(dt)?(0,hi.f)(E,it,"whitespace")(dt):(E.enter("atxHeadingText"),Lt(dt))}function jt(dt){return dt===35?(E.consume(dt),jt):(E.exit("atxHeadingSequence"),it(dt))}function Lt(dt){return dt===null||dt===35||(0,dn.z3)(dt)?(E.exit("atxHeadingText"),it(dt)):(E.consume(dt),Lt)}}const wt={name:"setextUnderline",resolveTo:gi,tokenize:Rn};function gi(E,_){let W=E.length,q,fe,Ce;for(;W--;)if(E[W][0]==="enter"){if(E[W][1].type==="content"){q=W;break}E[W][1].type==="paragraph"&&(fe=W)}else E[W][1].type==="content"&&E.splice(W,1),!Ce&&E[W][1].type==="definition"&&(Ce=W);const $e={type:"setextHeading",start:Uo({},E[q][1].start),end:Uo({},E[E.length-1][1].end)};return E[fe][1].type="setextHeadingText",Ce?(E.splice(fe,0,["enter",$e,_]),E.splice(Ce+1,0,["exit",E[q][1],_]),E[q][1].end=Uo({},E[Ce][1].end)):E[q][1]=$e,E.push(["exit",$e,_]),E}function Rn(E,_,W){const q=this;let fe;return Ce;function Ce(Lt){let dt=q.events.length,Yt;for(;dt--;)if(q.events[dt][1].type!=="lineEnding"&&q.events[dt][1].type!=="linePrefix"&&q.events[dt][1].type!=="content"){Yt=q.events[dt][1].type==="paragraph";break}return!q.parser.lazy[q.now().line]&&(q.interrupt||Yt)?(E.enter("setextHeadingLine"),fe=Lt,$e(Lt)):W(Lt)}function $e(Lt){return E.enter("setextHeadingLineSequence"),it(Lt)}function it(Lt){return Lt===fe?(E.consume(Lt),it):(E.exit("setextHeadingLineSequence"),(0,dn.xz)(Lt)?(0,hi.f)(E,jt,"lineSuffix")(Lt):jt(Lt))}function jt(Lt){return Lt===null||(0,dn.Ch)(Lt)?(E.exit("setextHeadingLine"),_(Lt)):W(Lt)}}const _i=["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"],Xt=["pre","script","style","textarea"],Ei={concrete:!0,name:"htmlFlow",resolveTo:Gr,tokenize:At},Zt={partial:!0,tokenize:Qt},Bi={partial:!0,tokenize:eo};function Gr(E){let _=E.length;for(;_--&&!(E[_][0]==="enter"&&E[_][1].type==="htmlFlow"););return _>1&&E[_-2][1].type==="linePrefix"&&(E[_][1].start=E[_-2][1].start,E[_+1][1].start=E[_-2][1].start,E.splice(_-2,2)),E}function At(E,_,W){const q=this;let fe,Ce,$e,it,jt;return Lt;function Lt(En){return dt(En)}function dt(En){return E.enter("htmlFlow"),E.enter("htmlFlowData"),E.consume(En),Yt}function Yt(En){return En===33?(E.consume(En),qt):En===47?(E.consume(En),Ce=!0,li):En===63?(E.consume(En),fe=3,q.interrupt?_:rn):(0,dn.jv)(En)?(E.consume(En),$e=String.fromCharCode(En),lr):W(En)}function qt(En){return En===45?(E.consume(En),fe=2,zt):En===91?(E.consume(En),fe=5,it=0,Si):(0,dn.jv)(En)?(E.consume(En),fe=4,q.interrupt?_:rn):W(En)}function zt(En){return En===45?(E.consume(En),q.interrupt?_:rn):W(En)}function Si(En){const go="CDATA[";return En===go.charCodeAt(it++)?(E.consume(En),it===go.length?q.interrupt?_:ir:Si):W(En)}function li(En){return(0,dn.jv)(En)?(E.consume(En),$e=String.fromCharCode(En),lr):W(En)}function lr(En){if(En===null||En===47||En===62||(0,dn.z3)(En)){const go=En===47,_a=$e.toLowerCase();return!go&&!Ce&&Xt.includes(_a)?(fe=1,q.interrupt?_(En):ir(En)):_i.includes($e.toLowerCase())?(fe=6,go?(E.consume(En),Ni):q.interrupt?_(En):ir(En)):(fe=7,q.interrupt&&!q.parser.lazy[q.now().line]?W(En):Ce?Mr(En):Zi(En))}return En===45||(0,dn.H$)(En)?(E.consume(En),$e+=String.fromCharCode(En),lr):W(En)}function Ni(En){return En===62?(E.consume(En),q.interrupt?_:ir):W(En)}function Mr(En){return(0,dn.xz)(En)?(E.consume(En),Mr):no(En)}function Zi(En){return En===47?(E.consume(En),no):En===58||En===95||(0,dn.jv)(En)?(E.consume(En),oo):(0,dn.xz)(En)?(E.consume(En),Zi):no(En)}function oo(En){return En===45||En===46||En===58||En===95||(0,dn.H$)(En)?(E.consume(En),oo):uo(En)}function uo(En){return En===61?(E.consume(En),ii):(0,dn.xz)(En)?(E.consume(En),uo):Zi(En)}function ii(En){return En===null||En===60||En===61||En===62||En===96?W(En):En===34||En===39?(E.consume(En),jt=En,qi):(0,dn.xz)(En)?(E.consume(En),ii):Qr(En)}function qi(En){return En===jt?(E.consume(En),jt=null,qr):En===null||(0,dn.Ch)(En)?W(En):(E.consume(En),qi)}function Qr(En){return En===null||En===34||En===39||En===47||En===60||En===61||En===62||En===96||(0,dn.z3)(En)?uo(En):(E.consume(En),Qr)}function qr(En){return En===47||En===62||(0,dn.xz)(En)?Zi(En):W(En)}function no(En){return En===62?(E.consume(En),Mo):W(En)}function Mo(En){return En===null||(0,dn.Ch)(En)?ir(En):(0,dn.xz)(En)?(E.consume(En),Mo):W(En)}function ir(En){return En===45&&fe===2?(E.consume(En),Zr):En===60&&fe===1?(E.consume(En),Xi):En===62&&fe===4?(E.consume(En),va):En===63&&fe===3?(E.consume(En),rn):En===93&&fe===5?(E.consume(En),co):(0,dn.Ch)(En)&&(fe===6||fe===7)?(E.exit("htmlFlowData"),E.check(Zt,ya,Mi)(En)):En===null||(0,dn.Ch)(En)?(E.exit("htmlFlowData"),Mi(En)):(E.consume(En),ir)}function Mi(En){return E.check(Bi,Yi,ya)(En)}function Yi(En){return E.enter("lineEnding"),E.consume(En),E.exit("lineEnding"),Pi}function Pi(En){return En===null||(0,dn.Ch)(En)?Mi(En):(E.enter("htmlFlowData"),ir(En))}function Zr(En){return En===45?(E.consume(En),rn):ir(En)}function Xi(En){return En===47?(E.consume(En),$e="",Br):ir(En)}function Br(En){if(En===62){const go=$e.toLowerCase();return Xt.includes(go)?(E.consume(En),va):ir(En)}return(0,dn.jv)(En)&&$e.length<8?(E.consume(En),$e+=String.fromCharCode(En),Br):ir(En)}function co(En){return En===93?(E.consume(En),rn):ir(En)}function rn(En){return En===62?(E.consume(En),va):En===45&&fe===2?(E.consume(En),rn):ir(En)}function va(En){return En===null||(0,dn.Ch)(En)?(E.exit("htmlFlowData"),ya(En)):(E.consume(En),va)}function ya(En){return E.exit("htmlFlow"),_(En)}}function eo(E,_,W){const q=this;return fe;function fe($e){return(0,dn.Ch)($e)?(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),Ce):W($e)}function Ce($e){return q.parser.lazy[q.now().line]?W($e):_($e)}}function Qt(E,_,W){return q;function q(fe){return E.enter("lineEnding"),E.consume(fe),E.exit("lineEnding"),E.attempt(U,_,W)}}const Li={partial:!0,tokenize:ar},wi={concrete:!0,name:"codeFenced",tokenize:pr};function pr(E,_,W){const q=this,fe={partial:!0,tokenize:uo};let Ce=0,$e=0,it;return jt;function jt(ii){return Lt(ii)}function Lt(ii){const qi=q.events[q.events.length-1];return Ce=qi&&qi[1].type==="linePrefix"?qi[2].sliceSerialize(qi[1],!0).length:0,it=ii,E.enter("codeFenced"),E.enter("codeFencedFence"),E.enter("codeFencedFenceSequence"),dt(ii)}function dt(ii){return ii===it?($e++,E.consume(ii),dt):$e<3?W(ii):(E.exit("codeFencedFenceSequence"),(0,dn.xz)(ii)?(0,hi.f)(E,Yt,"whitespace")(ii):Yt(ii))}function Yt(ii){return ii===null||(0,dn.Ch)(ii)?(E.exit("codeFencedFence"),q.interrupt?_(ii):E.check(Li,li,oo)(ii)):(E.enter("codeFencedFenceInfo"),E.enter("chunkString",{contentType:"string"}),qt(ii))}function qt(ii){return ii===null||(0,dn.Ch)(ii)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),Yt(ii)):(0,dn.xz)(ii)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),(0,hi.f)(E,zt,"whitespace")(ii)):ii===96&&ii===it?W(ii):(E.consume(ii),qt)}function zt(ii){return ii===null||(0,dn.Ch)(ii)?Yt(ii):(E.enter("codeFencedFenceMeta"),E.enter("chunkString",{contentType:"string"}),Si(ii))}function Si(ii){return ii===null||(0,dn.Ch)(ii)?(E.exit("chunkString"),E.exit("codeFencedFenceMeta"),Yt(ii)):ii===96&&ii===it?W(ii):(E.consume(ii),Si)}function li(ii){return E.attempt(fe,oo,lr)(ii)}function lr(ii){return E.enter("lineEnding"),E.consume(ii),E.exit("lineEnding"),Ni}function Ni(ii){return Ce>0&&(0,dn.xz)(ii)?(0,hi.f)(E,Mr,"linePrefix",Ce+1)(ii):Mr(ii)}function Mr(ii){return ii===null||(0,dn.Ch)(ii)?E.check(Li,li,oo)(ii):(E.enter("codeFlowValue"),Zi(ii))}function Zi(ii){return ii===null||(0,dn.Ch)(ii)?(E.exit("codeFlowValue"),Mr(ii)):(E.consume(ii),Zi)}function oo(ii){return E.exit("codeFenced"),_(ii)}function uo(ii,qi,Qr){let qr=0;return no;function no(Pi){return ii.enter("lineEnding"),ii.consume(Pi),ii.exit("lineEnding"),Mo}function Mo(Pi){return ii.enter("codeFencedFence"),(0,dn.xz)(Pi)?(0,hi.f)(ii,ir,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Pi):ir(Pi)}function ir(Pi){return Pi===it?(ii.enter("codeFencedFenceSequence"),Mi(Pi)):Qr(Pi)}function Mi(Pi){return Pi===it?(qr++,ii.consume(Pi),Mi):qr>=$e?(ii.exit("codeFencedFenceSequence"),(0,dn.xz)(Pi)?(0,hi.f)(ii,Yi,"whitespace")(Pi):Yi(Pi)):Qr(Pi)}function Yi(Pi){return Pi===null||(0,dn.Ch)(Pi)?(ii.exit("codeFencedFence"),qi(Pi)):Qr(Pi)}}}function ar(E,_,W){const q=this;return fe;function fe($e){return $e===null?W($e):(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),Ce)}function Ce($e){return q.parser.lazy[q.now().line]?W($e):_($e)}}const Zn=document.createElement("i");function ce(E){const _="&"+E+";";Zn.innerHTML=_;const W=Zn.textContent;return W.charCodeAt(W.length-1)===59&&E!=="semi"||W===_?!1:W}const mr={name:"characterReference",tokenize:Er};function Er(E,_,W){const q=this;let fe=0,Ce,$e;return it;function it(Yt){return E.enter("characterReference"),E.enter("characterReferenceMarker"),E.consume(Yt),E.exit("characterReferenceMarker"),jt}function jt(Yt){return Yt===35?(E.enter("characterReferenceMarkerNumeric"),E.consume(Yt),E.exit("characterReferenceMarkerNumeric"),Lt):(E.enter("characterReferenceValue"),Ce=31,$e=dn.H$,dt(Yt))}function Lt(Yt){return Yt===88||Yt===120?(E.enter("characterReferenceMarkerHexadecimal"),E.consume(Yt),E.exit("characterReferenceMarkerHexadecimal"),E.enter("characterReferenceValue"),Ce=6,$e=dn.AF,dt):(E.enter("characterReferenceValue"),Ce=7,$e=dn.pY,dt(Yt))}function dt(Yt){if(Yt===59&&fe){const qt=E.exit("characterReferenceValue");return $e===dn.H$&&!ce(q.sliceSerialize(qt))?W(Yt):(E.enter("characterReferenceMarker"),E.consume(Yt),E.exit("characterReferenceMarker"),E.exit("characterReference"),_)}return $e(Yt)&&fe++<Ce?(E.consume(Yt),dt):W(Yt)}}const cr={name:"characterEscape",tokenize:Wr};function Wr(E,_,W){return q;function q(Ce){return E.enter("characterEscape"),E.enter("escapeMarker"),E.consume(Ce),E.exit("escapeMarker"),fe}function fe(Ce){return(0,dn.sR)(Ce)?(E.enter("characterEscapeValue"),E.consume(Ce),E.exit("characterEscapeValue"),E.exit("characterEscape"),_):W(Ce)}}const Wi={name:"lineEnding",tokenize:Kr};function Kr(E,_){return W;function W(q){return E.enter("lineEnding"),E.consume(q),E.exit("lineEnding"),(0,hi.f)(E,_,"linePrefix")}}function Ri(E,_,W){const q=[];let fe=-1;for(;++fe<E.length;){const Ce=E[fe].resolveAll;Ce&&!q.includes(Ce)&&(_=Ce(_,W),q.push(Ce))}return _}const Ui={name:"labelEnd",resolveAll:io,resolveTo:bo,tokenize:mi},Di={tokenize:Sa},Cr={tokenize:Wo},Tr={tokenize:Jo};function io(E){let _=-1;const W=[];for(;++_<E.length;){const q=E[_][1];if(W.push(E[_]),q.type==="labelImage"||q.type==="labelLink"||q.type==="labelEnd"){const fe=q.type==="labelImage"?4:2;q.type="data",_+=fe}}return E.length!==W.length&&en(E,0,E.length,W),E}function bo(E,_){let W=E.length,q=0,fe,Ce,$e,it;for(;W--;)if(fe=E[W][1],Ce){if(fe.type==="link"||fe.type==="labelLink"&&fe._inactive)break;E[W][0]==="enter"&&fe.type==="labelLink"&&(fe._inactive=!0)}else if($e){if(E[W][0]==="enter"&&(fe.type==="labelImage"||fe.type==="labelLink")&&!fe._balanced&&(Ce=W,fe.type!=="labelLink")){q=2;break}}else fe.type==="labelEnd"&&($e=W);const jt={type:E[Ce][1].type==="labelLink"?"link":"image",start:Uo({},E[Ce][1].start),end:Uo({},E[E.length-1][1].end)},Lt={type:"label",start:Uo({},E[Ce][1].start),end:Uo({},E[$e][1].end)},dt={type:"labelText",start:Uo({},E[Ce+q+2][1].end),end:Uo({},E[$e-2][1].start)};return it=[["enter",jt,_],["enter",Lt,_]],it=Bt(it,E.slice(Ce+1,Ce+q+3)),it=Bt(it,[["enter",dt,_]]),it=Bt(it,Ri(_.parser.constructs.insideSpan.null,E.slice(Ce+q+4,$e-3),_)),it=Bt(it,[["exit",dt,_],E[$e-2],E[$e-1],["exit",Lt,_]]),it=Bt(it,E.slice($e+1)),it=Bt(it,[["exit",jt,_]]),en(E,Ce,E.length,it),E}function mi(E,_,W){const q=this;let fe=q.events.length,Ce,$e;for(;fe--;)if((q.events[fe][1].type==="labelImage"||q.events[fe][1].type==="labelLink")&&!q.events[fe][1]._balanced){Ce=q.events[fe][1];break}return it;function it(qt){return Ce?Ce._inactive?Yt(qt):($e=q.parser.defined.includes(Cn(q.sliceSerialize({start:Ce.end,end:q.now()}))),E.enter("labelEnd"),E.enter("labelMarker"),E.consume(qt),E.exit("labelMarker"),E.exit("labelEnd"),jt):W(qt)}function jt(qt){return qt===40?E.attempt(Di,dt,$e?dt:Yt)(qt):qt===91?E.attempt(Cr,dt,$e?Lt:Yt)(qt):$e?dt(qt):Yt(qt)}function Lt(qt){return E.attempt(Tr,dt,Yt)(qt)}function dt(qt){return _(qt)}function Yt(qt){return Ce._balanced=!0,W(qt)}}function Sa(E,_,W){return q;function q(Yt){return E.enter("resource"),E.enter("resourceMarker"),E.consume(Yt),E.exit("resourceMarker"),fe}function fe(Yt){return(0,dn.z3)(Yt)?fn(E,Ce)(Yt):Ce(Yt)}function Ce(Yt){return Yt===41?dt(Yt):Dt(E,$e,it,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Yt)}function $e(Yt){return(0,dn.z3)(Yt)?fn(E,jt)(Yt):dt(Yt)}function it(Yt){return W(Yt)}function jt(Yt){return Yt===34||Yt===39||Yt===40?gt(E,Lt,W,"resourceTitle","resourceTitleMarker","resourceTitleString")(Yt):dt(Yt)}function Lt(Yt){return(0,dn.z3)(Yt)?fn(E,dt)(Yt):dt(Yt)}function dt(Yt){return Yt===41?(E.enter("resourceMarker"),E.consume(Yt),E.exit("resourceMarker"),E.exit("resource"),_):W(Yt)}}function Wo(E,_,W){const q=this;return fe;function fe(it){return Jt.call(q,E,Ce,$e,"reference","referenceMarker","referenceString")(it)}function Ce(it){return q.parser.defined.includes(Cn(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)))?_(it):W(it)}function $e(it){return W(it)}}function Jo(E,_,W){return q;function q(Ce){return E.enter("reference"),E.enter("referenceMarker"),E.consume(Ce),E.exit("referenceMarker"),fe}function fe(Ce){return Ce===93?(E.enter("referenceMarker"),E.consume(Ce),E.exit("referenceMarker"),E.exit("reference"),_):W(Ce)}}const Ta={name:"labelStartImage",resolveAll:Ui.resolveAll,tokenize:Ya};function Ya(E,_,W){const q=this;return fe;function fe(it){return E.enter("labelImage"),E.enter("labelImageMarker"),E.consume(it),E.exit("labelImageMarker"),Ce}function Ce(it){return it===91?(E.enter("labelMarker"),E.consume(it),E.exit("labelMarker"),E.exit("labelImage"),$e):W(it)}function $e(it){return it===94&&"_hiddenFootnoteSupport"in q.parser.constructs?W(it):_(it)}}function ns(E){if(E===null||(0,dn.z3)(E)||(0,dn.B8)(E))return 1;if((0,dn.Xh)(E))return 2}const Na={name:"attention",resolveAll:cs,tokenize:Za};function cs(E,_){let W=-1,q,fe,Ce,$e,it,jt,Lt,dt;for(;++W<E.length;)if(E[W][0]==="enter"&&E[W][1].type==="attentionSequence"&&E[W][1]._close){for(q=W;q--;)if(E[q][0]==="exit"&&E[q][1].type==="attentionSequence"&&E[q][1]._open&&_.sliceSerialize(E[q][1]).charCodeAt(0)===_.sliceSerialize(E[W][1]).charCodeAt(0)){if((E[q][1]._close||E[W][1]._open)&&(E[W][1].end.offset-E[W][1].start.offset)%3&&!((E[q][1].end.offset-E[q][1].start.offset+E[W][1].end.offset-E[W][1].start.offset)%3))continue;jt=E[q][1].end.offset-E[q][1].start.offset>1&&E[W][1].end.offset-E[W][1].start.offset>1?2:1;const Yt=Uo({},E[q][1].end),qt=Uo({},E[W][1].start);jo(Yt,-jt),jo(qt,jt),$e={type:jt>1?"strongSequence":"emphasisSequence",start:Yt,end:Uo({},E[q][1].end)},it={type:jt>1?"strongSequence":"emphasisSequence",start:Uo({},E[W][1].start),end:qt},Ce={type:jt>1?"strongText":"emphasisText",start:Uo({},E[q][1].end),end:Uo({},E[W][1].start)},fe={type:jt>1?"strong":"emphasis",start:Uo({},$e.start),end:Uo({},it.end)},E[q][1].end=Uo({},$e.start),E[W][1].start=Uo({},it.end),Lt=[],E[q][1].end.offset-E[q][1].start.offset&&(Lt=Bt(Lt,[["enter",E[q][1],_],["exit",E[q][1],_]])),Lt=Bt(Lt,[["enter",fe,_],["enter",$e,_],["exit",$e,_],["enter",Ce,_]]),Lt=Bt(Lt,Ri(_.parser.constructs.insideSpan.null,E.slice(q+1,W),_)),Lt=Bt(Lt,[["exit",Ce,_],["enter",it,_],["exit",it,_],["exit",fe,_]]),E[W][1].end.offset-E[W][1].start.offset?(dt=2,Lt=Bt(Lt,[["enter",E[W][1],_],["exit",E[W][1],_]])):dt=0,en(E,q-1,W-q+3,Lt),W=q+Lt.length-dt-2;break}}for(W=-1;++W<E.length;)E[W][1].type==="attentionSequence"&&(E[W][1].type="data");return E}function Za(E,_){const W=this.parser.constructs.attentionMarkers.null,q=this.previous,fe=ns(q);let Ce;return $e;function $e(jt){return Ce=jt,E.enter("attentionSequence"),it(jt)}function it(jt){if(jt===Ce)return E.consume(jt),it;const Lt=E.exit("attentionSequence"),dt=ns(jt),Yt=!dt||dt===2&&fe||W.includes(jt),qt=!fe||fe===2&&dt||W.includes(q);return Lt._open=!!(Ce===42?Yt:Yt&&(fe||!qt)),Lt._close=!!(Ce===42?qt:qt&&(dt||!Yt)),_(jt)}}function jo(E,_){E.column+=_,E.offset+=_,E._bufferIndex+=_}const Wt={name:"autolink",tokenize:Ba};function Ba(E,_,W){let q=0;return fe;function fe(zt){return E.enter("autolink"),E.enter("autolinkMarker"),E.consume(zt),E.exit("autolinkMarker"),E.enter("autolinkProtocol"),Ce}function Ce(zt){return(0,dn.jv)(zt)?(E.consume(zt),$e):zt===64?W(zt):Lt(zt)}function $e(zt){return zt===43||zt===45||zt===46||(0,dn.H$)(zt)?(q=1,it(zt)):Lt(zt)}function it(zt){return zt===58?(E.consume(zt),q=0,jt):(zt===43||zt===45||zt===46||(0,dn.H$)(zt))&&q++<32?(E.consume(zt),it):(q=0,Lt(zt))}function jt(zt){return zt===62?(E.exit("autolinkProtocol"),E.enter("autolinkMarker"),E.consume(zt),E.exit("autolinkMarker"),E.exit("autolink"),_):zt===null||zt===32||zt===60||(0,dn.Av)(zt)?W(zt):(E.consume(zt),jt)}function Lt(zt){return zt===64?(E.consume(zt),dt):(0,dn.n9)(zt)?(E.consume(zt),Lt):W(zt)}function dt(zt){return(0,dn.H$)(zt)?Yt(zt):W(zt)}function Yt(zt){return zt===46?(E.consume(zt),q=0,dt):zt===62?(E.exit("autolinkProtocol").type="autolinkEmail",E.enter("autolinkMarker"),E.consume(zt),E.exit("autolinkMarker"),E.exit("autolink"),_):qt(zt)}function qt(zt){if((zt===45||(0,dn.H$)(zt))&&q++<63){const Si=zt===45?qt:Yt;return E.consume(zt),Si}return W(zt)}}const eu={name:"htmlText",tokenize:ol};function ol(E,_,W){const q=this;let fe,Ce,$e;return it;function it(rn){return E.enter("htmlText"),E.enter("htmlTextData"),E.consume(rn),jt}function jt(rn){return rn===33?(E.consume(rn),Lt):rn===47?(E.consume(rn),uo):rn===63?(E.consume(rn),Zi):(0,dn.jv)(rn)?(E.consume(rn),Qr):W(rn)}function Lt(rn){return rn===45?(E.consume(rn),dt):rn===91?(E.consume(rn),Ce=0,Si):(0,dn.jv)(rn)?(E.consume(rn),Mr):W(rn)}function dt(rn){return rn===45?(E.consume(rn),zt):W(rn)}function Yt(rn){return rn===null?W(rn):rn===45?(E.consume(rn),qt):(0,dn.Ch)(rn)?($e=Yt,Xi(rn)):(E.consume(rn),Yt)}function qt(rn){return rn===45?(E.consume(rn),zt):Yt(rn)}function zt(rn){return rn===62?Zr(rn):rn===45?qt(rn):Yt(rn)}function Si(rn){const va="CDATA[";return rn===va.charCodeAt(Ce++)?(E.consume(rn),Ce===va.length?li:Si):W(rn)}function li(rn){return rn===null?W(rn):rn===93?(E.consume(rn),lr):(0,dn.Ch)(rn)?($e=li,Xi(rn)):(E.consume(rn),li)}function lr(rn){return rn===93?(E.consume(rn),Ni):li(rn)}function Ni(rn){return rn===62?Zr(rn):rn===93?(E.consume(rn),Ni):li(rn)}function Mr(rn){return rn===null||rn===62?Zr(rn):(0,dn.Ch)(rn)?($e=Mr,Xi(rn)):(E.consume(rn),Mr)}function Zi(rn){return rn===null?W(rn):rn===63?(E.consume(rn),oo):(0,dn.Ch)(rn)?($e=Zi,Xi(rn)):(E.consume(rn),Zi)}function oo(rn){return rn===62?Zr(rn):Zi(rn)}function uo(rn){return(0,dn.jv)(rn)?(E.consume(rn),ii):W(rn)}function ii(rn){return rn===45||(0,dn.H$)(rn)?(E.consume(rn),ii):qi(rn)}function qi(rn){return(0,dn.Ch)(rn)?($e=qi,Xi(rn)):(0,dn.xz)(rn)?(E.consume(rn),qi):Zr(rn)}function Qr(rn){return rn===45||(0,dn.H$)(rn)?(E.consume(rn),Qr):rn===47||rn===62||(0,dn.z3)(rn)?qr(rn):W(rn)}function qr(rn){return rn===47?(E.consume(rn),Zr):rn===58||rn===95||(0,dn.jv)(rn)?(E.consume(rn),no):(0,dn.Ch)(rn)?($e=qr,Xi(rn)):(0,dn.xz)(rn)?(E.consume(rn),qr):Zr(rn)}function no(rn){return rn===45||rn===46||rn===58||rn===95||(0,dn.H$)(rn)?(E.consume(rn),no):Mo(rn)}function Mo(rn){return rn===61?(E.consume(rn),ir):(0,dn.Ch)(rn)?($e=Mo,Xi(rn)):(0,dn.xz)(rn)?(E.consume(rn),Mo):qr(rn)}function ir(rn){return rn===null||rn===60||rn===61||rn===62||rn===96?W(rn):rn===34||rn===39?(E.consume(rn),fe=rn,Mi):(0,dn.Ch)(rn)?($e=ir,Xi(rn)):(0,dn.xz)(rn)?(E.consume(rn),ir):(E.consume(rn),Yi)}function Mi(rn){return rn===fe?(E.consume(rn),fe=void 0,Pi):rn===null?W(rn):(0,dn.Ch)(rn)?($e=Mi,Xi(rn)):(E.consume(rn),Mi)}function Yi(rn){return rn===null||rn===34||rn===39||rn===60||rn===61||rn===96?W(rn):rn===47||rn===62||(0,dn.z3)(rn)?qr(rn):(E.consume(rn),Yi)}function Pi(rn){return rn===47||rn===62||(0,dn.z3)(rn)?qr(rn):W(rn)}function Zr(rn){return rn===62?(E.consume(rn),E.exit("htmlTextData"),E.exit("htmlText"),_):W(rn)}function Xi(rn){return E.exit("htmlTextData"),E.enter("lineEnding"),E.consume(rn),E.exit("lineEnding"),Br}function Br(rn){return(0,dn.xz)(rn)?(0,hi.f)(E,co,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(rn):co(rn)}function co(rn){return E.enter("htmlTextData"),$e(rn)}}const po={name:"labelStartLink",resolveAll:Ui.resolveAll,tokenize:ko};function ko(E,_,W){const q=this;return fe;function fe($e){return E.enter("labelLink"),E.enter("labelMarker"),E.consume($e),E.exit("labelMarker"),E.exit("labelLink"),Ce}function Ce($e){return $e===94&&"_hiddenFootnoteSupport"in q.parser.constructs?W($e):_($e)}}const yo={name:"hardBreakEscape",tokenize:Mt};function Mt(E,_,W){return q;function q(Ce){return E.enter("hardBreakEscape"),E.consume(Ce),fe}function fe(Ce){return(0,dn.Ch)(Ce)?(E.exit("hardBreakEscape"),_(Ce)):W(Ce)}}const Dr={name:"codeText",previous:Ea,resolve:mo,tokenize:xr};function mo(E){let _=E.length-4,W=3,q,fe;if((E[W][1].type==="lineEnding"||E[W][1].type==="space")&&(E[_][1].type==="lineEnding"||E[_][1].type==="space")){for(q=W;++q<_;)if(E[q][1].type==="codeTextData"){E[W][1].type="codeTextPadding",E[_][1].type="codeTextPadding",W+=2,_-=2;break}}for(q=W-1,_++;++q<=_;)fe===void 0?q!==_&&E[q][1].type!=="lineEnding"&&(fe=q):(q===_||E[q][1].type==="lineEnding")&&(E[fe][1].type="codeTextData",q!==fe+2&&(E[fe][1].end=E[q-1][1].end,E.splice(fe+2,q-fe-2),_-=q-fe-2,q=fe+2),fe=void 0);return E}function Ea(E){return E!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xr(E,_,W){const q=this;let fe=0,Ce,$e;return it;function it(qt){return E.enter("codeText"),E.enter("codeTextSequence"),jt(qt)}function jt(qt){return qt===96?(E.consume(qt),fe++,jt):(E.exit("codeTextSequence"),Lt(qt))}function Lt(qt){return qt===null?W(qt):qt===32?(E.enter("space"),E.consume(qt),E.exit("space"),Lt):qt===96?($e=E.enter("codeTextSequence"),Ce=0,Yt(qt)):(0,dn.Ch)(qt)?(E.enter("lineEnding"),E.consume(qt),E.exit("lineEnding"),Lt):(E.enter("codeTextData"),dt(qt))}function dt(qt){return qt===null||qt===32||qt===96||(0,dn.Ch)(qt)?(E.exit("codeTextData"),Lt(qt)):(E.consume(qt),dt)}function Yt(qt){return qt===96?(E.consume(qt),Ce++,Yt):Ce===fe?(E.exit("codeTextSequence"),E.exit("codeText"),_(qt)):($e.type="codeTextData",dt(qt))}}const Sn={42:Nn,43:Nn,45:Nn,48:Nn,49:Nn,50:Nn,51:Nn,52:Nn,53:Nn,54:Nn,55:Nn,56:Nn,57:Nn,62:hn},ur={91:ui},vi={[-2]:Qi,[-1]:Qi,32:Qi},Vo={35:re,42:Ve,45:[wt,Ve],60:Ei,61:wt,95:Ve,96:wi,126:wi},ma={38:mr,92:cr},is={[-5]:Wi,[-4]:Wi,[-3]:Wi,33:Ta,38:mr,42:Na,60:[Wt,eu],91:po,92:[yo,cr],93:Ui,95:Na,96:Dr},Rs={null:[Na,Ji]},Ns={null:[42,95]},si={null:[]};function Hi(E,_,W){let q={_bufferIndex:-1,_index:0,line:W&&W.line||1,column:W&&W.column||1,offset:W&&W.offset||0};const fe={},Ce=[];let $e=[],it=[],jt=!0;const Lt={attempt:qr(qi),check:qr(Qr),consume:oo,enter:uo,exit:ii,interrupt:qr(Qr,{interrupt:!0})},dt={code:null,containerState:{},defineSkip:Ni,events:[],now:lr,parser:E,previous:null,sliceSerialize:Si,sliceStream:li,write:zt};let Yt=_.tokenize.call(dt,Lt),qt;return _.resolveAll&&Ce.push(_),dt;function zt(Mi){return $e=Bt($e,Mi),Mr(),$e[$e.length-1]!==null?[]:(no(_,0),dt.events=Ri(Ce,dt.events,dt),dt.events)}function Si(Mi,Yi){return As(li(Mi),Yi)}function li(Mi){return ta($e,Mi)}function lr(){const{_bufferIndex:Mi,_index:Yi,line:Pi,column:Zr,offset:Xi}=q;return{_bufferIndex:Mi,_index:Yi,line:Pi,column:Zr,offset:Xi}}function Ni(Mi){fe[Mi.line]=Mi.column,ir()}function Mr(){let Mi;for(;q._index<$e.length;){const Yi=$e[q._index];if(typeof Yi=="string")for(Mi=q._index,q._bufferIndex<0&&(q._bufferIndex=0);q._index===Mi&&q._bufferIndex<Yi.length;)Zi(Yi.charCodeAt(q._bufferIndex));else Zi(Yi)}}function Zi(Mi){jt=void 0,qt=Mi,Yt=Yt(Mi)}function oo(Mi){(0,dn.Ch)(Mi)?(q.line++,q.column=1,q.offset+=Mi===-3?2:1,ir()):Mi!==-1&&(q.column++,q.offset++),q._bufferIndex<0?q._index++:(q._bufferIndex++,q._bufferIndex===$e[q._index].length&&(q._bufferIndex=-1,q._index++)),dt.previous=Mi,jt=!0}function uo(Mi,Yi){const Pi=Yi||{};return Pi.type=Mi,Pi.start=lr(),dt.events.push(["enter",Pi,dt]),it.push(Pi),Pi}function ii(Mi){const Yi=it.pop();return Yi.end=lr(),dt.events.push(["exit",Yi,dt]),Yi}function qi(Mi,Yi){no(Mi,Yi.from)}function Qr(Mi,Yi){Yi.restore()}function qr(Mi,Yi){return Pi;function Pi(Zr,Xi,Br){let co,rn,va,ya;return Array.isArray(Zr)?go(Zr):"tokenize"in Zr?go([Zr]):En(Zr);function En($a){return Do;function Do(No){const Oo=No!==null&&$a[No],ra=No!==null&&$a.null,ja=[...Array.isArray(Oo)?Oo:Oo?[Oo]:[],...Array.isArray(ra)?ra:ra?[ra]:[]];return go(ja)(No)}}function go($a){return co=$a,rn=0,$a.length===0?Br:_a($a[rn])}function _a($a){return Do;function Do(No){return ya=Mo(),va=$a,$a.partial||(dt.currentConstruct=$a),$a.name&&dt.parser.constructs.disable.null.includes($a.name)?za(No):$a.tokenize.call(Yi?Object.assign(Object.create(dt),Yi):dt,Lt,ua,za)(No)}}function ua($a){return jt=!0,Mi(va,ya),Xi}function za($a){return jt=!0,ya.restore(),++rn<co.length?_a(co[rn]):Br}}}function no(Mi,Yi){Mi.resolveAll&&!Ce.includes(Mi)&&Ce.push(Mi),Mi.resolve&&en(dt.events,Yi,dt.events.length-Yi,Mi.resolve(dt.events.slice(Yi),dt)),Mi.resolveTo&&(dt.events=Mi.resolveTo(dt.events,dt))}function Mo(){const Mi=lr(),Yi=dt.previous,Pi=dt.currentConstruct,Zr=dt.events.length,Xi=Array.from(it);return{from:Zr,restore:Br};function Br(){q=Mi,dt.previous=Yi,dt.currentConstruct=Pi,dt.events.length=Zr,it=Xi,ir()}}function ir(){q.line in fe&&q.column<2&&(q.column=fe[q.line],q.offset+=fe[q.line]-1)}}function ta(E,_){const W=_.start._index,q=_.start._bufferIndex,fe=_.end._index,Ce=_.end._bufferIndex;let $e;if(W===fe)$e=[E[W].slice(q,Ce)];else{if($e=E.slice(W,fe),q>-1){const it=$e[0];typeof it=="string"?$e[0]=it.slice(q):$e.shift()}Ce>0&&$e.push(E[fe].slice(0,Ce))}return $e}function As(E,_){let W=-1;const q=[];let fe;for(;++W<E.length;){const Ce=E[W];let $e;if(typeof Ce=="string")$e=Ce;else switch(Ce){case-5:{$e="\r";break}case-4:{$e=`
|
|
|
`;break}case-3:{$e=`\r
|
|
|
`;break}case-2:{$e=_?" ":" ";break}case-1:{if(!_&&fe)continue;$e=" ";break}default:$e=String.fromCharCode(Ce)}fe=Ce===-2,q.push($e)}return q.join("")}function Yo(E){const q={constructs:He([v,...(E||{}).extensions||[]]),content:fe(sn),defined:[],document:fe(dr),flow:fe(to),lazy:{},string:fe(di),text:fe(ft)};return q;function fe(Ce){return $e;function $e(it){return Hi(q,Ce,it)}}}const rs=/[\0\t\n\r]/g;function Lr(){let E=1,_="",W=!0,q;return fe;function fe(Ce,$e,it){const jt=[];let Lt,dt,Yt,qt,zt;for(Ce=_+(typeof Ce=="string"?Ce.toString():new TextDecoder($e||void 0).decode(Ce)),Yt=0,_="",W&&(Ce.charCodeAt(0)===65279&&Yt++,W=void 0);Yt<Ce.length;){if(rs.lastIndex=Yt,Lt=rs.exec(Ce),qt=Lt&&Lt.index!==void 0?Lt.index:Ce.length,zt=Ce.charCodeAt(qt),!Lt){_=Ce.slice(Yt);break}if(zt===10&&Yt===qt&&q)jt.push(-3),q=void 0;else switch(q&&(jt.push(-5),q=void 0),Yt<qt&&(jt.push(Ce.slice(Yt,qt)),E+=qt-Yt),zt){case 0:{jt.push(65533),E++;break}case 9:{for(dt=Math.ceil(E/4)*4,jt.push(-2);E++<dt;)jt.push(-1);break}case 10:{jt.push(-4),E=1;break}default:q=!0,E=1}Yt=qt+1}return it&&(q&&jt.push(-5),_&&jt.push(_),jt.push(null)),jt}}function al(E,_){const W=Number.parseInt(E,_);return W<9||W===11||W>13&&W<32||W>126&&W<160||W>55295&&W<57344||W>64975&&W<65008||(W&65535)===65535||(W&65535)===65534||W>1114111?"\uFFFD":String.fromCodePoint(W)}const Ds=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ps(E){return E.replace(Ds,Ho)}function Ho(E,_,W){if(_)return _;if(W.charCodeAt(0)===35){const fe=W.charCodeAt(1),Ce=fe===120||fe===88;return al(W.slice(Ce?2:1),Ce?16:10)}return ce(W)||E}const os={}.hasOwnProperty;function Ol(E,_,W){return typeof _!="string"&&(W=_,_=void 0),Xa(W)(tn(Yo(W).document().write(Lr()(E,_,!0))))}function Xa(E){const _={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ce(Yn),autolinkProtocol:qr,autolinkEmail:qr,atxHeading:Ce(g),blockQuote:Ce(No),characterEscape:qr,characterReference:qr,codeFenced:Ce(Oo),codeFencedFenceInfo:$e,codeFencedFenceMeta:$e,codeIndented:Ce(Oo,$e),codeText:Ce(ra,$e),codeTextData:qr,data:qr,codeFlowValue:qr,definition:Ce(ja),definitionDestinationString:$e,definitionLabelString:$e,definitionTitleString:$e,emphasis:Ce(d),hardBreakEscape:Ce(K),hardBreakTrailing:Ce(K),htmlFlow:Ce(nt,$e),htmlFlowData:qr,htmlText:Ce(nt,$e),htmlTextData:qr,image:Ce(mn),label:$e,link:Ce(Yn),listItem:Ce(wr),listItemValue:qt,listOrdered:Ce(Ci,Yt),listUnordered:Ce(Ci),paragraph:Ce(zr),reference:En,referenceString:$e,resourceDestinationString:$e,resourceTitleString:$e,setextHeading:Ce(g),strong:Ce(Yr),thematicBreak:Ce(ba)},exit:{atxHeading:jt(),atxHeadingSequence:uo,autolink:jt(),autolinkEmail:Do,autolinkProtocol:$a,blockQuote:jt(),characterEscapeValue:no,characterReferenceMarkerHexadecimal:_a,characterReferenceMarkerNumeric:_a,characterReferenceValue:ua,characterReference:za,codeFenced:jt(lr),codeFencedFence:li,codeFencedFenceInfo:zt,codeFencedFenceMeta:Si,codeFlowValue:no,codeIndented:jt(Ni),codeText:jt(Pi),codeTextData:no,data:no,definition:jt(),definitionDestinationString:oo,definitionLabelString:Mr,definitionTitleString:Zi,emphasis:jt(),hardBreakEscape:jt(ir),hardBreakTrailing:jt(ir),htmlFlow:jt(Mi),htmlFlowData:no,htmlText:jt(Yi),htmlTextData:no,image:jt(Xi),label:co,labelText:Br,lineEnding:Mo,link:jt(Zr),listItem:jt(),listOrdered:jt(),listUnordered:jt(),paragraph:jt(),referenceString:go,resourceDestinationString:rn,resourceTitleString:va,resource:ya,setextHeading:jt(Qr),setextHeadingLineSequence:qi,setextHeadingText:ii,strong:jt(),thematicBreak:jt()}};ml(_,(E||{}).mdastExtensions||[]);const W={};return q;function q(ri){let rr={type:"root",children:[]};const xo={stack:[rr],tokenStack:[],config:_,enter:it,exit:Lt,buffer:$e,resume:dt,data:W},Lo=[];let oa=-1;for(;++oa<ri.length;)if(ri[oa][1].type==="listOrdered"||ri[oa][1].type==="listUnordered")if(ri[oa][0]==="enter")Lo.push(oa);else{const ws=Lo.pop();oa=fe(ri,ws,oa)}for(oa=-1;++oa<ri.length;){const ws=_[ri[oa][0]];os.call(ws,ri[oa][1].type)&&ws[ri[oa][1].type].call(Object.assign({sliceSerialize:ri[oa][2].sliceSerialize},xo),ri[oa][1])}if(xo.tokenStack.length>0){const ws=xo.tokenStack[xo.tokenStack.length-1];(ws[1]||js).call(xo,void 0,ws[0])}for(rr.position={start:Oa(ri.length>0?ri[0][1].start:{line:1,column:1,offset:0}),end:Oa(ri.length>0?ri[ri.length-2][1].end:{line:1,column:1,offset:0})},oa=-1;++oa<_.transforms.length;)rr=_.transforms[oa](rr)||rr;return rr}function fe(ri,rr,xo){let Lo=rr-1,oa=-1,ws=!1,ys,wo,ca,Ga;for(;++Lo<=xo;){const N=ri[Lo];switch(N[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{N[0]==="enter"?oa++:oa--,Ga=void 0;break}case"lineEndingBlank":{N[0]==="enter"&&(ys&&!Ga&&!oa&&!ca&&(ca=Lo),Ga=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ga=void 0}if(!oa&&N[0]==="enter"&&N[1].type==="listItemPrefix"||oa===-1&&N[0]==="exit"&&(N[1].type==="listUnordered"||N[1].type==="listOrdered")){if(ys){let m=Lo;for(wo=void 0;m--;){const S=ri[m];if(S[1].type==="lineEnding"||S[1].type==="lineEndingBlank"){if(S[0]==="exit")continue;wo&&(ri[wo][1].type="lineEndingBlank",ws=!0),S[1].type="lineEnding",wo=m}else if(!(S[1].type==="linePrefix"||S[1].type==="blockQuotePrefix"||S[1].type==="blockQuotePrefixWhitespace"||S[1].type==="blockQuoteMarker"||S[1].type==="listItemIndent"))break}ca&&(!wo||ca<wo)&&(ys._spread=!0),ys.end=Object.assign({},wo?ri[wo][1].start:N[1].end),ri.splice(wo||Lo,0,["exit",ys,N[2]]),Lo++,xo++}if(N[1].type==="listItemPrefix"){const m={type:"listItem",_spread:!1,start:Object.assign({},N[1].start),end:void 0};ys=m,ri.splice(Lo,0,["enter",m,N[2]]),Lo++,xo++,ca=void 0,Ga=!0}}}return ri[rr][1]._spread=ws,xo}function Ce(ri,rr){return xo;function xo(Lo){it.call(this,ri(Lo),Lo),rr&&rr.call(this,Lo)}}function $e(){this.stack.push({type:"fragment",children:[]})}function it(ri,rr,xo){this.stack[this.stack.length-1].children.push(ri),this.stack.push(ri),this.tokenStack.push([rr,xo||void 0]),ri.position={start:Oa(rr.start),end:void 0}}function jt(ri){return rr;function rr(xo){ri&&ri.call(this,xo),Lt.call(this,xo)}}function Lt(ri,rr){const xo=this.stack.pop(),Lo=this.tokenStack.pop();if(Lo)Lo[0].type!==ri.type&&(rr?rr.call(this,ri,Lo[0]):(Lo[1]||js).call(this,ri,Lo[0]));else throw new Error("Cannot close `"+ri.type+"` ("+ee({start:ri.start,end:ri.end})+"): it\u2019s not open");xo.position.end=Oa(ri.end)}function dt(){return ct(this.stack.pop())}function Yt(){this.data.expectingFirstListItemValue=!0}function qt(ri){if(this.data.expectingFirstListItemValue){const rr=this.stack[this.stack.length-2];rr.start=Number.parseInt(this.sliceSerialize(ri),10),this.data.expectingFirstListItemValue=void 0}}function zt(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.lang=ri}function Si(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.meta=ri}function li(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function lr(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.value=ri.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Ni(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.value=ri.replace(/(\r?\n|\r)$/g,"")}function Mr(ri){const rr=this.resume(),xo=this.stack[this.stack.length-1];xo.label=rr,xo.identifier=Cn(this.sliceSerialize(ri)).toLowerCase()}function Zi(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.title=ri}function oo(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.url=ri}function uo(ri){const rr=this.stack[this.stack.length-1];if(!rr.depth){const xo=this.sliceSerialize(ri).length;rr.depth=xo}}function ii(){this.data.setextHeadingSlurpLineEnding=!0}function qi(ri){const rr=this.stack[this.stack.length-1];rr.depth=this.sliceSerialize(ri).codePointAt(0)===61?1:2}function Qr(){this.data.setextHeadingSlurpLineEnding=void 0}function qr(ri){const xo=this.stack[this.stack.length-1].children;let Lo=xo[xo.length-1];(!Lo||Lo.type!=="text")&&(Lo=Ra(),Lo.position={start:Oa(ri.start),end:void 0},xo.push(Lo)),this.stack.push(Lo)}function no(ri){const rr=this.stack.pop();rr.value+=this.sliceSerialize(ri),rr.position.end=Oa(ri.end)}function Mo(ri){const rr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xo=rr.children[rr.children.length-1];xo.position.end=Oa(ri.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&_.canContainEols.includes(rr.type)&&(qr.call(this,ri),no.call(this,ri))}function ir(){this.data.atHardBreak=!0}function Mi(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.value=ri}function Yi(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.value=ri}function Pi(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.value=ri}function Zr(){const ri=this.stack[this.stack.length-1];if(this.data.inReference){const rr=this.data.referenceType||"shortcut";ri.type+="Reference",ri.referenceType=rr,delete ri.url,delete ri.title}else delete ri.identifier,delete ri.label;this.data.referenceType=void 0}function Xi(){const ri=this.stack[this.stack.length-1];if(this.data.inReference){const rr=this.data.referenceType||"shortcut";ri.type+="Reference",ri.referenceType=rr,delete ri.url,delete ri.title}else delete ri.identifier,delete ri.label;this.data.referenceType=void 0}function Br(ri){const rr=this.sliceSerialize(ri),xo=this.stack[this.stack.length-2];xo.label=Ps(rr),xo.identifier=Cn(rr).toLowerCase()}function co(){const ri=this.stack[this.stack.length-1],rr=this.resume(),xo=this.stack[this.stack.length-1];if(this.data.inReference=!0,xo.type==="link"){const Lo=ri.children;xo.children=Lo}else xo.alt=rr}function rn(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.url=ri}function va(){const ri=this.resume(),rr=this.stack[this.stack.length-1];rr.title=ri}function ya(){this.data.inReference=void 0}function En(){this.data.referenceType="collapsed"}function go(ri){const rr=this.resume(),xo=this.stack[this.stack.length-1];xo.label=rr,xo.identifier=Cn(this.sliceSerialize(ri)).toLowerCase(),this.data.referenceType="full"}function _a(ri){this.data.characterReferenceType=ri.type}function ua(ri){const rr=this.sliceSerialize(ri),xo=this.data.characterReferenceType;let Lo;xo?(Lo=al(rr,xo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Lo=ce(rr);const oa=this.stack[this.stack.length-1];oa.value+=Lo}function za(ri){const rr=this.stack.pop();rr.position.end=Oa(ri.end)}function $a(ri){no.call(this,ri);const rr=this.stack[this.stack.length-1];rr.url=this.sliceSerialize(ri)}function Do(ri){no.call(this,ri);const rr=this.stack[this.stack.length-1];rr.url="mailto:"+this.sliceSerialize(ri)}function No(){return{type:"blockquote",children:[]}}function Oo(){return{type:"code",lang:null,meta:null,value:""}}function ra(){return{type:"inlineCode",value:""}}function ja(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function d(){return{type:"emphasis",children:[]}}function g(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function nt(){return{type:"html",value:""}}function mn(){return{type:"image",title:null,url:"",alt:null}}function Yn(){return{type:"link",title:null,url:"",children:[]}}function Ci(ri){return{type:"list",ordered:ri.type==="listOrdered",start:null,spread:ri._spread,children:[]}}function wr(ri){return{type:"listItem",spread:ri._spread,checked:null,children:[]}}function zr(){return{type:"paragraph",children:[]}}function Yr(){return{type:"strong",children:[]}}function Ra(){return{type:"text",value:""}}function ba(){return{type:"thematicBreak"}}}function Oa(E){return{line:E.line,column:E.column,offset:E.offset}}function ml(E,_){let W=-1;for(;++W<_.length;){const q=_[W];Array.isArray(q)?ml(E,q):Xo(E,q)}}function Xo(E,_){let W;for(W in _)if(os.call(_,W))switch(W){case"canContainEols":{const q=_[W];q&&E[W].push(...q);break}case"transforms":{const q=_[W];q&&E[W].push(...q);break}case"enter":case"exit":{const q=_[W];q&&Object.assign(E[W],q);break}}}function js(E,_){throw E?new Error("Cannot close `"+E.type+"` ("+ee({start:E.start,end:E.end})+"): a different token (`"+_.type+"`, "+ee({start:_.start,end:_.end})+") is open"):new Error("Cannot close document, a token (`"+_.type+"`, "+ee({start:_.start,end:_.end})+") is still open")}function wu(E){const _=this;_.parser=W;function W(q){return Ol(q,cd(Uo(Uo({},_.data("settings")),E),{extensions:_.data("micromarkExtensions")||[],mdastExtensions:_.data("fromMarkdownExtensions")||[]}))}}var Ll=h(90302);function as(E,_){const W=encode(Fa(E||""));if(!_)return W;const q=W.indexOf(":"),fe=W.indexOf("?"),Ce=W.indexOf("#"),$e=W.indexOf("/");return q<0||$e>-1&&q>$e||fe>-1&&q>fe||Ce>-1&&q>Ce||_.test(W.slice(0,q))?W:""}function Fa(E){const _=[];let W=-1,q=0,fe=0;for(;++W<E.length;){const Ce=E.charCodeAt(W);let $e="";if(Ce===37&&(0,dn.H$)(E.charCodeAt(W+1))&&(0,dn.H$)(E.charCodeAt(W+2)))fe=2;else if(Ce<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ce))||($e=String.fromCharCode(Ce));else if(Ce>55295&&Ce<57344){const it=E.charCodeAt(W+1);Ce<56320&&it>56319&&it<57344?($e=String.fromCharCode(Ce,it),fe=1):$e="\uFFFD"}else $e=String.fromCharCode(Ce);$e&&(_.push(E.slice(q,W),encodeURIComponent($e)),q=W+fe+1,$e=""),fe&&(W+=fe,fe=0)}return _.join("")+E.slice(q)}function Gs(E,_){const W=[{type:"text",value:"\u21A9"}];return _>1&&W.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(_)}]}),W}function Ki(E,_){return"Back to reference "+(E+1)+(_>1?"-"+_:"")}function ks(E){const _=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",W=E.options.footnoteBackContent||Gs,q=E.options.footnoteBackLabel||Ki,fe=E.options.footnoteLabel||"Footnotes",Ce=E.options.footnoteLabelTagName||"h2",$e=E.options.footnoteLabelProperties||{className:["sr-only"]},it=[];let jt=-1;for(;++jt<E.footnoteOrder.length;){const Lt=E.footnoteById.get(E.footnoteOrder[jt]);if(!Lt)continue;const dt=E.all(Lt),Yt=String(Lt.identifier).toUpperCase(),qt=Fa(Yt.toLowerCase());let zt=0;const Si=[],li=E.footnoteCounts.get(Yt);for(;li!==void 0&&++zt<=li;){Si.length>0&&Si.push({type:"text",value:" "});let Mr=typeof W=="string"?W:W(jt,zt);typeof Mr=="string"&&(Mr={type:"text",value:Mr}),Si.push({type:"element",tagName:"a",properties:{href:"#"+_+"fnref-"+qt+(zt>1?"-"+zt:""),dataFootnoteBackref:"",ariaLabel:typeof q=="string"?q:q(jt,zt),className:["data-footnote-backref"]},children:Array.isArray(Mr)?Mr:[Mr]})}const lr=dt[dt.length-1];if(lr&&lr.type==="element"&&lr.tagName==="p"){const Mr=lr.children[lr.children.length-1];Mr&&Mr.type==="text"?Mr.value+=" ":lr.children.push({type:"text",value:" "}),lr.children.push(...Si)}else dt.push(...Si);const Ni={type:"element",tagName:"li",properties:{id:_+"fn-"+qt},children:E.wrap(dt,!0)};E.patch(Lt,Ni),it.push(Ni)}if(it.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ce,properties:cd(Uo({},(0,Ll.ZP)($e)),{id:"footnote-label"}),children:[{type:"text",value:fe}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:E.wrap(it,!0)},{type:"text",value:`
|
|
|
`}]}}var Rl=h(10528);function Vr(E,_){const W={type:"element",tagName:"blockquote",properties:{},children:E.wrap(E.all(_),!0)};return E.patch(_,W),E.applyData(_,W)}function Co(E,_){const W={type:"element",tagName:"br",properties:{},children:[]};return E.patch(_,W),[E.applyData(_,W),{type:"text",value:`
|
|
|
`}]}function fa(E,_){const W=_.value?_.value+`
|
|
|
`:"",q={};_.lang&&(q.className=["language-"+_.lang]);let fe={type:"element",tagName:"code",properties:q,children:[{type:"text",value:W}]};return _.meta&&(fe.data={meta:_.meta}),E.patch(_,fe),fe=E.applyData(_,fe),fe={type:"element",tagName:"pre",properties:{},children:[fe]},E.patch(_,fe),fe}function aa(E,_){const W={type:"element",tagName:"del",properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}function ro(E,_){const W={type:"element",tagName:"em",properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}function sa(E,_){const W=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",q=String(_.identifier).toUpperCase(),fe=Fa(q.toLowerCase()),Ce=E.footnoteOrder.indexOf(q);let $e,it=E.footnoteCounts.get(q);it===void 0?(it=0,E.footnoteOrder.push(q),$e=E.footnoteOrder.length):$e=Ce+1,it+=1,E.footnoteCounts.set(q,it);const jt={type:"element",tagName:"a",properties:{href:"#"+W+"fn-"+fe,id:W+"fnref-"+fe+(it>1?"-"+it:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String($e)}]};E.patch(_,jt);const Lt={type:"element",tagName:"sup",properties:{},children:[jt]};return E.patch(_,Lt),E.applyData(_,Lt)}function ga(E,_){const W={type:"element",tagName:"h"+_.depth,properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}function La(E,_){if(E.options.allowDangerousHtml){const W={type:"raw",value:_.value};return E.patch(_,W),E.applyData(_,W)}}function Aa(E,_){const W=_.referenceType;let q="]";if(W==="collapsed"?q+="[]":W==="full"&&(q+="["+(_.label||_.identifier)+"]"),_.type==="imageReference")return[{type:"text",value:"!["+_.alt+q}];const fe=E.all(_),Ce=fe[0];Ce&&Ce.type==="text"?Ce.value="["+Ce.value:fe.unshift({type:"text",value:"["});const $e=fe[fe.length-1];return $e&&$e.type==="text"?$e.value+=q:fe.push({type:"text",value:q}),fe}function Gl(E,_){const W=String(_.identifier).toUpperCase(),q=E.definitionById.get(W);if(!q)return Aa(E,_);const fe={src:Fa(q.url||""),alt:_.alt};q.title!==null&&q.title!==void 0&&(fe.title=q.title);const Ce={type:"element",tagName:"img",properties:fe,children:[]};return E.patch(_,Ce),E.applyData(_,Ce)}function Ys(E,_){const W={src:Fa(_.url)};_.alt!==null&&_.alt!==void 0&&(W.alt=_.alt),_.title!==null&&_.title!==void 0&&(W.title=_.title);const q={type:"element",tagName:"img",properties:W,children:[]};return E.patch(_,q),E.applyData(_,q)}function ka(E,_){const W={type:"text",value:_.value.replace(/\r?\n|\r/g," ")};E.patch(_,W);const q={type:"element",tagName:"code",properties:{},children:[W]};return E.patch(_,q),E.applyData(_,q)}function hc(E,_){const W=String(_.identifier).toUpperCase(),q=E.definitionById.get(W);if(!q)return Aa(E,_);const fe={href:Fa(q.url||"")};q.title!==null&&q.title!==void 0&&(fe.title=q.title);const Ce={type:"element",tagName:"a",properties:fe,children:E.all(_)};return E.patch(_,Ce),E.applyData(_,Ce)}function Zu(E,_){const W={href:Fa(_.url)};_.title!==null&&_.title!==void 0&&(W.title=_.title);const q={type:"element",tagName:"a",properties:W,children:E.all(_)};return E.patch(_,q),E.applyData(_,q)}function uu(E,_,W){const q=E.all(_),fe=W?sr(W):Ws(_),Ce={},$e=[];if(typeof _.checked=="boolean"){const dt=q[0];let Yt;dt&&dt.type==="element"&&dt.tagName==="p"?Yt=dt:(Yt={type:"element",tagName:"p",properties:{},children:[]},q.unshift(Yt)),Yt.children.length>0&&Yt.children.unshift({type:"text",value:" "}),Yt.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:_.checked,disabled:!0},children:[]}),Ce.className=["task-list-item"]}let it=-1;for(;++it<q.length;){const dt=q[it];(fe||it!==0||dt.type!=="element"||dt.tagName!=="p")&&$e.push({type:"text",value:`
|
|
|
`}),dt.type==="element"&&dt.tagName==="p"&&!fe?$e.push(...dt.children):$e.push(dt)}const jt=q[q.length-1];jt&&(fe||jt.type!=="element"||jt.tagName!=="p")&&$e.push({type:"text",value:`
|
|
|
`});const Lt={type:"element",tagName:"li",properties:Ce,children:$e};return E.patch(_,Lt),E.applyData(_,Lt)}function sr(E){let _=!1;if(E.type==="list"){_=E.spread||!1;const W=E.children;let q=-1;for(;!_&&++q<W.length;)_=Ws(W[q])}return _}function Ws(E){const _=E.spread;return _==null?E.children.length>1:_}function et(E,_){const W={},q=E.all(_);let fe=-1;for(typeof _.start=="number"&&_.start!==1&&(W.start=_.start);++fe<q.length;){const $e=q[fe];if($e.type==="element"&&$e.tagName==="li"&&$e.properties&&Array.isArray($e.properties.className)&&$e.properties.className.includes("task-list-item")){W.className=["contains-task-list"];break}}const Ce={type:"element",tagName:_.ordered?"ol":"ul",properties:W,children:E.wrap(q,!0)};return E.patch(_,Ce),E.applyData(_,Ce)}function Pn(E,_){const W={type:"element",tagName:"p",properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}function Cu(E,_){const W={type:"root",children:E.wrap(E.all(_))};return E.patch(_,W),E.applyData(_,W)}function Yu(E,_){const W={type:"element",tagName:"strong",properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}function Dl(E,_){const W=E.all(_),q=W.shift(),fe=[];if(q){const $e={type:"element",tagName:"thead",properties:{},children:E.wrap([q],!0)};E.patch(_.children[0],$e),fe.push($e)}if(W.length>0){const $e={type:"element",tagName:"tbody",properties:{},children:E.wrap(W,!0)},it=(0,ke.Pk)(_.children[1]),jt=(0,ke.rb)(_.children[_.children.length-1]);it&&jt&&($e.position={start:it,end:jt}),fe.push($e)}const Ce={type:"element",tagName:"table",properties:{},children:E.wrap(fe,!0)};return E.patch(_,Ce),E.applyData(_,Ce)}function Pl(E,_,W){const q=W?W.children:void 0,Ce=(q?q.indexOf(_):1)===0?"th":"td",$e=W&&W.type==="table"?W.align:void 0,it=$e?$e.length:_.children.length;let jt=-1;const Lt=[];for(;++jt<it;){const Yt=_.children[jt],qt={},zt=$e?$e[jt]:void 0;zt&&(qt.align=zt);let Si={type:"element",tagName:Ce,properties:qt,children:[]};Yt&&(Si.children=E.all(Yt),E.patch(Yt,Si),Si=E.applyData(Yt,Si)),Lt.push(Si)}const dt={type:"element",tagName:"tr",properties:{},children:E.wrap(Lt,!0)};return E.patch(_,dt),E.applyData(_,dt)}function gl(E,_){const W={type:"element",tagName:"td",properties:{},children:E.all(_)};return E.patch(_,W),E.applyData(_,W)}const Xu=9,cu=32;function Ia(E){const _=String(E),W=/\r?\n|\r/g;let q=W.exec(_),fe=0;const Ce=[];for(;q;)Ce.push(Or(_.slice(fe,q.index),fe>0,!0),q[0]),fe=q.index+q[0].length,q=W.exec(_);return Ce.push(Or(_.slice(fe),fe>0,!1)),Ce.join("")}function Or(E,_,W){let q=0,fe=E.length;if(_){let Ce=E.codePointAt(q);for(;Ce===Xu||Ce===cu;)q++,Ce=E.codePointAt(q)}if(W){let Ce=E.codePointAt(fe-1);for(;Ce===Xu||Ce===cu;)fe--,Ce=E.codePointAt(fe-1)}return fe>q?E.slice(q,fe):""}function Fs(E,_){const W={type:"text",value:Ia(String(_.value))};return E.patch(_,W),E.applyData(_,W)}function gs(E,_){const W={type:"element",tagName:"hr",properties:{},children:[]};return E.patch(_,W),E.applyData(_,W)}const So={blockquote:Vr,break:Co,code:fa,delete:aa,emphasis:ro,footnoteReference:sa,heading:ga,html:La,imageReference:Gl,image:Ys,inlineCode:ka,linkReference:hc,link:Zu,listItem:uu,list:et,paragraph:Pn,root:Cu,strong:Yu,table:Dl,tableCell:gl,tableRow:Pl,text:Fs,thematicBreak:gs,toml:lo,yaml:lo,definition:lo,footnoteDefinition:lo};function lo(){}const Ha={}.hasOwnProperty,Vs={};function la(E,_){const W=_||Vs,q=new Map,fe=new Map,Ce=new Map,$e=Uo(Uo({},So),W.handlers),it={all:Lt,applyData:ss,definitionById:q,footnoteById:fe,footnoteCounts:Ce,footnoteOrder:[],handlers:$e,one:jt,options:W,patch:Ks,wrap:Bo};return(0,Rl.Vn)(E,function(dt){if(dt.type==="definition"||dt.type==="footnoteDefinition"){const Yt=dt.type==="definition"?q:fe,qt=String(dt.identifier).toUpperCase();Yt.has(qt)||Yt.set(qt,dt)}}),it;function jt(dt,Yt){const qt=dt.type,zt=it.handlers[qt];if(Ha.call(it.handlers,qt)&&zt)return zt(it,dt,Yt);if(it.options.passThrough&&it.options.passThrough.includes(qt)){if("children"in dt){const li=dt,{children:lr}=li,Ni=Ib(li,["children"]),Mr=(0,Ll.ZP)(Ni);return Mr.children=it.all(dt),Mr}return(0,Ll.ZP)(dt)}return(it.options.unknownHandler||hu)(it,dt,Yt)}function Lt(dt){const Yt=[];if("children"in dt){const qt=dt.children;let zt=-1;for(;++zt<qt.length;){const Si=it.one(qt[zt],dt);if(Si){if(zt&&qt[zt-1].type==="break"&&(!Array.isArray(Si)&&Si.type==="text"&&(Si.value=Es(Si.value)),!Array.isArray(Si)&&Si.type==="element")){const li=Si.children[0];li&&li.type==="text"&&(li.value=Es(li.value))}Array.isArray(Si)?Yt.push(...Si):Yt.push(Si)}}}return Yt}}function Ks(E,_){E.position&&(_.position=(0,ke.FK)(E))}function ss(E,_){let W=_;if(E&&E.data){const q=E.data.hName,fe=E.data.hChildren,Ce=E.data.hProperties;if(typeof q=="string")if(W.type==="element")W.tagName=q;else{const $e="children"in W?W.children:[W];W={type:"element",tagName:q,properties:{},children:$e}}W.type==="element"&&Ce&&Object.assign(W.properties,(0,Ll.ZP)(Ce)),"children"in W&&W.children&&fe!==null&&fe!==void 0&&(W.children=fe)}return W}function hu(E,_){const W=_.data||{},q="value"in _&&!(Ha.call(W,"hProperties")||Ha.call(W,"hChildren"))?{type:"text",value:_.value}:{type:"element",tagName:"div",properties:{},children:E.all(_)};return E.patch(_,q),E.applyData(_,q)}function Bo(E,_){const W=[];let q=-1;for(_&&W.push({type:"text",value:`
|
|
|
`});++q<E.length;)q&&W.push({type:"text",value:`
|
|
|
`}),W.push(E[q]);return _&&E.length>0&&W.push({type:"text",value:`
|
|
|
`}),W}function Es(E){let _=0,W=E.charCodeAt(_);for(;W===9||W===32;)_++,W=E.charCodeAt(_);return E.slice(_)}function Eo(E,_){const W=la(E,_),q=W.one(E,void 0),fe=ks(W),Ce=Array.isArray(q)?{type:"root",children:q}:q||{type:"root",children:[]};return fe&&((0,I.ok)("children"in Ce),Ce.children.push({type:"text",value:`
|
|
|
`},fe)),Ce}function qo(E,_){return E&&"run"in E?function(W,q){return iy(this,null,function*(){const fe=Eo(W,Uo({file:q},_));yield E.run(fe,q)})}:function(W,q){return Eo(W,Uo({file:q},E||_))}}function ia(E){if(E)throw E}var wa=h(58847);function _o(E){if(typeof E!="object"||E===null)return!1;const _=Object.getPrototypeOf(E);return(_===null||_===Object.prototype||Object.getPrototypeOf(_)===null)&&!(Symbol.toStringTag in E)&&!(Symbol.iterator in E)}function du(){const E=[],_={run:W,use:q};return _;function W(...fe){let Ce=-1;const $e=fe.pop();if(typeof $e!="function")throw new TypeError("Expected function as last argument, not "+$e);it(null,...fe);function it(jt,...Lt){const dt=E[++Ce];let Yt=-1;if(jt){$e(jt);return}for(;++Yt<fe.length;)(Lt[Yt]===null||Lt[Yt]===void 0)&&(Lt[Yt]=fe[Yt]);fe=Lt,dt?Ir(dt,it)(...Lt):$e(null,...Lt)}}function q(fe){if(typeof fe!="function")throw new TypeError("Expected `middelware` to be a function, not "+fe);return E.push(fe),_}}function Ir(E,_){let W;return q;function q(...$e){const it=E.length>$e.length;let jt;it&&$e.push(fe);try{jt=E.apply(this,$e)}catch(Lt){const dt=Lt;if(it&&W)throw dt;return fe(dt)}it||(jt&&jt.then&&typeof jt.then=="function"?jt.then(Ce,fe):jt instanceof Error?fe(jt):Ce(jt))}function fe($e,...it){W||(W=!0,_($e,...it))}function Ce($e){fe(null,$e)}}const sl={basename:To,dirname:Qu,extname:Ju,join:qu,sep:"/"};function To(E,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');Xs(E);let W=0,q=-1,fe=E.length,Ce;if(_===void 0||_.length===0||_.length>E.length){for(;fe--;)if(E.codePointAt(fe)===47){if(Ce){W=fe+1;break}}else q<0&&(Ce=!0,q=fe+1);return q<0?"":E.slice(W,q)}if(_===E)return"";let $e=-1,it=_.length-1;for(;fe--;)if(E.codePointAt(fe)===47){if(Ce){W=fe+1;break}}else $e<0&&(Ce=!0,$e=fe+1),it>-1&&(E.codePointAt(fe)===_.codePointAt(it--)?it<0&&(q=fe):(it=-1,q=$e));return W===q?q=$e:q<0&&(q=E.length),E.slice(W,q)}function Qu(E){if(Xs(E),E.length===0)return".";let _=-1,W=E.length,q;for(;--W;)if(E.codePointAt(W)===47){if(q){_=W;break}}else q||(q=!0);return _<0?E.codePointAt(0)===47?"/":".":_===1&&E.codePointAt(0)===47?"//":E.slice(0,_)}function Ju(E){Xs(E);let _=E.length,W=-1,q=0,fe=-1,Ce=0,$e;for(;_--;){const it=E.codePointAt(_);if(it===47){if($e){q=_+1;break}continue}W<0&&($e=!0,W=_+1),it===46?fe<0?fe=_:Ce!==1&&(Ce=1):fe>-1&&(Ce=-1)}return fe<0||W<0||Ce===0||Ce===1&&fe===W-1&&fe===q+1?"":E.slice(fe,W)}function qu(...E){let _=-1,W;for(;++_<E.length;)Xs(E[_]),E[_]&&(W=W===void 0?E[_]:W+"/"+E[_]);return W===void 0?".":wc(W)}function wc(E){Xs(E);const _=E.codePointAt(0)===47;let W=_u(E,!_);return W.length===0&&!_&&(W="."),W.length>0&&E.codePointAt(E.length-1)===47&&(W+="/"),_?"/"+W:W}function _u(E,_){let W="",q=0,fe=-1,Ce=0,$e=-1,it,jt;for(;++$e<=E.length;){if($e<E.length)it=E.codePointAt($e);else{if(it===47)break;it=47}if(it===47){if(!(fe===$e-1||Ce===1))if(fe!==$e-1&&Ce===2){if(W.length<2||q!==2||W.codePointAt(W.length-1)!==46||W.codePointAt(W.length-2)!==46){if(W.length>2){if(jt=W.lastIndexOf("/"),jt!==W.length-1){jt<0?(W="",q=0):(W=W.slice(0,jt),q=W.length-1-W.lastIndexOf("/")),fe=$e,Ce=0;continue}}else if(W.length>0){W="",q=0,fe=$e,Ce=0;continue}}_&&(W=W.length>0?W+"/..":"..",q=2)}else W.length>0?W+="/"+E.slice(fe+1,$e):W=E.slice(fe+1,$e),q=$e-fe-1;fe=$e,Ce=0}else it===46&&Ce>-1?Ce++:Ce=-1}return W}function Xs(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}const Qs={cwd:Io};function Io(){return"/"}function Bs(E){return!!(E!==null&&typeof E=="object"&&"href"in E&&E.href&&"protocol"in E&&E.protocol&&E.auth===void 0)}function dc(E){if(typeof E=="string")E=new URL(E);else if(!Bs(E)){const _=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+E+"`");throw _.code="ERR_INVALID_ARG_TYPE",_}if(E.protocol!=="file:"){const _=new TypeError("The URL must be of scheme file");throw _.code="ERR_INVALID_URL_SCHEME",_}return tu(E)}function tu(E){if(E.hostname!==""){const q=new TypeError('File URL host must be "localhost" or empty on darwin');throw q.code="ERR_INVALID_FILE_URL_HOST",q}const _=E.pathname;let W=-1;for(;++W<_.length;)if(_.codePointAt(W)===37&&_.codePointAt(W+1)===50){const q=_.codePointAt(W+2);if(q===70||q===102){const fe=new TypeError("File URL path must not include encoded / characters");throw fe.code="ERR_INVALID_FILE_URL_PATH",fe}}return decodeURIComponent(_)}const vl=["history","path","basename","stem","extname","dirname"];class yl{constructor(_){let W;_?Bs(_)?W={path:_}:typeof _=="string"||fu(_)?W={value:_}:W=_:W={},this.cwd="cwd"in W?"":Qs.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let q=-1;for(;++q<vl.length;){const Ce=vl[q];Ce in W&&W[Ce]!==void 0&&W[Ce]!==null&&(this[Ce]=Ce==="history"?[...W[Ce]]:W[Ce])}let fe;for(fe in W)vl.includes(fe)||(this[fe]=W[fe])}get basename(){return typeof this.path=="string"?sl.basename(this.path):void 0}set basename(_){Wl(_,"basename"),Js(_,"basename"),this.path=sl.join(this.dirname||"",_)}get dirname(){return typeof this.path=="string"?sl.dirname(this.path):void 0}set dirname(_){Zs(this.basename,"dirname"),this.path=sl.join(_||"",this.basename)}get extname(){return typeof this.path=="string"?sl.extname(this.path):void 0}set extname(_){if(Js(_,"extname"),Zs(this.dirname,"extname"),_){if(_.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(_.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sl.join(this.dirname,this.stem+(_||""))}get path(){return this.history[this.history.length-1]}set path(_){Bs(_)&&(_=dc(_)),Wl(_,"path"),this.path!==_&&this.history.push(_)}get stem(){return typeof this.path=="string"?sl.basename(this.path,this.extname):void 0}set stem(_){Wl(_,"stem"),Js(_,"stem"),this.path=sl.join(this.dirname||"",_+(this.extname||""))}fail(_,W,q){const fe=this.message(_,W,q);throw fe.fatal=!0,fe}info(_,W,q){const fe=this.message(_,W,q);return fe.fatal=void 0,fe}message(_,W,q){const fe=new Xe(_,W,q);return this.path&&(fe.name=this.path+":"+fe.name,fe.file=this.path),fe.fatal=!1,this.messages.push(fe),fe}toString(_){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(_||void 0).decode(this.value)}}function Js(E,_){if(E&&E.includes(sl.sep))throw new Error("`"+_+"` cannot be a path: did not expect `"+sl.sep+"`")}function Wl(E,_){if(!E)throw new Error("`"+_+"` cannot be empty")}function Zs(E,_){if(!E)throw new Error("Setting `"+_+"` requires `path` to be set too")}function fu(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const pu=function(E){const q=this.constructor.prototype,fe=q[E],Ce=function(){return fe.apply(Ce,arguments)};return Object.setPrototypeOf(Ce,q),Ce},Tu={}.hasOwnProperty;class Nu extends pu{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=du()}copy(){const _=new Nu;let W=-1;for(;++W<this.attachers.length;){const q=this.attachers[W];_.use(...q)}return _.data(wa(!0,{},this.namespace)),_}data(_,W){return typeof _=="string"?arguments.length===2?(zu("data",this.frozen),this.namespace[_]=W,this):Tu.call(this.namespace,_)&&this.namespace[_]||void 0:_?(zu("data",this.frozen),this.namespace=_,this):this.namespace}freeze(){if(this.frozen)return this;const _=this;for(;++this.freezeIndex<this.attachers.length;){const[W,...q]=this.attachers[this.freezeIndex];if(q[0]===!1)continue;q[0]===!0&&(q[0]=void 0);const fe=W.call(_,...q);typeof fe=="function"&&this.transformers.use(fe)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(_){this.freeze();const W=ht(_),q=this.parser||this.Parser;return vs("parse",q),q(String(W),W)}process(_,W){const q=this;return this.freeze(),vs("process",this.parser||this.Parser),Vl("process",this.compiler||this.Compiler),W?fe(void 0,W):new Promise(fe);function fe(Ce,$e){const it=ht(_),jt=q.parse(it);q.run(jt,it,function(dt,Yt,qt){if(dt||!Yt||!qt)return Lt(dt);const zt=Yt,Si=q.stringify(zt,qt);_t(Si)?qt.value=Si:qt.result=Si,Lt(dt,qt)});function Lt(dt,Yt){dt||!Yt?$e(dt):Ce?Ce(Yt):((0,I.ok)(W,"`done` is defined if `resolve` is not"),W(void 0,Yt))}}}processSync(_){let W=!1,q;return this.freeze(),vs("processSync",this.parser||this.Parser),Vl("processSync",this.compiler||this.Compiler),this.process(_,fe),Le("processSync","process",W),(0,I.ok)(q,"we either bailed on an error or have a tree"),q;function fe(Ce,$e){W=!0,ia(Ce),q=$e}}run(_,W,q){Ee(_),this.freeze();const fe=this.transformers;return!q&&typeof W=="function"&&(q=W,W=void 0),q?Ce(void 0,q):new Promise(Ce);function Ce($e,it){(0,I.ok)(typeof W!="function","`file` can\u2019t be a `done` anymore, we checked");const jt=ht(W);fe.run(_,jt,Lt);function Lt(dt,Yt,qt){const zt=Yt||_;dt?it(dt):$e?$e(zt):((0,I.ok)(q,"`done` is defined if `resolve` is not"),q(void 0,zt,qt))}}}runSync(_,W){let q=!1,fe;return this.run(_,W,Ce),Le("runSync","run",q),(0,I.ok)(fe,"we either bailed on an error or have a tree"),fe;function Ce($e,it){ia($e),fe=it,q=!0}}stringify(_,W){this.freeze();const q=ht(W),fe=this.compiler||this.Compiler;return Vl("stringify",fe),Ee(_),fe(_,q)}use(_,...W){const q=this.attachers,fe=this.namespace;if(zu("use",this.frozen),_!=null)if(typeof _=="function")jt(_,W);else if(typeof _=="object")Array.isArray(_)?it(_):$e(_);else throw new TypeError("Expected usable value, not `"+_+"`");return this;function Ce(Lt){if(typeof Lt=="function")jt(Lt,[]);else if(typeof Lt=="object")if(Array.isArray(Lt)){const[dt,...Yt]=Lt;jt(dt,Yt)}else $e(Lt);else throw new TypeError("Expected usable value, not `"+Lt+"`")}function $e(Lt){if(!("plugins"in Lt)&&!("settings"in Lt))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");it(Lt.plugins),Lt.settings&&(fe.settings=wa(!0,fe.settings,Lt.settings))}function it(Lt){let dt=-1;if(Lt!=null)if(Array.isArray(Lt))for(;++dt<Lt.length;){const Yt=Lt[dt];Ce(Yt)}else throw new TypeError("Expected a list of plugins, not `"+Lt+"`")}function jt(Lt,dt){let Yt=-1,qt=-1;for(;++Yt<q.length;)if(q[Yt][0]===Lt){qt=Yt;break}if(qt===-1)q.push([Lt,...dt]);else if(dt.length>0){let[zt,...Si]=dt;const li=q[qt][1];_o(li)&&_o(zt)&&(zt=wa(!0,li,zt)),q[qt]=[Lt,zt,...Si]}}}}const ll=new Nu().freeze();function vs(E,_){if(typeof _!="function")throw new TypeError("Cannot `"+E+"` without `parser`")}function Vl(E,_){if(typeof _!="function")throw new TypeError("Cannot `"+E+"` without `compiler`")}function zu(E,_){if(_)throw new Error("Cannot call `"+E+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ee(E){if(!_o(E)||typeof E.type!="string")throw new TypeError("Expected node, got `"+E+"`")}function Le(E,_,W){if(!W)throw new Error("`"+E+"` finished async. Use `"+_+"` instead")}function ht(E){return bt(E)?E:new yl(E)}function bt(E){return!!(E&&typeof E=="object"&&"message"in E&&"messages"in E)}function _t(E){return typeof E=="string"||Ot(E)}function Ot(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const ge="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yn=[],ln={allowDangerousHtml:!0},zn=/^(https?|ircs?|mailto|xmpp)$/i,$n=[{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 Gn(E){const _=ti(E),W=ji(E);return ci(_.runSync(_.parse(W),W),E)}function yi(E){return iy(this,null,function*(){const _=ti(E),W=ji(E),q=yield _.run(_.parse(W),W);return ci(q,E)})}function bi(E){const _=ti(E),[W,q]=useState(void 0),[fe,Ce]=useState(void 0);if(useEffect(function(){const $e=ji(E);_.run(_.parse($e),$e,function(it,jt){q(it),Ce(jt)})},[E.children,E.rehypePlugins,E.remarkPlugins,E.remarkRehypeOptions]),W)throw W;return fe?ci(fe,E):createElement(Fragment)}function ti(E){const _=E.rehypePlugins||yn,W=E.remarkPlugins||yn,q=E.remarkRehypeOptions?Uo(Uo({},E.remarkRehypeOptions),ln):ln;return ll().use(wu).use(W).use(qo,q).use(_)}function ji(E){const _=E.children||"",W=new yl;return typeof _=="string"?W.value=_:(0,I.t1)("Unexpected value `"+_+"` for `children` prop, expected `string`"),W}function ci(E,_){const W=_.allowedElements,q=_.allowElement,fe=_.components,Ce=_.disallowedElements,$e=_.skipHtml,it=_.unwrapDisallowed,jt=_.urlTransform||Gi;for(const dt of $n)Object.hasOwn(_,dt.from)&&(0,I.t1)("Unexpected `"+dt.from+"` prop, "+(dt.to?"use `"+dt.to+"` instead":"remove it")+" (see <"+ge+"#"+dt.id+"> for more info)");return W&&Ce&&(0,I.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),_.className&&(E={type:"element",tagName:"div",properties:{className:_.className},children:E.type==="root"?E.children:[E]}),(0,Rl.Vn)(E,Lt),Et(E,{Fragment:Ue.Fragment,components:fe,ignoreInvalidStyle:!0,jsx:Ue.jsx,jsxs:Ue.jsxs,passKeys:!0,passNode:!0});function Lt(dt,Yt,qt){if(dt.type==="raw"&&qt&&typeof Yt=="number")return $e?qt.children.splice(Yt,1):qt.children[Yt]={type:"text",value:dt.value},Yt;if(dt.type==="element"){let zt;for(zt in kt)if(Object.hasOwn(kt,zt)&&Object.hasOwn(dt.properties,zt)){const Si=dt.properties[zt],li=kt[zt];(li===null||li.includes(dt.tagName))&&(dt.properties[zt]=jt(String(Si||""),zt,dt))}}if(dt.type==="element"){let zt=W?!W.includes(dt.tagName):Ce?Ce.includes(dt.tagName):!1;if(!zt&&q&&typeof Yt=="number"&&(zt=!q(dt,Yt,qt)),zt&&qt&&typeof Yt=="number")return it&&dt.children?qt.children.splice(Yt,1,...dt.children):qt.children.splice(Yt,1),Yt}}}function Gi(E){const _=E.indexOf(":"),W=E.indexOf("?"),q=E.indexOf("#"),fe=E.indexOf("/");return _===-1||fe!==-1&&_>fe||W!==-1&&_>W||q!==-1&&_>q||zn.test(E.slice(0,_))?E:""}},35328:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Ga}});var v=h(81994),I=h(43309);function O(N,m){return B(N,m||{})||{type:"root",children:[]}}function B(N,m){const S=G(N,m);return S&&m.afterTransform&&m.afterTransform(N,S),S}function G(N,m){switch(N.nodeType){case 1:return te(N,m);case 3:return he(N);case 8:return ue(N);case 9:return F(N,m);case 10:return M();case 11:return F(N,m);default:return}}function F(N,m){return{type:"root",children:Me(N,m)}}function M(){return{type:"doctype"}}function he(N){return{type:"text",value:N.nodeValue||""}}function ue(N){return{type:"comment",value:N.nodeValue||""}}function te(N,m){const S=N.namespaceURI,D=S===I.t.svg?v.s:v.h,Z=S===I.t.html?N.tagName.toLowerCase():N.tagName,oe=S===I.t.html&&Z==="template"?N.content:N,Y=N.getAttributeNames(),ut={};let pt=-1;for(;++pt<Y.length;)ut[Y[pt]]=N.getAttribute(Y[pt])||"";return D(Z,ut,Me(oe,m))}function Me(N,m){const S=N.childNodes,D=[];let Z=-1;for(;++Z<S.length;){const oe=B(S[Z],m);oe!==void 0&&D.push(oe)}return D}const we=new DOMParser;function Je(N,m){const S=m!=null&&m.fragment?Oe(N):we.parseFromString(N,"text/html");return O(S)}function Oe(N){const m=document.createElement("template");return m.innerHTML=N,m.content}var Te=h(10502);const Ae=function(N,m,S){const D=(0,Te.O)(S);if(!N||!N.type||!N.children)throw new Error("Expected parent node");if(typeof m=="number"){if(m<0||m===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(m=N.children.indexOf(m),m<0)throw new Error("Expected child node or index");for(;++m<N.children.length;)if(D(N.children[m],m,N))return N.children[m]},Re=function(N,m,S,D,Z){const oe=de(m);if(S!=null&&(typeof S!="number"||S<0||S===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(D!=null&&(!D.type||!D.children))throw new Error("Expected valid `parent`");if(S==null!=(D==null))throw new Error("Expected both `index` and `parent`");return ee(N)?oe.call(Z,N,S,D):!1},de=function(N){if(N==null)return ke;if(typeof N=="string")return be(N);if(typeof N=="object")return pe(N);if(typeof N=="function")return me(N);throw new Error("Expected function, string, or array as `test`")};function pe(N){const m=[];let S=-1;for(;++S<N.length;)m[S]=de(N[S]);return me(D);function D(...Z){let oe=-1;for(;++oe<m.length;)if(m[oe].apply(this,Z))return!0;return!1}}function be(N){return me(m);function m(S){return S.tagName===N}}function me(N){return m;function m(S,D,Z){return!!(ee(S)&&N.call(this,S,typeof D=="number"?D:void 0,Z||void 0))}}function ke(N){return!!(N&&typeof N=="object"&&"type"in N&&N.type==="element"&&"tagName"in N&&typeof N.tagName=="string")}function ee(N){return N!==null&&typeof N=="object"&&"type"in N&&"tagName"in N}const Ne=/\n/g,Ie=/[\t ]+/g,Pe=de("br"),Xe=de($t),Ye=de("p"),ie=de("tr"),lt=de(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",le,Vt]),We=de(["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 Pt(N,m){const S=m||{},D="children"in N?N.children:[],Z=We(N),oe=ae(N,{whitespace:S.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Y=[];(N.type==="text"||N.type==="comment")&&Y.push(...Et(N,{whitespace:oe,breakBefore:!0,breakAfter:!0}));let ut=-1;for(;++ut<D.length;)Y.push(...xt(D[ut],N,{whitespace:oe,breakBefore:ut?void 0:Z,breakAfter:ut<D.length-1?Pe(D[ut+1]):Z}));const pt=[];let bn;for(ut=-1;++ut<Y.length;){const _n=Y[ut];typeof _n=="number"?bn!==void 0&&_n>bn&&(bn=_n):_n&&(bn!==void 0&&bn>-1&&pt.push(`
|
|
|
`.repeat(bn)||" "),bn=-1,pt.push(_n))}return pt.join("")}function xt(N,m,S){return N.type==="element"?Tt(N,m,S):N.type==="text"?S.whitespace==="normal"?Et(N,S):wn(N):[]}function Tt(N,m,S){const D=ae(N,S),Z=N.children||[];let oe=-1,Y=[];if(lt(N))return Y;let ut,pt;for(Pe(N)||ie(N)&&Ae(m,N,ie)?pt=`
|
|
|
`:Ye(N)?(ut=2,pt=2):We(N)&&(ut=1,pt=1);++oe<Z.length;)Y=Y.concat(xt(Z[oe],N,{whitespace:D,breakBefore:oe?void 0:ut,breakAfter:oe<Z.length-1?Pe(Z[oe+1]):pt}));return Xe(N)&&Ae(m,N,Xe)&&Y.push(" "),ut&&Y.unshift(ut),pt&&Y.push(pt),Y}function Et(N,m){const S=String(N.value),D=[],Z=[];let oe=0;for(;oe<=S.length;){Ne.lastIndex=oe;const pt=Ne.exec(S),bn=pt&&"index"in pt?pt.index:S.length;D.push(qe(S.slice(oe,bn).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),oe===0?m.breakBefore:!0,bn===S.length?m.breakAfter:!0)),oe=bn+1}let Y=-1,ut;for(;++Y<D.length;)D[Y].charCodeAt(D[Y].length-1)===8203||Y<D.length-1&&D[Y+1].charCodeAt(0)===8203?(Z.push(D[Y]),ut=void 0):D[Y]?(typeof ut=="number"&&Z.push(ut),Z.push(D[Y]),ut=0):(Y===0||Y===D.length-1)&&Z.push(0);return Z}function wn(N){return[String(N.value)]}function qe(N,m,S){const D=[];let Z=0,oe;for(;Z<N.length;){Ie.lastIndex=Z;const Y=Ie.exec(N);oe=Y?Y.index:N.length,!Z&&!oe&&Y&&!m&&D.push(""),Z!==oe&&D.push(N.slice(Z,oe)),Z=Y?oe+Y[0].length:oe}return Z!==oe&&!S&&D.push(""),D.join(" ")}function ae(N,m){if(N.type==="element"){const S=N.properties||{};switch(N.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return S.wrap?"pre-wrap":"pre";case"td":case"th":return S.noWrap?"nowrap":m.whitespace;case"textarea":return"pre-wrap";default:}}return m.whitespace}function le(N){return!!(N.properties||{}).hidden}function $t(N){return N.tagName==="td"||N.tagName==="th"}function Vt(N){return N.tagName==="dialog"&&!(N.properties||{}).open}class St{constructor(m,S,D){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=m,this.start=S,this.end=D}static range(m,S){return S?!m||!m.loc||!S.loc||m.loc.lexer!==S.loc.lexer?null:new St(m.loc.lexer,m.loc.start,S.loc.end):m&&m.loc}}class un{constructor(m,S){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=m,this.loc=S}range(m,S){return new un(S,St.range(this,m))}}class Ft{constructor(m,S){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var D="KaTeX parse error: "+m,Z,oe,Y=S&&S.loc;if(Y&&Y.start<=Y.end){var ut=Y.lexer.input;Z=Y.start,oe=Y.end,Z===ut.length?D+=" at end of input: ":D+=" at position "+(Z+1)+": ";var pt=ut.slice(Z,oe).replace(/[^]/g,"$&\u0332"),bn;Z>15?bn="\u2026"+ut.slice(Z-15,Z):bn=ut.slice(0,Z);var _n;oe+15<ut.length?_n=ut.slice(oe,oe+15)+"\u2026":_n=ut.slice(oe),D+=bn+pt+_n}var Qn=new Error(D);return Qn.name="ParseError",Qn.__proto__=Ft.prototype,Qn.position=Z,Z!=null&&oe!=null&&(Qn.length=oe-Z),Qn.rawMessage=m,Qn}}Ft.prototype.__proto__=Error.prototype;var ai=function(m,S){return m.indexOf(S)!==-1},On=function(m,S){return m===void 0?S:m},ni=/([A-Z])/g,Jn=function(m){return m.replace(ni,"-$1").toLowerCase()},In={"&":"&",">":">","<":"<",'"':""","'":"'"},Mn=/[&><"']/g;function xe(N){return String(N).replace(Mn,m=>In[m])}var P=function N(m){return m.type==="ordgroup"||m.type==="color"?m.body.length===1?N(m.body[0]):m:m.type==="font"?N(m.body):m},k=function(m){var S=P(m);return S.type==="mathord"||S.type==="textord"||S.type==="atom"},j=function(m){if(!m)throw new Error("Expected non-null, but got "+String(m));return m},X=function(m){var S=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(m);return S?S[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(S[1])?null:S[1].toLowerCase():"_relative"},T={contains:ai,deflt:On,escape:xe,hyphenate:Jn,getBaseElem:P,isCharacterBox:k,protocolFromUrl:X},_e={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:N=>"#"+N},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:(N,m)=>(m.push(N),m)},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:N=>Math.max(0,N),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:N=>Math.max(0,N),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:N=>Math.max(0,N),cli:"-e, --max-expand <n>",cliProcessor:N=>N==="Infinity"?1/0:parseInt(N)},globalGroup:{type:"boolean",cli:!1}};function kt(N){if(N.default)return N.default;var m=N.type,S=Array.isArray(m)?m[0]:m;if(typeof S!="string")return S.enum[0];switch(S){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Ue{constructor(m){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,m=m||{};for(var S in _e)if(_e.hasOwnProperty(S)){var D=_e[S];this[S]=m[S]!==void 0?D.processor?D.processor(m[S]):m[S]:kt(D)}}reportNonstrict(m,S,D){var Z=this.strict;if(typeof Z=="function"&&(Z=Z(m,S,D)),!(!Z||Z==="ignore")){if(Z===!0||Z==="error")throw new Ft("LaTeX-incompatible input and strict mode is set to 'error': "+(S+" ["+m+"]"),D);Z==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+m+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Z+"': "+S+" ["+m+"]"))}}useStrictBehavior(m,S,D){var Z=this.strict;if(typeof Z=="function")try{Z=Z(m,S,D)}catch(oe){Z="error"}return!Z||Z==="ignore"?!1:Z===!0||Z==="error"?!0:Z==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+m+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Z+"': "+S+" ["+m+"]")),!1)}isTrusted(m){if(m.url&&!m.protocol){var S=T.protocolFromUrl(m.url);if(S==null)return!1;m.protocol=S}var D=typeof this.trust=="function"?this.trust(m):this.trust;return!!D}}class Be{constructor(m,S,D){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=m,this.size=S,this.cramped=D}sup(){return gn[Qe[this.id]]}sub(){return gn[Ut[this.id]]}fracNum(){return gn[tn[this.id]]}fracDen(){return gn[nn[this.id]]}cramp(){return gn[He[this.id]]}text(){return gn[Bn[this.id]]}isTight(){return this.size>=2}}var mt=0,ct=1,tt=2,It=3,an=4,en=5,Bt=6,cn=7,gn=[new Be(mt,0,!1),new Be(ct,0,!0),new Be(tt,1,!1),new Be(It,1,!0),new Be(an,2,!1),new Be(en,2,!0),new Be(Bt,3,!1),new Be(cn,3,!0)],Qe=[an,en,an,en,Bt,cn,Bt,cn],Ut=[en,en,en,en,cn,cn,cn,cn],tn=[tt,It,an,en,Bt,cn,Bt,cn],nn=[It,It,en,en,cn,cn,cn,cn],He=[ct,ct,It,It,en,en,cn,cn],Bn=[mt,ct,tt,It,tt,It,tt,It],kn={DISPLAY:gn[mt],TEXT:gn[tt],SCRIPT:gn[an],SCRIPTSCRIPT:gn[Bt]},Kn=[{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 Ti(N){for(var m=0;m<Kn.length;m++)for(var S=Kn[m],D=0;D<S.blocks.length;D++){var Z=S.blocks[D];if(N>=Z[0]&&N<=Z[1])return S.name}return null}var hi=[];Kn.forEach(N=>N.blocks.forEach(m=>hi.push(...m)));function dn(N){for(var m=0;m<hi.length;m+=2)if(N>=hi[m]&&N<=hi[m+1])return!0;return!1}var sn=80,gr=function(m,S){return"M95,"+(622+m+S)+`
|
|
|
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`+m/2.075+" -"+m+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+m)+`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+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},dr=function(m,S){return"M263,"+(601+m+S)+`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`+m/2.084+" -"+m+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+m)+`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+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},qn=function(m,S){return"M983 "+(10+m+S)+`
|
|
|
l`+m/3.13+" -"+m+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+m)+`
|
|
|
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+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},Rr=function(m,S){return"M424,"+(2398+m+S)+`
|
|
|
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`+m/4.223+" -"+m+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+m)+`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+m)+" "+S+`
|
|
|
h400000v`+(40+m)+"h-400000z"},tr=function(m,S){return"M473,"+(2713+m+S)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+m/5.298+" -"+m+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+m)+`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+m)+" "+S+"h400000v"+(40+m)+"H1017.7z"},U=function(m){var S=m/2;return"M400000 "+m+" H0 L"+S+" 0 l65 45 L145 "+(m-80)+" H400000z"},br=function(m,S,D){var Z=D-54-S-m;return"M702 "+(m+S)+"H400000"+(40+m)+`
|
|
|
H742v`+Z+`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 `+S+"H400000v"+(40+m)+"H742z"},fr=function(m,S,D){S=1e3*S;var Z="";switch(m){case"sqrtMain":Z=gr(S,sn);break;case"sqrtSize1":Z=dr(S,sn);break;case"sqrtSize2":Z=qn(S,sn);break;case"sqrtSize3":Z=Rr(S,sn);break;case"sqrtSize4":Z=tr(S,sn);break;case"sqrtTall":Z=br(S,sn,D)}return Z},Fr=function(m,S){switch(m){case"\u239C":return"M291 0 H417 V"+S+" H291z M291 0 H417 V"+S+" H291z";case"\u2223":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z";case"\u2225":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z"+("M367 0 H410 V"+S+" H367z M367 0 H410 V"+S+" H367z");case"\u239F":return"M457 0 H583 V"+S+" H457z M457 0 H583 V"+S+" H457z";case"\u23A2":return"M319 0 H403 V"+S+" H319z M319 0 H403 V"+S+" H319z";case"\u23A5":return"M263 0 H347 V"+S+" H263z M263 0 H347 V"+S+" H263z";case"\u23AA":return"M384 0 H504 V"+S+" H384z M384 0 H504 V"+S+" H384z";case"\u23D0":return"M312 0 H355 V"+S+" H312z M312 0 H355 V"+S+" H312z";case"\u2016":return"M257 0 H300 V"+S+" H257z M257 0 H300 V"+S+" H257z"+("M478 0 H521 V"+S+" H478z M478 0 H521 V"+S+" H478z");default:return""}},jr={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`},so=function(m,S){switch(m){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v1759 h347 v-84
|
|
|
H403z M403 1759 V0 H319 V1759 v`+S+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v1759 H0 v84 H347z
|
|
|
M347 1759 V0 H263 V1759 v`+S+" v1759 h84z";case"vert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+" v585 h43z";case"doublevert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+` v585 h43z
|
|
|
M367 15 v585 v`+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+S+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+S+` v1715 h263 v84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+S+` v1799 H0 v-84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v602 h84z
|
|
|
M403 1759 V0 H319 V1759 v`+S+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v602 h84z
|
|
|
M347 1759 V0 h-84 V1759 v`+S+" 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,`+(S+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,-`+(S+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,`+(S+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,-`+(S+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 Ar{constructor(m){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=m,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(m){return T.contains(this.classes,m)}toNode(){for(var m=document.createDocumentFragment(),S=0;S<this.children.length;S++)m.appendChild(this.children[S].toNode());return m}toMarkup(){for(var m="",S=0;S<this.children.length;S++)m+=this.children[S].toMarkup();return m}toText(){var m=S=>S.toText();return this.children.map(m).join("")}}var to={"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]}},vr={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]},Ji={\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 di(N,m){to[N]=m}function ft(N,m,S){if(!to[m])throw new Error("Font metrics not found for font: "+m+".");var D=N.charCodeAt(0),Z=to[m][D];if(!Z&&N[0]in Ji&&(D=Ji[N[0]].charCodeAt(0),Z=to[m][D]),!Z&&S==="text"&&dn(D)&&(Z=to[m][77]),Z)return{depth:Z[0],height:Z[1],italic:Z[2],skew:Z[3],width:Z[4]}}var Un={};function Wn(N){var m;if(N>=5?m=0:N>=3?m=1:m=2,!Un[m]){var S=Un[m]={cssEmPerMu:vr.quad[m]/18};for(var D in vr)vr.hasOwnProperty(D)&&(S[D]=vr[D][m])}return Un[m]}var vt=[[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]],Ve=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],vn=function(m,S){return S.size<2?m:vt[m-1][S.size-1]};class Nn{constructor(m){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=m.style,this.color=m.color,this.size=m.size||Nn.BASESIZE,this.textSize=m.textSize||this.size,this.phantom=!!m.phantom,this.font=m.font||"",this.fontFamily=m.fontFamily||"",this.fontWeight=m.fontWeight||"",this.fontShape=m.fontShape||"",this.sizeMultiplier=Ve[this.size-1],this.maxSize=m.maxSize,this.minRuleThickness=m.minRuleThickness,this._fontMetrics=void 0}extend(m){var S={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 D in m)m.hasOwnProperty(D)&&(S[D]=m[D]);return new Nn(S)}havingStyle(m){return this.style===m?this:this.extend({style:m,size:vn(this.textSize,m)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(m){return this.size===m&&this.textSize===m?this:this.extend({style:this.style.text(),size:m,textSize:m,sizeMultiplier:Ve[m-1]})}havingBaseStyle(m){m=m||this.style.text();var S=vn(Nn.BASESIZE,m);return this.size===S&&this.textSize===Nn.BASESIZE&&this.style===m?this:this.extend({style:m,size:S})}havingBaseSizing(){var m;switch(this.style.id){case 4:case 5:m=3;break;case 6:case 7:m=1;break;default:m=6}return this.extend({style:this.style.text(),size:m})}withColor(m){return this.extend({color:m})}withPhantom(){return this.extend({phantom:!0})}withFont(m){return this.extend({font:m})}withTextFontFamily(m){return this.extend({fontFamily:m,font:""})}withTextFontWeight(m){return this.extend({fontWeight:m,font:""})}withTextFontShape(m){return this.extend({fontShape:m,font:""})}sizingClasses(m){return m.size!==this.size?["sizing","reset-size"+m.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Nn.BASESIZE?["sizing","reset-size"+this.size,"size"+Nn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Wn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Nn.BASESIZE=6;var on={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},Ct={ex:!0,em:!0,mu:!0},Ke=function(m){return typeof m!="string"&&(m=m.unit),m in on||m in Ct||m==="ex"},Ht=function(m,S){var D;if(m.unit in on)D=on[m.unit]/S.fontMetrics().ptPerEm/S.sizeMultiplier;else if(m.unit==="mu")D=S.fontMetrics().cssEmPerMu;else{var Z;if(S.style.isTight()?Z=S.havingStyle(S.style.text()):Z=S,m.unit==="ex")D=Z.fontMetrics().xHeight;else if(m.unit==="em")D=Z.fontMetrics().quad;else throw new Ft("Invalid unit: '"+m.unit+"'");Z!==S&&(D*=Z.sizeMultiplier/S.sizeMultiplier)}return Math.min(m.number*D,S.maxSize)},Rt=function(m){return+m.toFixed(4)+"em"},jn=function(m){return m.filter(S=>S).join(" ")},at=function(m,S,D){if(this.classes=m||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=D||{},S){S.style.isTight()&&this.classes.push("mtight");var Z=S.getColor();Z&&(this.style.color=Z)}},hn=function(m){var S=document.createElement(m);S.className=jn(this.classes);for(var D in this.style)this.style.hasOwnProperty(D)&&(S.style[D]=this.style[D]);for(var Z in this.attributes)this.attributes.hasOwnProperty(Z)&&S.setAttribute(Z,this.attributes[Z]);for(var oe=0;oe<this.children.length;oe++)S.appendChild(this.children[oe].toNode());return S},yt=/[\s"'>/=\x00-\x1f]/,Ge=function(m){var S="<"+m;this.classes.length&&(S+=' class="'+T.escape(jn(this.classes))+'"');var D="";for(var Z in this.style)this.style.hasOwnProperty(Z)&&(D+=T.hyphenate(Z)+":"+this.style[Z]+";");D&&(S+=' style="'+T.escape(D)+'"');for(var oe in this.attributes)if(this.attributes.hasOwnProperty(oe)){if(yt.test(oe))throw new Ft("Invalid attribute name '"+oe+"'");S+=" "+oe+'="'+T.escape(this.attributes[oe])+'"'}S+=">";for(var Y=0;Y<this.children.length;Y++)S+=this.children[Y].toMarkup();return S+="</"+m+">",S};class L{constructor(m,S,D,Z){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,at.call(this,m,D,Z),this.children=S||[]}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return T.contains(this.classes,m)}toNode(){return hn.call(this,"span")}toMarkup(){return Ge.call(this,"span")}}class Dt{constructor(m,S,D,Z){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,at.call(this,S,Z),this.children=D||[],this.setAttribute("href",m)}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return T.contains(this.classes,m)}toNode(){return hn.call(this,"a")}toMarkup(){return Ge.call(this,"a")}}class Jt{constructor(m,S,D){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=S,this.src=m,this.classes=["mord"],this.style=D}hasClass(m){return T.contains(this.classes,m)}toNode(){var m=document.createElement("img");m.src=this.src,m.alt=this.alt,m.className="mord";for(var S in this.style)this.style.hasOwnProperty(S)&&(m.style[S]=this.style[S]);return m}toMarkup(){var m='<img src="'+T.escape(this.src)+'"'+(' alt="'+T.escape(this.alt)+'"'),S="";for(var D in this.style)this.style.hasOwnProperty(D)&&(S+=T.hyphenate(D)+":"+this.style[D]+";");return S&&(m+=' style="'+T.escape(S)+'"'),m+="'/>",m}}var gt={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class fn{constructor(m,S,D,Z,oe,Y,ut,pt){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=m,this.height=S||0,this.depth=D||0,this.italic=Z||0,this.skew=oe||0,this.width=Y||0,this.classes=ut||[],this.style=pt||{},this.maxFontSize=0;var bn=Ti(this.text.charCodeAt(0));bn&&this.classes.push(bn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=gt[this.text])}hasClass(m){return T.contains(this.classes,m)}toNode(){var m=document.createTextNode(this.text),S=null;this.italic>0&&(S=document.createElement("span"),S.style.marginRight=Rt(this.italic)),this.classes.length>0&&(S=S||document.createElement("span"),S.className=jn(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(S=S||document.createElement("span"),S.style[D]=this.style[D]);return S?(S.appendChild(m),S):m}toMarkup(){var m=!1,S="<span";this.classes.length&&(m=!0,S+=' class="',S+=T.escape(jn(this.classes)),S+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var Z in this.style)this.style.hasOwnProperty(Z)&&(D+=T.hyphenate(Z)+":"+this.style[Z]+";");D&&(m=!0,S+=' style="'+T.escape(D)+'"');var oe=T.escape(this.text);return m?(S+=">",S+=oe,S+="</span>",S):oe}}class Cn{constructor(m,S){this.children=void 0,this.attributes=void 0,this.children=m||[],this.attributes=S||{}}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&S.setAttribute(D,this.attributes[D]);for(var Z=0;Z<this.children.length;Z++)S.appendChild(this.children[Z].toNode());return S}toMarkup(){var m='<svg xmlns="http://www.w3.org/2000/svg"';for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="'+T.escape(this.attributes[S])+'"');m+=">";for(var D=0;D<this.children.length;D++)m+=this.children[D].toMarkup();return m+="</svg>",m}}class ui{constructor(m,S){this.pathName=void 0,this.alternate=void 0,this.pathName=m,this.alternate=S}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"path");return this.alternate?S.setAttribute("d",this.alternate):S.setAttribute("d",jr[this.pathName]),S}toMarkup(){return this.alternate?'<path d="'+T.escape(this.alternate)+'"/>':'<path d="'+T.escape(jr[this.pathName])+'"/>'}}class Ln{constructor(m){this.attributes=void 0,this.attributes=m||{}}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&S.setAttribute(D,this.attributes[D]);return S}toMarkup(){var m="<line";for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="'+T.escape(this.attributes[S])+'"');return m+="/>",m}}function rt(N){if(N instanceof fn)return N;throw new Error("Expected symbolNode but got "+String(N)+".")}function Oi(N){if(N instanceof L)return N;throw new Error("Expected span<HtmlDomNode> but got "+String(N)+".")}var Qi={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Kt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zi={math:{},text:{}};function J(N,m,S,D,Z,oe){zi[N][Z]={font:m,group:S,replace:D},oe&&D&&(zi[N][D]=zi[N][Z])}var re="math",Hn="text",Fe="main",wt="ams",gi="accent-token",Rn="bin",_i="close",Xt="inner",Ei="mathord",Zt="op-token",Bi="open",Gr="punct",At="rel",eo="spacing",Qt="textord";J(re,Fe,At,"\u2261","\\equiv",!0),J(re,Fe,At,"\u227A","\\prec",!0),J(re,Fe,At,"\u227B","\\succ",!0),J(re,Fe,At,"\u223C","\\sim",!0),J(re,Fe,At,"\u22A5","\\perp"),J(re,Fe,At,"\u2AAF","\\preceq",!0),J(re,Fe,At,"\u2AB0","\\succeq",!0),J(re,Fe,At,"\u2243","\\simeq",!0),J(re,Fe,At,"\u2223","\\mid",!0),J(re,Fe,At,"\u226A","\\ll",!0),J(re,Fe,At,"\u226B","\\gg",!0),J(re,Fe,At,"\u224D","\\asymp",!0),J(re,Fe,At,"\u2225","\\parallel"),J(re,Fe,At,"\u22C8","\\bowtie",!0),J(re,Fe,At,"\u2323","\\smile",!0),J(re,Fe,At,"\u2291","\\sqsubseteq",!0),J(re,Fe,At,"\u2292","\\sqsupseteq",!0),J(re,Fe,At,"\u2250","\\doteq",!0),J(re,Fe,At,"\u2322","\\frown",!0),J(re,Fe,At,"\u220B","\\ni",!0),J(re,Fe,At,"\u221D","\\propto",!0),J(re,Fe,At,"\u22A2","\\vdash",!0),J(re,Fe,At,"\u22A3","\\dashv",!0),J(re,Fe,At,"\u220B","\\owns"),J(re,Fe,Gr,".","\\ldotp"),J(re,Fe,Gr,"\u22C5","\\cdotp"),J(re,Fe,Qt,"#","\\#"),J(Hn,Fe,Qt,"#","\\#"),J(re,Fe,Qt,"&","\\&"),J(Hn,Fe,Qt,"&","\\&"),J(re,Fe,Qt,"\u2135","\\aleph",!0),J(re,Fe,Qt,"\u2200","\\forall",!0),J(re,Fe,Qt,"\u210F","\\hbar",!0),J(re,Fe,Qt,"\u2203","\\exists",!0),J(re,Fe,Qt,"\u2207","\\nabla",!0),J(re,Fe,Qt,"\u266D","\\flat",!0),J(re,Fe,Qt,"\u2113","\\ell",!0),J(re,Fe,Qt,"\u266E","\\natural",!0),J(re,Fe,Qt,"\u2663","\\clubsuit",!0),J(re,Fe,Qt,"\u2118","\\wp",!0),J(re,Fe,Qt,"\u266F","\\sharp",!0),J(re,Fe,Qt,"\u2662","\\diamondsuit",!0),J(re,Fe,Qt,"\u211C","\\Re",!0),J(re,Fe,Qt,"\u2661","\\heartsuit",!0),J(re,Fe,Qt,"\u2111","\\Im",!0),J(re,Fe,Qt,"\u2660","\\spadesuit",!0),J(re,Fe,Qt,"\xA7","\\S",!0),J(Hn,Fe,Qt,"\xA7","\\S"),J(re,Fe,Qt,"\xB6","\\P",!0),J(Hn,Fe,Qt,"\xB6","\\P"),J(re,Fe,Qt,"\u2020","\\dag"),J(Hn,Fe,Qt,"\u2020","\\dag"),J(Hn,Fe,Qt,"\u2020","\\textdagger"),J(re,Fe,Qt,"\u2021","\\ddag"),J(Hn,Fe,Qt,"\u2021","\\ddag"),J(Hn,Fe,Qt,"\u2021","\\textdaggerdbl"),J(re,Fe,_i,"\u23B1","\\rmoustache",!0),J(re,Fe,Bi,"\u23B0","\\lmoustache",!0),J(re,Fe,_i,"\u27EF","\\rgroup",!0),J(re,Fe,Bi,"\u27EE","\\lgroup",!0),J(re,Fe,Rn,"\u2213","\\mp",!0),J(re,Fe,Rn,"\u2296","\\ominus",!0),J(re,Fe,Rn,"\u228E","\\uplus",!0),J(re,Fe,Rn,"\u2293","\\sqcap",!0),J(re,Fe,Rn,"\u2217","\\ast"),J(re,Fe,Rn,"\u2294","\\sqcup",!0),J(re,Fe,Rn,"\u25EF","\\bigcirc",!0),J(re,Fe,Rn,"\u2219","\\bullet",!0),J(re,Fe,Rn,"\u2021","\\ddagger"),J(re,Fe,Rn,"\u2240","\\wr",!0),J(re,Fe,Rn,"\u2A3F","\\amalg"),J(re,Fe,Rn,"&","\\And"),J(re,Fe,At,"\u27F5","\\longleftarrow",!0),J(re,Fe,At,"\u21D0","\\Leftarrow",!0),J(re,Fe,At,"\u27F8","\\Longleftarrow",!0),J(re,Fe,At,"\u27F6","\\longrightarrow",!0),J(re,Fe,At,"\u21D2","\\Rightarrow",!0),J(re,Fe,At,"\u27F9","\\Longrightarrow",!0),J(re,Fe,At,"\u2194","\\leftrightarrow",!0),J(re,Fe,At,"\u27F7","\\longleftrightarrow",!0),J(re,Fe,At,"\u21D4","\\Leftrightarrow",!0),J(re,Fe,At,"\u27FA","\\Longleftrightarrow",!0),J(re,Fe,At,"\u21A6","\\mapsto",!0),J(re,Fe,At,"\u27FC","\\longmapsto",!0),J(re,Fe,At,"\u2197","\\nearrow",!0),J(re,Fe,At,"\u21A9","\\hookleftarrow",!0),J(re,Fe,At,"\u21AA","\\hookrightarrow",!0),J(re,Fe,At,"\u2198","\\searrow",!0),J(re,Fe,At,"\u21BC","\\leftharpoonup",!0),J(re,Fe,At,"\u21C0","\\rightharpoonup",!0),J(re,Fe,At,"\u2199","\\swarrow",!0),J(re,Fe,At,"\u21BD","\\leftharpoondown",!0),J(re,Fe,At,"\u21C1","\\rightharpoondown",!0),J(re,Fe,At,"\u2196","\\nwarrow",!0),J(re,Fe,At,"\u21CC","\\rightleftharpoons",!0),J(re,wt,At,"\u226E","\\nless",!0),J(re,wt,At,"\uE010","\\@nleqslant"),J(re,wt,At,"\uE011","\\@nleqq"),J(re,wt,At,"\u2A87","\\lneq",!0),J(re,wt,At,"\u2268","\\lneqq",!0),J(re,wt,At,"\uE00C","\\@lvertneqq"),J(re,wt,At,"\u22E6","\\lnsim",!0),J(re,wt,At,"\u2A89","\\lnapprox",!0),J(re,wt,At,"\u2280","\\nprec",!0),J(re,wt,At,"\u22E0","\\npreceq",!0),J(re,wt,At,"\u22E8","\\precnsim",!0),J(re,wt,At,"\u2AB9","\\precnapprox",!0),J(re,wt,At,"\u2241","\\nsim",!0),J(re,wt,At,"\uE006","\\@nshortmid"),J(re,wt,At,"\u2224","\\nmid",!0),J(re,wt,At,"\u22AC","\\nvdash",!0),J(re,wt,At,"\u22AD","\\nvDash",!0),J(re,wt,At,"\u22EA","\\ntriangleleft"),J(re,wt,At,"\u22EC","\\ntrianglelefteq",!0),J(re,wt,At,"\u228A","\\subsetneq",!0),J(re,wt,At,"\uE01A","\\@varsubsetneq"),J(re,wt,At,"\u2ACB","\\subsetneqq",!0),J(re,wt,At,"\uE017","\\@varsubsetneqq"),J(re,wt,At,"\u226F","\\ngtr",!0),J(re,wt,At,"\uE00F","\\@ngeqslant"),J(re,wt,At,"\uE00E","\\@ngeqq"),J(re,wt,At,"\u2A88","\\gneq",!0),J(re,wt,At,"\u2269","\\gneqq",!0),J(re,wt,At,"\uE00D","\\@gvertneqq"),J(re,wt,At,"\u22E7","\\gnsim",!0),J(re,wt,At,"\u2A8A","\\gnapprox",!0),J(re,wt,At,"\u2281","\\nsucc",!0),J(re,wt,At,"\u22E1","\\nsucceq",!0),J(re,wt,At,"\u22E9","\\succnsim",!0),J(re,wt,At,"\u2ABA","\\succnapprox",!0),J(re,wt,At,"\u2246","\\ncong",!0),J(re,wt,At,"\uE007","\\@nshortparallel"),J(re,wt,At,"\u2226","\\nparallel",!0),J(re,wt,At,"\u22AF","\\nVDash",!0),J(re,wt,At,"\u22EB","\\ntriangleright"),J(re,wt,At,"\u22ED","\\ntrianglerighteq",!0),J(re,wt,At,"\uE018","\\@nsupseteqq"),J(re,wt,At,"\u228B","\\supsetneq",!0),J(re,wt,At,"\uE01B","\\@varsupsetneq"),J(re,wt,At,"\u2ACC","\\supsetneqq",!0),J(re,wt,At,"\uE019","\\@varsupsetneqq"),J(re,wt,At,"\u22AE","\\nVdash",!0),J(re,wt,At,"\u2AB5","\\precneqq",!0),J(re,wt,At,"\u2AB6","\\succneqq",!0),J(re,wt,At,"\uE016","\\@nsubseteqq"),J(re,wt,Rn,"\u22B4","\\unlhd"),J(re,wt,Rn,"\u22B5","\\unrhd"),J(re,wt,At,"\u219A","\\nleftarrow",!0),J(re,wt,At,"\u219B","\\nrightarrow",!0),J(re,wt,At,"\u21CD","\\nLeftarrow",!0),J(re,wt,At,"\u21CF","\\nRightarrow",!0),J(re,wt,At,"\u21AE","\\nleftrightarrow",!0),J(re,wt,At,"\u21CE","\\nLeftrightarrow",!0),J(re,wt,At,"\u25B3","\\vartriangle"),J(re,wt,Qt,"\u210F","\\hslash"),J(re,wt,Qt,"\u25BD","\\triangledown"),J(re,wt,Qt,"\u25CA","\\lozenge"),J(re,wt,Qt,"\u24C8","\\circledS"),J(re,wt,Qt,"\xAE","\\circledR"),J(Hn,wt,Qt,"\xAE","\\circledR"),J(re,wt,Qt,"\u2221","\\measuredangle",!0),J(re,wt,Qt,"\u2204","\\nexists"),J(re,wt,Qt,"\u2127","\\mho"),J(re,wt,Qt,"\u2132","\\Finv",!0),J(re,wt,Qt,"\u2141","\\Game",!0),J(re,wt,Qt,"\u2035","\\backprime"),J(re,wt,Qt,"\u25B2","\\blacktriangle"),J(re,wt,Qt,"\u25BC","\\blacktriangledown"),J(re,wt,Qt,"\u25A0","\\blacksquare"),J(re,wt,Qt,"\u29EB","\\blacklozenge"),J(re,wt,Qt,"\u2605","\\bigstar"),J(re,wt,Qt,"\u2222","\\sphericalangle",!0),J(re,wt,Qt,"\u2201","\\complement",!0),J(re,wt,Qt,"\xF0","\\eth",!0),J(Hn,Fe,Qt,"\xF0","\xF0"),J(re,wt,Qt,"\u2571","\\diagup"),J(re,wt,Qt,"\u2572","\\diagdown"),J(re,wt,Qt,"\u25A1","\\square"),J(re,wt,Qt,"\u25A1","\\Box"),J(re,wt,Qt,"\u25CA","\\Diamond"),J(re,wt,Qt,"\xA5","\\yen",!0),J(Hn,wt,Qt,"\xA5","\\yen",!0),J(re,wt,Qt,"\u2713","\\checkmark",!0),J(Hn,wt,Qt,"\u2713","\\checkmark"),J(re,wt,Qt,"\u2136","\\beth",!0),J(re,wt,Qt,"\u2138","\\daleth",!0),J(re,wt,Qt,"\u2137","\\gimel",!0),J(re,wt,Qt,"\u03DD","\\digamma",!0),J(re,wt,Qt,"\u03F0","\\varkappa"),J(re,wt,Bi,"\u250C","\\@ulcorner",!0),J(re,wt,_i,"\u2510","\\@urcorner",!0),J(re,wt,Bi,"\u2514","\\@llcorner",!0),J(re,wt,_i,"\u2518","\\@lrcorner",!0),J(re,wt,At,"\u2266","\\leqq",!0),J(re,wt,At,"\u2A7D","\\leqslant",!0),J(re,wt,At,"\u2A95","\\eqslantless",!0),J(re,wt,At,"\u2272","\\lesssim",!0),J(re,wt,At,"\u2A85","\\lessapprox",!0),J(re,wt,At,"\u224A","\\approxeq",!0),J(re,wt,Rn,"\u22D6","\\lessdot"),J(re,wt,At,"\u22D8","\\lll",!0),J(re,wt,At,"\u2276","\\lessgtr",!0),J(re,wt,At,"\u22DA","\\lesseqgtr",!0),J(re,wt,At,"\u2A8B","\\lesseqqgtr",!0),J(re,wt,At,"\u2251","\\doteqdot"),J(re,wt,At,"\u2253","\\risingdotseq",!0),J(re,wt,At,"\u2252","\\fallingdotseq",!0),J(re,wt,At,"\u223D","\\backsim",!0),J(re,wt,At,"\u22CD","\\backsimeq",!0),J(re,wt,At,"\u2AC5","\\subseteqq",!0),J(re,wt,At,"\u22D0","\\Subset",!0),J(re,wt,At,"\u228F","\\sqsubset",!0),J(re,wt,At,"\u227C","\\preccurlyeq",!0),J(re,wt,At,"\u22DE","\\curlyeqprec",!0),J(re,wt,At,"\u227E","\\precsim",!0),J(re,wt,At,"\u2AB7","\\precapprox",!0),J(re,wt,At,"\u22B2","\\vartriangleleft"),J(re,wt,At,"\u22B4","\\trianglelefteq"),J(re,wt,At,"\u22A8","\\vDash",!0),J(re,wt,At,"\u22AA","\\Vvdash",!0),J(re,wt,At,"\u2323","\\smallsmile"),J(re,wt,At,"\u2322","\\smallfrown"),J(re,wt,At,"\u224F","\\bumpeq",!0),J(re,wt,At,"\u224E","\\Bumpeq",!0),J(re,wt,At,"\u2267","\\geqq",!0),J(re,wt,At,"\u2A7E","\\geqslant",!0),J(re,wt,At,"\u2A96","\\eqslantgtr",!0),J(re,wt,At,"\u2273","\\gtrsim",!0),J(re,wt,At,"\u2A86","\\gtrapprox",!0),J(re,wt,Rn,"\u22D7","\\gtrdot"),J(re,wt,At,"\u22D9","\\ggg",!0),J(re,wt,At,"\u2277","\\gtrless",!0),J(re,wt,At,"\u22DB","\\gtreqless",!0),J(re,wt,At,"\u2A8C","\\gtreqqless",!0),J(re,wt,At,"\u2256","\\eqcirc",!0),J(re,wt,At,"\u2257","\\circeq",!0),J(re,wt,At,"\u225C","\\triangleq",!0),J(re,wt,At,"\u223C","\\thicksim"),J(re,wt,At,"\u2248","\\thickapprox"),J(re,wt,At,"\u2AC6","\\supseteqq",!0),J(re,wt,At,"\u22D1","\\Supset",!0),J(re,wt,At,"\u2290","\\sqsupset",!0),J(re,wt,At,"\u227D","\\succcurlyeq",!0),J(re,wt,At,"\u22DF","\\curlyeqsucc",!0),J(re,wt,At,"\u227F","\\succsim",!0),J(re,wt,At,"\u2AB8","\\succapprox",!0),J(re,wt,At,"\u22B3","\\vartriangleright"),J(re,wt,At,"\u22B5","\\trianglerighteq"),J(re,wt,At,"\u22A9","\\Vdash",!0),J(re,wt,At,"\u2223","\\shortmid"),J(re,wt,At,"\u2225","\\shortparallel"),J(re,wt,At,"\u226C","\\between",!0),J(re,wt,At,"\u22D4","\\pitchfork",!0),J(re,wt,At,"\u221D","\\varpropto"),J(re,wt,At,"\u25C0","\\blacktriangleleft"),J(re,wt,At,"\u2234","\\therefore",!0),J(re,wt,At,"\u220D","\\backepsilon"),J(re,wt,At,"\u25B6","\\blacktriangleright"),J(re,wt,At,"\u2235","\\because",!0),J(re,wt,At,"\u22D8","\\llless"),J(re,wt,At,"\u22D9","\\gggtr"),J(re,wt,Rn,"\u22B2","\\lhd"),J(re,wt,Rn,"\u22B3","\\rhd"),J(re,wt,At,"\u2242","\\eqsim",!0),J(re,Fe,At,"\u22C8","\\Join"),J(re,wt,At,"\u2251","\\Doteq",!0),J(re,wt,Rn,"\u2214","\\dotplus",!0),J(re,wt,Rn,"\u2216","\\smallsetminus"),J(re,wt,Rn,"\u22D2","\\Cap",!0),J(re,wt,Rn,"\u22D3","\\Cup",!0),J(re,wt,Rn,"\u2A5E","\\doublebarwedge",!0),J(re,wt,Rn,"\u229F","\\boxminus",!0),J(re,wt,Rn,"\u229E","\\boxplus",!0),J(re,wt,Rn,"\u22C7","\\divideontimes",!0),J(re,wt,Rn,"\u22C9","\\ltimes",!0),J(re,wt,Rn,"\u22CA","\\rtimes",!0),J(re,wt,Rn,"\u22CB","\\leftthreetimes",!0),J(re,wt,Rn,"\u22CC","\\rightthreetimes",!0),J(re,wt,Rn,"\u22CF","\\curlywedge",!0),J(re,wt,Rn,"\u22CE","\\curlyvee",!0),J(re,wt,Rn,"\u229D","\\circleddash",!0),J(re,wt,Rn,"\u229B","\\circledast",!0),J(re,wt,Rn,"\u22C5","\\centerdot"),J(re,wt,Rn,"\u22BA","\\intercal",!0),J(re,wt,Rn,"\u22D2","\\doublecap"),J(re,wt,Rn,"\u22D3","\\doublecup"),J(re,wt,Rn,"\u22A0","\\boxtimes",!0),J(re,wt,At,"\u21E2","\\dashrightarrow",!0),J(re,wt,At,"\u21E0","\\dashleftarrow",!0),J(re,wt,At,"\u21C7","\\leftleftarrows",!0),J(re,wt,At,"\u21C6","\\leftrightarrows",!0),J(re,wt,At,"\u21DA","\\Lleftarrow",!0),J(re,wt,At,"\u219E","\\twoheadleftarrow",!0),J(re,wt,At,"\u21A2","\\leftarrowtail",!0),J(re,wt,At,"\u21AB","\\looparrowleft",!0),J(re,wt,At,"\u21CB","\\leftrightharpoons",!0),J(re,wt,At,"\u21B6","\\curvearrowleft",!0),J(re,wt,At,"\u21BA","\\circlearrowleft",!0),J(re,wt,At,"\u21B0","\\Lsh",!0),J(re,wt,At,"\u21C8","\\upuparrows",!0),J(re,wt,At,"\u21BF","\\upharpoonleft",!0),J(re,wt,At,"\u21C3","\\downharpoonleft",!0),J(re,Fe,At,"\u22B6","\\origof",!0),J(re,Fe,At,"\u22B7","\\imageof",!0),J(re,wt,At,"\u22B8","\\multimap",!0),J(re,wt,At,"\u21AD","\\leftrightsquigarrow",!0),J(re,wt,At,"\u21C9","\\rightrightarrows",!0),J(re,wt,At,"\u21C4","\\rightleftarrows",!0),J(re,wt,At,"\u21A0","\\twoheadrightarrow",!0),J(re,wt,At,"\u21A3","\\rightarrowtail",!0),J(re,wt,At,"\u21AC","\\looparrowright",!0),J(re,wt,At,"\u21B7","\\curvearrowright",!0),J(re,wt,At,"\u21BB","\\circlearrowright",!0),J(re,wt,At,"\u21B1","\\Rsh",!0),J(re,wt,At,"\u21CA","\\downdownarrows",!0),J(re,wt,At,"\u21BE","\\upharpoonright",!0),J(re,wt,At,"\u21C2","\\downharpoonright",!0),J(re,wt,At,"\u21DD","\\rightsquigarrow",!0),J(re,wt,At,"\u21DD","\\leadsto"),J(re,wt,At,"\u21DB","\\Rrightarrow",!0),J(re,wt,At,"\u21BE","\\restriction"),J(re,Fe,Qt,"\u2018","`"),J(re,Fe,Qt,"$","\\$"),J(Hn,Fe,Qt,"$","\\$"),J(Hn,Fe,Qt,"$","\\textdollar"),J(re,Fe,Qt,"%","\\%"),J(Hn,Fe,Qt,"%","\\%"),J(re,Fe,Qt,"_","\\_"),J(Hn,Fe,Qt,"_","\\_"),J(Hn,Fe,Qt,"_","\\textunderscore"),J(re,Fe,Qt,"\u2220","\\angle",!0),J(re,Fe,Qt,"\u221E","\\infty",!0),J(re,Fe,Qt,"\u2032","\\prime"),J(re,Fe,Qt,"\u25B3","\\triangle"),J(re,Fe,Qt,"\u0393","\\Gamma",!0),J(re,Fe,Qt,"\u0394","\\Delta",!0),J(re,Fe,Qt,"\u0398","\\Theta",!0),J(re,Fe,Qt,"\u039B","\\Lambda",!0),J(re,Fe,Qt,"\u039E","\\Xi",!0),J(re,Fe,Qt,"\u03A0","\\Pi",!0),J(re,Fe,Qt,"\u03A3","\\Sigma",!0),J(re,Fe,Qt,"\u03A5","\\Upsilon",!0),J(re,Fe,Qt,"\u03A6","\\Phi",!0),J(re,Fe,Qt,"\u03A8","\\Psi",!0),J(re,Fe,Qt,"\u03A9","\\Omega",!0),J(re,Fe,Qt,"A","\u0391"),J(re,Fe,Qt,"B","\u0392"),J(re,Fe,Qt,"E","\u0395"),J(re,Fe,Qt,"Z","\u0396"),J(re,Fe,Qt,"H","\u0397"),J(re,Fe,Qt,"I","\u0399"),J(re,Fe,Qt,"K","\u039A"),J(re,Fe,Qt,"M","\u039C"),J(re,Fe,Qt,"N","\u039D"),J(re,Fe,Qt,"O","\u039F"),J(re,Fe,Qt,"P","\u03A1"),J(re,Fe,Qt,"T","\u03A4"),J(re,Fe,Qt,"X","\u03A7"),J(re,Fe,Qt,"\xAC","\\neg",!0),J(re,Fe,Qt,"\xAC","\\lnot"),J(re,Fe,Qt,"\u22A4","\\top"),J(re,Fe,Qt,"\u22A5","\\bot"),J(re,Fe,Qt,"\u2205","\\emptyset"),J(re,wt,Qt,"\u2205","\\varnothing"),J(re,Fe,Ei,"\u03B1","\\alpha",!0),J(re,Fe,Ei,"\u03B2","\\beta",!0),J(re,Fe,Ei,"\u03B3","\\gamma",!0),J(re,Fe,Ei,"\u03B4","\\delta",!0),J(re,Fe,Ei,"\u03F5","\\epsilon",!0),J(re,Fe,Ei,"\u03B6","\\zeta",!0),J(re,Fe,Ei,"\u03B7","\\eta",!0),J(re,Fe,Ei,"\u03B8","\\theta",!0),J(re,Fe,Ei,"\u03B9","\\iota",!0),J(re,Fe,Ei,"\u03BA","\\kappa",!0),J(re,Fe,Ei,"\u03BB","\\lambda",!0),J(re,Fe,Ei,"\u03BC","\\mu",!0),J(re,Fe,Ei,"\u03BD","\\nu",!0),J(re,Fe,Ei,"\u03BE","\\xi",!0),J(re,Fe,Ei,"\u03BF","\\omicron",!0),J(re,Fe,Ei,"\u03C0","\\pi",!0),J(re,Fe,Ei,"\u03C1","\\rho",!0),J(re,Fe,Ei,"\u03C3","\\sigma",!0),J(re,Fe,Ei,"\u03C4","\\tau",!0),J(re,Fe,Ei,"\u03C5","\\upsilon",!0),J(re,Fe,Ei,"\u03D5","\\phi",!0),J(re,Fe,Ei,"\u03C7","\\chi",!0),J(re,Fe,Ei,"\u03C8","\\psi",!0),J(re,Fe,Ei,"\u03C9","\\omega",!0),J(re,Fe,Ei,"\u03B5","\\varepsilon",!0),J(re,Fe,Ei,"\u03D1","\\vartheta",!0),J(re,Fe,Ei,"\u03D6","\\varpi",!0),J(re,Fe,Ei,"\u03F1","\\varrho",!0),J(re,Fe,Ei,"\u03C2","\\varsigma",!0),J(re,Fe,Ei,"\u03C6","\\varphi",!0),J(re,Fe,Rn,"\u2217","*",!0),J(re,Fe,Rn,"+","+"),J(re,Fe,Rn,"\u2212","-",!0),J(re,Fe,Rn,"\u22C5","\\cdot",!0),J(re,Fe,Rn,"\u2218","\\circ",!0),J(re,Fe,Rn,"\xF7","\\div",!0),J(re,Fe,Rn,"\xB1","\\pm",!0),J(re,Fe,Rn,"\xD7","\\times",!0),J(re,Fe,Rn,"\u2229","\\cap",!0),J(re,Fe,Rn,"\u222A","\\cup",!0),J(re,Fe,Rn,"\u2216","\\setminus",!0),J(re,Fe,Rn,"\u2227","\\land"),J(re,Fe,Rn,"\u2228","\\lor"),J(re,Fe,Rn,"\u2227","\\wedge",!0),J(re,Fe,Rn,"\u2228","\\vee",!0),J(re,Fe,Qt,"\u221A","\\surd"),J(re,Fe,Bi,"\u27E8","\\langle",!0),J(re,Fe,Bi,"\u2223","\\lvert"),J(re,Fe,Bi,"\u2225","\\lVert"),J(re,Fe,_i,"?","?"),J(re,Fe,_i,"!","!"),J(re,Fe,_i,"\u27E9","\\rangle",!0),J(re,Fe,_i,"\u2223","\\rvert"),J(re,Fe,_i,"\u2225","\\rVert"),J(re,Fe,At,"=","="),J(re,Fe,At,":",":"),J(re,Fe,At,"\u2248","\\approx",!0),J(re,Fe,At,"\u2245","\\cong",!0),J(re,Fe,At,"\u2265","\\ge"),J(re,Fe,At,"\u2265","\\geq",!0),J(re,Fe,At,"\u2190","\\gets"),J(re,Fe,At,">","\\gt",!0),J(re,Fe,At,"\u2208","\\in",!0),J(re,Fe,At,"\uE020","\\@not"),J(re,Fe,At,"\u2282","\\subset",!0),J(re,Fe,At,"\u2283","\\supset",!0),J(re,Fe,At,"\u2286","\\subseteq",!0),J(re,Fe,At,"\u2287","\\supseteq",!0),J(re,wt,At,"\u2288","\\nsubseteq",!0),J(re,wt,At,"\u2289","\\nsupseteq",!0),J(re,Fe,At,"\u22A8","\\models"),J(re,Fe,At,"\u2190","\\leftarrow",!0),J(re,Fe,At,"\u2264","\\le"),J(re,Fe,At,"\u2264","\\leq",!0),J(re,Fe,At,"<","\\lt",!0),J(re,Fe,At,"\u2192","\\rightarrow",!0),J(re,Fe,At,"\u2192","\\to"),J(re,wt,At,"\u2271","\\ngeq",!0),J(re,wt,At,"\u2270","\\nleq",!0),J(re,Fe,eo,"\xA0","\\ "),J(re,Fe,eo,"\xA0","\\space"),J(re,Fe,eo,"\xA0","\\nobreakspace"),J(Hn,Fe,eo,"\xA0","\\ "),J(Hn,Fe,eo,"\xA0"," "),J(Hn,Fe,eo,"\xA0","\\space"),J(Hn,Fe,eo,"\xA0","\\nobreakspace"),J(re,Fe,eo,null,"\\nobreak"),J(re,Fe,eo,null,"\\allowbreak"),J(re,Fe,Gr,",",","),J(re,Fe,Gr,";",";"),J(re,wt,Rn,"\u22BC","\\barwedge",!0),J(re,wt,Rn,"\u22BB","\\veebar",!0),J(re,Fe,Rn,"\u2299","\\odot",!0),J(re,Fe,Rn,"\u2295","\\oplus",!0),J(re,Fe,Rn,"\u2297","\\otimes",!0),J(re,Fe,Qt,"\u2202","\\partial",!0),J(re,Fe,Rn,"\u2298","\\oslash",!0),J(re,wt,Rn,"\u229A","\\circledcirc",!0),J(re,wt,Rn,"\u22A1","\\boxdot",!0),J(re,Fe,Rn,"\u25B3","\\bigtriangleup"),J(re,Fe,Rn,"\u25BD","\\bigtriangledown"),J(re,Fe,Rn,"\u2020","\\dagger"),J(re,Fe,Rn,"\u22C4","\\diamond"),J(re,Fe,Rn,"\u22C6","\\star"),J(re,Fe,Rn,"\u25C3","\\triangleleft"),J(re,Fe,Rn,"\u25B9","\\triangleright"),J(re,Fe,Bi,"{","\\{"),J(Hn,Fe,Qt,"{","\\{"),J(Hn,Fe,Qt,"{","\\textbraceleft"),J(re,Fe,_i,"}","\\}"),J(Hn,Fe,Qt,"}","\\}"),J(Hn,Fe,Qt,"}","\\textbraceright"),J(re,Fe,Bi,"{","\\lbrace"),J(re,Fe,_i,"}","\\rbrace"),J(re,Fe,Bi,"[","\\lbrack",!0),J(Hn,Fe,Qt,"[","\\lbrack",!0),J(re,Fe,_i,"]","\\rbrack",!0),J(Hn,Fe,Qt,"]","\\rbrack",!0),J(re,Fe,Bi,"(","\\lparen",!0),J(re,Fe,_i,")","\\rparen",!0),J(Hn,Fe,Qt,"<","\\textless",!0),J(Hn,Fe,Qt,">","\\textgreater",!0),J(re,Fe,Bi,"\u230A","\\lfloor",!0),J(re,Fe,_i,"\u230B","\\rfloor",!0),J(re,Fe,Bi,"\u2308","\\lceil",!0),J(re,Fe,_i,"\u2309","\\rceil",!0),J(re,Fe,Qt,"\\","\\backslash"),J(re,Fe,Qt,"\u2223","|"),J(re,Fe,Qt,"\u2223","\\vert"),J(Hn,Fe,Qt,"|","\\textbar",!0),J(re,Fe,Qt,"\u2225","\\|"),J(re,Fe,Qt,"\u2225","\\Vert"),J(Hn,Fe,Qt,"\u2225","\\textbardbl"),J(Hn,Fe,Qt,"~","\\textasciitilde"),J(Hn,Fe,Qt,"\\","\\textbackslash"),J(Hn,Fe,Qt,"^","\\textasciicircum"),J(re,Fe,At,"\u2191","\\uparrow",!0),J(re,Fe,At,"\u21D1","\\Uparrow",!0),J(re,Fe,At,"\u2193","\\downarrow",!0),J(re,Fe,At,"\u21D3","\\Downarrow",!0),J(re,Fe,At,"\u2195","\\updownarrow",!0),J(re,Fe,At,"\u21D5","\\Updownarrow",!0),J(re,Fe,Zt,"\u2210","\\coprod"),J(re,Fe,Zt,"\u22C1","\\bigvee"),J(re,Fe,Zt,"\u22C0","\\bigwedge"),J(re,Fe,Zt,"\u2A04","\\biguplus"),J(re,Fe,Zt,"\u22C2","\\bigcap"),J(re,Fe,Zt,"\u22C3","\\bigcup"),J(re,Fe,Zt,"\u222B","\\int"),J(re,Fe,Zt,"\u222B","\\intop"),J(re,Fe,Zt,"\u222C","\\iint"),J(re,Fe,Zt,"\u222D","\\iiint"),J(re,Fe,Zt,"\u220F","\\prod"),J(re,Fe,Zt,"\u2211","\\sum"),J(re,Fe,Zt,"\u2A02","\\bigotimes"),J(re,Fe,Zt,"\u2A01","\\bigoplus"),J(re,Fe,Zt,"\u2A00","\\bigodot"),J(re,Fe,Zt,"\u222E","\\oint"),J(re,Fe,Zt,"\u222F","\\oiint"),J(re,Fe,Zt,"\u2230","\\oiiint"),J(re,Fe,Zt,"\u2A06","\\bigsqcup"),J(re,Fe,Zt,"\u222B","\\smallint"),J(Hn,Fe,Xt,"\u2026","\\textellipsis"),J(re,Fe,Xt,"\u2026","\\mathellipsis"),J(Hn,Fe,Xt,"\u2026","\\ldots",!0),J(re,Fe,Xt,"\u2026","\\ldots",!0),J(re,Fe,Xt,"\u22EF","\\@cdots",!0),J(re,Fe,Xt,"\u22F1","\\ddots",!0),J(re,Fe,Qt,"\u22EE","\\varvdots"),J(Hn,Fe,Qt,"\u22EE","\\varvdots"),J(re,Fe,gi,"\u02CA","\\acute"),J(re,Fe,gi,"\u02CB","\\grave"),J(re,Fe,gi,"\xA8","\\ddot"),J(re,Fe,gi,"~","\\tilde"),J(re,Fe,gi,"\u02C9","\\bar"),J(re,Fe,gi,"\u02D8","\\breve"),J(re,Fe,gi,"\u02C7","\\check"),J(re,Fe,gi,"^","\\hat"),J(re,Fe,gi,"\u20D7","\\vec"),J(re,Fe,gi,"\u02D9","\\dot"),J(re,Fe,gi,"\u02DA","\\mathring"),J(re,Fe,Ei,"\uE131","\\@imath"),J(re,Fe,Ei,"\uE237","\\@jmath"),J(re,Fe,Qt,"\u0131","\u0131"),J(re,Fe,Qt,"\u0237","\u0237"),J(Hn,Fe,Qt,"\u0131","\\i",!0),J(Hn,Fe,Qt,"\u0237","\\j",!0),J(Hn,Fe,Qt,"\xDF","\\ss",!0),J(Hn,Fe,Qt,"\xE6","\\ae",!0),J(Hn,Fe,Qt,"\u0153","\\oe",!0),J(Hn,Fe,Qt,"\xF8","\\o",!0),J(Hn,Fe,Qt,"\xC6","\\AE",!0),J(Hn,Fe,Qt,"\u0152","\\OE",!0),J(Hn,Fe,Qt,"\xD8","\\O",!0),J(Hn,Fe,gi,"\u02CA","\\'"),J(Hn,Fe,gi,"\u02CB","\\`"),J(Hn,Fe,gi,"\u02C6","\\^"),J(Hn,Fe,gi,"\u02DC","\\~"),J(Hn,Fe,gi,"\u02C9","\\="),J(Hn,Fe,gi,"\u02D8","\\u"),J(Hn,Fe,gi,"\u02D9","\\."),J(Hn,Fe,gi,"\xB8","\\c"),J(Hn,Fe,gi,"\u02DA","\\r"),J(Hn,Fe,gi,"\u02C7","\\v"),J(Hn,Fe,gi,"\xA8",'\\"'),J(Hn,Fe,gi,"\u02DD","\\H"),J(Hn,Fe,gi,"\u25EF","\\textcircled");var Li={"--":!0,"---":!0,"``":!0,"''":!0};J(Hn,Fe,Qt,"\u2013","--",!0),J(Hn,Fe,Qt,"\u2013","\\textendash"),J(Hn,Fe,Qt,"\u2014","---",!0),J(Hn,Fe,Qt,"\u2014","\\textemdash"),J(Hn,Fe,Qt,"\u2018","`",!0),J(Hn,Fe,Qt,"\u2018","\\textquoteleft"),J(Hn,Fe,Qt,"\u2019","'",!0),J(Hn,Fe,Qt,"\u2019","\\textquoteright"),J(Hn,Fe,Qt,"\u201C","``",!0),J(Hn,Fe,Qt,"\u201C","\\textquotedblleft"),J(Hn,Fe,Qt,"\u201D","''",!0),J(Hn,Fe,Qt,"\u201D","\\textquotedblright"),J(re,Fe,Qt,"\xB0","\\degree",!0),J(Hn,Fe,Qt,"\xB0","\\degree"),J(Hn,Fe,Qt,"\xB0","\\textdegree",!0),J(re,Fe,Qt,"\xA3","\\pounds"),J(re,Fe,Qt,"\xA3","\\mathsterling",!0),J(Hn,Fe,Qt,"\xA3","\\pounds"),J(Hn,Fe,Qt,"\xA3","\\textsterling",!0),J(re,wt,Qt,"\u2720","\\maltese"),J(Hn,wt,Qt,"\u2720","\\maltese");for(var wi='0123456789/@."',pr=0;pr<wi.length;pr++){var ar=wi.charAt(pr);J(re,Fe,Qt,ar,ar)}for(var Zn='0123456789!@*()-=+";:?/.,',ce=0;ce<Zn.length;ce++){var mr=Zn.charAt(ce);J(Hn,Fe,Qt,mr,mr)}for(var Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cr=0;cr<Er.length;cr++){var Wr=Er.charAt(cr);J(re,Fe,Ei,Wr,Wr),J(Hn,Fe,Qt,Wr,Wr)}J(re,wt,Qt,"C","\u2102"),J(Hn,wt,Qt,"C","\u2102"),J(re,wt,Qt,"H","\u210D"),J(Hn,wt,Qt,"H","\u210D"),J(re,wt,Qt,"N","\u2115"),J(Hn,wt,Qt,"N","\u2115"),J(re,wt,Qt,"P","\u2119"),J(Hn,wt,Qt,"P","\u2119"),J(re,wt,Qt,"Q","\u211A"),J(Hn,wt,Qt,"Q","\u211A"),J(re,wt,Qt,"R","\u211D"),J(Hn,wt,Qt,"R","\u211D"),J(re,wt,Qt,"Z","\u2124"),J(Hn,wt,Qt,"Z","\u2124"),J(re,Fe,Ei,"h","\u210E"),J(Hn,Fe,Ei,"h","\u210E");for(var Wi="",Kr=0;Kr<Er.length;Kr++){var Ri=Er.charAt(Kr);Wi=String.fromCharCode(55349,56320+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56372+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56424+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56580+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56684+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56736+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56788+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56840+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56944+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Kr<26&&(Wi=String.fromCharCode(55349,56632+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi),Wi=String.fromCharCode(55349,56476+Kr),J(re,Fe,Ei,Ri,Wi),J(Hn,Fe,Qt,Ri,Wi))}Wi="\u{1D55C}",J(re,Fe,Ei,"k",Wi),J(Hn,Fe,Qt,"k",Wi);for(var Ui=0;Ui<10;Ui++){var Di=Ui.toString();Wi=String.fromCharCode(55349,57294+Ui),J(re,Fe,Ei,Di,Wi),J(Hn,Fe,Qt,Di,Wi),Wi=String.fromCharCode(55349,57314+Ui),J(re,Fe,Ei,Di,Wi),J(Hn,Fe,Qt,Di,Wi),Wi=String.fromCharCode(55349,57324+Ui),J(re,Fe,Ei,Di,Wi),J(Hn,Fe,Qt,Di,Wi),Wi=String.fromCharCode(55349,57334+Ui),J(re,Fe,Ei,Di,Wi),J(Hn,Fe,Qt,Di,Wi)}for(var Cr="\xD0\xDE\xFE",Tr=0;Tr<Cr.length;Tr++){var io=Cr.charAt(Tr);J(re,Fe,Ei,io,io),J(Hn,Fe,Qt,io,io)}var bo=[["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"]],mi=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Sa=function(m,S){var D=m.charCodeAt(0),Z=m.charCodeAt(1),oe=(D-55296)*1024+(Z-56320)+65536,Y=S==="math"?0:1;if(119808<=oe&&oe<120484){var ut=Math.floor((oe-119808)/26);return[bo[ut][2],bo[ut][Y]]}else if(120782<=oe&&oe<=120831){var pt=Math.floor((oe-120782)/10);return[mi[pt][2],mi[pt][Y]]}else{if(oe===120485||oe===120486)return[bo[0][2],bo[0][Y]];if(120486<oe&&oe<120782)return["",""];throw new Ft("Unsupported character: "+m)}},Wo=function(m,S,D){return zi[D][m]&&zi[D][m].replace&&(m=zi[D][m].replace),{value:m,metrics:ft(m,S,D)}},Jo=function(m,S,D,Z,oe){var Y=Wo(m,S,D),ut=Y.metrics;m=Y.value;var pt;if(ut){var bn=ut.italic;(D==="text"||Z&&Z.font==="mathit")&&(bn=0),pt=new fn(m,ut.height,ut.depth,bn,ut.skew,ut.width,oe)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+m+"' in style '"+S+"' and mode '"+D+"'")),pt=new fn(m,0,0,0,0,0,oe);if(Z){pt.maxFontSize=Z.sizeMultiplier,Z.style.isTight()&&pt.classes.push("mtight");var _n=Z.getColor();_n&&(pt.style.color=_n)}return pt},Ta=function(m,S,D,Z){return Z===void 0&&(Z=[]),D.font==="boldsymbol"&&Wo(m,"Main-Bold",S).metrics?Jo(m,"Main-Bold",S,D,Z.concat(["mathbf"])):m==="\\"||zi[S][m].font==="main"?Jo(m,"Main-Regular",S,D,Z):Jo(m,"AMS-Regular",S,D,Z.concat(["amsrm"]))},Ya=function(m,S,D,Z,oe){return oe!=="textord"&&Wo(m,"Math-BoldItalic",S).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ns=function(m,S,D){var Z=m.mode,oe=m.text,Y=["mord"],ut=Z==="math"||Z==="text"&&S.font,pt=ut?S.font:S.fontFamily,bn="",_n="";if(oe.charCodeAt(0)===55349&&([bn,_n]=Sa(oe,Z)),bn.length>0)return Jo(oe,bn,Z,S,Y.concat(_n));if(pt){var Qn,ki;if(pt==="boldsymbol"){var Ii=Ya(oe,Z,S,Y,D);Qn=Ii.fontName,ki=[Ii.fontClass]}else ut?(Qn=mo[pt].fontName,ki=[pt]):(Qn=Dr(pt,S.fontWeight,S.fontShape),ki=[pt,S.fontWeight,S.fontShape]);if(Wo(oe,Qn,Z).metrics)return Jo(oe,Qn,Z,S,Y.concat(ki));if(Li.hasOwnProperty(oe)&&Qn.slice(0,10)==="Typewriter"){for(var $i=[],Nr=0;Nr<oe.length;Nr++)$i.push(Jo(oe[Nr],Qn,Z,S,Y.concat(ki)));return ol($i)}}if(D==="mathord")return Jo(oe,"Math-Italic",Z,S,Y.concat(["mathnormal"]));if(D==="textord"){var Ur=zi[Z][oe]&&zi[Z][oe].font;if(Ur==="ams"){var Hr=Dr("amsrm",S.fontWeight,S.fontShape);return Jo(oe,Hr,Z,S,Y.concat("amsrm",S.fontWeight,S.fontShape))}else if(Ur==="main"||!Ur){var Ao=Dr("textrm",S.fontWeight,S.fontShape);return Jo(oe,Ao,Z,S,Y.concat(S.fontWeight,S.fontShape))}else{var Go=Dr(Ur,S.fontWeight,S.fontShape);return Jo(oe,Go,Z,S,Y.concat(Go,S.fontWeight,S.fontShape))}}else throw new Error("unexpected type: "+D+" in makeOrd")},Na=(N,m)=>{if(jn(N.classes)!==jn(m.classes)||N.skew!==m.skew||N.maxFontSize!==m.maxFontSize)return!1;if(N.classes.length===1){var S=N.classes[0];if(S==="mbin"||S==="mord")return!1}for(var D in N.style)if(N.style.hasOwnProperty(D)&&N.style[D]!==m.style[D])return!1;for(var Z in m.style)if(m.style.hasOwnProperty(Z)&&N.style[Z]!==m.style[Z])return!1;return!0},cs=N=>{for(var m=0;m<N.length-1;m++){var S=N[m],D=N[m+1];S instanceof fn&&D instanceof fn&&Na(S,D)&&(S.text+=D.text,S.height=Math.max(S.height,D.height),S.depth=Math.max(S.depth,D.depth),S.italic=D.italic,N.splice(m+1,1),m--)}return N},Za=function(m){for(var S=0,D=0,Z=0,oe=0;oe<m.children.length;oe++){var Y=m.children[oe];Y.height>S&&(S=Y.height),Y.depth>D&&(D=Y.depth),Y.maxFontSize>Z&&(Z=Y.maxFontSize)}m.height=S,m.depth=D,m.maxFontSize=Z},jo=function(m,S,D,Z){var oe=new L(m,S,D,Z);return Za(oe),oe},Wt=(N,m,S,D)=>new L(N,m,S,D),Ba=function(m,S,D){var Z=jo([m],[],S);return Z.height=Math.max(D||S.fontMetrics().defaultRuleThickness,S.minRuleThickness),Z.style.borderBottomWidth=Rt(Z.height),Z.maxFontSize=1,Z},eu=function(m,S,D,Z){var oe=new Dt(m,S,D,Z);return Za(oe),oe},ol=function(m){var S=new Ar(m);return Za(S),S},po=function(m,S){return m instanceof Ar?jo([],[m],S):m},ko=function(m){if(m.positionType==="individualShift"){for(var S=m.children,D=[S[0]],Z=-S[0].shift-S[0].elem.depth,oe=Z,Y=1;Y<S.length;Y++){var ut=-S[Y].shift-oe-S[Y].elem.depth,pt=ut-(S[Y-1].elem.height+S[Y-1].elem.depth);oe=oe+ut,D.push({type:"kern",size:pt}),D.push(S[Y])}return{children:D,depth:Z}}var bn;if(m.positionType==="top"){for(var _n=m.positionData,Qn=0;Qn<m.children.length;Qn++){var ki=m.children[Qn];_n-=ki.type==="kern"?ki.size:ki.elem.height+ki.elem.depth}bn=_n}else if(m.positionType==="bottom")bn=-m.positionData;else{var Ii=m.children[0];if(Ii.type!=="elem")throw new Error('First child must have type "elem".');if(m.positionType==="shift")bn=-Ii.elem.depth-m.positionData;else if(m.positionType==="firstBaseline")bn=-Ii.elem.depth;else throw new Error("Invalid positionType "+m.positionType+".")}return{children:m.children,depth:bn}},yo=function(m,S){for(var{children:D,depth:Z}=ko(m),oe=0,Y=0;Y<D.length;Y++){var ut=D[Y];if(ut.type==="elem"){var pt=ut.elem;oe=Math.max(oe,pt.maxFontSize,pt.height)}}oe+=2;var bn=jo(["pstrut"],[]);bn.style.height=Rt(oe);for(var _n=[],Qn=Z,ki=Z,Ii=Z,$i=0;$i<D.length;$i++){var Nr=D[$i];if(Nr.type==="kern")Ii+=Nr.size;else{var Ur=Nr.elem,Hr=Nr.wrapperClasses||[],Ao=Nr.wrapperStyle||{},Go=jo(Hr,[bn,Ur],void 0,Ao);Go.style.top=Rt(-oe-Ii-Ur.depth),Nr.marginLeft&&(Go.style.marginLeft=Nr.marginLeft),Nr.marginRight&&(Go.style.marginRight=Nr.marginRight),_n.push(Go),Ii+=Ur.height+Ur.depth}Qn=Math.min(Qn,Ii),ki=Math.max(ki,Ii)}var Da=jo(["vlist"],_n);Da.style.height=Rt(ki);var na;if(Qn<0){var Ko=jo([],[]),pa=jo(["vlist"],[Ko]);pa.style.height=Rt(-Qn);var hs=jo(["vlist-s"],[new fn("\u200B")]);na=[jo(["vlist-r"],[Da,hs]),jo(["vlist-r"],[pa])]}else na=[jo(["vlist-r"],[Da])];var ha=jo(["vlist-t"],na);return na.length===2&&ha.classes.push("vlist-t2"),ha.height=ki,ha.depth=-Qn,ha},Mt=(N,m)=>{var S=jo(["mspace"],[],m),D=Ht(N,m);return S.style.marginRight=Rt(D),S},Dr=function(m,S,D){var Z="";switch(m){case"amsrm":Z="AMS";break;case"textrm":Z="Main";break;case"textsf":Z="SansSerif";break;case"texttt":Z="Typewriter";break;default:Z=m}var oe;return S==="textbf"&&D==="textit"?oe="BoldItalic":S==="textbf"?oe="Bold":S==="textit"?oe="Italic":oe="Regular",Z+"-"+oe},mo={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"}},Ea={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},xr=function(m,S){var[D,Z,oe]=Ea[m],Y=new ui(D),ut=new Cn([Y],{width:Rt(Z),height:Rt(oe),style:"width:"+Rt(Z),viewBox:"0 0 "+1e3*Z+" "+1e3*oe,preserveAspectRatio:"xMinYMin"}),pt=Wt(["overlay"],[ut],S);return pt.height=oe,pt.style.height=Rt(oe),pt.style.width=Rt(Z),pt},Sn={fontMap:mo,makeSymbol:Jo,mathsym:Ta,makeSpan:jo,makeSvgSpan:Wt,makeLineSpan:Ba,makeAnchor:eu,makeFragment:ol,wrapFragment:po,makeVList:yo,makeOrd:ns,makeGlue:Mt,staticSvg:xr,svgData:Ea,tryCombineChars:cs},ur={number:3,unit:"mu"},vi={number:4,unit:"mu"},Vo={number:5,unit:"mu"},ma={mord:{mop:ur,mbin:vi,mrel:Vo,minner:ur},mop:{mord:ur,mop:ur,mrel:Vo,minner:ur},mbin:{mord:vi,mop:vi,mopen:vi,minner:vi},mrel:{mord:Vo,mop:Vo,mopen:Vo,minner:Vo},mopen:{},mclose:{mop:ur,mbin:vi,mrel:Vo,minner:ur},mpunct:{mord:ur,mop:ur,mrel:Vo,mopen:ur,mclose:ur,mpunct:ur,minner:ur},minner:{mord:ur,mop:ur,mbin:vi,mrel:Vo,mopen:ur,mpunct:ur,minner:ur}},is={mord:{mop:ur},mop:{mord:ur,mop:ur},mbin:{},mrel:{},mopen:{},mclose:{mop:ur},mpunct:{},minner:{mop:ur}},Rs={},Ns={},si={};function Hi(N){for(var{type:m,names:S,props:D,handler:Z,htmlBuilder:oe,mathmlBuilder:Y}=N,ut={type:m,numArgs:D.numArgs,argTypes:D.argTypes,allowedInArgument:!!D.allowedInArgument,allowedInText:!!D.allowedInText,allowedInMath:D.allowedInMath===void 0?!0:D.allowedInMath,numOptionalArgs:D.numOptionalArgs||0,infix:!!D.infix,primitive:!!D.primitive,handler:Z},pt=0;pt<S.length;++pt)Rs[S[pt]]=ut;m&&(oe&&(Ns[m]=oe),Y&&(si[m]=Y))}function ta(N){var{type:m,htmlBuilder:S,mathmlBuilder:D}=N;Hi({type:m,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:S,mathmlBuilder:D})}var As=function(m){return m.type==="ordgroup"&&m.body.length===1?m.body[0]:m},Yo=function(m){return m.type==="ordgroup"?m.body:[m]},rs=Sn.makeSpan,Lr=["leftmost","mbin","mopen","mrel","mop","mpunct"],al=["rightmost","mrel","mclose","mpunct"],Ds={display:kn.DISPLAY,text:kn.TEXT,script:kn.SCRIPT,scriptscript:kn.SCRIPTSCRIPT},Ps={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ho=function(m,S,D,Z){Z===void 0&&(Z=[null,null]);for(var oe=[],Y=0;Y<m.length;Y++){var ut=Xo(m[Y],S);if(ut instanceof Ar){var pt=ut.children;oe.push(...pt)}else oe.push(ut)}if(Sn.tryCombineChars(oe),!D)return oe;var bn=S;if(m.length===1){var _n=m[0];_n.type==="sizing"?bn=S.havingSize(_n.size):_n.type==="styling"&&(bn=S.havingStyle(Ds[_n.style]))}var Qn=rs([Z[0]||"leftmost"],[],S),ki=rs([Z[1]||"rightmost"],[],S),Ii=D==="root";return os(oe,($i,Nr)=>{var Ur=Nr.classes[0],Hr=$i.classes[0];Ur==="mbin"&&T.contains(al,Hr)?Nr.classes[0]="mord":Hr==="mbin"&&T.contains(Lr,Ur)&&($i.classes[0]="mord")},{node:Qn},ki,Ii),os(oe,($i,Nr)=>{var Ur=Oa(Nr),Hr=Oa($i),Ao=Ur&&Hr?$i.hasClass("mtight")?is[Ur][Hr]:ma[Ur][Hr]:null;if(Ao)return Sn.makeGlue(Ao,bn)},{node:Qn},ki,Ii),oe},os=function N(m,S,D,Z,oe){Z&&m.push(Z);for(var Y=0;Y<m.length;Y++){var ut=m[Y],pt=Ol(ut);if(pt){N(pt.children,S,D,null,oe);continue}var bn=!ut.hasClass("mspace");if(bn){var _n=S(ut,D.node);_n&&(D.insertAfter?D.insertAfter(_n):(m.unshift(_n),Y++))}bn?D.node=ut:oe&&ut.hasClass("newline")&&(D.node=rs(["leftmost"])),D.insertAfter=(Qn=>ki=>{m.splice(Qn+1,0,ki),Y++})(Y)}Z&&m.pop()},Ol=function(m){return m instanceof Ar||m instanceof Dt||m instanceof L&&m.hasClass("enclosing")?m:null},Xa=function N(m,S){var D=Ol(m);if(D){var Z=D.children;if(Z.length){if(S==="right")return N(Z[Z.length-1],"right");if(S==="left")return N(Z[0],"left")}}return m},Oa=function(m,S){return m?(S&&(m=Xa(m,S)),Ps[m.classes[0]]||null):null},ml=function(m,S){var D=["nulldelimiter"].concat(m.baseSizingClasses());return rs(S.concat(D))},Xo=function(m,S,D){if(!m)return rs();if(Ns[m.type]){var Z=Ns[m.type](m,S);if(D&&S.size!==D.size){Z=rs(S.sizingClasses(D),[Z],S);var oe=S.sizeMultiplier/D.sizeMultiplier;Z.height*=oe,Z.depth*=oe}return Z}else throw new Ft("Got group of unknown type: '"+m.type+"'")};function js(N,m){var S=rs(["base"],N,m),D=rs(["strut"]);return D.style.height=Rt(S.height+S.depth),S.depth&&(D.style.verticalAlign=Rt(-S.depth)),S.children.unshift(D),S}function wu(N,m){var S=null;N.length===1&&N[0].type==="tag"&&(S=N[0].tag,N=N[0].body);var D=Ho(N,m,"root"),Z;D.length===2&&D[1].hasClass("tag")&&(Z=D.pop());for(var oe=[],Y=[],ut=0;ut<D.length;ut++)if(Y.push(D[ut]),D[ut].hasClass("mbin")||D[ut].hasClass("mrel")||D[ut].hasClass("allowbreak")){for(var pt=!1;ut<D.length-1&&D[ut+1].hasClass("mspace")&&!D[ut+1].hasClass("newline");)ut++,Y.push(D[ut]),D[ut].hasClass("nobreak")&&(pt=!0);pt||(oe.push(js(Y,m)),Y=[])}else D[ut].hasClass("newline")&&(Y.pop(),Y.length>0&&(oe.push(js(Y,m)),Y=[]),oe.push(D[ut]));Y.length>0&&oe.push(js(Y,m));var bn;S?(bn=js(Ho(S,m,!0)),bn.classes=["tag"],oe.push(bn)):Z&&oe.push(Z);var _n=rs(["katex-html"],oe);if(_n.setAttribute("aria-hidden","true"),bn){var Qn=bn.children[0];Qn.style.height=Rt(_n.height+_n.depth),_n.depth&&(Qn.style.verticalAlign=Rt(-_n.depth))}return _n}function Ll(N){return new Ar(N)}class as{constructor(m,S,D){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=m,this.attributes={},this.children=S||[],this.classes=D||[]}setAttribute(m,S){this.attributes[m]=S}getAttribute(m){return this.attributes[m]}toNode(){var m=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&m.setAttribute(S,this.attributes[S]);this.classes.length>0&&(m.className=jn(this.classes));for(var D=0;D<this.children.length;D++)if(this.children[D]instanceof Fa&&this.children[D+1]instanceof Fa){for(var Z=this.children[D].toText()+this.children[++D].toText();this.children[D+1]instanceof Fa;)Z+=this.children[++D].toText();m.appendChild(new Fa(Z).toNode())}else m.appendChild(this.children[D].toNode());return m}toMarkup(){var m="<"+this.type;for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="',m+=T.escape(this.attributes[S]),m+='"');this.classes.length>0&&(m+=' class ="'+T.escape(jn(this.classes))+'"'),m+=">";for(var D=0;D<this.children.length;D++)m+=this.children[D].toMarkup();return m+="</"+this.type+">",m}toText(){return this.children.map(m=>m.toText()).join("")}}class Fa{constructor(m){this.text=void 0,this.text=m}toNode(){return document.createTextNode(this.text)}toMarkup(){return T.escape(this.toText())}toText(){return this.text}}class Gs{constructor(m){this.width=void 0,this.character=void 0,this.width=m,m>=.05555&&m<=.05556?this.character="\u200A":m>=.1666&&m<=.1667?this.character="\u2009":m>=.2222&&m<=.2223?this.character="\u2005":m>=.2777&&m<=.2778?this.character="\u2005\u200A":m>=-.05556&&m<=-.05555?this.character="\u200A\u2063":m>=-.1667&&m<=-.1666?this.character="\u2009\u2063":m>=-.2223&&m<=-.2222?this.character="\u205F\u2063":m>=-.2778&&m<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var m=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return m.setAttribute("width",Rt(this.width)),m}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Rt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ki={MathNode:as,TextNode:Fa,SpaceNode:Gs,newDocumentFragment:Ll},ks=function(m,S,D){return zi[S][m]&&zi[S][m].replace&&m.charCodeAt(0)!==55349&&!(Li.hasOwnProperty(m)&&D&&(D.fontFamily&&D.fontFamily.slice(4,6)==="tt"||D.font&&D.font.slice(4,6)==="tt"))&&(m=zi[S][m].replace),new Ki.TextNode(m)},Rl=function(m){return m.length===1?m[0]:new Ki.MathNode("mrow",m)},Vr=function(m,S){if(S.fontFamily==="texttt")return"monospace";if(S.fontFamily==="textsf")return S.fontShape==="textit"&&S.fontWeight==="textbf"?"sans-serif-bold-italic":S.fontShape==="textit"?"sans-serif-italic":S.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(S.fontShape==="textit"&&S.fontWeight==="textbf")return"bold-italic";if(S.fontShape==="textit")return"italic";if(S.fontWeight==="textbf")return"bold";var D=S.font;if(!D||D==="mathnormal")return null;var Z=m.mode;if(D==="mathit")return"italic";if(D==="boldsymbol")return m.type==="textord"?"bold":"bold-italic";if(D==="mathbf")return"bold";if(D==="mathbb")return"double-struck";if(D==="mathsfit")return"sans-serif-italic";if(D==="mathfrak")return"fraktur";if(D==="mathscr"||D==="mathcal")return"script";if(D==="mathsf")return"sans-serif";if(D==="mathtt")return"monospace";var oe=m.text;if(T.contains(["\\imath","\\jmath"],oe))return null;zi[Z][oe]&&zi[Z][oe].replace&&(oe=zi[Z][oe].replace);var Y=Sn.fontMap[D].fontName;return ft(oe,Y,Z)?Sn.fontMap[D].variant:null};function Co(N){if(!N)return!1;if(N.type==="mi"&&N.children.length===1){var m=N.children[0];return m instanceof Fa&&m.text==="."}else if(N.type==="mo"&&N.children.length===1&&N.getAttribute("separator")==="true"&&N.getAttribute("lspace")==="0em"&&N.getAttribute("rspace")==="0em"){var S=N.children[0];return S instanceof Fa&&S.text===","}else return!1}var fa=function(m,S,D){if(m.length===1){var Z=ro(m[0],S);return D&&Z instanceof as&&Z.type==="mo"&&(Z.setAttribute("lspace","0em"),Z.setAttribute("rspace","0em")),[Z]}for(var oe=[],Y,ut=0;ut<m.length;ut++){var pt=ro(m[ut],S);if(pt instanceof as&&Y instanceof as){if(pt.type==="mtext"&&Y.type==="mtext"&&pt.getAttribute("mathvariant")===Y.getAttribute("mathvariant")){Y.children.push(...pt.children);continue}else if(pt.type==="mn"&&Y.type==="mn"){Y.children.push(...pt.children);continue}else if(Co(pt)&&Y.type==="mn"){Y.children.push(...pt.children);continue}else if(pt.type==="mn"&&Co(Y))pt.children=[...Y.children,...pt.children],oe.pop();else if((pt.type==="msup"||pt.type==="msub")&&pt.children.length>=1&&(Y.type==="mn"||Co(Y))){var bn=pt.children[0];bn instanceof as&&bn.type==="mn"&&(bn.children=[...Y.children,...bn.children],oe.pop())}else if(Y.type==="mi"&&Y.children.length===1){var _n=Y.children[0];if(_n instanceof Fa&&_n.text==="\u0338"&&(pt.type==="mo"||pt.type==="mi"||pt.type==="mn")){var Qn=pt.children[0];Qn instanceof Fa&&Qn.text.length>0&&(Qn.text=Qn.text.slice(0,1)+"\u0338"+Qn.text.slice(1),oe.pop())}}}oe.push(pt),Y=pt}return oe},aa=function(m,S,D){return Rl(fa(m,S,D))},ro=function(m,S){if(!m)return new Ki.MathNode("mrow");if(si[m.type]){var D=si[m.type](m,S);return D}else throw new Ft("Got group of unknown type: '"+m.type+"'")};function sa(N,m,S,D,Z){var oe=fa(N,S),Y;oe.length===1&&oe[0]instanceof as&&T.contains(["mrow","mtable"],oe[0].type)?Y=oe[0]:Y=new Ki.MathNode("mrow",oe);var ut=new Ki.MathNode("annotation",[new Ki.TextNode(m)]);ut.setAttribute("encoding","application/x-tex");var pt=new Ki.MathNode("semantics",[Y,ut]),bn=new Ki.MathNode("math",[pt]);bn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),D&&bn.setAttribute("display","block");var _n=Z?"katex":"katex-mathml";return Sn.makeSpan([_n],[bn])}var ga=function(m){return new Nn({style:m.displayMode?kn.DISPLAY:kn.TEXT,maxSize:m.maxSize,minRuleThickness:m.minRuleThickness})},La=function(m,S){if(S.displayMode){var D=["katex-display"];S.leqno&&D.push("leqno"),S.fleqn&&D.push("fleqn"),m=Sn.makeSpan(D,[m])}return m},Aa=function(m,S,D){var Z=ga(D),oe;if(D.output==="mathml")return sa(m,S,Z,D.displayMode,!0);if(D.output==="html"){var Y=wu(m,Z);oe=Sn.makeSpan(["katex"],[Y])}else{var ut=sa(m,S,Z,D.displayMode,!1),pt=wu(m,Z);oe=Sn.makeSpan(["katex"],[ut,pt])}return La(oe,D)},Gl=function(m,S,D){var Z=ga(D),oe=wu(m,Z),Y=Sn.makeSpan(["katex"],[oe]);return La(Y,D)},Ys={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":"="},ka=function(m){var S=new Ki.MathNode("mo",[new Ki.TextNode(Ys[m.replace(/^\\/,"")])]);return S.setAttribute("stretchy","true"),S},hc={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]},Zu=function(m){return m.type==="ordgroup"?m.body.length:1},uu=function(m,S){function D(){var ut=4e5,pt=m.label.slice(1);if(T.contains(["widehat","widecheck","widetilde","utilde"],pt)){var bn=m,_n=Zu(bn.base),Qn,ki,Ii;if(_n>5)pt==="widehat"||pt==="widecheck"?(Qn=420,ut=2364,Ii=.42,ki=pt+"4"):(Qn=312,ut=2340,Ii=.34,ki="tilde4");else{var $i=[1,1,2,2,3,3][_n];pt==="widehat"||pt==="widecheck"?(ut=[0,1062,2364,2364,2364][$i],Qn=[0,239,300,360,420][$i],Ii=[0,.24,.3,.3,.36,.42][$i],ki=pt+$i):(ut=[0,600,1033,2339,2340][$i],Qn=[0,260,286,306,312][$i],Ii=[0,.26,.286,.3,.306,.34][$i],ki="tilde"+$i)}var Nr=new ui(ki),Ur=new Cn([Nr],{width:"100%",height:Rt(Ii),viewBox:"0 0 "+ut+" "+Qn,preserveAspectRatio:"none"});return{span:Sn.makeSvgSpan([],[Ur],S),minWidth:0,height:Ii}}else{var Hr=[],Ao=hc[pt],[Go,Da,na]=Ao,Ko=na/1e3,pa=Go.length,hs,ha;if(pa===1){var bl=Ao[3];hs=["hide-tail"],ha=[bl]}else if(pa===2)hs=["halfarrow-left","halfarrow-right"],ha=["xMinYMin","xMaxYMin"];else if(pa===3)hs=["brace-left","brace-center","brace-right"],ha=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+pa+" children.");for(var Us=0;Us<pa;Us++){var ds=new ui(Go[Us]),Is=new Cn([ds],{width:"400em",height:Rt(Ko),viewBox:"0 0 "+ut+" "+na,preserveAspectRatio:ha[Us]+" slice"}),ul=Sn.makeSvgSpan([hs[Us]],[Is],S);if(pa===1)return{span:ul,minWidth:Da,height:Ko};ul.style.height=Rt(Ko),Hr.push(ul)}return{span:Sn.makeSpan(["stretchy"],Hr,S),minWidth:Da,height:Ko}}}var{span:Z,minWidth:oe,height:Y}=D();return Z.height=Y,Z.style.height=Rt(Y),oe>0&&(Z.style.minWidth=Rt(oe)),Z},sr=function(m,S,D,Z,oe){var Y,ut=m.height+m.depth+D+Z;if(/fbox|color|angl/.test(S)){if(Y=Sn.makeSpan(["stretchy",S],[],oe),S==="fbox"){var pt=oe.color&&oe.getColor();pt&&(Y.style.borderColor=pt)}}else{var bn=[];/^[bx]cancel$/.test(S)&&bn.push(new Ln({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(S)&&bn.push(new Ln({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var _n=new Cn(bn,{width:"100%",height:Rt(ut)});Y=Sn.makeSvgSpan([],[_n],oe)}return Y.height=ut,Y.style.height=Rt(ut),Y},Ws={encloseSpan:sr,mathMLnode:ka,svgSpan:uu};function et(N,m){if(!N||N.type!==m)throw new Error("Expected node of type "+m+", but got "+(N?"node of type "+N.type:String(N)));return N}function Pn(N){var m=Cu(N);if(!m)throw new Error("Expected node of symbol group type, but got "+(N?"node of type "+N.type:String(N)));return m}function Cu(N){return N&&(N.type==="atom"||Kt.hasOwnProperty(N.type))?N:null}var Yu=(N,m)=>{var S,D,Z;N&&N.type==="supsub"?(D=et(N.base,"accent"),S=D.base,N.base=S,Z=Oi(Xo(N,m)),N.base=D):(D=et(N,"accent"),S=D.base);var oe=Xo(S,m.havingCrampedStyle()),Y=D.isShifty&&T.isCharacterBox(S),ut=0;if(Y){var pt=T.getBaseElem(S),bn=Xo(pt,m.havingCrampedStyle());ut=rt(bn).skew}var _n=D.label==="\\c",Qn=_n?oe.height+oe.depth:Math.min(oe.height,m.fontMetrics().xHeight),ki;if(D.isStretchy)ki=Ws.svgSpan(D,m),ki=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:oe},{type:"elem",elem:ki,wrapperClasses:["svg-align"],wrapperStyle:ut>0?{width:"calc(100% - "+Rt(2*ut)+")",marginLeft:Rt(2*ut)}:void 0}]},m);else{var Ii,$i;D.label==="\\vec"?(Ii=Sn.staticSvg("vec",m),$i=Sn.svgData.vec[1]):(Ii=Sn.makeOrd({mode:D.mode,text:D.label},m,"textord"),Ii=rt(Ii),Ii.italic=0,$i=Ii.width,_n&&(Qn+=Ii.depth)),ki=Sn.makeSpan(["accent-body"],[Ii]);var Nr=D.label==="\\textcircled";Nr&&(ki.classes.push("accent-full"),Qn=oe.height);var Ur=ut;Nr||(Ur-=$i/2),ki.style.left=Rt(Ur),D.label==="\\textcircled"&&(ki.style.top=".2em"),ki=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:oe},{type:"kern",size:-Qn},{type:"elem",elem:ki}]},m)}var Hr=Sn.makeSpan(["mord","accent"],[ki],m);return Z?(Z.children[0]=Hr,Z.height=Math.max(Hr.height,Z.height),Z.classes[0]="mord",Z):Hr},Dl=(N,m)=>{var S=N.isStretchy?Ws.mathMLnode(N.label):new Ki.MathNode("mo",[ks(N.label,N.mode)]),D=new Ki.MathNode("mover",[ro(N.base,m),S]);return D.setAttribute("accent","true"),D},Pl=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(N=>"\\"+N).join("|"));Hi({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:(N,m)=>{var S=As(m[0]),D=!Pl.test(N.funcName),Z=!D||N.funcName==="\\widehat"||N.funcName==="\\widetilde"||N.funcName==="\\widecheck";return{type:"accent",mode:N.parser.mode,label:N.funcName,isStretchy:D,isShifty:Z,base:S}},htmlBuilder:Yu,mathmlBuilder:Dl}),Hi({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(N,m)=>{var S=m[0],D=N.parser.mode;return D==="math"&&(N.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+N.funcName+" works only in text mode"),D="text"),{type:"accent",mode:D,label:N.funcName,isStretchy:!1,isShifty:!0,base:S}},htmlBuilder:Yu,mathmlBuilder:Dl}),Hi({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0];return{type:"accentUnder",mode:S.mode,label:D,base:Z}},htmlBuilder:(N,m)=>{var S=Xo(N.base,m),D=Ws.svgSpan(N,m),Z=N.label==="\\utilde"?.12:0,oe=Sn.makeVList({positionType:"top",positionData:S.height,children:[{type:"elem",elem:D,wrapperClasses:["svg-align"]},{type:"kern",size:Z},{type:"elem",elem:S}]},m);return Sn.makeSpan(["mord","accentunder"],[oe],m)},mathmlBuilder:(N,m)=>{var S=Ws.mathMLnode(N.label),D=new Ki.MathNode("munder",[ro(N.base,m),S]);return D.setAttribute("accentunder","true"),D}});var gl=N=>{var m=new Ki.MathNode("mpadded",N?[N]:[]);return m.setAttribute("width","+0.6em"),m.setAttribute("lspace","0.3em"),m};Hi({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(N,m,S){var{parser:D,funcName:Z}=N;return{type:"xArrow",mode:D.mode,label:Z,body:m[0],below:S[0]}},htmlBuilder(N,m){var S=m.style,D=m.havingStyle(S.sup()),Z=Sn.wrapFragment(Xo(N.body,D,m),m),oe=N.label.slice(0,2)==="\\x"?"x":"cd";Z.classes.push(oe+"-arrow-pad");var Y;N.below&&(D=m.havingStyle(S.sub()),Y=Sn.wrapFragment(Xo(N.below,D,m),m),Y.classes.push(oe+"-arrow-pad"));var ut=Ws.svgSpan(N,m),pt=-m.fontMetrics().axisHeight+.5*ut.height,bn=-m.fontMetrics().axisHeight-.5*ut.height-.111;(Z.depth>.25||N.label==="\\xleftequilibrium")&&(bn-=Z.depth);var _n;if(Y){var Qn=-m.fontMetrics().axisHeight+Y.height+.5*ut.height+.111;_n=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Z,shift:bn},{type:"elem",elem:ut,shift:pt},{type:"elem",elem:Y,shift:Qn}]},m)}else _n=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Z,shift:bn},{type:"elem",elem:ut,shift:pt}]},m);return _n.children[0].children[0].children[1].classes.push("svg-align"),Sn.makeSpan(["mrel","x-arrow"],[_n],m)},mathmlBuilder(N,m){var S=Ws.mathMLnode(N.label);S.setAttribute("minsize",N.label.charAt(0)==="x"?"1.75em":"3.0em");var D;if(N.body){var Z=gl(ro(N.body,m));if(N.below){var oe=gl(ro(N.below,m));D=new Ki.MathNode("munderover",[S,oe,Z])}else D=new Ki.MathNode("mover",[S,Z])}else if(N.below){var Y=gl(ro(N.below,m));D=new Ki.MathNode("munder",[S,Y])}else D=gl(),D=new Ki.MathNode("mover",[S,D]);return D}});var Xu=Sn.makeSpan;function cu(N,m){var S=Ho(N.body,m,!0);return Xu([N.mclass],S,m)}function Ia(N,m){var S,D=fa(N.body,m);return N.mclass==="minner"?S=new Ki.MathNode("mpadded",D):N.mclass==="mord"?N.isCharacterBox?(S=D[0],S.type="mi"):S=new Ki.MathNode("mi",D):(N.isCharacterBox?(S=D[0],S.type="mo"):S=new Ki.MathNode("mo",D),N.mclass==="mbin"?(S.attributes.lspace="0.22em",S.attributes.rspace="0.22em"):N.mclass==="mpunct"?(S.attributes.lspace="0em",S.attributes.rspace="0.17em"):N.mclass==="mopen"||N.mclass==="mclose"?(S.attributes.lspace="0em",S.attributes.rspace="0em"):N.mclass==="minner"&&(S.attributes.lspace="0.0556em",S.attributes.width="+0.1111em")),S}Hi({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(N,m){var{parser:S,funcName:D}=N,Z=m[0];return{type:"mclass",mode:S.mode,mclass:"m"+D.slice(5),body:Yo(Z),isCharacterBox:T.isCharacterBox(Z)}},htmlBuilder:cu,mathmlBuilder:Ia});var Or=N=>{var m=N.type==="ordgroup"&&N.body.length?N.body[0]:N;return m.type==="atom"&&(m.family==="bin"||m.family==="rel")?"m"+m.family:"mord"};Hi({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(N,m){var{parser:S}=N;return{type:"mclass",mode:S.mode,mclass:Or(m[0]),body:Yo(m[1]),isCharacterBox:T.isCharacterBox(m[1])}}}),Hi({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(N,m){var{parser:S,funcName:D}=N,Z=m[1],oe=m[0],Y;D!=="\\stackrel"?Y=Or(Z):Y="mrel";var ut={type:"op",mode:Z.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:D!=="\\stackrel",body:Yo(Z)},pt={type:"supsub",mode:oe.mode,base:ut,sup:D==="\\underset"?null:oe,sub:D==="\\underset"?oe:null};return{type:"mclass",mode:S.mode,mclass:Y,body:[pt],isCharacterBox:T.isCharacterBox(pt)}},htmlBuilder:cu,mathmlBuilder:Ia}),Hi({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(N,m){var{parser:S}=N;return{type:"pmb",mode:S.mode,mclass:Or(m[0]),body:Yo(m[0])}},htmlBuilder(N,m){var S=Ho(N.body,m,!0),D=Sn.makeSpan([N.mclass],S,m);return D.style.textShadow="0.02em 0.01em 0.04px",D},mathmlBuilder(N,m){var S=fa(N.body,m),D=new Ki.MathNode("mstyle",S);return D.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),D}});var Fs={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},gs=()=>({type:"styling",body:[],mode:"math",style:"display"}),So=N=>N.type==="textord"&&N.text==="@",lo=(N,m)=>(N.type==="mathord"||N.type==="atom")&&N.text===m;function Ha(N,m,S){var D=Fs[N];switch(D){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return S.callFunction(D,[m[0]],[m[1]]);case"\\uparrow":case"\\downarrow":{var Z=S.callFunction("\\\\cdleft",[m[0]],[]),oe={type:"atom",text:D,mode:"math",family:"rel"},Y=S.callFunction("\\Big",[oe],[]),ut=S.callFunction("\\\\cdright",[m[1]],[]),pt={type:"ordgroup",mode:"math",body:[Z,Y,ut]};return S.callFunction("\\\\cdparent",[pt],[])}case"\\\\cdlongequal":return S.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var bn={type:"textord",text:"\\Vert",mode:"math"};return S.callFunction("\\Big",[bn],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Vs(N){var m=[];for(N.gullet.beginGroup(),N.gullet.macros.set("\\cr","\\\\\\relax"),N.gullet.beginGroup();;){m.push(N.parseExpression(!1,"\\\\")),N.gullet.endGroup(),N.gullet.beginGroup();var S=N.fetch().text;if(S==="&"||S==="\\\\")N.consume();else if(S==="\\end"){m[m.length-1].length===0&&m.pop();break}else throw new Ft("Expected \\\\ or \\cr or \\end",N.nextToken)}for(var D=[],Z=[D],oe=0;oe<m.length;oe++){for(var Y=m[oe],ut=gs(),pt=0;pt<Y.length;pt++)if(!So(Y[pt]))ut.body.push(Y[pt]);else{D.push(ut),pt+=1;var bn=Pn(Y[pt]).text,_n=new Array(2);if(_n[0]={type:"ordgroup",mode:"math",body:[]},_n[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(bn)>-1))if("<>AV".indexOf(bn)>-1)for(var Qn=0;Qn<2;Qn++){for(var ki=!0,Ii=pt+1;Ii<Y.length;Ii++){if(lo(Y[Ii],bn)){ki=!1,pt=Ii;break}if(So(Y[Ii]))throw new Ft("Missing a "+bn+" character to complete a CD arrow.",Y[Ii]);_n[Qn].body.push(Y[Ii])}if(ki)throw new Ft("Missing a "+bn+" character to complete a CD arrow.",Y[pt])}else throw new Ft('Expected one of "<>AV=|." after @',Y[pt]);var $i=Ha(bn,_n,N),Nr={type:"styling",body:[$i],mode:"math",style:"display"};D.push(Nr),ut=gs()}oe%2===0?D.push(ut):D.shift(),D=[],Z.push(D)}N.gullet.endGroup(),N.gullet.endGroup();var Ur=new Array(Z[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:Z,arraystretch:1,addJot:!0,rowGaps:[null],cols:Ur,colSeparationType:"CD",hLinesBeforeRow:new Array(Z.length+1).fill([])}}Hi({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(N,m){var{parser:S,funcName:D}=N;return{type:"cdlabel",mode:S.mode,side:D.slice(4),label:m[0]}},htmlBuilder(N,m){var S=m.havingStyle(m.style.sup()),D=Sn.wrapFragment(Xo(N.label,S,m),m);return D.classes.push("cd-label-"+N.side),D.style.bottom=Rt(.8-D.depth),D.height=0,D.depth=0,D},mathmlBuilder(N,m){var S=new Ki.MathNode("mrow",[ro(N.label,m)]);return S=new Ki.MathNode("mpadded",[S]),S.setAttribute("width","0"),N.side==="left"&&S.setAttribute("lspace","-1width"),S.setAttribute("voffset","0.7em"),S=new Ki.MathNode("mstyle",[S]),S.setAttribute("displaystyle","false"),S.setAttribute("scriptlevel","1"),S}}),Hi({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(N,m){var{parser:S}=N;return{type:"cdlabelparent",mode:S.mode,fragment:m[0]}},htmlBuilder(N,m){var S=Sn.wrapFragment(Xo(N.fragment,m),m);return S.classes.push("cd-vert-arrow"),S},mathmlBuilder(N,m){return new Ki.MathNode("mrow",[ro(N.fragment,m)])}}),Hi({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(N,m){for(var{parser:S}=N,D=et(m[0],"ordgroup"),Z=D.body,oe="",Y=0;Y<Z.length;Y++){var ut=et(Z[Y],"textord");oe+=ut.text}var pt=parseInt(oe),bn;if(isNaN(pt))throw new Ft("\\@char has non-numeric argument "+oe);if(pt<0||pt>=1114111)throw new Ft("\\@char with invalid code point "+oe);return pt<=65535?bn=String.fromCharCode(pt):(pt-=65536,bn=String.fromCharCode((pt>>10)+55296,(pt&1023)+56320)),{type:"textord",mode:S.mode,text:bn}}});var la=(N,m)=>{var S=Ho(N.body,m.withColor(N.color),!1);return Sn.makeFragment(S)},Ks=(N,m)=>{var S=fa(N.body,m.withColor(N.color)),D=new Ki.MathNode("mstyle",S);return D.setAttribute("mathcolor",N.color),D};Hi({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(N,m){var{parser:S}=N,D=et(m[0],"color-token").color,Z=m[1];return{type:"color",mode:S.mode,color:D,body:Yo(Z)}},htmlBuilder:la,mathmlBuilder:Ks}),Hi({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(N,m){var{parser:S,breakOnTokenText:D}=N,Z=et(m[0],"color-token").color;S.gullet.macros.set("\\current@color",Z);var oe=S.parseExpression(!0,D);return{type:"color",mode:S.mode,color:Z,body:oe}},htmlBuilder:la,mathmlBuilder:Ks}),Hi({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(N,m,S){var{parser:D}=N,Z=D.gullet.future().text==="["?D.parseSizeGroup(!0):null,oe=!D.settings.displayMode||!D.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:D.mode,newLine:oe,size:Z&&et(Z,"size").value}},htmlBuilder(N,m){var S=Sn.makeSpan(["mspace"],[],m);return N.newLine&&(S.classes.push("newline"),N.size&&(S.style.marginTop=Rt(Ht(N.size,m)))),S},mathmlBuilder(N,m){var S=new Ki.MathNode("mspace");return N.newLine&&(S.setAttribute("linebreak","newline"),N.size&&S.setAttribute("height",Rt(Ht(N.size,m)))),S}});var ss={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},hu=N=>{var m=N.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(m))throw new Ft("Expected a control sequence",N);return m},Bo=N=>{var m=N.gullet.popToken();return m.text==="="&&(m=N.gullet.popToken(),m.text===" "&&(m=N.gullet.popToken())),m},Es=(N,m,S,D)=>{var Z=N.gullet.macros.get(S.text);Z==null&&(S.noexpand=!0,Z={tokens:[S],numArgs:0,unexpandable:!N.gullet.isExpandable(S.text)}),N.gullet.macros.set(m,Z,D)};Hi({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(N){var{parser:m,funcName:S}=N;m.consumeSpaces();var D=m.fetch();if(ss[D.text])return(S==="\\global"||S==="\\\\globallong")&&(D.text=ss[D.text]),et(m.parseFunction(),"internal");throw new Ft("Invalid token after macro prefix",D)}}),Hi({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(N){var{parser:m,funcName:S}=N,D=m.gullet.popToken(),Z=D.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(Z))throw new Ft("Expected a control sequence",D);for(var oe=0,Y,ut=[[]];m.gullet.future().text!=="{";)if(D=m.gullet.popToken(),D.text==="#"){if(m.gullet.future().text==="{"){Y=m.gullet.future(),ut[oe].push("{");break}if(D=m.gullet.popToken(),!/^[1-9]$/.test(D.text))throw new Ft('Invalid argument number "'+D.text+'"');if(parseInt(D.text)!==oe+1)throw new Ft('Argument number "'+D.text+'" out of order');oe++,ut.push([])}else{if(D.text==="EOF")throw new Ft("Expected a macro definition");ut[oe].push(D.text)}var{tokens:pt}=m.gullet.consumeArg();return Y&&pt.unshift(Y),(S==="\\edef"||S==="\\xdef")&&(pt=m.gullet.expandTokens(pt),pt.reverse()),m.gullet.macros.set(Z,{tokens:pt,numArgs:oe,delimiters:ut},S===ss[S]),{type:"internal",mode:m.mode}}}),Hi({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(N){var{parser:m,funcName:S}=N,D=hu(m.gullet.popToken());m.gullet.consumeSpaces();var Z=Bo(m);return Es(m,D,Z,S==="\\\\globallet"),{type:"internal",mode:m.mode}}}),Hi({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(N){var{parser:m,funcName:S}=N,D=hu(m.gullet.popToken()),Z=m.gullet.popToken(),oe=m.gullet.popToken();return Es(m,D,oe,S==="\\\\globalfuture"),m.gullet.pushToken(oe),m.gullet.pushToken(Z),{type:"internal",mode:m.mode}}});var Eo=function(m,S,D){var Z=zi.math[m]&&zi.math[m].replace,oe=ft(Z||m,S,D);if(!oe)throw new Error("Unsupported symbol "+m+" and font size "+S+".");return oe},qo=function(m,S,D,Z){var oe=D.havingBaseStyle(S),Y=Sn.makeSpan(Z.concat(oe.sizingClasses(D)),[m],D),ut=oe.sizeMultiplier/D.sizeMultiplier;return Y.height*=ut,Y.depth*=ut,Y.maxFontSize=oe.sizeMultiplier,Y},ia=function(m,S,D){var Z=S.havingBaseStyle(D),oe=(1-S.sizeMultiplier/Z.sizeMultiplier)*S.fontMetrics().axisHeight;m.classes.push("delimcenter"),m.style.top=Rt(oe),m.height-=oe,m.depth+=oe},wa=function(m,S,D,Z,oe,Y){var ut=Sn.makeSymbol(m,"Main-Regular",oe,Z),pt=qo(ut,S,Z,Y);return D&&ia(pt,Z,S),pt},_o=function(m,S,D,Z){return Sn.makeSymbol(m,"Size"+S+"-Regular",D,Z)},du=function(m,S,D,Z,oe,Y){var ut=_o(m,S,oe,Z),pt=qo(Sn.makeSpan(["delimsizing","size"+S],[ut],Z),kn.TEXT,Z,Y);return D&&ia(pt,Z,kn.TEXT),pt},Ir=function(m,S,D){var Z;S==="Size1-Regular"?Z="delim-size1":Z="delim-size4";var oe=Sn.makeSpan(["delimsizinginner",Z],[Sn.makeSpan([],[Sn.makeSymbol(m,S,D)])]);return{type:"elem",elem:oe}},sl=function(m,S,D){var Z=to["Size4-Regular"][m.charCodeAt(0)]?to["Size4-Regular"][m.charCodeAt(0)][4]:to["Size1-Regular"][m.charCodeAt(0)][4],oe=new ui("inner",Fr(m,Math.round(1e3*S))),Y=new Cn([oe],{width:Rt(Z),height:Rt(S),style:"width:"+Rt(Z),viewBox:"0 0 "+1e3*Z+" "+Math.round(1e3*S),preserveAspectRatio:"xMinYMin"}),ut=Sn.makeSvgSpan([],[Y],D);return ut.height=S,ut.style.height=Rt(S),ut.style.width=Rt(Z),{type:"elem",elem:ut}},To=.008,Qu={type:"kern",size:-1*To},Ju=["|","\\lvert","\\rvert","\\vert"],qu=["\\|","\\lVert","\\rVert","\\Vert"],wc=function(m,S,D,Z,oe,Y){var ut,pt,bn,_n,Qn="",ki=0;ut=bn=_n=m,pt=null;var Ii="Size1-Regular";m==="\\uparrow"?bn=_n="\u23D0":m==="\\Uparrow"?bn=_n="\u2016":m==="\\downarrow"?ut=bn="\u23D0":m==="\\Downarrow"?ut=bn="\u2016":m==="\\updownarrow"?(ut="\\uparrow",bn="\u23D0",_n="\\downarrow"):m==="\\Updownarrow"?(ut="\\Uparrow",bn="\u2016",_n="\\Downarrow"):T.contains(Ju,m)?(bn="\u2223",Qn="vert",ki=333):T.contains(qu,m)?(bn="\u2225",Qn="doublevert",ki=556):m==="["||m==="\\lbrack"?(ut="\u23A1",bn="\u23A2",_n="\u23A3",Ii="Size4-Regular",Qn="lbrack",ki=667):m==="]"||m==="\\rbrack"?(ut="\u23A4",bn="\u23A5",_n="\u23A6",Ii="Size4-Regular",Qn="rbrack",ki=667):m==="\\lfloor"||m==="\u230A"?(bn=ut="\u23A2",_n="\u23A3",Ii="Size4-Regular",Qn="lfloor",ki=667):m==="\\lceil"||m==="\u2308"?(ut="\u23A1",bn=_n="\u23A2",Ii="Size4-Regular",Qn="lceil",ki=667):m==="\\rfloor"||m==="\u230B"?(bn=ut="\u23A5",_n="\u23A6",Ii="Size4-Regular",Qn="rfloor",ki=667):m==="\\rceil"||m==="\u2309"?(ut="\u23A4",bn=_n="\u23A5",Ii="Size4-Regular",Qn="rceil",ki=667):m==="("||m==="\\lparen"?(ut="\u239B",bn="\u239C",_n="\u239D",Ii="Size4-Regular",Qn="lparen",ki=875):m===")"||m==="\\rparen"?(ut="\u239E",bn="\u239F",_n="\u23A0",Ii="Size4-Regular",Qn="rparen",ki=875):m==="\\{"||m==="\\lbrace"?(ut="\u23A7",pt="\u23A8",_n="\u23A9",bn="\u23AA",Ii="Size4-Regular"):m==="\\}"||m==="\\rbrace"?(ut="\u23AB",pt="\u23AC",_n="\u23AD",bn="\u23AA",Ii="Size4-Regular"):m==="\\lgroup"||m==="\u27EE"?(ut="\u23A7",_n="\u23A9",bn="\u23AA",Ii="Size4-Regular"):m==="\\rgroup"||m==="\u27EF"?(ut="\u23AB",_n="\u23AD",bn="\u23AA",Ii="Size4-Regular"):m==="\\lmoustache"||m==="\u23B0"?(ut="\u23A7",_n="\u23AD",bn="\u23AA",Ii="Size4-Regular"):(m==="\\rmoustache"||m==="\u23B1")&&(ut="\u23AB",_n="\u23A9",bn="\u23AA",Ii="Size4-Regular");var $i=Eo(ut,Ii,oe),Nr=$i.height+$i.depth,Ur=Eo(bn,Ii,oe),Hr=Ur.height+Ur.depth,Ao=Eo(_n,Ii,oe),Go=Ao.height+Ao.depth,Da=0,na=1;if(pt!==null){var Ko=Eo(pt,Ii,oe);Da=Ko.height+Ko.depth,na=2}var pa=Nr+Go+Da,hs=Math.max(0,Math.ceil((S-pa)/(na*Hr))),ha=pa+hs*na*Hr,bl=Z.fontMetrics().axisHeight;D&&(bl*=Z.sizeMultiplier);var Us=ha/2-bl,ds=[];if(Qn.length>0){var Is=ha-Nr-Go,ul=Math.round(ha*1e3),Kl=so(Qn,Math.round(Is*1e3)),_s=new ui(Qn,Kl),Au=(ki/1e3).toFixed(3)+"em",ec=(ul/1e3).toFixed(3)+"em",Pc=new Cn([_s],{width:Au,height:ec,viewBox:"0 0 "+ki+" "+ul}),Fl=Sn.makeSvgSpan([],[Pc],Z);Fl.height=ul/1e3,Fl.style.width=Au,Fl.style.height=ec,ds.push({type:"elem",elem:Fl})}else{if(ds.push(Ir(_n,Ii,oe)),ds.push(Qu),pt===null){var bs=ha-Nr-Go+2*To;ds.push(sl(bn,bs,Z))}else{var Bl=(ha-Nr-Go-Da)/2+2*To;ds.push(sl(bn,Bl,Z)),ds.push(Qu),ds.push(Ir(pt,Ii,oe)),ds.push(Qu),ds.push(sl(bn,Bl,Z))}ds.push(Qu),ds.push(Ir(ut,Ii,oe))}var Qa=Z.havingBaseStyle(kn.TEXT),ea=Sn.makeVList({positionType:"bottom",positionData:Us,children:ds},Qa);return qo(Sn.makeSpan(["delimsizing","mult"],[ea],Qa),kn.TEXT,Z,Y)},_u=80,Xs=.08,Qs=function(m,S,D,Z,oe){var Y=fr(m,Z,D),ut=new ui(m,Y),pt=new Cn([ut],{width:"400em",height:Rt(S),viewBox:"0 0 400000 "+D,preserveAspectRatio:"xMinYMin slice"});return Sn.makeSvgSpan(["hide-tail"],[pt],oe)},Io=function(m,S){var D=S.havingBaseSizing(),Z=pu("\\surd",m*D.sizeMultiplier,Zs,D),oe=D.sizeMultiplier,Y=Math.max(0,S.minRuleThickness-S.fontMetrics().sqrtRuleThickness),ut,pt=0,bn=0,_n=0,Qn;return Z.type==="small"?(_n=1e3+1e3*Y+_u,m<1?oe=1:m<1.4&&(oe=.7),pt=(1+Y+Xs)/oe,bn=(1+Y)/oe,ut=Qs("sqrtMain",pt,_n,Y,S),ut.style.minWidth="0.853em",Qn=.833/oe):Z.type==="large"?(_n=(1e3+_u)*vl[Z.size],bn=(vl[Z.size]+Y)/oe,pt=(vl[Z.size]+Y+Xs)/oe,ut=Qs("sqrtSize"+Z.size,pt,_n,Y,S),ut.style.minWidth="1.02em",Qn=1/oe):(pt=m+Y+Xs,bn=m+Y,_n=Math.floor(1e3*m+Y)+_u,ut=Qs("sqrtTall",pt,_n,Y,S),ut.style.minWidth="0.742em",Qn=1.056),ut.height=bn,ut.style.height=Rt(pt),{span:ut,advanceWidth:Qn,ruleWidth:(S.fontMetrics().sqrtRuleThickness+Y)*oe}},Bs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],dc=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],tu=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],vl=[0,1.2,1.8,2.4,3],yl=function(m,S,D,Z,oe){if(m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle"),T.contains(Bs,m)||T.contains(tu,m))return du(m,S,!1,D,Z,oe);if(T.contains(dc,m))return wc(m,vl[S],!1,D,Z,oe);throw new Ft("Illegal delimiter: '"+m+"'")},Js=[{type:"small",style:kn.SCRIPTSCRIPT},{type:"small",style:kn.SCRIPT},{type:"small",style:kn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Wl=[{type:"small",style:kn.SCRIPTSCRIPT},{type:"small",style:kn.SCRIPT},{type:"small",style:kn.TEXT},{type:"stack"}],Zs=[{type:"small",style:kn.SCRIPTSCRIPT},{type:"small",style:kn.SCRIPT},{type:"small",style:kn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fu=function(m){if(m.type==="small")return"Main-Regular";if(m.type==="large")return"Size"+m.size+"-Regular";if(m.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+m.type+"' here.")},pu=function(m,S,D,Z){for(var oe=Math.min(2,3-Z.style.size),Y=oe;Y<D.length&&D[Y].type!=="stack";Y++){var ut=Eo(m,fu(D[Y]),"math"),pt=ut.height+ut.depth;if(D[Y].type==="small"){var bn=Z.havingBaseStyle(D[Y].style);pt*=bn.sizeMultiplier}if(pt>S)return D[Y]}return D[D.length-1]},Tu=function(m,S,D,Z,oe,Y){m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle");var ut;T.contains(tu,m)?ut=Js:T.contains(Bs,m)?ut=Zs:ut=Wl;var pt=pu(m,S,ut,Z);return pt.type==="small"?wa(m,pt.style,D,Z,oe,Y):pt.type==="large"?du(m,pt.size,D,Z,oe,Y):wc(m,S,D,Z,oe,Y)},Nu=function(m,S,D,Z,oe,Y){var ut=Z.fontMetrics().axisHeight*Z.sizeMultiplier,pt=901,bn=5/Z.fontMetrics().ptPerEm,_n=Math.max(S-ut,D+ut),Qn=Math.max(_n/500*pt,2*_n-bn);return Tu(m,Qn,!0,Z,oe,Y)},ll={sqrtImage:Io,sizedDelim:yl,sizeToMaxHeight:vl,customSizedDelim:Tu,leftRightDelim:Nu},vs={"\\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}},Vl=["(","\\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 zu(N,m){var S=Cu(N);if(S&&T.contains(Vl,S.text))return S;throw S?new Ft("Invalid delimiter '"+S.text+"' after '"+m.funcName+"'",N):new Ft("Invalid delimiter type '"+N.type+"'",N)}Hi({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:(N,m)=>{var S=zu(m[0],N);return{type:"delimsizing",mode:N.parser.mode,size:vs[N.funcName].size,mclass:vs[N.funcName].mclass,delim:S.text}},htmlBuilder:(N,m)=>N.delim==="."?Sn.makeSpan([N.mclass]):ll.sizedDelim(N.delim,N.size,m,N.mode,[N.mclass]),mathmlBuilder:N=>{var m=[];N.delim!=="."&&m.push(ks(N.delim,N.mode));var S=new Ki.MathNode("mo",m);N.mclass==="mopen"||N.mclass==="mclose"?S.setAttribute("fence","true"):S.setAttribute("fence","false"),S.setAttribute("stretchy","true");var D=Rt(ll.sizeToMaxHeight[N.size]);return S.setAttribute("minsize",D),S.setAttribute("maxsize",D),S}});function Ee(N){if(!N.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Hi({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(N,m)=>{var S=N.parser.gullet.macros.get("\\current@color");if(S&&typeof S!="string")throw new Ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:N.parser.mode,delim:zu(m[0],N).text,color:S}}}),Hi({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(N,m)=>{var S=zu(m[0],N),D=N.parser;++D.leftrightDepth;var Z=D.parseExpression(!1);--D.leftrightDepth,D.expect("\\right",!1);var oe=et(D.parseFunction(),"leftright-right");return{type:"leftright",mode:D.mode,body:Z,left:S.text,right:oe.delim,rightColor:oe.color}},htmlBuilder:(N,m)=>{Ee(N);for(var S=Ho(N.body,m,!0,["mopen","mclose"]),D=0,Z=0,oe=!1,Y=0;Y<S.length;Y++)S[Y].isMiddle?oe=!0:(D=Math.max(S[Y].height,D),Z=Math.max(S[Y].depth,Z));D*=m.sizeMultiplier,Z*=m.sizeMultiplier;var ut;if(N.left==="."?ut=ml(m,["mopen"]):ut=ll.leftRightDelim(N.left,D,Z,m,N.mode,["mopen"]),S.unshift(ut),oe)for(var pt=1;pt<S.length;pt++){var bn=S[pt],_n=bn.isMiddle;_n&&(S[pt]=ll.leftRightDelim(_n.delim,D,Z,_n.options,N.mode,[]))}var Qn;if(N.right===".")Qn=ml(m,["mclose"]);else{var ki=N.rightColor?m.withColor(N.rightColor):m;Qn=ll.leftRightDelim(N.right,D,Z,ki,N.mode,["mclose"])}return S.push(Qn),Sn.makeSpan(["minner"],S,m)},mathmlBuilder:(N,m)=>{Ee(N);var S=fa(N.body,m);if(N.left!=="."){var D=new Ki.MathNode("mo",[ks(N.left,N.mode)]);D.setAttribute("fence","true"),S.unshift(D)}if(N.right!=="."){var Z=new Ki.MathNode("mo",[ks(N.right,N.mode)]);Z.setAttribute("fence","true"),N.rightColor&&Z.setAttribute("mathcolor",N.rightColor),S.push(Z)}return Rl(S)}}),Hi({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(N,m)=>{var S=zu(m[0],N);if(!N.parser.leftrightDepth)throw new Ft("\\middle without preceding \\left",S);return{type:"middle",mode:N.parser.mode,delim:S.text}},htmlBuilder:(N,m)=>{var S;if(N.delim===".")S=ml(m,[]);else{S=ll.sizedDelim(N.delim,1,m,N.mode,[]);var D={delim:N.delim,options:m};S.isMiddle=D}return S},mathmlBuilder:(N,m)=>{var S=N.delim==="\\vert"||N.delim==="|"?ks("|","text"):ks(N.delim,N.mode),D=new Ki.MathNode("mo",[S]);return D.setAttribute("fence","true"),D.setAttribute("lspace","0.05em"),D.setAttribute("rspace","0.05em"),D}});var Le=(N,m)=>{var S=Sn.wrapFragment(Xo(N.body,m),m),D=N.label.slice(1),Z=m.sizeMultiplier,oe,Y=0,ut=T.isCharacterBox(N.body);if(D==="sout")oe=Sn.makeSpan(["stretchy","sout"]),oe.height=m.fontMetrics().defaultRuleThickness/Z,Y=-.5*m.fontMetrics().xHeight;else if(D==="phase"){var pt=Ht({number:.6,unit:"pt"},m),bn=Ht({number:.35,unit:"ex"},m),_n=m.havingBaseSizing();Z=Z/_n.sizeMultiplier;var Qn=S.height+S.depth+pt+bn;S.style.paddingLeft=Rt(Qn/2+pt);var ki=Math.floor(1e3*Qn*Z),Ii=U(ki),$i=new Cn([new ui("phase",Ii)],{width:"400em",height:Rt(ki/1e3),viewBox:"0 0 400000 "+ki,preserveAspectRatio:"xMinYMin slice"});oe=Sn.makeSvgSpan(["hide-tail"],[$i],m),oe.style.height=Rt(Qn),Y=S.depth+pt+bn}else{/cancel/.test(D)?ut||S.classes.push("cancel-pad"):D==="angl"?S.classes.push("anglpad"):S.classes.push("boxpad");var Nr=0,Ur=0,Hr=0;/box/.test(D)?(Hr=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness),Nr=m.fontMetrics().fboxsep+(D==="colorbox"?0:Hr),Ur=Nr):D==="angl"?(Hr=Math.max(m.fontMetrics().defaultRuleThickness,m.minRuleThickness),Nr=4*Hr,Ur=Math.max(0,.25-S.depth)):(Nr=ut?.2:0,Ur=Nr),oe=Ws.encloseSpan(S,D,Nr,Ur,m),/fbox|boxed|fcolorbox/.test(D)?(oe.style.borderStyle="solid",oe.style.borderWidth=Rt(Hr)):D==="angl"&&Hr!==.049&&(oe.style.borderTopWidth=Rt(Hr),oe.style.borderRightWidth=Rt(Hr)),Y=S.depth+Ur,N.backgroundColor&&(oe.style.backgroundColor=N.backgroundColor,N.borderColor&&(oe.style.borderColor=N.borderColor))}var Ao;if(N.backgroundColor)Ao=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:oe,shift:Y},{type:"elem",elem:S,shift:0}]},m);else{var Go=/cancel|phase/.test(D)?["svg-align"]:[];Ao=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:oe,shift:Y,wrapperClasses:Go}]},m)}return/cancel/.test(D)&&(Ao.height=S.height,Ao.depth=S.depth),/cancel/.test(D)&&!ut?Sn.makeSpan(["mord","cancel-lap"],[Ao],m):Sn.makeSpan(["mord"],[Ao],m)},ht=(N,m)=>{var S=0,D=new Ki.MathNode(N.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ro(N.body,m)]);switch(N.label){case"\\cancel":D.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":D.setAttribute("notation","downdiagonalstrike");break;case"\\phase":D.setAttribute("notation","phasorangle");break;case"\\sout":D.setAttribute("notation","horizontalstrike");break;case"\\fbox":D.setAttribute("notation","box");break;case"\\angl":D.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(S=m.fontMetrics().fboxsep*m.fontMetrics().ptPerEm,D.setAttribute("width","+"+2*S+"pt"),D.setAttribute("height","+"+2*S+"pt"),D.setAttribute("lspace",S+"pt"),D.setAttribute("voffset",S+"pt"),N.label==="\\fcolorbox"){var Z=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness);D.setAttribute("style","border: "+Z+"em solid "+String(N.borderColor))}break;case"\\xcancel":D.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return N.backgroundColor&&D.setAttribute("mathbackground",N.backgroundColor),D};Hi({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(N,m,S){var{parser:D,funcName:Z}=N,oe=et(m[0],"color-token").color,Y=m[1];return{type:"enclose",mode:D.mode,label:Z,backgroundColor:oe,body:Y}},htmlBuilder:Le,mathmlBuilder:ht}),Hi({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(N,m,S){var{parser:D,funcName:Z}=N,oe=et(m[0],"color-token").color,Y=et(m[1],"color-token").color,ut=m[2];return{type:"enclose",mode:D.mode,label:Z,backgroundColor:Y,borderColor:oe,body:ut}},htmlBuilder:Le,mathmlBuilder:ht}),Hi({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(N,m){var{parser:S}=N;return{type:"enclose",mode:S.mode,label:"\\fbox",body:m[0]}}}),Hi({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(N,m){var{parser:S,funcName:D}=N,Z=m[0];return{type:"enclose",mode:S.mode,label:D,body:Z}},htmlBuilder:Le,mathmlBuilder:ht}),Hi({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(N,m){var{parser:S}=N;return{type:"enclose",mode:S.mode,label:"\\angl",body:m[0]}}});var bt={};function _t(N){for(var{type:m,names:S,props:D,handler:Z,htmlBuilder:oe,mathmlBuilder:Y}=N,ut={type:m,numArgs:D.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:Z},pt=0;pt<S.length;++pt)bt[S[pt]]=ut;oe&&(Ns[m]=oe),Y&&(si[m]=Y)}var Ot={};function ge(N,m){Ot[N]=m}function yn(N){var m=[];N.consumeSpaces();var S=N.fetch().text;for(S==="\\relax"&&(N.consume(),N.consumeSpaces(),S=N.fetch().text);S==="\\hline"||S==="\\hdashline";)N.consume(),m.push(S==="\\hdashline"),N.consumeSpaces(),S=N.fetch().text;return m}var ln=N=>{var m=N.parser.settings;if(!m.displayMode)throw new Ft("{"+N.envName+"} can be used only in display mode.")};function zn(N){if(N.indexOf("ed")===-1)return N.indexOf("*")===-1}function $n(N,m,S){var{hskipBeforeAndAfter:D,addJot:Z,cols:oe,arraystretch:Y,colSeparationType:ut,autoTag:pt,singleRow:bn,emptySingleRow:_n,maxNumCols:Qn,leqno:ki}=m;if(N.gullet.beginGroup(),bn||N.gullet.macros.set("\\cr","\\\\\\relax"),!Y){var Ii=N.gullet.expandMacroAsText("\\arraystretch");if(Ii==null)Y=1;else if(Y=parseFloat(Ii),!Y||Y<0)throw new Ft("Invalid \\arraystretch: "+Ii)}N.gullet.beginGroup();var $i=[],Nr=[$i],Ur=[],Hr=[],Ao=pt!=null?[]:void 0;function Go(){pt&&N.gullet.macros.set("\\@eqnsw","1",!0)}function Da(){Ao&&(N.gullet.macros.get("\\df@tag")?(Ao.push(N.subparse([new un("\\df@tag")])),N.gullet.macros.set("\\df@tag",void 0,!0)):Ao.push(!!pt&&N.gullet.macros.get("\\@eqnsw")==="1"))}for(Go(),Hr.push(yn(N));;){var na=N.parseExpression(!1,bn?"\\end":"\\\\");N.gullet.endGroup(),N.gullet.beginGroup(),na={type:"ordgroup",mode:N.mode,body:na},S&&(na={type:"styling",mode:N.mode,style:S,body:[na]}),$i.push(na);var Ko=N.fetch().text;if(Ko==="&"){if(Qn&&$i.length===Qn){if(bn||ut)throw new Ft("Too many tab characters: &",N.nextToken);N.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}N.consume()}else if(Ko==="\\end"){Da(),$i.length===1&&na.type==="styling"&&na.body[0].body.length===0&&(Nr.length>1||!_n)&&Nr.pop(),Hr.length<Nr.length+1&&Hr.push([]);break}else if(Ko==="\\\\"){N.consume();var pa=void 0;N.gullet.future().text!==" "&&(pa=N.parseSizeGroup(!0)),Ur.push(pa?pa.value:null),Da(),Hr.push(yn(N)),$i=[],Nr.push($i),Go()}else throw new Ft("Expected & or \\\\ or \\cr or \\end",N.nextToken)}return N.gullet.endGroup(),N.gullet.endGroup(),{type:"array",mode:N.mode,addJot:Z,arraystretch:Y,body:Nr,cols:oe,rowGaps:Ur,hskipBeforeAndAfter:D,hLinesBeforeRow:Hr,colSeparationType:ut,tags:Ao,leqno:ki}}function Gn(N){return N.slice(0,1)==="d"?"display":"text"}var yi=function(m,S){var D,Z,oe=m.body.length,Y=m.hLinesBeforeRow,ut=0,pt=new Array(oe),bn=[],_n=Math.max(S.fontMetrics().arrayRuleWidth,S.minRuleThickness),Qn=1/S.fontMetrics().ptPerEm,ki=5*Qn;if(m.colSeparationType&&m.colSeparationType==="small"){var Ii=S.havingStyle(kn.SCRIPT).sizeMultiplier;ki=.2778*(Ii/S.sizeMultiplier)}var $i=m.colSeparationType==="CD"?Ht({number:3,unit:"ex"},S):12*Qn,Nr=3*Qn,Ur=m.arraystretch*$i,Hr=.7*Ur,Ao=.3*Ur,Go=0;function Da(hh){for(var dh=0;dh<hh.length;++dh)dh>0&&(Go+=.25),bn.push({pos:Go,isDashed:hh[dh]})}for(Da(Y[0]),D=0;D<m.body.length;++D){var na=m.body[D],Ko=Hr,pa=Ao;ut<na.length&&(ut=na.length);var hs=new Array(na.length);for(Z=0;Z<na.length;++Z){var ha=Xo(na[Z],S);pa<ha.depth&&(pa=ha.depth),Ko<ha.height&&(Ko=ha.height),hs[Z]=ha}var bl=m.rowGaps[D],Us=0;bl&&(Us=Ht(bl,S),Us>0&&(Us+=Ao,pa<Us&&(pa=Us),Us=0)),m.addJot&&(pa+=Nr),hs.height=Ko,hs.depth=pa,Go+=Ko,hs.pos=Go,Go+=pa+Us,pt[D]=hs,Da(Y[D+1])}var ds=Go/2+S.fontMetrics().axisHeight,Is=m.cols||[],ul=[],Kl,_s,Au=[];if(m.tags&&m.tags.some(hh=>hh))for(D=0;D<oe;++D){var ec=pt[D],Pc=ec.pos-ds,Fl=m.tags[D],bs=void 0;Fl===!0?bs=Sn.makeSpan(["eqn-num"],[],S):Fl===!1?bs=Sn.makeSpan([],[],S):bs=Sn.makeSpan([],Ho(Fl,S,!0),S),bs.depth=ec.depth,bs.height=ec.height,Au.push({type:"elem",elem:bs,shift:Pc})}for(Z=0,_s=0;Z<ut||_s<Is.length;++Z,++_s){for(var Bl=Is[_s]||{},Qa=!0;Bl.type==="separator";){if(Qa||(Kl=Sn.makeSpan(["arraycolsep"],[]),Kl.style.width=Rt(S.fontMetrics().doubleRuleSep),ul.push(Kl)),Bl.separator==="|"||Bl.separator===":"){var ea=Bl.separator==="|"?"solid":"dashed",xa=Sn.makeSpan(["vertical-separator"],[],S);xa.style.height=Rt(Go),xa.style.borderRightWidth=Rt(_n),xa.style.borderRightStyle=ea,xa.style.margin="0 "+Rt(-_n/2);var Hs=Go-ds;Hs&&(xa.style.verticalAlign=Rt(-Hs)),ul.push(xa)}else throw new Ft("Invalid separator type: "+Bl.separator);_s++,Bl=Is[_s]||{},Qa=!1}if(!(Z>=ut)){var qs=void 0;(Z>0||m.hskipBeforeAndAfter)&&(qs=T.deflt(Bl.pregap,ki),qs!==0&&(Kl=Sn.makeSpan(["arraycolsep"],[]),Kl.style.width=Rt(qs),ul.push(Kl)));var el=[];for(D=0;D<oe;++D){var Cc=pt[D],ku=Cc[Z];if(ku){var Xc=Cc.pos-ds;ku.depth=Cc.depth,ku.height=Cc.height,el.push({type:"elem",elem:ku,shift:Xc})}}el=Sn.makeVList({positionType:"individualShift",children:el},S),el=Sn.makeSpan(["col-align-"+(Bl.align||"c")],[el]),ul.push(el),(Z<ut-1||m.hskipBeforeAndAfter)&&(qs=T.deflt(Bl.postgap,ki),qs!==0&&(Kl=Sn.makeSpan(["arraycolsep"],[]),Kl.style.width=Rt(qs),ul.push(Kl)))}}if(pt=Sn.makeSpan(["mtable"],ul),bn.length>0){for(var mu=Sn.makeLineSpan("hline",S,_n),tc=Sn.makeLineSpan("hdashline",S,_n),ch=[{type:"elem",elem:pt,shift:0}];bn.length>0;){var Bh=bn.pop(),_h=Bh.pos-ds;Bh.isDashed?ch.push({type:"elem",elem:tc,shift:_h}):ch.push({type:"elem",elem:mu,shift:_h})}pt=Sn.makeVList({positionType:"individualShift",children:ch},S)}if(Au.length===0)return Sn.makeSpan(["mord"],[pt],S);var Tc=Sn.makeVList({positionType:"individualShift",children:Au},S);return Tc=Sn.makeSpan(["tag"],[Tc],S),Sn.makeFragment([pt,Tc])},bi={c:"center ",l:"left ",r:"right "},ti=function(m,S){for(var D=[],Z=new Ki.MathNode("mtd",[],["mtr-glue"]),oe=new Ki.MathNode("mtd",[],["mml-eqn-num"]),Y=0;Y<m.body.length;Y++){for(var ut=m.body[Y],pt=[],bn=0;bn<ut.length;bn++)pt.push(new Ki.MathNode("mtd",[ro(ut[bn],S)]));m.tags&&m.tags[Y]&&(pt.unshift(Z),pt.push(Z),m.leqno?pt.unshift(oe):pt.push(oe)),D.push(new Ki.MathNode("mtr",pt))}var _n=new Ki.MathNode("mtable",D),Qn=m.arraystretch===.5?.1:.16+m.arraystretch-1+(m.addJot?.09:0);_n.setAttribute("rowspacing",Rt(Qn));var ki="",Ii="";if(m.cols&&m.cols.length>0){var $i=m.cols,Nr="",Ur=!1,Hr=0,Ao=$i.length;$i[0].type==="separator"&&(ki+="top ",Hr=1),$i[$i.length-1].type==="separator"&&(ki+="bottom ",Ao-=1);for(var Go=Hr;Go<Ao;Go++)$i[Go].type==="align"?(Ii+=bi[$i[Go].align],Ur&&(Nr+="none "),Ur=!0):$i[Go].type==="separator"&&Ur&&(Nr+=$i[Go].separator==="|"?"solid ":"dashed ",Ur=!1);_n.setAttribute("columnalign",Ii.trim()),/[sd]/.test(Nr)&&_n.setAttribute("columnlines",Nr.trim())}if(m.colSeparationType==="align"){for(var Da=m.cols||[],na="",Ko=1;Ko<Da.length;Ko++)na+=Ko%2?"0em ":"1em ";_n.setAttribute("columnspacing",na.trim())}else m.colSeparationType==="alignat"||m.colSeparationType==="gather"?_n.setAttribute("columnspacing","0em"):m.colSeparationType==="small"?_n.setAttribute("columnspacing","0.2778em"):m.colSeparationType==="CD"?_n.setAttribute("columnspacing","0.5em"):_n.setAttribute("columnspacing","1em");var pa="",hs=m.hLinesBeforeRow;ki+=hs[0].length>0?"left ":"",ki+=hs[hs.length-1].length>0?"right ":"";for(var ha=1;ha<hs.length-1;ha++)pa+=hs[ha].length===0?"none ":hs[ha][0]?"dashed ":"solid ";return/[sd]/.test(pa)&&_n.setAttribute("rowlines",pa.trim()),ki!==""&&(_n=new Ki.MathNode("menclose",[_n]),_n.setAttribute("notation",ki.trim())),m.arraystretch&&m.arraystretch<1&&(_n=new Ki.MathNode("mstyle",[_n]),_n.setAttribute("scriptlevel","1")),_n},ji=function(m,S){m.envName.indexOf("ed")===-1&&ln(m);var D=[],Z=m.envName.indexOf("at")>-1?"alignat":"align",oe=m.envName==="split",Y=$n(m.parser,{cols:D,addJot:!0,autoTag:oe?void 0:zn(m.envName),emptySingleRow:!0,colSeparationType:Z,maxNumCols:oe?2:void 0,leqno:m.parser.settings.leqno},"display"),ut,pt=0,bn={type:"ordgroup",mode:m.mode,body:[]};if(S[0]&&S[0].type==="ordgroup"){for(var _n="",Qn=0;Qn<S[0].body.length;Qn++){var ki=et(S[0].body[Qn],"textord");_n+=ki.text}ut=Number(_n),pt=ut*2}var Ii=!pt;Y.body.forEach(function(Hr){for(var Ao=1;Ao<Hr.length;Ao+=2){var Go=et(Hr[Ao],"styling"),Da=et(Go.body[0],"ordgroup");Da.body.unshift(bn)}if(Ii)pt<Hr.length&&(pt=Hr.length);else{var na=Hr.length/2;if(ut<na)throw new Ft("Too many math in a row: "+("expected "+ut+", but got "+na),Hr[0])}});for(var $i=0;$i<pt;++$i){var Nr="r",Ur=0;$i%2===1?Nr="l":$i>0&&Ii&&(Ur=1),D[$i]={type:"align",align:Nr,pregap:Ur,postgap:0}}return Y.colSeparationType=Ii?"align":"alignat",Y};_t({type:"array",names:["array","darray"],props:{numArgs:1},handler(N,m){var S=Cu(m[0]),D=S?[m[0]]:et(m[0],"ordgroup").body,Z=D.map(function(Y){var ut=Pn(Y),pt=ut.text;if("lcr".indexOf(pt)!==-1)return{type:"align",align:pt};if(pt==="|")return{type:"separator",separator:"|"};if(pt===":")return{type:"separator",separator:":"};throw new Ft("Unknown column alignment: "+pt,Y)}),oe={cols:Z,hskipBeforeAndAfter:!0,maxNumCols:Z.length};return $n(N.parser,oe,Gn(N.envName))},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(N){var m={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[N.envName.replace("*","")],S="c",D={hskipBeforeAndAfter:!1,cols:[{type:"align",align:S}]};if(N.envName.charAt(N.envName.length-1)==="*"){var Z=N.parser;if(Z.consumeSpaces(),Z.fetch().text==="["){if(Z.consume(),Z.consumeSpaces(),S=Z.fetch().text,"lcr".indexOf(S)===-1)throw new Ft("Expected l or c or r",Z.nextToken);Z.consume(),Z.consumeSpaces(),Z.expect("]"),Z.consume(),D.cols=[{type:"align",align:S}]}}var oe=$n(N.parser,D,Gn(N.envName)),Y=Math.max(0,...oe.body.map(ut=>ut.length));return oe.cols=new Array(Y).fill({type:"align",align:S}),m?{type:"leftright",mode:N.mode,body:[oe],left:m[0],right:m[1],rightColor:void 0}:oe},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(N){var m={arraystretch:.5},S=$n(N.parser,m,"script");return S.colSeparationType="small",S},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["subarray"],props:{numArgs:1},handler(N,m){var S=Cu(m[0]),D=S?[m[0]]:et(m[0],"ordgroup").body,Z=D.map(function(Y){var ut=Pn(Y),pt=ut.text;if("lc".indexOf(pt)!==-1)return{type:"align",align:pt};throw new Ft("Unknown column alignment: "+pt,Y)});if(Z.length>1)throw new Ft("{subarray} can contain only one column");var oe={cols:Z,hskipBeforeAndAfter:!1,arraystretch:.5};if(oe=$n(N.parser,oe,"script"),oe.body.length>0&&oe.body[0].length>1)throw new Ft("{subarray} can contain only one column");return oe},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(N){var m={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S=$n(N.parser,m,Gn(N.envName));return{type:"leftright",mode:N.mode,body:[S],left:N.envName.indexOf("r")>-1?".":"\\{",right:N.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ji,htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(N){T.contains(["gather","gather*"],N.envName)&&ln(N);var m={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:zn(N.envName),emptySingleRow:!0,leqno:N.parser.settings.leqno};return $n(N.parser,m,"display")},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ji,htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(N){ln(N);var m={autoTag:zn(N.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:N.parser.settings.leqno};return $n(N.parser,m,"display")},htmlBuilder:yi,mathmlBuilder:ti}),_t({type:"array",names:["CD"],props:{numArgs:0},handler(N){return ln(N),Vs(N.parser)},htmlBuilder:yi,mathmlBuilder:ti}),ge("\\nonumber","\\gdef\\@eqnsw{0}"),ge("\\notag","\\nonumber"),Hi({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(N,m){throw new Ft(N.funcName+" valid only within array environment")}});var ci=bt;Hi({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(N,m){var{parser:S,funcName:D}=N,Z=m[0];if(Z.type!=="ordgroup")throw new Ft("Invalid environment name",Z);for(var oe="",Y=0;Y<Z.body.length;++Y)oe+=et(Z.body[Y],"textord").text;if(D==="\\begin"){if(!ci.hasOwnProperty(oe))throw new Ft("No such environment: "+oe,Z);var ut=ci[oe],{args:pt,optArgs:bn}=S.parseArguments("\\begin{"+oe+"}",ut),_n={mode:S.mode,envName:oe,parser:S},Qn=ut.handler(_n,pt,bn);S.expect("\\end",!1);var ki=S.nextToken,Ii=et(S.parseFunction(),"environment");if(Ii.name!==oe)throw new Ft("Mismatch: \\begin{"+oe+"} matched by \\end{"+Ii.name+"}",ki);return Qn}return{type:"environment",mode:S.mode,name:oe,nameGroup:Z}}});var Gi=(N,m)=>{var S=N.font,D=m.withFont(S);return Xo(N.body,D)},E=(N,m)=>{var S=N.font,D=m.withFont(S);return ro(N.body,D)},_={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Hi({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=As(m[0]),oe=D;return oe in _&&(oe=_[oe]),{type:"font",mode:S.mode,font:oe.slice(1),body:Z}},htmlBuilder:Gi,mathmlBuilder:E}),Hi({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(N,m)=>{var{parser:S}=N,D=m[0],Z=T.isCharacterBox(D);return{type:"mclass",mode:S.mode,mclass:Or(D),body:[{type:"font",mode:S.mode,font:"boldsymbol",body:D}],isCharacterBox:Z}}}),Hi({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(N,m)=>{var{parser:S,funcName:D,breakOnTokenText:Z}=N,{mode:oe}=S,Y=S.parseExpression(!0,Z),ut="math"+D.slice(1);return{type:"font",mode:oe,font:ut,body:{type:"ordgroup",mode:S.mode,body:Y}}},htmlBuilder:Gi,mathmlBuilder:E});var W=(N,m)=>{var S=m;return N==="display"?S=S.id>=kn.SCRIPT.id?S.text():kn.DISPLAY:N==="text"&&S.size===kn.DISPLAY.size?S=kn.TEXT:N==="script"?S=kn.SCRIPT:N==="scriptscript"&&(S=kn.SCRIPTSCRIPT),S},q=(N,m)=>{var S=W(N.size,m.style),D=S.fracNum(),Z=S.fracDen(),oe;oe=m.havingStyle(D);var Y=Xo(N.numer,oe,m);if(N.continued){var ut=8.5/m.fontMetrics().ptPerEm,pt=3.5/m.fontMetrics().ptPerEm;Y.height=Y.height<ut?ut:Y.height,Y.depth=Y.depth<pt?pt:Y.depth}oe=m.havingStyle(Z);var bn=Xo(N.denom,oe,m),_n,Qn,ki;N.hasBarLine?(N.barSize?(Qn=Ht(N.barSize,m),_n=Sn.makeLineSpan("frac-line",m,Qn)):_n=Sn.makeLineSpan("frac-line",m),Qn=_n.height,ki=_n.height):(_n=null,Qn=0,ki=m.fontMetrics().defaultRuleThickness);var Ii,$i,Nr;S.size===kn.DISPLAY.size||N.size==="display"?(Ii=m.fontMetrics().num1,Qn>0?$i=3*ki:$i=7*ki,Nr=m.fontMetrics().denom1):(Qn>0?(Ii=m.fontMetrics().num2,$i=ki):(Ii=m.fontMetrics().num3,$i=3*ki),Nr=m.fontMetrics().denom2);var Ur;if(_n){var Ao=m.fontMetrics().axisHeight;Ii-Y.depth-(Ao+.5*Qn)<$i&&(Ii+=$i-(Ii-Y.depth-(Ao+.5*Qn))),Ao-.5*Qn-(bn.height-Nr)<$i&&(Nr+=$i-(Ao-.5*Qn-(bn.height-Nr)));var Go=-(Ao-.5*Qn);Ur=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:bn,shift:Nr},{type:"elem",elem:_n,shift:Go},{type:"elem",elem:Y,shift:-Ii}]},m)}else{var Hr=Ii-Y.depth-(bn.height-Nr);Hr<$i&&(Ii+=.5*($i-Hr),Nr+=.5*($i-Hr)),Ur=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:bn,shift:Nr},{type:"elem",elem:Y,shift:-Ii}]},m)}oe=m.havingStyle(S),Ur.height*=oe.sizeMultiplier/m.sizeMultiplier,Ur.depth*=oe.sizeMultiplier/m.sizeMultiplier;var Da;S.size===kn.DISPLAY.size?Da=m.fontMetrics().delim1:S.size===kn.SCRIPTSCRIPT.size?Da=m.havingStyle(kn.SCRIPT).fontMetrics().delim2:Da=m.fontMetrics().delim2;var na,Ko;return N.leftDelim==null?na=ml(m,["mopen"]):na=ll.customSizedDelim(N.leftDelim,Da,!0,m.havingStyle(S),N.mode,["mopen"]),N.continued?Ko=Sn.makeSpan([]):N.rightDelim==null?Ko=ml(m,["mclose"]):Ko=ll.customSizedDelim(N.rightDelim,Da,!0,m.havingStyle(S),N.mode,["mclose"]),Sn.makeSpan(["mord"].concat(oe.sizingClasses(m)),[na,Sn.makeSpan(["mfrac"],[Ur]),Ko],m)},fe=(N,m)=>{var S=new Ki.MathNode("mfrac",[ro(N.numer,m),ro(N.denom,m)]);if(!N.hasBarLine)S.setAttribute("linethickness","0px");else if(N.barSize){var D=Ht(N.barSize,m);S.setAttribute("linethickness",Rt(D))}var Z=W(N.size,m.style);if(Z.size!==m.style.size){S=new Ki.MathNode("mstyle",[S]);var oe=Z.size===kn.DISPLAY.size?"true":"false";S.setAttribute("displaystyle",oe),S.setAttribute("scriptlevel","0")}if(N.leftDelim!=null||N.rightDelim!=null){var Y=[];if(N.leftDelim!=null){var ut=new Ki.MathNode("mo",[new Ki.TextNode(N.leftDelim.replace("\\",""))]);ut.setAttribute("fence","true"),Y.push(ut)}if(Y.push(S),N.rightDelim!=null){var pt=new Ki.MathNode("mo",[new Ki.TextNode(N.rightDelim.replace("\\",""))]);pt.setAttribute("fence","true"),Y.push(pt)}return Rl(Y)}return S};Hi({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0],oe=m[1],Y,ut=null,pt=null,bn="auto";switch(D){case"\\dfrac":case"\\frac":case"\\tfrac":Y=!0;break;case"\\\\atopfrac":Y=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Y=!1,ut="(",pt=")";break;case"\\\\bracefrac":Y=!1,ut="\\{",pt="\\}";break;case"\\\\brackfrac":Y=!1,ut="[",pt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(D){case"\\dfrac":case"\\dbinom":bn="display";break;case"\\tfrac":case"\\tbinom":bn="text";break}return{type:"genfrac",mode:S.mode,continued:!1,numer:Z,denom:oe,hasBarLine:Y,leftDelim:ut,rightDelim:pt,size:bn,barSize:null}},htmlBuilder:q,mathmlBuilder:fe}),Hi({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0],oe=m[1];return{type:"genfrac",mode:S.mode,continued:!0,numer:Z,denom:oe,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Hi({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(N){var{parser:m,funcName:S,token:D}=N,Z;switch(S){case"\\over":Z="\\frac";break;case"\\choose":Z="\\binom";break;case"\\atop":Z="\\\\atopfrac";break;case"\\brace":Z="\\\\bracefrac";break;case"\\brack":Z="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:m.mode,replaceWith:Z,token:D}}});var Ce=["display","text","script","scriptscript"],$e=function(m){var S=null;return m.length>0&&(S=m,S=S==="."?null:S),S};Hi({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(N,m){var{parser:S}=N,D=m[4],Z=m[5],oe=As(m[0]),Y=oe.type==="atom"&&oe.family==="open"?$e(oe.text):null,ut=As(m[1]),pt=ut.type==="atom"&&ut.family==="close"?$e(ut.text):null,bn=et(m[2],"size"),_n,Qn=null;bn.isBlank?_n=!0:(Qn=bn.value,_n=Qn.number>0);var ki="auto",Ii=m[3];if(Ii.type==="ordgroup"){if(Ii.body.length>0){var $i=et(Ii.body[0],"textord");ki=Ce[Number($i.text)]}}else Ii=et(Ii,"textord"),ki=Ce[Number(Ii.text)];return{type:"genfrac",mode:S.mode,numer:D,denom:Z,continued:!1,hasBarLine:_n,barSize:Qn,leftDelim:Y,rightDelim:pt,size:ki}},htmlBuilder:q,mathmlBuilder:fe}),Hi({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(N,m){var{parser:S,funcName:D,token:Z}=N;return{type:"infix",mode:S.mode,replaceWith:"\\\\abovefrac",size:et(m[0],"size").value,token:Z}}}),Hi({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0],oe=j(et(m[1],"infix").size),Y=m[2],ut=oe.number>0;return{type:"genfrac",mode:S.mode,numer:Z,denom:Y,continued:!1,hasBarLine:ut,barSize:oe,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:q,mathmlBuilder:fe});var it=(N,m)=>{var S=m.style,D,Z;N.type==="supsub"?(D=N.sup?Xo(N.sup,m.havingStyle(S.sup()),m):Xo(N.sub,m.havingStyle(S.sub()),m),Z=et(N.base,"horizBrace")):Z=et(N,"horizBrace");var oe=Xo(Z.base,m.havingBaseStyle(kn.DISPLAY)),Y=Ws.svgSpan(Z,m),ut;if(Z.isOver?(ut=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:oe},{type:"kern",size:.1},{type:"elem",elem:Y}]},m),ut.children[0].children[0].children[1].classes.push("svg-align")):(ut=Sn.makeVList({positionType:"bottom",positionData:oe.depth+.1+Y.height,children:[{type:"elem",elem:Y},{type:"kern",size:.1},{type:"elem",elem:oe}]},m),ut.children[0].children[0].children[0].classes.push("svg-align")),D){var pt=Sn.makeSpan(["mord",Z.isOver?"mover":"munder"],[ut],m);Z.isOver?ut=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pt},{type:"kern",size:.2},{type:"elem",elem:D}]},m):ut=Sn.makeVList({positionType:"bottom",positionData:pt.depth+.2+D.height+D.depth,children:[{type:"elem",elem:D},{type:"kern",size:.2},{type:"elem",elem:pt}]},m)}return Sn.makeSpan(["mord",Z.isOver?"mover":"munder"],[ut],m)},jt=(N,m)=>{var S=Ws.mathMLnode(N.label);return new Ki.MathNode(N.isOver?"mover":"munder",[ro(N.base,m),S])};Hi({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(N,m){var{parser:S,funcName:D}=N;return{type:"horizBrace",mode:S.mode,label:D,isOver:/^\\over/.test(D),base:m[0]}},htmlBuilder:it,mathmlBuilder:jt}),Hi({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(N,m)=>{var{parser:S}=N,D=m[1],Z=et(m[0],"url").url;return S.settings.isTrusted({command:"\\href",url:Z})?{type:"href",mode:S.mode,href:Z,body:Yo(D)}:S.formatUnsupportedCmd("\\href")},htmlBuilder:(N,m)=>{var S=Ho(N.body,m,!1);return Sn.makeAnchor(N.href,[],S,m)},mathmlBuilder:(N,m)=>{var S=aa(N.body,m);return S instanceof as||(S=new as("mrow",[S])),S.setAttribute("href",N.href),S}}),Hi({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(N,m)=>{var{parser:S}=N,D=et(m[0],"url").url;if(!S.settings.isTrusted({command:"\\url",url:D}))return S.formatUnsupportedCmd("\\url");for(var Z=[],oe=0;oe<D.length;oe++){var Y=D[oe];Y==="~"&&(Y="\\textasciitilde"),Z.push({type:"textord",mode:"text",text:Y})}var ut={type:"text",mode:S.mode,font:"\\texttt",body:Z};return{type:"href",mode:S.mode,href:D,body:Yo(ut)}}}),Hi({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(N,m){var{parser:S}=N;return{type:"hbox",mode:S.mode,body:Yo(m[0])}},htmlBuilder(N,m){var S=Ho(N.body,m,!1);return Sn.makeFragment(S)},mathmlBuilder(N,m){return new Ki.MathNode("mrow",fa(N.body,m))}}),Hi({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(N,m)=>{var{parser:S,funcName:D,token:Z}=N,oe=et(m[0],"raw").string,Y=m[1];S.settings.strict&&S.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var ut,pt={};switch(D){case"\\htmlClass":pt.class=oe,ut={command:"\\htmlClass",class:oe};break;case"\\htmlId":pt.id=oe,ut={command:"\\htmlId",id:oe};break;case"\\htmlStyle":pt.style=oe,ut={command:"\\htmlStyle",style:oe};break;case"\\htmlData":{for(var bn=oe.split(","),_n=0;_n<bn.length;_n++){var Qn=bn[_n].split("=");if(Qn.length!==2)throw new Ft("Error parsing key-value for \\htmlData");pt["data-"+Qn[0].trim()]=Qn[1].trim()}ut={command:"\\htmlData",attributes:pt};break}default:throw new Error("Unrecognized html command")}return S.settings.isTrusted(ut)?{type:"html",mode:S.mode,attributes:pt,body:Yo(Y)}:S.formatUnsupportedCmd(D)},htmlBuilder:(N,m)=>{var S=Ho(N.body,m,!1),D=["enclosing"];N.attributes.class&&D.push(...N.attributes.class.trim().split(/\s+/));var Z=Sn.makeSpan(D,S,m);for(var oe in N.attributes)oe!=="class"&&N.attributes.hasOwnProperty(oe)&&Z.setAttribute(oe,N.attributes[oe]);return Z},mathmlBuilder:(N,m)=>aa(N.body,m)}),Hi({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(N,m)=>{var{parser:S}=N;return{type:"htmlmathml",mode:S.mode,html:Yo(m[0]),mathml:Yo(m[1])}},htmlBuilder:(N,m)=>{var S=Ho(N.html,m,!1);return Sn.makeFragment(S)},mathmlBuilder:(N,m)=>aa(N.mathml,m)});var Lt=function(m){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(m))return{number:+m,unit:"bp"};var S=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m);if(!S)throw new Ft("Invalid size: '"+m+"' in \\includegraphics");var D={number:+(S[1]+S[2]),unit:S[3]};if(!Ke(D))throw new Ft("Invalid unit: '"+D.unit+"' in \\includegraphics.");return D};Hi({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(N,m,S)=>{var{parser:D}=N,Z={number:0,unit:"em"},oe={number:.9,unit:"em"},Y={number:0,unit:"em"},ut="";if(S[0])for(var pt=et(S[0],"raw").string,bn=pt.split(","),_n=0;_n<bn.length;_n++){var Qn=bn[_n].split("=");if(Qn.length===2){var ki=Qn[1].trim();switch(Qn[0].trim()){case"alt":ut=ki;break;case"width":Z=Lt(ki);break;case"height":oe=Lt(ki);break;case"totalheight":Y=Lt(ki);break;default:throw new Ft("Invalid key: '"+Qn[0]+"' in \\includegraphics.")}}}var Ii=et(m[0],"url").url;return ut===""&&(ut=Ii,ut=ut.replace(/^.*[\\/]/,""),ut=ut.substring(0,ut.lastIndexOf("."))),D.settings.isTrusted({command:"\\includegraphics",url:Ii})?{type:"includegraphics",mode:D.mode,alt:ut,width:Z,height:oe,totalheight:Y,src:Ii}:D.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(N,m)=>{var S=Ht(N.height,m),D=0;N.totalheight.number>0&&(D=Ht(N.totalheight,m)-S);var Z=0;N.width.number>0&&(Z=Ht(N.width,m));var oe={height:Rt(S+D)};Z>0&&(oe.width=Rt(Z)),D>0&&(oe.verticalAlign=Rt(-D));var Y=new Jt(N.src,N.alt,oe);return Y.height=S,Y.depth=D,Y},mathmlBuilder:(N,m)=>{var S=new Ki.MathNode("mglyph",[]);S.setAttribute("alt",N.alt);var D=Ht(N.height,m),Z=0;if(N.totalheight.number>0&&(Z=Ht(N.totalheight,m)-D,S.setAttribute("valign",Rt(-Z))),S.setAttribute("height",Rt(D+Z)),N.width.number>0){var oe=Ht(N.width,m);S.setAttribute("width",Rt(oe))}return S.setAttribute("src",N.src),S}}),Hi({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(N,m){var{parser:S,funcName:D}=N,Z=et(m[0],"size");if(S.settings.strict){var oe=D[1]==="m",Y=Z.value.unit==="mu";oe?(Y||S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" supports only mu units, "+("not "+Z.value.unit+" units")),S.mode!=="math"&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" works only in math mode")):Y&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" doesn't support mu units")}return{type:"kern",mode:S.mode,dimension:Z.value}},htmlBuilder(N,m){return Sn.makeGlue(N.dimension,m)},mathmlBuilder(N,m){var S=Ht(N.dimension,m);return new Ki.SpaceNode(S)}}),Hi({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0];return{type:"lap",mode:S.mode,alignment:D.slice(5),body:Z}},htmlBuilder:(N,m)=>{var S;N.alignment==="clap"?(S=Sn.makeSpan([],[Xo(N.body,m)]),S=Sn.makeSpan(["inner"],[S],m)):S=Sn.makeSpan(["inner"],[Xo(N.body,m)]);var D=Sn.makeSpan(["fix"],[]),Z=Sn.makeSpan([N.alignment],[S,D],m),oe=Sn.makeSpan(["strut"]);return oe.style.height=Rt(Z.height+Z.depth),Z.depth&&(oe.style.verticalAlign=Rt(-Z.depth)),Z.children.unshift(oe),Z=Sn.makeSpan(["thinbox"],[Z],m),Sn.makeSpan(["mord","vbox"],[Z],m)},mathmlBuilder:(N,m)=>{var S=new Ki.MathNode("mpadded",[ro(N.body,m)]);if(N.alignment!=="rlap"){var D=N.alignment==="llap"?"-1":"-0.5";S.setAttribute("lspace",D+"width")}return S.setAttribute("width","0px"),S}}),Hi({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(N,m){var{funcName:S,parser:D}=N,Z=D.mode;D.switchMode("math");var oe=S==="\\("?"\\)":"$",Y=D.parseExpression(!1,oe);return D.expect(oe),D.switchMode(Z),{type:"styling",mode:D.mode,style:"text",body:Y}}}),Hi({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(N,m){throw new Ft("Mismatched "+N.funcName)}});var dt=(N,m)=>{switch(m.style.size){case kn.DISPLAY.size:return N.display;case kn.TEXT.size:return N.text;case kn.SCRIPT.size:return N.script;case kn.SCRIPTSCRIPT.size:return N.scriptscript;default:return N.text}};Hi({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(N,m)=>{var{parser:S}=N;return{type:"mathchoice",mode:S.mode,display:Yo(m[0]),text:Yo(m[1]),script:Yo(m[2]),scriptscript:Yo(m[3])}},htmlBuilder:(N,m)=>{var S=dt(N,m),D=Ho(S,m,!1);return Sn.makeFragment(D)},mathmlBuilder:(N,m)=>{var S=dt(N,m);return aa(S,m)}});var Yt=(N,m,S,D,Z,oe,Y)=>{N=Sn.makeSpan([],[N]);var ut=S&&T.isCharacterBox(S),pt,bn;if(m){var _n=Xo(m,D.havingStyle(Z.sup()),D);bn={elem:_n,kern:Math.max(D.fontMetrics().bigOpSpacing1,D.fontMetrics().bigOpSpacing3-_n.depth)}}if(S){var Qn=Xo(S,D.havingStyle(Z.sub()),D);pt={elem:Qn,kern:Math.max(D.fontMetrics().bigOpSpacing2,D.fontMetrics().bigOpSpacing4-Qn.height)}}var ki;if(bn&&pt){var Ii=D.fontMetrics().bigOpSpacing5+pt.elem.height+pt.elem.depth+pt.kern+N.depth+Y;ki=Sn.makeVList({positionType:"bottom",positionData:Ii,children:[{type:"kern",size:D.fontMetrics().bigOpSpacing5},{type:"elem",elem:pt.elem,marginLeft:Rt(-oe)},{type:"kern",size:pt.kern},{type:"elem",elem:N},{type:"kern",size:bn.kern},{type:"elem",elem:bn.elem,marginLeft:Rt(oe)},{type:"kern",size:D.fontMetrics().bigOpSpacing5}]},D)}else if(pt){var $i=N.height-Y;ki=Sn.makeVList({positionType:"top",positionData:$i,children:[{type:"kern",size:D.fontMetrics().bigOpSpacing5},{type:"elem",elem:pt.elem,marginLeft:Rt(-oe)},{type:"kern",size:pt.kern},{type:"elem",elem:N}]},D)}else if(bn){var Nr=N.depth+Y;ki=Sn.makeVList({positionType:"bottom",positionData:Nr,children:[{type:"elem",elem:N},{type:"kern",size:bn.kern},{type:"elem",elem:bn.elem,marginLeft:Rt(oe)},{type:"kern",size:D.fontMetrics().bigOpSpacing5}]},D)}else return N;var Ur=[ki];if(pt&&oe!==0&&!ut){var Hr=Sn.makeSpan(["mspace"],[],D);Hr.style.marginRight=Rt(oe),Ur.unshift(Hr)}return Sn.makeSpan(["mop","op-limits"],Ur,D)},qt=["\\smallint"],zt=(N,m)=>{var S,D,Z=!1,oe;N.type==="supsub"?(S=N.sup,D=N.sub,oe=et(N.base,"op"),Z=!0):oe=et(N,"op");var Y=m.style,ut=!1;Y.size===kn.DISPLAY.size&&oe.symbol&&!T.contains(qt,oe.name)&&(ut=!0);var pt;if(oe.symbol){var bn=ut?"Size2-Regular":"Size1-Regular",_n="";if((oe.name==="\\oiint"||oe.name==="\\oiiint")&&(_n=oe.name.slice(1),oe.name=_n==="oiint"?"\\iint":"\\iiint"),pt=Sn.makeSymbol(oe.name,bn,"math",m,["mop","op-symbol",ut?"large-op":"small-op"]),_n.length>0){var Qn=pt.italic,ki=Sn.staticSvg(_n+"Size"+(ut?"2":"1"),m);pt=Sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pt,shift:0},{type:"elem",elem:ki,shift:ut?.08:0}]},m),oe.name="\\"+_n,pt.classes.unshift("mop"),pt.italic=Qn}}else if(oe.body){var Ii=Ho(oe.body,m,!0);Ii.length===1&&Ii[0]instanceof fn?(pt=Ii[0],pt.classes[0]="mop"):pt=Sn.makeSpan(["mop"],Ii,m)}else{for(var $i=[],Nr=1;Nr<oe.name.length;Nr++)$i.push(Sn.mathsym(oe.name[Nr],oe.mode,m));pt=Sn.makeSpan(["mop"],$i,m)}var Ur=0,Hr=0;return(pt instanceof fn||oe.name==="\\oiint"||oe.name==="\\oiiint")&&!oe.suppressBaseShift&&(Ur=(pt.height-pt.depth)/2-m.fontMetrics().axisHeight,Hr=pt.italic),Z?Yt(pt,S,D,m,Y,Hr,Ur):(Ur&&(pt.style.position="relative",pt.style.top=Rt(Ur)),pt)},Si=(N,m)=>{var S;if(N.symbol)S=new as("mo",[ks(N.name,N.mode)]),T.contains(qt,N.name)&&S.setAttribute("largeop","false");else if(N.body)S=new as("mo",fa(N.body,m));else{S=new as("mi",[new Fa(N.name.slice(1))]);var D=new as("mo",[ks("\u2061","text")]);N.parentIsSupSub?S=new as("mrow",[S,D]):S=Ll([S,D])}return S},li={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Hi({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:(N,m)=>{var{parser:S,funcName:D}=N,Z=D;return Z.length===1&&(Z=li[Z]),{type:"op",mode:S.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Z}},htmlBuilder:zt,mathmlBuilder:Si}),Hi({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(N,m)=>{var{parser:S}=N,D=m[0];return{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Yo(D)}},htmlBuilder:zt,mathmlBuilder:Si});var lr={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Hi({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(N){var{parser:m,funcName:S}=N;return{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:zt,mathmlBuilder:Si}),Hi({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(N){var{parser:m,funcName:S}=N;return{type:"op",mode:m.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:zt,mathmlBuilder:Si}),Hi({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(N){var{parser:m,funcName:S}=N,D=S;return D.length===1&&(D=lr[D]),{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:zt,mathmlBuilder:Si});var Ni=(N,m)=>{var S,D,Z=!1,oe;N.type==="supsub"?(S=N.sup,D=N.sub,oe=et(N.base,"operatorname"),Z=!0):oe=et(N,"operatorname");var Y;if(oe.body.length>0){for(var ut=oe.body.map(Qn=>{var ki=Qn.text;return typeof ki=="string"?{type:"textord",mode:Qn.mode,text:ki}:Qn}),pt=Ho(ut,m.withFont("mathrm"),!0),bn=0;bn<pt.length;bn++){var _n=pt[bn];_n instanceof fn&&(_n.text=_n.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Y=Sn.makeSpan(["mop"],pt,m)}else Y=Sn.makeSpan(["mop"],[],m);return Z?Yt(Y,S,D,m,m.style,0,0):Y},Mr=(N,m)=>{for(var S=fa(N.body,m.withFont("mathrm")),D=!0,Z=0;Z<S.length;Z++){var oe=S[Z];if(!(oe instanceof Ki.SpaceNode))if(oe instanceof Ki.MathNode)switch(oe.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Y=oe.children[0];oe.children.length===1&&Y instanceof Ki.TextNode?Y.text=Y.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):D=!1;break}default:D=!1}else D=!1}if(D){var ut=S.map(_n=>_n.toText()).join("");S=[new Ki.TextNode(ut)]}var pt=new Ki.MathNode("mi",S);pt.setAttribute("mathvariant","normal");var bn=new Ki.MathNode("mo",[ks("\u2061","text")]);return N.parentIsSupSub?new Ki.MathNode("mrow",[pt,bn]):Ki.newDocumentFragment([pt,bn])};Hi({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(N,m)=>{var{parser:S,funcName:D}=N,Z=m[0];return{type:"operatorname",mode:S.mode,body:Yo(Z),alwaysHandleSupSub:D==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ni,mathmlBuilder:Mr}),ge("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ta({type:"ordgroup",htmlBuilder(N,m){return N.semisimple?Sn.makeFragment(Ho(N.body,m,!1)):Sn.makeSpan(["mord"],Ho(N.body,m,!0),m)},mathmlBuilder(N,m){return aa(N.body,m,!0)}}),Hi({type:"overline",names:["\\overline"],props:{numArgs:1},handler(N,m){var{parser:S}=N,D=m[0];return{type:"overline",mode:S.mode,body:D}},htmlBuilder(N,m){var S=Xo(N.body,m.havingCrampedStyle()),D=Sn.makeLineSpan("overline-line",m),Z=m.fontMetrics().defaultRuleThickness,oe=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:3*Z},{type:"elem",elem:D},{type:"kern",size:Z}]},m);return Sn.makeSpan(["mord","overline"],[oe],m)},mathmlBuilder(N,m){var S=new Ki.MathNode("mo",[new Ki.TextNode("\u203E")]);S.setAttribute("stretchy","true");var D=new Ki.MathNode("mover",[ro(N.body,m),S]);return D.setAttribute("accent","true"),D}}),Hi({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(N,m)=>{var{parser:S}=N,D=m[0];return{type:"phantom",mode:S.mode,body:Yo(D)}},htmlBuilder:(N,m)=>{var S=Ho(N.body,m.withPhantom(),!1);return Sn.makeFragment(S)},mathmlBuilder:(N,m)=>{var S=fa(N.body,m);return new Ki.MathNode("mphantom",S)}}),Hi({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(N,m)=>{var{parser:S}=N,D=m[0];return{type:"hphantom",mode:S.mode,body:D}},htmlBuilder:(N,m)=>{var S=Sn.makeSpan([],[Xo(N.body,m.withPhantom())]);if(S.height=0,S.depth=0,S.children)for(var D=0;D<S.children.length;D++)S.children[D].height=0,S.children[D].depth=0;return S=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m),Sn.makeSpan(["mord"],[S],m)},mathmlBuilder:(N,m)=>{var S=fa(Yo(N.body),m),D=new Ki.MathNode("mphantom",S),Z=new Ki.MathNode("mpadded",[D]);return Z.setAttribute("height","0px"),Z.setAttribute("depth","0px"),Z}}),Hi({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(N,m)=>{var{parser:S}=N,D=m[0];return{type:"vphantom",mode:S.mode,body:D}},htmlBuilder:(N,m)=>{var S=Sn.makeSpan(["inner"],[Xo(N.body,m.withPhantom())]),D=Sn.makeSpan(["fix"],[]);return Sn.makeSpan(["mord","rlap"],[S,D],m)},mathmlBuilder:(N,m)=>{var S=fa(Yo(N.body),m),D=new Ki.MathNode("mphantom",S),Z=new Ki.MathNode("mpadded",[D]);return Z.setAttribute("width","0px"),Z}}),Hi({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(N,m){var{parser:S}=N,D=et(m[0],"size").value,Z=m[1];return{type:"raisebox",mode:S.mode,dy:D,body:Z}},htmlBuilder(N,m){var S=Xo(N.body,m),D=Ht(N.dy,m);return Sn.makeVList({positionType:"shift",positionData:-D,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(N,m){var S=new Ki.MathNode("mpadded",[ro(N.body,m)]),D=N.dy.number+N.dy.unit;return S.setAttribute("voffset",D),S}}),Hi({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(N){var{parser:m}=N;return{type:"internal",mode:m.mode}}}),Hi({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(N,m,S){var{parser:D}=N,Z=S[0],oe=et(m[0],"size"),Y=et(m[1],"size");return{type:"rule",mode:D.mode,shift:Z&&et(Z,"size").value,width:oe.value,height:Y.value}},htmlBuilder(N,m){var S=Sn.makeSpan(["mord","rule"],[],m),D=Ht(N.width,m),Z=Ht(N.height,m),oe=N.shift?Ht(N.shift,m):0;return S.style.borderRightWidth=Rt(D),S.style.borderTopWidth=Rt(Z),S.style.bottom=Rt(oe),S.width=D,S.height=Z+oe,S.depth=-oe,S.maxFontSize=Z*1.125*m.sizeMultiplier,S},mathmlBuilder(N,m){var S=Ht(N.width,m),D=Ht(N.height,m),Z=N.shift?Ht(N.shift,m):0,oe=m.color&&m.getColor()||"black",Y=new Ki.MathNode("mspace");Y.setAttribute("mathbackground",oe),Y.setAttribute("width",Rt(S)),Y.setAttribute("height",Rt(D));var ut=new Ki.MathNode("mpadded",[Y]);return Z>=0?ut.setAttribute("height",Rt(Z)):(ut.setAttribute("height",Rt(Z)),ut.setAttribute("depth",Rt(-Z))),ut.setAttribute("voffset",Rt(Z)),ut}});function Zi(N,m,S){for(var D=Ho(N,m,!1),Z=m.sizeMultiplier/S.sizeMultiplier,oe=0;oe<D.length;oe++){var Y=D[oe].classes.indexOf("sizing");Y<0?Array.prototype.push.apply(D[oe].classes,m.sizingClasses(S)):D[oe].classes[Y+1]==="reset-size"+m.size&&(D[oe].classes[Y+1]="reset-size"+S.size),D[oe].height*=Z,D[oe].depth*=Z}return Sn.makeFragment(D)}var oo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],uo=(N,m)=>{var S=m.havingSize(N.size);return Zi(N.body,S,m)};Hi({type:"sizing",names:oo,props:{numArgs:0,allowedInText:!0},handler:(N,m)=>{var{breakOnTokenText:S,funcName:D,parser:Z}=N,oe=Z.parseExpression(!1,S);return{type:"sizing",mode:Z.mode,size:oo.indexOf(D)+1,body:oe}},htmlBuilder:uo,mathmlBuilder:(N,m)=>{var S=m.havingSize(N.size),D=fa(N.body,S),Z=new Ki.MathNode("mstyle",D);return Z.setAttribute("mathsize",Rt(S.sizeMultiplier)),Z}}),Hi({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(N,m,S)=>{var{parser:D}=N,Z=!1,oe=!1,Y=S[0]&&et(S[0],"ordgroup");if(Y)for(var ut="",pt=0;pt<Y.body.length;++pt){var bn=Y.body[pt];if(ut=bn.text,ut==="t")Z=!0;else if(ut==="b")oe=!0;else{Z=!1,oe=!1;break}}else Z=!0,oe=!0;var _n=m[0];return{type:"smash",mode:D.mode,body:_n,smashHeight:Z,smashDepth:oe}},htmlBuilder:(N,m)=>{var S=Sn.makeSpan([],[Xo(N.body,m)]);if(!N.smashHeight&&!N.smashDepth)return S;if(N.smashHeight&&(S.height=0,S.children))for(var D=0;D<S.children.length;D++)S.children[D].height=0;if(N.smashDepth&&(S.depth=0,S.children))for(var Z=0;Z<S.children.length;Z++)S.children[Z].depth=0;var oe=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m);return Sn.makeSpan(["mord"],[oe],m)},mathmlBuilder:(N,m)=>{var S=new Ki.MathNode("mpadded",[ro(N.body,m)]);return N.smashHeight&&S.setAttribute("height","0px"),N.smashDepth&&S.setAttribute("depth","0px"),S}}),Hi({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(N,m,S){var{parser:D}=N,Z=S[0],oe=m[0];return{type:"sqrt",mode:D.mode,body:oe,index:Z}},htmlBuilder(N,m){var S=Xo(N.body,m.havingCrampedStyle());S.height===0&&(S.height=m.fontMetrics().xHeight),S=Sn.wrapFragment(S,m);var D=m.fontMetrics(),Z=D.defaultRuleThickness,oe=Z;m.style.id<kn.TEXT.id&&(oe=m.fontMetrics().xHeight);var Y=Z+oe/4,ut=S.height+S.depth+Y+Z,{span:pt,ruleWidth:bn,advanceWidth:_n}=ll.sqrtImage(ut,m),Qn=pt.height-bn;Qn>S.height+S.depth+Y&&(Y=(Y+Qn-S.height-S.depth)/2);var ki=pt.height-S.height-Y-bn;S.style.paddingLeft=Rt(_n);var Ii=Sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S,wrapperClasses:["svg-align"]},{type:"kern",size:-(S.height+ki)},{type:"elem",elem:pt},{type:"kern",size:bn}]},m);if(N.index){var $i=m.havingStyle(kn.SCRIPTSCRIPT),Nr=Xo(N.index,$i,m),Ur=.6*(Ii.height-Ii.depth),Hr=Sn.makeVList({positionType:"shift",positionData:-Ur,children:[{type:"elem",elem:Nr}]},m),Ao=Sn.makeSpan(["root"],[Hr]);return Sn.makeSpan(["mord","sqrt"],[Ao,Ii],m)}else return Sn.makeSpan(["mord","sqrt"],[Ii],m)},mathmlBuilder(N,m){var{body:S,index:D}=N;return D?new Ki.MathNode("mroot",[ro(S,m),ro(D,m)]):new Ki.MathNode("msqrt",[ro(S,m)])}});var ii={display:kn.DISPLAY,text:kn.TEXT,script:kn.SCRIPT,scriptscript:kn.SCRIPTSCRIPT};Hi({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(N,m){var{breakOnTokenText:S,funcName:D,parser:Z}=N,oe=Z.parseExpression(!0,S),Y=D.slice(1,D.length-5);return{type:"styling",mode:Z.mode,style:Y,body:oe}},htmlBuilder(N,m){var S=ii[N.style],D=m.havingStyle(S).withFont("");return Zi(N.body,D,m)},mathmlBuilder(N,m){var S=ii[N.style],D=m.havingStyle(S),Z=fa(N.body,D),oe=new Ki.MathNode("mstyle",Z),Y={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ut=Y[N.style];return oe.setAttribute("scriptlevel",ut[0]),oe.setAttribute("displaystyle",ut[1]),oe}});var qi=function(m,S){var D=m.base;if(D)if(D.type==="op"){var Z=D.limits&&(S.style.size===kn.DISPLAY.size||D.alwaysHandleSupSub);return Z?zt:null}else if(D.type==="operatorname"){var oe=D.alwaysHandleSupSub&&(S.style.size===kn.DISPLAY.size||D.limits);return oe?Ni:null}else{if(D.type==="accent")return T.isCharacterBox(D.base)?Yu:null;if(D.type==="horizBrace"){var Y=!m.sub;return Y===D.isOver?it:null}else return null}else return null};ta({type:"supsub",htmlBuilder(N,m){var S=qi(N,m);if(S)return S(N,m);var{base:D,sup:Z,sub:oe}=N,Y=Xo(D,m),ut,pt,bn=m.fontMetrics(),_n=0,Qn=0,ki=D&&T.isCharacterBox(D);if(Z){var Ii=m.havingStyle(m.style.sup());ut=Xo(Z,Ii,m),ki||(_n=Y.height-Ii.fontMetrics().supDrop*Ii.sizeMultiplier/m.sizeMultiplier)}if(oe){var $i=m.havingStyle(m.style.sub());pt=Xo(oe,$i,m),ki||(Qn=Y.depth+$i.fontMetrics().subDrop*$i.sizeMultiplier/m.sizeMultiplier)}var Nr;m.style===kn.DISPLAY?Nr=bn.sup1:m.style.cramped?Nr=bn.sup3:Nr=bn.sup2;var Ur=m.sizeMultiplier,Hr=Rt(.5/bn.ptPerEm/Ur),Ao=null;if(pt){var Go=N.base&&N.base.type==="op"&&N.base.name&&(N.base.name==="\\oiint"||N.base.name==="\\oiiint");(Y instanceof fn||Go)&&(Ao=Rt(-Y.italic))}var Da;if(ut&&pt){_n=Math.max(_n,Nr,ut.depth+.25*bn.xHeight),Qn=Math.max(Qn,bn.sub2);var na=bn.defaultRuleThickness,Ko=4*na;if(_n-ut.depth-(pt.height-Qn)<Ko){Qn=Ko-(_n-ut.depth)+pt.height;var pa=.8*bn.xHeight-(_n-ut.depth);pa>0&&(_n+=pa,Qn-=pa)}var hs=[{type:"elem",elem:pt,shift:Qn,marginRight:Hr,marginLeft:Ao},{type:"elem",elem:ut,shift:-_n,marginRight:Hr}];Da=Sn.makeVList({positionType:"individualShift",children:hs},m)}else if(pt){Qn=Math.max(Qn,bn.sub1,pt.height-.8*bn.xHeight);var ha=[{type:"elem",elem:pt,marginLeft:Ao,marginRight:Hr}];Da=Sn.makeVList({positionType:"shift",positionData:Qn,children:ha},m)}else if(ut)_n=Math.max(_n,Nr,ut.depth+.25*bn.xHeight),Da=Sn.makeVList({positionType:"shift",positionData:-_n,children:[{type:"elem",elem:ut,marginRight:Hr}]},m);else throw new Error("supsub must have either sup or sub.");var bl=Oa(Y,"right")||"mord";return Sn.makeSpan([bl],[Y,Sn.makeSpan(["msupsub"],[Da])],m)},mathmlBuilder(N,m){var S=!1,D,Z;N.base&&N.base.type==="horizBrace"&&(Z=!!N.sup,Z===N.base.isOver&&(S=!0,D=N.base.isOver)),N.base&&(N.base.type==="op"||N.base.type==="operatorname")&&(N.base.parentIsSupSub=!0);var oe=[ro(N.base,m)];N.sub&&oe.push(ro(N.sub,m)),N.sup&&oe.push(ro(N.sup,m));var Y;if(S)Y=D?"mover":"munder";else if(N.sub)if(N.sup){var bn=N.base;bn&&bn.type==="op"&&bn.limits&&m.style===kn.DISPLAY||bn&&bn.type==="operatorname"&&bn.alwaysHandleSupSub&&(m.style===kn.DISPLAY||bn.limits)?Y="munderover":Y="msubsup"}else{var pt=N.base;pt&&pt.type==="op"&&pt.limits&&(m.style===kn.DISPLAY||pt.alwaysHandleSupSub)||pt&&pt.type==="operatorname"&&pt.alwaysHandleSupSub&&(pt.limits||m.style===kn.DISPLAY)?Y="munder":Y="msub"}else{var ut=N.base;ut&&ut.type==="op"&&ut.limits&&(m.style===kn.DISPLAY||ut.alwaysHandleSupSub)||ut&&ut.type==="operatorname"&&ut.alwaysHandleSupSub&&(ut.limits||m.style===kn.DISPLAY)?Y="mover":Y="msup"}return new Ki.MathNode(Y,oe)}}),ta({type:"atom",htmlBuilder(N,m){return Sn.mathsym(N.text,N.mode,m,["m"+N.family])},mathmlBuilder(N,m){var S=new Ki.MathNode("mo",[ks(N.text,N.mode)]);if(N.family==="bin"){var D=Vr(N,m);D==="bold-italic"&&S.setAttribute("mathvariant",D)}else N.family==="punct"?S.setAttribute("separator","true"):(N.family==="open"||N.family==="close")&&S.setAttribute("stretchy","false");return S}});var Qr={mi:"italic",mn:"normal",mtext:"normal"};ta({type:"mathord",htmlBuilder(N,m){return Sn.makeOrd(N,m,"mathord")},mathmlBuilder(N,m){var S=new Ki.MathNode("mi",[ks(N.text,N.mode,m)]),D=Vr(N,m)||"italic";return D!==Qr[S.type]&&S.setAttribute("mathvariant",D),S}}),ta({type:"textord",htmlBuilder(N,m){return Sn.makeOrd(N,m,"textord")},mathmlBuilder(N,m){var S=ks(N.text,N.mode,m),D=Vr(N,m)||"normal",Z;return N.mode==="text"?Z=new Ki.MathNode("mtext",[S]):/[0-9]/.test(N.text)?Z=new Ki.MathNode("mn",[S]):N.text==="\\prime"?Z=new Ki.MathNode("mo",[S]):Z=new Ki.MathNode("mi",[S]),D!==Qr[Z.type]&&Z.setAttribute("mathvariant",D),Z}});var qr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},no={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ta({type:"spacing",htmlBuilder(N,m){if(no.hasOwnProperty(N.text)){var S=no[N.text].className||"";if(N.mode==="text"){var D=Sn.makeOrd(N,m,"textord");return D.classes.push(S),D}else return Sn.makeSpan(["mspace",S],[Sn.mathsym(N.text,N.mode,m)],m)}else{if(qr.hasOwnProperty(N.text))return Sn.makeSpan(["mspace",qr[N.text]],[],m);throw new Ft('Unknown type of space "'+N.text+'"')}},mathmlBuilder(N,m){var S;if(no.hasOwnProperty(N.text))S=new Ki.MathNode("mtext",[new Ki.TextNode("\xA0")]);else{if(qr.hasOwnProperty(N.text))return new Ki.MathNode("mspace");throw new Ft('Unknown type of space "'+N.text+'"')}return S}});var Mo=()=>{var N=new Ki.MathNode("mtd",[]);return N.setAttribute("width","50%"),N};ta({type:"tag",mathmlBuilder(N,m){var S=new Ki.MathNode("mtable",[new Ki.MathNode("mtr",[Mo(),new Ki.MathNode("mtd",[aa(N.body,m)]),Mo(),new Ki.MathNode("mtd",[aa(N.tag,m)])])]);return S.setAttribute("width","100%"),S}});var ir={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Mi={"\\textbf":"textbf","\\textmd":"textmd"},Yi={"\\textit":"textit","\\textup":"textup"},Pi=(N,m)=>{var S=N.font;if(S){if(ir[S])return m.withTextFontFamily(ir[S]);if(Mi[S])return m.withTextFontWeight(Mi[S]);if(S==="\\emph")return m.fontShape==="textit"?m.withTextFontShape("textup"):m.withTextFontShape("textit")}else return m;return m.withTextFontShape(Yi[S])};Hi({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(N,m){var{parser:S,funcName:D}=N,Z=m[0];return{type:"text",mode:S.mode,body:Yo(Z),font:D}},htmlBuilder(N,m){var S=Pi(N,m),D=Ho(N.body,S,!0);return Sn.makeSpan(["mord","text"],D,S)},mathmlBuilder(N,m){var S=Pi(N,m);return aa(N.body,S)}}),Hi({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(N,m){var{parser:S}=N;return{type:"underline",mode:S.mode,body:m[0]}},htmlBuilder(N,m){var S=Xo(N.body,m),D=Sn.makeLineSpan("underline-line",m),Z=m.fontMetrics().defaultRuleThickness,oe=Sn.makeVList({positionType:"top",positionData:S.height,children:[{type:"kern",size:Z},{type:"elem",elem:D},{type:"kern",size:3*Z},{type:"elem",elem:S}]},m);return Sn.makeSpan(["mord","underline"],[oe],m)},mathmlBuilder(N,m){var S=new Ki.MathNode("mo",[new Ki.TextNode("\u203E")]);S.setAttribute("stretchy","true");var D=new Ki.MathNode("munder",[ro(N.body,m),S]);return D.setAttribute("accentunder","true"),D}}),Hi({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(N,m){var{parser:S}=N;return{type:"vcenter",mode:S.mode,body:m[0]}},htmlBuilder(N,m){var S=Xo(N.body,m),D=m.fontMetrics().axisHeight,Z=.5*(S.height-D-(S.depth+D));return Sn.makeVList({positionType:"shift",positionData:Z,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(N,m){return new Ki.MathNode("mpadded",[ro(N.body,m)],["vcenter"])}}),Hi({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(N,m,S){throw new Ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(N,m){for(var S=Zr(N),D=[],Z=m.havingStyle(m.style.text()),oe=0;oe<S.length;oe++){var Y=S[oe];Y==="~"&&(Y="\\textasciitilde"),D.push(Sn.makeSymbol(Y,"Typewriter-Regular",N.mode,Z,["mord","texttt"]))}return Sn.makeSpan(["mord","text"].concat(Z.sizingClasses(m)),Sn.tryCombineChars(D),Z)},mathmlBuilder(N,m){var S=new Ki.TextNode(Zr(N)),D=new Ki.MathNode("mtext",[S]);return D.setAttribute("mathvariant","monospace"),D}});var Zr=N=>N.body.replace(/ /g,N.star?"\u2423":"\xA0"),Xi=Rs,Br=`[ \r
|
|
|
]`,co="\\\\[a-zA-Z@]+",rn="\\\\[^\uD800-\uDFFF]",va="("+co+")"+Br+"*",ya=`\\\\(
|
|
|
|[ \r ]+
|
|
|
?)[ \r ]*`,En="[\u0300-\u036F]",go=new RegExp(En+"+$"),_a="("+Br+"+)|"+(ya+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(En+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(En+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+va)+("|"+rn+")");class ua{constructor(m,S){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=m,this.settings=S,this.tokenRegex=new RegExp(_a,"g"),this.catcodes={"%":14,"~":13}}setCatcode(m,S){this.catcodes[m]=S}lex(){var m=this.input,S=this.tokenRegex.lastIndex;if(S===m.length)return new un("EOF",new St(this,S,S));var D=this.tokenRegex.exec(m);if(D===null||D.index!==S)throw new Ft("Unexpected character: '"+m[S]+"'",new un(m[S],new St(this,S,S+1)));var Z=D[6]||D[3]||(D[2]?"\\ ":" ");if(this.catcodes[Z]===14){var oe=m.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return oe===-1?(this.tokenRegex.lastIndex=m.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=oe+1,this.lex()}return new un(Z,new St(this,S,this.tokenRegex.lastIndex))}}class za{constructor(m,S){m===void 0&&(m={}),S===void 0&&(S={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=S,this.builtins=m,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ft("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var m=this.undefStack.pop();for(var S in m)m.hasOwnProperty(S)&&(m[S]==null?delete this.current[S]:this.current[S]=m[S])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(m){return this.current.hasOwnProperty(m)||this.builtins.hasOwnProperty(m)}get(m){return this.current.hasOwnProperty(m)?this.current[m]:this.builtins[m]}set(m,S,D){if(D===void 0&&(D=!1),D){for(var Z=0;Z<this.undefStack.length;Z++)delete this.undefStack[Z][m];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][m]=S)}else{var oe=this.undefStack[this.undefStack.length-1];oe&&!oe.hasOwnProperty(m)&&(oe[m]=this.current[m])}S==null?delete this.current[m]:this.current[m]=S}}var $a=Ot;ge("\\noexpand",function(N){var m=N.popToken();return N.isExpandable(m.text)&&(m.noexpand=!0,m.treatAsRelax=!0),{tokens:[m],numArgs:0}}),ge("\\expandafter",function(N){var m=N.popToken();return N.expandOnce(!0),{tokens:[m],numArgs:0}}),ge("\\@firstoftwo",function(N){var m=N.consumeArgs(2);return{tokens:m[0],numArgs:0}}),ge("\\@secondoftwo",function(N){var m=N.consumeArgs(2);return{tokens:m[1],numArgs:0}}),ge("\\@ifnextchar",function(N){var m=N.consumeArgs(3);N.consumeSpaces();var S=N.future();return m[0].length===1&&m[0][0].text===S.text?{tokens:m[1],numArgs:0}:{tokens:m[2],numArgs:0}}),ge("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ge("\\TextOrMath",function(N){var m=N.consumeArgs(2);return N.mode==="text"?{tokens:m[0],numArgs:0}:{tokens:m[1],numArgs:0}});var Do={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};ge("\\char",function(N){var m=N.popToken(),S,D="";if(m.text==="'")S=8,m=N.popToken();else if(m.text==='"')S=16,m=N.popToken();else if(m.text==="`")if(m=N.popToken(),m.text[0]==="\\")D=m.text.charCodeAt(1);else{if(m.text==="EOF")throw new Ft("\\char` missing argument");D=m.text.charCodeAt(0)}else S=10;if(S){if(D=Do[m.text],D==null||D>=S)throw new Ft("Invalid base-"+S+" digit "+m.text);for(var Z;(Z=Do[N.future().text])!=null&&Z<S;)D*=S,D+=Z,N.popToken()}return"\\@char{"+D+"}"});var No=(N,m,S,D)=>{var Z=N.consumeArg().tokens;if(Z.length!==1)throw new Ft("\\newcommand's first argument must be a macro name");var oe=Z[0].text,Y=N.isDefined(oe);if(Y&&!m)throw new Ft("\\newcommand{"+oe+"} attempting to redefine "+(oe+"; use \\renewcommand"));if(!Y&&!S)throw new Ft("\\renewcommand{"+oe+"} when command "+oe+" does not yet exist; use \\newcommand");var ut=0;if(Z=N.consumeArg().tokens,Z.length===1&&Z[0].text==="["){for(var pt="",bn=N.expandNextToken();bn.text!=="]"&&bn.text!=="EOF";)pt+=bn.text,bn=N.expandNextToken();if(!pt.match(/^\s*[0-9]+\s*$/))throw new Ft("Invalid number of arguments: "+pt);ut=parseInt(pt),Z=N.consumeArg().tokens}return Y&&D||N.macros.set(oe,{tokens:Z,numArgs:ut}),""};ge("\\newcommand",N=>No(N,!1,!0,!1)),ge("\\renewcommand",N=>No(N,!0,!1,!1)),ge("\\providecommand",N=>No(N,!0,!0,!0)),ge("\\message",N=>{var m=N.consumeArgs(1)[0];return console.log(m.reverse().map(S=>S.text).join("")),""}),ge("\\errmessage",N=>{var m=N.consumeArgs(1)[0];return console.error(m.reverse().map(S=>S.text).join("")),""}),ge("\\show",N=>{var m=N.popToken(),S=m.text;return console.log(m,N.macros.get(S),Xi[S],zi.math[S],zi.text[S]),""}),ge("\\bgroup","{"),ge("\\egroup","}"),ge("~","\\nobreakspace"),ge("\\lq","`"),ge("\\rq","'"),ge("\\aa","\\r a"),ge("\\AA","\\r A"),ge("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),ge("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ge("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),ge("\u212C","\\mathscr{B}"),ge("\u2130","\\mathscr{E}"),ge("\u2131","\\mathscr{F}"),ge("\u210B","\\mathscr{H}"),ge("\u2110","\\mathscr{I}"),ge("\u2112","\\mathscr{L}"),ge("\u2133","\\mathscr{M}"),ge("\u211B","\\mathscr{R}"),ge("\u212D","\\mathfrak{C}"),ge("\u210C","\\mathfrak{H}"),ge("\u2128","\\mathfrak{Z}"),ge("\\Bbbk","\\Bbb{k}"),ge("\xB7","\\cdotp"),ge("\\llap","\\mathllap{\\textrm{#1}}"),ge("\\rlap","\\mathrlap{\\textrm{#1}}"),ge("\\clap","\\mathclap{\\textrm{#1}}"),ge("\\mathstrut","\\vphantom{(}"),ge("\\underbar","\\underline{\\text{#1}}"),ge("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),ge("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),ge("\\ne","\\neq"),ge("\u2260","\\neq"),ge("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),ge("\u2209","\\notin"),ge("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),ge("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),ge("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),ge("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),ge("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),ge("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),ge("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),ge("\u27C2","\\perp"),ge("\u203C","\\mathclose{!\\mkern-0.8mu!}"),ge("\u220C","\\notni"),ge("\u231C","\\ulcorner"),ge("\u231D","\\urcorner"),ge("\u231E","\\llcorner"),ge("\u231F","\\lrcorner"),ge("\xA9","\\copyright"),ge("\xAE","\\textregistered"),ge("\uFE0F","\\textregistered"),ge("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),ge("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),ge("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),ge("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),ge("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),ge("\u22EE","\\vdots"),ge("\\varGamma","\\mathit{\\Gamma}"),ge("\\varDelta","\\mathit{\\Delta}"),ge("\\varTheta","\\mathit{\\Theta}"),ge("\\varLambda","\\mathit{\\Lambda}"),ge("\\varXi","\\mathit{\\Xi}"),ge("\\varPi","\\mathit{\\Pi}"),ge("\\varSigma","\\mathit{\\Sigma}"),ge("\\varUpsilon","\\mathit{\\Upsilon}"),ge("\\varPhi","\\mathit{\\Phi}"),ge("\\varPsi","\\mathit{\\Psi}"),ge("\\varOmega","\\mathit{\\Omega}"),ge("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ge("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),ge("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ge("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ge("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ge("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),ge("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),ge("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Oo={",":"\\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"};ge("\\dots",function(N){var m="\\dotso",S=N.expandAfterFuture().text;return S in Oo?m=Oo[S]:(S.slice(0,4)==="\\not"||S in zi.math&&T.contains(["bin","rel"],zi.math[S].group))&&(m="\\dotsb"),m});var ra={")":!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};ge("\\dotso",function(N){var m=N.future().text;return m in ra?"\\ldots\\,":"\\ldots"}),ge("\\dotsc",function(N){var m=N.future().text;return m in ra&&m!==","?"\\ldots\\,":"\\ldots"}),ge("\\cdots",function(N){var m=N.future().text;return m in ra?"\\@cdots\\,":"\\@cdots"}),ge("\\dotsb","\\cdots"),ge("\\dotsm","\\cdots"),ge("\\dotsi","\\!\\cdots"),ge("\\dotsx","\\ldots\\,"),ge("\\DOTSI","\\relax"),ge("\\DOTSB","\\relax"),ge("\\DOTSX","\\relax"),ge("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ge("\\,","\\tmspace+{3mu}{.1667em}"),ge("\\thinspace","\\,"),ge("\\>","\\mskip{4mu}"),ge("\\:","\\tmspace+{4mu}{.2222em}"),ge("\\medspace","\\:"),ge("\\;","\\tmspace+{5mu}{.2777em}"),ge("\\thickspace","\\;"),ge("\\!","\\tmspace-{3mu}{.1667em}"),ge("\\negthinspace","\\!"),ge("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ge("\\negthickspace","\\tmspace-{5mu}{.277em}"),ge("\\enspace","\\kern.5em "),ge("\\enskip","\\hskip.5em\\relax"),ge("\\quad","\\hskip1em\\relax"),ge("\\qquad","\\hskip2em\\relax"),ge("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ge("\\tag@paren","\\tag@literal{({#1})}"),ge("\\tag@literal",N=>{if(N.macros.get("\\df@tag"))throw new Ft("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ge("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ge("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ge("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ge("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ge("\\newline","\\\\\\relax"),ge("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ja=Rt(to["Main-Regular"][84][1]-.7*to["Main-Regular"][65][1]);ge("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ja+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),ge("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ja+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),ge("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ge("\\@hspace","\\hskip #1\\relax"),ge("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ge("\\ordinarycolon",":"),ge("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ge("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ge("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ge("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ge("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ge("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ge("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ge("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ge("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ge("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ge("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ge("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ge("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ge("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ge("\u2237","\\dblcolon"),ge("\u2239","\\eqcolon"),ge("\u2254","\\coloneqq"),ge("\u2255","\\eqqcolon"),ge("\u2A74","\\Coloneqq"),ge("\\ratio","\\vcentcolon"),ge("\\coloncolon","\\dblcolon"),ge("\\colonequals","\\coloneqq"),ge("\\coloncolonequals","\\Coloneqq"),ge("\\equalscolon","\\eqqcolon"),ge("\\equalscoloncolon","\\Eqqcolon"),ge("\\colonminus","\\coloneq"),ge("\\coloncolonminus","\\Coloneq"),ge("\\minuscolon","\\eqcolon"),ge("\\minuscoloncolon","\\Eqcolon"),ge("\\coloncolonapprox","\\Colonapprox"),ge("\\coloncolonsim","\\Colonsim"),ge("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ge("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ge("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ge("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ge("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),ge("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ge("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ge("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ge("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ge("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ge("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ge("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ge("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ge("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),ge("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),ge("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),ge("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),ge("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),ge("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),ge("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),ge("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),ge("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),ge("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),ge("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),ge("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),ge("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),ge("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),ge("\\imath","\\html@mathml{\\@imath}{\u0131}"),ge("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),ge("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),ge("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),ge("\u27E6","\\llbracket"),ge("\u27E7","\\rrbracket"),ge("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),ge("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),ge("\u2983","\\lBrace"),ge("\u2984","\\rBrace"),ge("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),ge("\u29B5","\\minuso"),ge("\\darr","\\downarrow"),ge("\\dArr","\\Downarrow"),ge("\\Darr","\\Downarrow"),ge("\\lang","\\langle"),ge("\\rang","\\rangle"),ge("\\uarr","\\uparrow"),ge("\\uArr","\\Uparrow"),ge("\\Uarr","\\Uparrow"),ge("\\N","\\mathbb{N}"),ge("\\R","\\mathbb{R}"),ge("\\Z","\\mathbb{Z}"),ge("\\alef","\\aleph"),ge("\\alefsym","\\aleph"),ge("\\Alpha","\\mathrm{A}"),ge("\\Beta","\\mathrm{B}"),ge("\\bull","\\bullet"),ge("\\Chi","\\mathrm{X}"),ge("\\clubs","\\clubsuit"),ge("\\cnums","\\mathbb{C}"),ge("\\Complex","\\mathbb{C}"),ge("\\Dagger","\\ddagger"),ge("\\diamonds","\\diamondsuit"),ge("\\empty","\\emptyset"),ge("\\Epsilon","\\mathrm{E}"),ge("\\Eta","\\mathrm{H}"),ge("\\exist","\\exists"),ge("\\harr","\\leftrightarrow"),ge("\\hArr","\\Leftrightarrow"),ge("\\Harr","\\Leftrightarrow"),ge("\\hearts","\\heartsuit"),ge("\\image","\\Im"),ge("\\infin","\\infty"),ge("\\Iota","\\mathrm{I}"),ge("\\isin","\\in"),ge("\\Kappa","\\mathrm{K}"),ge("\\larr","\\leftarrow"),ge("\\lArr","\\Leftarrow"),ge("\\Larr","\\Leftarrow"),ge("\\lrarr","\\leftrightarrow"),ge("\\lrArr","\\Leftrightarrow"),ge("\\Lrarr","\\Leftrightarrow"),ge("\\Mu","\\mathrm{M}"),ge("\\natnums","\\mathbb{N}"),ge("\\Nu","\\mathrm{N}"),ge("\\Omicron","\\mathrm{O}"),ge("\\plusmn","\\pm"),ge("\\rarr","\\rightarrow"),ge("\\rArr","\\Rightarrow"),ge("\\Rarr","\\Rightarrow"),ge("\\real","\\Re"),ge("\\reals","\\mathbb{R}"),ge("\\Reals","\\mathbb{R}"),ge("\\Rho","\\mathrm{P}"),ge("\\sdot","\\cdot"),ge("\\sect","\\S"),ge("\\spades","\\spadesuit"),ge("\\sub","\\subset"),ge("\\sube","\\subseteq"),ge("\\supe","\\supseteq"),ge("\\Tau","\\mathrm{T}"),ge("\\thetasym","\\vartheta"),ge("\\weierp","\\wp"),ge("\\Zeta","\\mathrm{Z}"),ge("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ge("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ge("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ge("\\bra","\\mathinner{\\langle{#1}|}"),ge("\\ket","\\mathinner{|{#1}\\rangle}"),ge("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ge("\\Bra","\\left\\langle#1\\right|"),ge("\\Ket","\\left|#1\\right\\rangle");var d=N=>m=>{var S=m.consumeArg().tokens,D=m.consumeArg().tokens,Z=m.consumeArg().tokens,oe=m.consumeArg().tokens,Y=m.macros.get("|"),ut=m.macros.get("\\|");m.macros.beginGroup();var pt=Qn=>ki=>{N&&(ki.macros.set("|",Y),Z.length&&ki.macros.set("\\|",ut));var Ii=Qn;if(!Qn&&Z.length){var $i=ki.future();$i.text==="|"&&(ki.popToken(),Ii=!0)}return{tokens:Ii?Z:D,numArgs:0}};m.macros.set("|",pt(!1)),Z.length&&m.macros.set("\\|",pt(!0));var bn=m.consumeArg().tokens,_n=m.expandTokens([...oe,...bn,...S]);return m.macros.endGroup(),{tokens:_n.reverse(),numArgs:0}};ge("\\bra@ket",d(!1)),ge("\\bra@set",d(!0)),ge("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),ge("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),ge("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),ge("\\angln","{\\angl n}"),ge("\\blue","\\textcolor{##6495ed}{#1}"),ge("\\orange","\\textcolor{##ffa500}{#1}"),ge("\\pink","\\textcolor{##ff00af}{#1}"),ge("\\red","\\textcolor{##df0030}{#1}"),ge("\\green","\\textcolor{##28ae7b}{#1}"),ge("\\gray","\\textcolor{gray}{#1}"),ge("\\purple","\\textcolor{##9d38bd}{#1}"),ge("\\blueA","\\textcolor{##ccfaff}{#1}"),ge("\\blueB","\\textcolor{##80f6ff}{#1}"),ge("\\blueC","\\textcolor{##63d9ea}{#1}"),ge("\\blueD","\\textcolor{##11accd}{#1}"),ge("\\blueE","\\textcolor{##0c7f99}{#1}"),ge("\\tealA","\\textcolor{##94fff5}{#1}"),ge("\\tealB","\\textcolor{##26edd5}{#1}"),ge("\\tealC","\\textcolor{##01d1c1}{#1}"),ge("\\tealD","\\textcolor{##01a995}{#1}"),ge("\\tealE","\\textcolor{##208170}{#1}"),ge("\\greenA","\\textcolor{##b6ffb0}{#1}"),ge("\\greenB","\\textcolor{##8af281}{#1}"),ge("\\greenC","\\textcolor{##74cf70}{#1}"),ge("\\greenD","\\textcolor{##1fab54}{#1}"),ge("\\greenE","\\textcolor{##0d923f}{#1}"),ge("\\goldA","\\textcolor{##ffd0a9}{#1}"),ge("\\goldB","\\textcolor{##ffbb71}{#1}"),ge("\\goldC","\\textcolor{##ff9c39}{#1}"),ge("\\goldD","\\textcolor{##e07d10}{#1}"),ge("\\goldE","\\textcolor{##a75a05}{#1}"),ge("\\redA","\\textcolor{##fca9a9}{#1}"),ge("\\redB","\\textcolor{##ff8482}{#1}"),ge("\\redC","\\textcolor{##f9685d}{#1}"),ge("\\redD","\\textcolor{##e84d39}{#1}"),ge("\\redE","\\textcolor{##bc2612}{#1}"),ge("\\maroonA","\\textcolor{##ffbde0}{#1}"),ge("\\maroonB","\\textcolor{##ff92c6}{#1}"),ge("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ge("\\maroonD","\\textcolor{##ca337c}{#1}"),ge("\\maroonE","\\textcolor{##9e034e}{#1}"),ge("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ge("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ge("\\purpleC","\\textcolor{##aa87ff}{#1}"),ge("\\purpleD","\\textcolor{##7854ab}{#1}"),ge("\\purpleE","\\textcolor{##543b78}{#1}"),ge("\\mintA","\\textcolor{##f5f9e8}{#1}"),ge("\\mintB","\\textcolor{##edf2df}{#1}"),ge("\\mintC","\\textcolor{##e0e5cc}{#1}"),ge("\\grayA","\\textcolor{##f6f7f7}{#1}"),ge("\\grayB","\\textcolor{##f0f1f2}{#1}"),ge("\\grayC","\\textcolor{##e3e5e6}{#1}"),ge("\\grayD","\\textcolor{##d6d8da}{#1}"),ge("\\grayE","\\textcolor{##babec2}{#1}"),ge("\\grayF","\\textcolor{##888d93}{#1}"),ge("\\grayG","\\textcolor{##626569}{#1}"),ge("\\grayH","\\textcolor{##3b3e40}{#1}"),ge("\\grayI","\\textcolor{##21242c}{#1}"),ge("\\kaBlue","\\textcolor{##314453}{#1}"),ge("\\kaGreen","\\textcolor{##71B307}{#1}");var g={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class K{constructor(m,S,D){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=S,this.expansionCount=0,this.feed(m),this.macros=new za($a,S.macros),this.mode=D,this.stack=[]}feed(m){this.lexer=new ua(m,this.settings)}switchMode(m){this.mode=m}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(m){this.stack.push(m)}pushTokens(m){this.stack.push(...m)}scanArgument(m){var S,D,Z;if(m){if(this.consumeSpaces(),this.future().text!=="[")return null;S=this.popToken(),{tokens:Z,end:D}=this.consumeArg(["]"])}else({tokens:Z,start:S,end:D}=this.consumeArg());return this.pushToken(new un("EOF",D.loc)),this.pushTokens(Z),S.range(D,"")}consumeSpaces(){for(;;){var m=this.future();if(m.text===" ")this.stack.pop();else break}}consumeArg(m){var S=[],D=m&&m.length>0;D||this.consumeSpaces();var Z=this.future(),oe,Y=0,ut=0;do{if(oe=this.popToken(),S.push(oe),oe.text==="{")++Y;else if(oe.text==="}"){if(--Y,Y===-1)throw new Ft("Extra }",oe)}else if(oe.text==="EOF")throw new Ft("Unexpected end of input in a macro argument, expected '"+(m&&D?m[ut]:"}")+"'",oe);if(m&&D)if((Y===0||Y===1&&m[ut]==="{")&&oe.text===m[ut]){if(++ut,ut===m.length){S.splice(-ut,ut);break}}else ut=0}while(Y!==0||D);return Z.text==="{"&&S[S.length-1].text==="}"&&(S.pop(),S.shift()),S.reverse(),{tokens:S,start:Z,end:oe}}consumeArgs(m,S){if(S){if(S.length!==m+1)throw new Ft("The length of delimiters doesn't match the number of args!");for(var D=S[0],Z=0;Z<D.length;Z++){var oe=this.popToken();if(D[Z]!==oe.text)throw new Ft("Use of the macro doesn't match its definition",oe)}}for(var Y=[],ut=0;ut<m;ut++)Y.push(this.consumeArg(S&&S[ut+1]).tokens);return Y}countExpansion(m){if(this.expansionCount+=m,this.expansionCount>this.settings.maxExpand)throw new Ft("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(m){var S=this.popToken(),D=S.text,Z=S.noexpand?null:this._getExpansion(D);if(Z==null||m&&Z.unexpandable){if(m&&Z==null&&D[0]==="\\"&&!this.isDefined(D))throw new Ft("Undefined control sequence: "+D);return this.pushToken(S),!1}this.countExpansion(1);var oe=Z.tokens,Y=this.consumeArgs(Z.numArgs,Z.delimiters);if(Z.numArgs){oe=oe.slice();for(var ut=oe.length-1;ut>=0;--ut){var pt=oe[ut];if(pt.text==="#"){if(ut===0)throw new Ft("Incomplete placeholder at end of macro body",pt);if(pt=oe[--ut],pt.text==="#")oe.splice(ut+1,1);else if(/^[1-9]$/.test(pt.text))oe.splice(ut,2,...Y[+pt.text-1]);else throw new Ft("Not a valid argument number",pt)}}}return this.pushTokens(oe),oe.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var m=this.stack.pop();return m.treatAsRelax&&(m.text="\\relax"),m}throw new Error}expandMacro(m){return this.macros.has(m)?this.expandTokens([new un(m)]):void 0}expandTokens(m){var S=[],D=this.stack.length;for(this.pushTokens(m);this.stack.length>D;)if(this.expandOnce(!0)===!1){var Z=this.stack.pop();Z.treatAsRelax&&(Z.noexpand=!1,Z.treatAsRelax=!1),S.push(Z)}return this.countExpansion(S.length),S}expandMacroAsText(m){var S=this.expandMacro(m);return S&&S.map(D=>D.text).join("")}_getExpansion(m){var S=this.macros.get(m);if(S==null)return S;if(m.length===1){var D=this.lexer.catcodes[m];if(D!=null&&D!==13)return}var Z=typeof S=="function"?S(this):S;if(typeof Z=="string"){var oe=0;if(Z.indexOf("#")!==-1)for(var Y=Z.replace(/##/g,"");Y.indexOf("#"+(oe+1))!==-1;)++oe;for(var ut=new ua(Z,this.settings),pt=[],bn=ut.lex();bn.text!=="EOF";)pt.push(bn),bn=ut.lex();pt.reverse();var _n={tokens:pt,numArgs:oe};return _n}return Z}isDefined(m){return this.macros.has(m)||Xi.hasOwnProperty(m)||zi.math.hasOwnProperty(m)||zi.text.hasOwnProperty(m)||g.hasOwnProperty(m)}isExpandable(m){var S=this.macros.get(m);return S!=null?typeof S=="string"||typeof S=="function"||!S.unexpandable:Xi.hasOwnProperty(m)&&!Xi[m].primitive}}var nt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,mn=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"}),Yn={"\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"}},Ci={\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 wr{constructor(m,S){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 K(m,S,this.mode),this.settings=S,this.leftrightDepth=0}expect(m,S){if(S===void 0&&(S=!0),this.fetch().text!==m)throw new Ft("Expected '"+m+"', got '"+this.fetch().text+"'",this.fetch());S&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(m){this.mode=m,this.gullet.switchMode(m)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var m=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),m}finally{this.gullet.endGroups()}}subparse(m){var S=this.nextToken;this.consume(),this.gullet.pushToken(new un("}")),this.gullet.pushTokens(m);var D=this.parseExpression(!1);return this.expect("}"),this.nextToken=S,D}parseExpression(m,S){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var Z=this.fetch();if(wr.endOfExpression.indexOf(Z.text)!==-1||S&&Z.text===S||m&&Xi[Z.text]&&Xi[Z.text].infix)break;var oe=this.parseAtom(S);if(oe){if(oe.type==="internal")continue}else break;D.push(oe)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)}handleInfixNodes(m){for(var S=-1,D,Z=0;Z<m.length;Z++)if(m[Z].type==="infix"){if(S!==-1)throw new Ft("only one infix operator per group",m[Z].token);S=Z,D=m[Z].replaceWith}if(S!==-1&&D){var oe,Y,ut=m.slice(0,S),pt=m.slice(S+1);ut.length===1&&ut[0].type==="ordgroup"?oe=ut[0]:oe={type:"ordgroup",mode:this.mode,body:ut},pt.length===1&&pt[0].type==="ordgroup"?Y=pt[0]:Y={type:"ordgroup",mode:this.mode,body:pt};var bn;return D==="\\\\abovefrac"?bn=this.callFunction(D,[oe,m[S],Y],[]):bn=this.callFunction(D,[oe,Y],[]),[bn]}else return m}handleSupSubscript(m){var S=this.fetch(),D=S.text;this.consume(),this.consumeSpaces();var Z=this.parseGroup(m);if(!Z)throw new Ft("Expected group after '"+D+"'",S);return Z}formatUnsupportedCmd(m){for(var S=[],D=0;D<m.length;D++)S.push({type:"textord",mode:"text",text:m[D]});var Z={type:"text",mode:this.mode,body:S},oe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Z]};return oe}parseAtom(m){var S=this.parseGroup("atom",m);if(this.mode==="text")return S;for(var D,Z;;){this.consumeSpaces();var oe=this.fetch();if(oe.text==="\\limits"||oe.text==="\\nolimits"){if(S&&S.type==="op"){var Y=oe.text==="\\limits";S.limits=Y,S.alwaysHandleSupSub=!0}else if(S&&S.type==="operatorname")S.alwaysHandleSupSub&&(S.limits=oe.text==="\\limits");else throw new Ft("Limit controls must follow a math operator",oe);this.consume()}else if(oe.text==="^"){if(D)throw new Ft("Double superscript",oe);D=this.handleSupSubscript("superscript")}else if(oe.text==="_"){if(Z)throw new Ft("Double subscript",oe);Z=this.handleSupSubscript("subscript")}else if(oe.text==="'"){if(D)throw new Ft("Double superscript",oe);var ut={type:"textord",mode:this.mode,text:"\\prime"},pt=[ut];for(this.consume();this.fetch().text==="'";)pt.push(ut),this.consume();this.fetch().text==="^"&&pt.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:pt}}else if(mn[oe.text]){var bn=nt.test(oe.text),_n=[];for(_n.push(new un(mn[oe.text])),this.consume();;){var Qn=this.fetch().text;if(!mn[Qn]||nt.test(Qn)!==bn)break;_n.unshift(new un(mn[Qn])),this.consume()}var ki=this.subparse(_n);bn?Z={type:"ordgroup",mode:"math",body:ki}:D={type:"ordgroup",mode:"math",body:ki}}else break}return D||Z?{type:"supsub",mode:this.mode,base:S,sup:D,sub:Z}:S}parseFunction(m,S){var D=this.fetch(),Z=D.text,oe=Xi[Z];if(!oe)return null;if(this.consume(),S&&S!=="atom"&&!oe.allowedInArgument)throw new Ft("Got function '"+Z+"' with no arguments"+(S?" as "+S:""),D);if(this.mode==="text"&&!oe.allowedInText)throw new Ft("Can't use function '"+Z+"' in text mode",D);if(this.mode==="math"&&oe.allowedInMath===!1)throw new Ft("Can't use function '"+Z+"' in math mode",D);var{args:Y,optArgs:ut}=this.parseArguments(Z,oe);return this.callFunction(Z,Y,ut,D,m)}callFunction(m,S,D,Z,oe){var Y={funcName:m,parser:this,token:Z,breakOnTokenText:oe},ut=Xi[m];if(ut&&ut.handler)return ut.handler(Y,S,D);throw new Ft("No function handler for "+m)}parseArguments(m,S){var D=S.numArgs+S.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var Z=[],oe=[],Y=0;Y<D;Y++){var ut=S.argTypes&&S.argTypes[Y],pt=Y<S.numOptionalArgs;(S.primitive&&ut==null||S.type==="sqrt"&&Y===1&&oe[0]==null)&&(ut="primitive");var bn=this.parseGroupOfType("argument to '"+m+"'",ut,pt);if(pt)oe.push(bn);else if(bn!=null)Z.push(bn);else throw new Ft("Null argument, please report this as a bug")}return{args:Z,optArgs:oe}}parseGroupOfType(m,S,D){switch(S){case"color":return this.parseColorGroup(D);case"size":return this.parseSizeGroup(D);case"url":return this.parseUrlGroup(D);case"math":case"text":return this.parseArgumentGroup(D,S);case"hbox":{var Z=this.parseArgumentGroup(D,"text");return Z!=null?{type:"styling",mode:Z.mode,body:[Z],style:"text"}:null}case"raw":{var oe=this.parseStringGroup("raw",D);return oe!=null?{type:"raw",mode:"text",string:oe.text}:null}case"primitive":{if(D)throw new Ft("A primitive argument cannot be optional");var Y=this.parseGroup(m);if(Y==null)throw new Ft("Expected group as "+m,this.fetch());return Y}case"original":case null:case void 0:return this.parseArgumentGroup(D);default:throw new Ft("Unknown group type as "+m,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(m,S){var D=this.gullet.scanArgument(S);if(D==null)return null;for(var Z="",oe;(oe=this.fetch()).text!=="EOF";)Z+=oe.text,this.consume();return this.consume(),D.text=Z,D}parseRegexGroup(m,S){for(var D=this.fetch(),Z=D,oe="",Y;(Y=this.fetch()).text!=="EOF"&&m.test(oe+Y.text);)Z=Y,oe+=Z.text,this.consume();if(oe==="")throw new Ft("Invalid "+S+": '"+D.text+"'",D);return D.range(Z,oe)}parseColorGroup(m){var S=this.parseStringGroup("color",m);if(S==null)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(S.text);if(!D)throw new Ft("Invalid color: '"+S.text+"'",S);var Z=D[0];return/^[0-9a-f]{6}$/i.test(Z)&&(Z="#"+Z),{type:"color-token",mode:this.mode,color:Z}}parseSizeGroup(m){var S,D=!1;if(this.gullet.consumeSpaces(),!m&&this.gullet.future().text!=="{"?S=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):S=this.parseStringGroup("size",m),!S)return null;!m&&S.text.length===0&&(S.text="0pt",D=!0);var Z=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(S.text);if(!Z)throw new Ft("Invalid size: '"+S.text+"'",S);var oe={number:+(Z[1]+Z[2]),unit:Z[3]};if(!Ke(oe))throw new Ft("Invalid unit: '"+oe.unit+"'",S);return{type:"size",mode:this.mode,value:oe,isBlank:D}}parseUrlGroup(m){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var S=this.parseStringGroup("url",m);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),S==null)return null;var D=S.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:D}}parseArgumentGroup(m,S){var D=this.gullet.scanArgument(m);if(D==null)return null;var Z=this.mode;S&&this.switchMode(S),this.gullet.beginGroup();var oe=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Y={type:"ordgroup",mode:this.mode,loc:D.loc,body:oe};return S&&this.switchMode(Z),Y}parseGroup(m,S){var D=this.fetch(),Z=D.text,oe;if(Z==="{"||Z==="\\begingroup"){this.consume();var Y=Z==="{"?"}":"\\endgroup";this.gullet.beginGroup();var ut=this.parseExpression(!1,Y),pt=this.fetch();this.expect(Y),this.gullet.endGroup(),oe={type:"ordgroup",mode:this.mode,loc:St.range(D,pt),body:ut,semisimple:Z==="\\begingroup"||void 0}}else if(oe=this.parseFunction(S,m)||this.parseSymbol(),oe==null&&Z[0]==="\\"&&!g.hasOwnProperty(Z)){if(this.settings.throwOnError)throw new Ft("Undefined control sequence: "+Z,D);oe=this.formatUnsupportedCmd(Z),this.consume()}return oe}formLigatures(m){for(var S=m.length-1,D=0;D<S;++D){var Z=m[D],oe=Z.text;oe==="-"&&m[D+1].text==="-"&&(D+1<S&&m[D+2].text==="-"?(m.splice(D,3,{type:"textord",mode:"text",loc:St.range(Z,m[D+2]),text:"---"}),S-=2):(m.splice(D,2,{type:"textord",mode:"text",loc:St.range(Z,m[D+1]),text:"--"}),S-=1)),(oe==="'"||oe==="`")&&m[D+1].text===oe&&(m.splice(D,2,{type:"textord",mode:"text",loc:St.range(Z,m[D+1]),text:oe+oe}),S-=1)}}parseSymbol(){var m=this.fetch(),S=m.text;if(/^\\verb[^a-zA-Z]/.test(S)){this.consume();var D=S.slice(5),Z=D.charAt(0)==="*";if(Z&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new Ft(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:Z}}Ci.hasOwnProperty(S[0])&&!zi[this.mode][S[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+S[0]+'" used in math mode',m),S=Ci[S[0]]+S.slice(1));var oe=go.exec(S);oe&&(S=S.substring(0,oe.index),S==="i"?S="\u0131":S==="j"&&(S="\u0237"));var Y;if(zi[this.mode][S]){this.settings.strict&&this.mode==="math"&&Cr.indexOf(S)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+S[0]+'" used in math mode',m);var ut=zi[this.mode][S].group,pt=St.range(m),bn;if(Qi.hasOwnProperty(ut)){var _n=ut;bn={type:"atom",mode:this.mode,family:_n,loc:pt,text:S}}else bn={type:ut,mode:this.mode,loc:pt,text:S};Y=bn}else if(S.charCodeAt(0)>=128)this.settings.strict&&(dn(S.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+S[0]+'" used in math mode',m):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+S[0]+'"'+(" ("+S.charCodeAt(0)+")"),m)),Y={type:"textord",mode:"text",loc:St.range(m),text:S};else return null;if(this.consume(),oe)for(var Qn=0;Qn<oe[0].length;Qn++){var ki=oe[0][Qn];if(!Yn[ki])throw new Ft("Unknown accent ' "+ki+"'",m);var Ii=Yn[ki][this.mode]||Yn[ki].text;if(!Ii)throw new Ft("Accent "+ki+" unsupported in "+this.mode+" mode",m);Y={type:"accent",mode:this.mode,loc:St.range(m),label:Ii,isStretchy:!1,isShifty:!0,base:Y}}return Y}}wr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var zr=function(m,S){if(!(typeof m=="string"||m instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var D=new wr(m,S);delete D.gullet.macros.current["\\df@tag"];var Z=D.parse();if(delete D.gullet.macros.current["\\current@color"],delete D.gullet.macros.current["\\color"],D.gullet.macros.get("\\df@tag")){if(!S.displayMode)throw new Ft("\\tag works only in display equations");Z=[{type:"tag",mode:"text",body:Z,tag:D.subparse([new un("\\df@tag")])}]}return Z},Yr=function(m,S,D){S.textContent="";var Z=rr(m,D).toNode();S.appendChild(Z)};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."),Yr=function(){throw new Ft("KaTeX doesn't work in quirks mode.")});var Ra=function(m,S){var D=rr(m,S).toMarkup();return D},ba=function(m,S){var D=new Ue(S);return zr(m,D)},ri=function(m,S,D){if(D.throwOnError||!(m instanceof Ft))throw m;var Z=Sn.makeSpan(["katex-error"],[new fn(S)]);return Z.setAttribute("title",m.toString()),Z.setAttribute("style","color:"+D.errorColor),Z},rr=function(m,S){var D=new Ue(S);try{var Z=zr(m,D);return Aa(Z,m,D)}catch(oe){return ri(oe,m,D)}},xo=function(m,S){var D=new Ue(S);try{var Z=zr(m,D);return Gl(Z,m,D)}catch(oe){return ri(oe,m,D)}},Lo="0.16.21",oa={Span:L,Anchor:Dt,SymbolNode:fn,SvgNode:Cn,PathNode:ui,LineNode:Ln},ws={version:Lo,render:Yr,renderToString:Ra,ParseError:Ft,SETTINGS_SCHEMA:_e,__parse:ba,__renderToDomTree:rr,__renderToHTMLTree:xo,__setFontMetrics:di,__defineSymbol:J,__defineFunction:Hi,__defineMacro:ge,__domTree:oa},ys=h(2348);const wo={},ca=[];function Ga(N){const m=N||wo;return function(S,D){(0,ys.S4)(S,"element",function(Z,oe){const Y=Array.isArray(Z.properties.className)?Z.properties.className:ca,ut=Y.includes("language-math"),pt=Y.includes("math-display"),bn=Y.includes("math-inline");let _n=pt;if(!ut&&!pt&&!bn)return;let Qn=oe[oe.length-1],ki=Z;if(Z.tagName==="code"&&ut&&Qn&&Qn.type==="element"&&Qn.tagName==="pre"&&(ki=Qn,Qn=oe[oe.length-2],_n=!0),!Qn)return;const Ii=Pt(ki,{whitespace:"pre"});let $i;try{$i=ws.renderToString(Ii,cd(Uo({},m),{displayMode:_n,throwOnError:!0}))}catch(Ur){const Hr=Ur,Ao=Hr.name.toLowerCase();D.message("Could not render math with KaTeX",{ancestors:[...oe,Z],cause:Hr,place:Z.position,ruleId:Ao,source:"rehype-katex"});try{$i=ws.renderToString(Ii,cd(Uo({},m),{displayMode:_n,strict:"ignore",throwOnError:!1}))}catch(Go){$i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(m.errorColor||"#cc0000"),title:String(Ur)},children:[{type:"text",value:Ii}]}]}}typeof $i=="string"&&($i=Je($i,{fragment:!0}).children);const Nr=Qn.children.indexOf(ki);return Qn.children.splice(Nr,1,...$i),ys.AM})}}},93772:function(Q,C,h){"use strict";h.d(C,{Z:function(){return ja}});var v={};h.r(v),h.d(v,{boolean:function(){return Pe},booleanish:function(){return Xe},commaOrSpaceSeparated:function(){return Pt},commaSeparated:function(){return We},number:function(){return ie},overloadedBoolean:function(){return Ye},spaceSeparated:function(){return lt}});var I=h(90302),O=h(87342),B=h(81994),G=h(58222),F=h(84837);function M(d){const g=String(d),K=[];return{toOffset:mn,toPoint:nt};function nt(Yn){if(typeof Yn=="number"&&Yn>-1&&Yn<=g.length){let Ci=0;for(;;){let wr=K[Ci];if(wr===void 0){const zr=he(g,K[Ci-1]);wr=zr===-1?g.length+1:zr+1,K[Ci]=wr}if(wr>Yn)return{line:Ci+1,column:Yn-(Ci>0?K[Ci-1]:0)+1,offset:Yn};Ci++}}}function mn(Yn){if(Yn&&typeof Yn.line=="number"&&typeof Yn.column=="number"&&!Number.isNaN(Yn.line)&&!Number.isNaN(Yn.column)){for(;K.length<Yn.line;){const wr=K[K.length-1],zr=he(g,wr),Yr=zr===-1?g.length+1:zr+1;if(wr===Yr)break;K.push(Yr)}const Ci=(Yn.line>1?K[Yn.line-2]:0)+Yn.column-1;if(Ci<K[Yn.line-1])return Ci}}}function he(d,g){const K=d.indexOf("\r",g),nt=d.indexOf(`
|
|
|
`,g);return nt===-1?K:K===-1||K+1===nt?nt:K<nt?K:nt}var ue=h(43309);const te={}.hasOwnProperty,Me=Object.prototype;function we(d,g){const K=g||{};return Je({file:K.file||void 0,location:!1,schema:K.space==="svg"?G.YP:G.dy,verbose:K.verbose||!1},d)}function Je(d,g){let K;switch(g.nodeName){case"#comment":{const nt=g;return K={type:"comment",value:nt.data},Ae(d,nt,K),K}case"#document":case"#document-fragment":{const nt=g,mn="mode"in nt?nt.mode==="quirks"||nt.mode==="limited-quirks":!1;if(K={type:"root",children:Oe(d,g.childNodes),data:{quirksMode:mn}},d.file&&d.location){const Yn=String(d.file),Ci=M(Yn),wr=Ci.toPoint(0),zr=Ci.toPoint(Yn.length);(0,O.ok)(wr,"expected `start`"),(0,O.ok)(zr,"expected `end`"),K.position={start:wr,end:zr}}return K}case"#documentType":{const nt=g;return K={type:"doctype"},Ae(d,nt,K),K}case"#text":{const nt=g;return K={type:"text",value:nt.value},Ae(d,nt,K),K}default:return K=Te(d,g),K}}function Oe(d,g){let K=-1;const nt=[];for(;++K<g.length;){const mn=Je(d,g[K]);nt.push(mn)}return nt}function Te(d,g){const K=d.schema;d.schema=g.namespaceURI===ue.t.svg?G.YP:G.dy;let nt=-1;const mn={};for(;++nt<g.attrs.length;){const wr=g.attrs[nt],zr=(wr.prefix?wr.prefix+":":"")+wr.name;te.call(Me,zr)||(mn[zr]=wr.value)}const Ci=(d.schema.space==="svg"?B.s:B.h)(g.tagName,mn,Oe(d,g.childNodes));if(Ae(d,g,Ci),Ci.tagName==="template"){const wr=g,zr=wr.sourceCodeLocation,Yr=zr&&zr.startTag&&de(zr.startTag),Ra=zr&&zr.endTag&&de(zr.endTag),ba=Je(d,wr.content);Yr&&Ra&&d.file&&(ba.position={start:Yr.end,end:Ra.start}),Ci.content=ba}return d.schema=K,Ci}function Ae(d,g,K){if("sourceCodeLocation"in g&&g.sourceCodeLocation&&d.file){const nt=Re(d,K,g.sourceCodeLocation);nt&&(d.location=!0,K.position=nt)}}function Re(d,g,K){const nt=de(K);if(g.type==="element"){const mn=g.children[g.children.length-1];if(nt&&!K.endTag&&mn&&mn.position&&mn.position.end&&(nt.end=Object.assign({},mn.position.end)),d.verbose){const Yn={};let Ci;if(K.attrs)for(Ci in K.attrs)te.call(K.attrs,Ci)&&(Yn[(0,F.s)(d.schema,Ci).property]=de(K.attrs[Ci]));(0,O.ok)(K.startTag,"a start tag should exist");const wr=de(K.startTag),zr=K.endTag?de(K.endTag):void 0,Yr={opening:wr};zr&&(Yr.closing=zr),Yr.properties=Yn,g.data={position:Yr}}}return nt}function de(d){const g=pe({line:d.startLine,column:d.startCol,offset:d.startOffset}),K=pe({line:d.endLine,column:d.endCol,offset:d.endOffset});return g||K?{start:g,end:K}:void 0}function pe(d){return d.line&&d.column?d:void 0}var be=h(11630);class me{constructor(g,K,nt){this.property=g,this.normal=K,nt&&(this.space=nt)}}me.prototype.property={},me.prototype.normal={},me.prototype.space=null;function ke(d,g){const K={},nt={};let mn=-1;for(;++mn<d.length;)Object.assign(K,d[mn].property),Object.assign(nt,d[mn].normal);return new me(K,nt,g)}function ee(d){return d.toLowerCase()}class Ne{constructor(g,K){this.property=g,this.attribute=K}}Ne.prototype.space=null,Ne.prototype.boolean=!1,Ne.prototype.booleanish=!1,Ne.prototype.overloadedBoolean=!1,Ne.prototype.number=!1,Ne.prototype.commaSeparated=!1,Ne.prototype.spaceSeparated=!1,Ne.prototype.commaOrSpaceSeparated=!1,Ne.prototype.mustUseProperty=!1,Ne.prototype.defined=!1;let Ie=0;const Pe=xt(),Xe=xt(),Ye=xt(),ie=xt(),lt=xt(),We=xt(),Pt=xt();function xt(){return ny(2,++Ie)}const Tt=Object.keys(v);class Et extends Ne{constructor(g,K,nt,mn){let Yn=-1;if(super(g,K),wn(this,"space",mn),typeof nt=="number")for(;++Yn<Tt.length;){const Ci=Tt[Yn];wn(this,Tt[Yn],(nt&v[Ci])===v[Ci])}}}Et.prototype.defined=!0;function wn(d,g,K){K&&(d[g]=K)}const qe={}.hasOwnProperty;function ae(d){const g={},K={};let nt;for(nt in d.properties)if(qe.call(d.properties,nt)){const mn=d.properties[nt],Yn=new Et(nt,d.transform(d.attributes||{},nt),mn,d.space);d.mustUseProperty&&d.mustUseProperty.includes(nt)&&(Yn.mustUseProperty=!0),g[nt]=Yn,K[ee(nt)]=nt,K[ee(Yn.attribute)]=nt}return new me(g,K,d.space)}const le=ae({space:"xlink",transform(d,g){return"xlink:"+g.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$t=ae({space:"xml",transform(d,g){return"xml:"+g.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Vt(d,g){return g in d?d[g]:g}function St(d,g){return Vt(d,g.toLowerCase())}const un=ae({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:St,properties:{xmlns:null,xmlnsXLink:null}}),Ft=ae({transform(d,g){return g==="role"?g:"aria-"+g.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:lt,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:ie,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:lt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Xe,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null}}),ai=ae({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:St,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:We,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:lt,autoFocus:Pe,autoPlay:Pe,blocking:lt,capture:null,charSet:null,checked:Pe,cite:null,className:lt,cols:ie,colSpan:null,content:null,contentEditable:Xe,controls:Pe,controlsList:lt,coords:ie|We,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Ye,draggable:Xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:lt,height:ie,hidden:Pe,high:ie,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:lt,itemRef:lt,itemScope:Pe,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,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:Pe,optimum:ie,pattern:null,ping:lt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:lt,required:Pe,reversed:Pe,rows:ie,rowSpan:ie,sandbox:lt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Xe,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:ie,security:null,unselectable:null}}),On=ae({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:Vt,properties:{about:Pt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:lt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:We,g2:We,glyphName:We,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pt,rev:Pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pt,requiredFeatures:Pt,requiredFonts:Pt,requiredFormats:Pt,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ni=ke([$t,le,un,Ft,ai],"html"),Jn=ke([$t,le,un,Ft,On],"svg"),In=/^data[-\w.:]+$/i,Mn=/-[a-z]/g,xe=/[A-Z]/g;function P(d,g){const K=ee(g);let nt=g,mn=Ne;if(K in d.normal)return d.property[d.normal[K]];if(K.length>4&&K.slice(0,4)==="data"&&In.test(g)){if(g.charAt(4)==="-"){const Yn=g.slice(5).replace(Mn,j);nt="data"+Yn.charAt(0).toUpperCase()+Yn.slice(1)}else{const Yn=g.slice(4);if(!Mn.test(Yn)){let Ci=Yn.replace(xe,k);Ci.charAt(0)!=="-"&&(Ci="-"+Ci),g="data"+Ci}}mn=Et}return new mn(nt,g)}function k(d){return"-"+d.toLowerCase()}function j(d){return d.charAt(1).toUpperCase()}var X=h(71523);const T={}.hasOwnProperty;function _e(d,g){const K=g||{};function nt(mn,...Yn){let Ci=nt.invalid;const wr=nt.handlers;if(mn&&T.call(mn,d)){const zr=String(mn[d]);Ci=T.call(wr,zr)?wr[zr]:nt.unknown}if(Ci)return Ci.call(this,mn,...Yn)}return nt.handlers=K.handlers||{},nt.invalid=K.invalid,nt.unknown=K.unknown,nt}const kt={},Ue={}.hasOwnProperty,Be=_e("type",{handlers:{root:ct,element:Bt,text:an,comment:en,doctype:It}});function mt(d,g){const nt=(g||kt).space;return Be(d,nt==="svg"?Jn:ni)}function ct(d,g){const K={nodeName:"#document",mode:(d.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return K.childNodes=gn(d.children,K,g),Qe(d,K),K}function tt(d,g){const K={nodeName:"#document-fragment",childNodes:[]};return K.childNodes=gn(d.children,K,g),Qe(d,K),K}function It(d){const g={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Qe(d,g),g}function an(d){const g={nodeName:"#text",value:d.value,parentNode:null};return Qe(d,g),g}function en(d){const g={nodeName:"#comment",data:d.value,parentNode:null};return Qe(d,g),g}function Bt(d,g){const K=g;let nt=K;d.type==="element"&&d.tagName.toLowerCase()==="svg"&&K.space==="html"&&(nt=Jn);const mn=[];let Yn;if(d.properties){for(Yn in d.properties)if(Yn!=="children"&&Ue.call(d.properties,Yn)){const zr=cn(nt,Yn,d.properties[Yn]);zr&&mn.push(zr)}}const Ci=nt.space;(0,O.ok)(Ci);const wr={nodeName:d.tagName,tagName:d.tagName,attrs:mn,namespaceURI:ue.t[Ci],childNodes:[],parentNode:null};return wr.childNodes=gn(d.children,wr,nt),Qe(d,wr),d.tagName==="template"&&d.content&&(wr.content=tt(d.content,nt)),wr}function cn(d,g,K){const nt=P(d,g);if(K===!1||K===null||K===void 0||typeof K=="number"&&Number.isNaN(K)||!K&&nt.boolean)return;Array.isArray(K)&&(K=nt.commaSeparated?(0,be.P)(K):(0,X.P)(K));const mn={name:nt.attribute,value:K===!0?"":String(K)};if(nt.space&&nt.space!=="html"&&nt.space!=="svg"){const Yn=mn.name.indexOf(":");Yn<0?mn.prefix="":(mn.name=mn.name.slice(Yn+1),mn.prefix=nt.attribute.slice(0,Yn)),mn.namespace=ue.t[nt.space]}return mn}function gn(d,g,K){let nt=-1;const mn=[];if(d)for(;++nt<d.length;){const Yn=Be(d[nt],K);Yn.parentNode=g,mn.push(Yn)}return mn}function Qe(d,g){const K=d.position;K&&K.start&&K.end&&((0,O.ok)(typeof K.start.offset=="number"),(0,O.ok)(typeof K.end.offset=="number"),g.sourceCodeLocation={startLine:K.start.line,startCol:K.start.column,startOffset:K.start.offset,endLine:K.end.line,endCol:K.end.column,endOffset:K.end.offset})}const Ut=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],tn=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),nn="\uFFFD";var He;(function(d){d[d.EOF=-1]="EOF",d[d.NULL=0]="NULL",d[d.TABULATION=9]="TABULATION",d[d.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",d[d.LINE_FEED=10]="LINE_FEED",d[d.FORM_FEED=12]="FORM_FEED",d[d.SPACE=32]="SPACE",d[d.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",d[d.QUOTATION_MARK=34]="QUOTATION_MARK",d[d.AMPERSAND=38]="AMPERSAND",d[d.APOSTROPHE=39]="APOSTROPHE",d[d.HYPHEN_MINUS=45]="HYPHEN_MINUS",d[d.SOLIDUS=47]="SOLIDUS",d[d.DIGIT_0=48]="DIGIT_0",d[d.DIGIT_9=57]="DIGIT_9",d[d.SEMICOLON=59]="SEMICOLON",d[d.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",d[d.EQUALS_SIGN=61]="EQUALS_SIGN",d[d.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",d[d.QUESTION_MARK=63]="QUESTION_MARK",d[d.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",d[d.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",d[d.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",d[d.GRAVE_ACCENT=96]="GRAVE_ACCENT",d[d.LATIN_SMALL_A=97]="LATIN_SMALL_A",d[d.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(He||(He={}));const Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function kn(d){return d>=55296&&d<=57343}function Kn(d){return d>=56320&&d<=57343}function Ti(d,g){return(d-55296)*1024+9216+g}function hi(d){return d!==32&&d!==10&&d!==13&&d!==9&&d!==12&&d>=1&&d<=31||d>=127&&d<=159}function dn(d){return d>=64976&&d<=65007||tn.has(d)}var sn;(function(d){d.controlCharacterInInputStream="control-character-in-input-stream",d.noncharacterInInputStream="noncharacter-in-input-stream",d.surrogateInInputStream="surrogate-in-input-stream",d.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",d.endTagWithAttributes="end-tag-with-attributes",d.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",d.unexpectedSolidusInTag="unexpected-solidus-in-tag",d.unexpectedNullCharacter="unexpected-null-character",d.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",d.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",d.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",d.missingEndTagName="missing-end-tag-name",d.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",d.unknownNamedCharacterReference="unknown-named-character-reference",d.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",d.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",d.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",d.eofBeforeTagName="eof-before-tag-name",d.eofInTag="eof-in-tag",d.missingAttributeValue="missing-attribute-value",d.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",d.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",d.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",d.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",d.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",d.missingDoctypePublicIdentifier="missing-doctype-public-identifier",d.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",d.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",d.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",d.cdataInHtmlContent="cdata-in-html-content",d.incorrectlyOpenedComment="incorrectly-opened-comment",d.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",d.eofInDoctype="eof-in-doctype",d.nestedComment="nested-comment",d.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",d.eofInComment="eof-in-comment",d.incorrectlyClosedComment="incorrectly-closed-comment",d.eofInCdata="eof-in-cdata",d.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",d.nullCharacterReference="null-character-reference",d.surrogateCharacterReference="surrogate-character-reference",d.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",d.controlCharacterReference="control-character-reference",d.noncharacterCharacterReference="noncharacter-character-reference",d.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",d.missingDoctypeName="missing-doctype-name",d.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",d.duplicateAttribute="duplicate-attribute",d.nonConformingDoctype="non-conforming-doctype",d.missingDoctype="missing-doctype",d.misplacedDoctype="misplaced-doctype",d.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",d.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",d.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",d.openElementsLeftAfterEof="open-elements-left-after-eof",d.abandonedHeadElementChild="abandoned-head-element-child",d.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",d.nestedNoscriptInHead="nested-noscript-in-head",d.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(sn||(sn={}));const gr=65536;class dr{constructor(g){this.handler=g,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=gr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(g,K){const{line:nt,col:mn,offset:Yn}=this,Ci=mn+K,wr=Yn+K;return{code:g,startLine:nt,endLine:nt,startCol:Ci,endCol:Ci,startOffset:wr,endOffset:wr}}_err(g){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(g,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(g){if(this.pos!==this.html.length-1){const K=this.html.charCodeAt(this.pos+1);if(Kn(K))return this.pos++,this._addGap(),Ti(g,K)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,He.EOF;return this._err(sn.surrogateInInputStream),g}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(g,K){this.html.length>0?this.html+=g:this.html=g,this.endOfChunkHit=!1,this.lastChunkWritten=K}insertHtmlAtCurrentPos(g){this.html=this.html.substring(0,this.pos+1)+g+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(g,K){if(this.pos+g.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(K)return this.html.startsWith(g,this.pos);for(let nt=0;nt<g.length;nt++)if((this.html.charCodeAt(this.pos+nt)|32)!==g.charCodeAt(nt))return!1;return!0}peek(g){const K=this.pos+g;if(K>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,He.EOF;const nt=this.html.charCodeAt(K);return nt===He.CARRIAGE_RETURN?He.LINE_FEED:nt}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,He.EOF;let g=this.html.charCodeAt(this.pos);return g===He.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,He.LINE_FEED):g===He.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,kn(g)&&(g=this._processSurrogate(g)),this.handler.onParseError===null||g>31&&g<127||g===He.LINE_FEED||g===He.CARRIAGE_RETURN||g>159&&g<64976||this._checkForProblematicCharacters(g),g)}_checkForProblematicCharacters(g){hi(g)?this._err(sn.controlCharacterInInputStream):dn(g)&&this._err(sn.noncharacterInInputStream)}retreat(g){for(this.pos-=g;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var qn;(function(d){d[d.CHARACTER=0]="CHARACTER",d[d.NULL_CHARACTER=1]="NULL_CHARACTER",d[d.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",d[d.START_TAG=3]="START_TAG",d[d.END_TAG=4]="END_TAG",d[d.COMMENT=5]="COMMENT",d[d.DOCTYPE=6]="DOCTYPE",d[d.EOF=7]="EOF",d[d.HIBERNATION=8]="HIBERNATION"})(qn||(qn={}));function Rr(d,g){for(let K=d.attrs.length-1;K>=0;K--)if(d.attrs[K].name===g)return d.attrs[K].value;return null}var tr=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(d=>d.charCodeAt(0))),U=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(d=>d.charCodeAt(0))),br;const fr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Fr=(br=String.fromCodePoint)!==null&&br!==void 0?br:function(d){let g="";return d>65535&&(d-=65536,g+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023),g+=String.fromCharCode(d),g};function jr(d){var g;return d>=55296&&d<=57343||d>1114111?65533:(g=fr.get(d))!==null&&g!==void 0?g:d}function so(d){return Fr(jr(d))}var Ar;(function(d){d[d.NUM=35]="NUM",d[d.SEMI=59]="SEMI",d[d.EQUALS=61]="EQUALS",d[d.ZERO=48]="ZERO",d[d.NINE=57]="NINE",d[d.LOWER_A=97]="LOWER_A",d[d.LOWER_F=102]="LOWER_F",d[d.LOWER_X=120]="LOWER_X",d[d.LOWER_Z=122]="LOWER_Z",d[d.UPPER_A=65]="UPPER_A",d[d.UPPER_F=70]="UPPER_F",d[d.UPPER_Z=90]="UPPER_Z"})(Ar||(Ar={}));const to=32;var vr;(function(d){d[d.VALUE_LENGTH=49152]="VALUE_LENGTH",d[d.BRANCH_LENGTH=16256]="BRANCH_LENGTH",d[d.JUMP_TABLE=127]="JUMP_TABLE"})(vr||(vr={}));function Ji(d){return d>=Ar.ZERO&&d<=Ar.NINE}function di(d){return d>=Ar.UPPER_A&&d<=Ar.UPPER_F||d>=Ar.LOWER_A&&d<=Ar.LOWER_F}function ft(d){return d>=Ar.UPPER_A&&d<=Ar.UPPER_Z||d>=Ar.LOWER_A&&d<=Ar.LOWER_Z||Ji(d)}function Un(d){return d===Ar.EQUALS||ft(d)}var Wn;(function(d){d[d.EntityStart=0]="EntityStart",d[d.NumericStart=1]="NumericStart",d[d.NumericDecimal=2]="NumericDecimal",d[d.NumericHex=3]="NumericHex",d[d.NamedEntity=4]="NamedEntity"})(Wn||(Wn={}));var vt;(function(d){d[d.Legacy=0]="Legacy",d[d.Strict=1]="Strict",d[d.Attribute=2]="Attribute"})(vt||(vt={}));class Ve{constructor(g,K,nt){this.decodeTree=g,this.emitCodePoint=K,this.errors=nt,this.state=Wn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}startEntity(g){this.decodeMode=g,this.state=Wn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(g,K){switch(this.state){case Wn.EntityStart:return g.charCodeAt(K)===Ar.NUM?(this.state=Wn.NumericStart,this.consumed+=1,this.stateNumericStart(g,K+1)):(this.state=Wn.NamedEntity,this.stateNamedEntity(g,K));case Wn.NumericStart:return this.stateNumericStart(g,K);case Wn.NumericDecimal:return this.stateNumericDecimal(g,K);case Wn.NumericHex:return this.stateNumericHex(g,K);case Wn.NamedEntity:return this.stateNamedEntity(g,K)}}stateNumericStart(g,K){return K>=g.length?-1:(g.charCodeAt(K)|to)===Ar.LOWER_X?(this.state=Wn.NumericHex,this.consumed+=1,this.stateNumericHex(g,K+1)):(this.state=Wn.NumericDecimal,this.stateNumericDecimal(g,K))}addToNumericResult(g,K,nt,mn){if(K!==nt){const Yn=nt-K;this.result=this.result*Math.pow(mn,Yn)+parseInt(g.substr(K,Yn),mn),this.consumed+=Yn}}stateNumericHex(g,K){const nt=K;for(;K<g.length;){const mn=g.charCodeAt(K);if(Ji(mn)||di(mn))K+=1;else return this.addToNumericResult(g,nt,K,16),this.emitNumericEntity(mn,3)}return this.addToNumericResult(g,nt,K,16),-1}stateNumericDecimal(g,K){const nt=K;for(;K<g.length;){const mn=g.charCodeAt(K);if(Ji(mn))K+=1;else return this.addToNumericResult(g,nt,K,10),this.emitNumericEntity(mn,2)}return this.addToNumericResult(g,nt,K,10),-1}emitNumericEntity(g,K){var nt;if(this.consumed<=K)return(nt=this.errors)===null||nt===void 0||nt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(g===Ar.SEMI)this.consumed+=1;else if(this.decodeMode===vt.Strict)return 0;return this.emitCodePoint(jr(this.result),this.consumed),this.errors&&(g!==Ar.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(g,K){const{decodeTree:nt}=this;let mn=nt[this.treeIndex],Yn=(mn&vr.VALUE_LENGTH)>>14;for(;K<g.length;K++,this.excess++){const Ci=g.charCodeAt(K);if(this.treeIndex=Nn(nt,mn,this.treeIndex+Math.max(1,Yn),Ci),this.treeIndex<0)return this.result===0||this.decodeMode===vt.Attribute&&(Yn===0||Un(Ci))?0:this.emitNotTerminatedNamedEntity();if(mn=nt[this.treeIndex],Yn=(mn&vr.VALUE_LENGTH)>>14,Yn!==0){if(Ci===Ar.SEMI)return this.emitNamedEntityData(this.treeIndex,Yn,this.consumed+this.excess);this.decodeMode!==vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var g;const{result:K,decodeTree:nt}=this,mn=(nt[K]&vr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(K,mn,this.consumed),(g=this.errors)===null||g===void 0||g.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(g,K,nt){const{decodeTree:mn}=this;return this.emitCodePoint(K===1?mn[g]&~vr.VALUE_LENGTH:mn[g+1],nt),K===3&&this.emitCodePoint(mn[g+2],nt),nt}end(){var g;switch(this.state){case Wn.NamedEntity:return this.result!==0&&(this.decodeMode!==vt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Wn.NumericDecimal:return this.emitNumericEntity(0,2);case Wn.NumericHex:return this.emitNumericEntity(0,3);case Wn.NumericStart:return(g=this.errors)===null||g===void 0||g.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wn.EntityStart:return 0}}}function vn(d){let g="";const K=new Ve(d,nt=>g+=Fr(nt));return function(mn,Yn){let Ci=0,wr=0;for(;(wr=mn.indexOf("&",wr))>=0;){g+=mn.slice(Ci,wr),K.startEntity(Yn);const Yr=K.write(mn,wr+1);if(Yr<0){Ci=wr+K.end();break}Ci=wr+Yr,wr=Yr===0?Ci+1:Ci}const zr=g+mn.slice(Ci);return g="",zr}}function Nn(d,g,K,nt){const mn=(g&vr.BRANCH_LENGTH)>>7,Yn=g&vr.JUMP_TABLE;if(mn===0)return Yn!==0&&nt===Yn?K:-1;if(Yn){const zr=nt-Yn;return zr<0||zr>=mn?-1:d[K+zr]-1}let Ci=K,wr=Ci+mn-1;for(;Ci<=wr;){const zr=Ci+wr>>>1,Yr=d[zr];if(Yr<nt)Ci=zr+1;else if(Yr>nt)wr=zr-1;else return d[zr+mn]}return-1}const on=vn(tr),Ct=vn(U);function Ke(d,g=vt.Legacy){return on(d,g)}function Ht(d){return on(d,vt.Attribute)}function Rt(d){return on(d,vt.Strict)}function jn(d){return Ct(d,vt.Strict)}var at;(function(d){d.HTML="http://www.w3.org/1999/xhtml",d.MATHML="http://www.w3.org/1998/Math/MathML",d.SVG="http://www.w3.org/2000/svg",d.XLINK="http://www.w3.org/1999/xlink",d.XML="http://www.w3.org/XML/1998/namespace",d.XMLNS="http://www.w3.org/2000/xmlns/"})(at||(at={}));var hn;(function(d){d.TYPE="type",d.ACTION="action",d.ENCODING="encoding",d.PROMPT="prompt",d.NAME="name",d.COLOR="color",d.FACE="face",d.SIZE="size"})(hn||(hn={}));var yt;(function(d){d.NO_QUIRKS="no-quirks",d.QUIRKS="quirks",d.LIMITED_QUIRKS="limited-quirks"})(yt||(yt={}));var Ge;(function(d){d.A="a",d.ADDRESS="address",d.ANNOTATION_XML="annotation-xml",d.APPLET="applet",d.AREA="area",d.ARTICLE="article",d.ASIDE="aside",d.B="b",d.BASE="base",d.BASEFONT="basefont",d.BGSOUND="bgsound",d.BIG="big",d.BLOCKQUOTE="blockquote",d.BODY="body",d.BR="br",d.BUTTON="button",d.CAPTION="caption",d.CENTER="center",d.CODE="code",d.COL="col",d.COLGROUP="colgroup",d.DD="dd",d.DESC="desc",d.DETAILS="details",d.DIALOG="dialog",d.DIR="dir",d.DIV="div",d.DL="dl",d.DT="dt",d.EM="em",d.EMBED="embed",d.FIELDSET="fieldset",d.FIGCAPTION="figcaption",d.FIGURE="figure",d.FONT="font",d.FOOTER="footer",d.FOREIGN_OBJECT="foreignObject",d.FORM="form",d.FRAME="frame",d.FRAMESET="frameset",d.H1="h1",d.H2="h2",d.H3="h3",d.H4="h4",d.H5="h5",d.H6="h6",d.HEAD="head",d.HEADER="header",d.HGROUP="hgroup",d.HR="hr",d.HTML="html",d.I="i",d.IMG="img",d.IMAGE="image",d.INPUT="input",d.IFRAME="iframe",d.KEYGEN="keygen",d.LABEL="label",d.LI="li",d.LINK="link",d.LISTING="listing",d.MAIN="main",d.MALIGNMARK="malignmark",d.MARQUEE="marquee",d.MATH="math",d.MENU="menu",d.META="meta",d.MGLYPH="mglyph",d.MI="mi",d.MO="mo",d.MN="mn",d.MS="ms",d.MTEXT="mtext",d.NAV="nav",d.NOBR="nobr",d.NOFRAMES="noframes",d.NOEMBED="noembed",d.NOSCRIPT="noscript",d.OBJECT="object",d.OL="ol",d.OPTGROUP="optgroup",d.OPTION="option",d.P="p",d.PARAM="param",d.PLAINTEXT="plaintext",d.PRE="pre",d.RB="rb",d.RP="rp",d.RT="rt",d.RTC="rtc",d.RUBY="ruby",d.S="s",d.SCRIPT="script",d.SEARCH="search",d.SECTION="section",d.SELECT="select",d.SOURCE="source",d.SMALL="small",d.SPAN="span",d.STRIKE="strike",d.STRONG="strong",d.STYLE="style",d.SUB="sub",d.SUMMARY="summary",d.SUP="sup",d.TABLE="table",d.TBODY="tbody",d.TEMPLATE="template",d.TEXTAREA="textarea",d.TFOOT="tfoot",d.TD="td",d.TH="th",d.THEAD="thead",d.TITLE="title",d.TR="tr",d.TRACK="track",d.TT="tt",d.U="u",d.UL="ul",d.SVG="svg",d.VAR="var",d.WBR="wbr",d.XMP="xmp"})(Ge||(Ge={}));var L;(function(d){d[d.UNKNOWN=0]="UNKNOWN",d[d.A=1]="A",d[d.ADDRESS=2]="ADDRESS",d[d.ANNOTATION_XML=3]="ANNOTATION_XML",d[d.APPLET=4]="APPLET",d[d.AREA=5]="AREA",d[d.ARTICLE=6]="ARTICLE",d[d.ASIDE=7]="ASIDE",d[d.B=8]="B",d[d.BASE=9]="BASE",d[d.BASEFONT=10]="BASEFONT",d[d.BGSOUND=11]="BGSOUND",d[d.BIG=12]="BIG",d[d.BLOCKQUOTE=13]="BLOCKQUOTE",d[d.BODY=14]="BODY",d[d.BR=15]="BR",d[d.BUTTON=16]="BUTTON",d[d.CAPTION=17]="CAPTION",d[d.CENTER=18]="CENTER",d[d.CODE=19]="CODE",d[d.COL=20]="COL",d[d.COLGROUP=21]="COLGROUP",d[d.DD=22]="DD",d[d.DESC=23]="DESC",d[d.DETAILS=24]="DETAILS",d[d.DIALOG=25]="DIALOG",d[d.DIR=26]="DIR",d[d.DIV=27]="DIV",d[d.DL=28]="DL",d[d.DT=29]="DT",d[d.EM=30]="EM",d[d.EMBED=31]="EMBED",d[d.FIELDSET=32]="FIELDSET",d[d.FIGCAPTION=33]="FIGCAPTION",d[d.FIGURE=34]="FIGURE",d[d.FONT=35]="FONT",d[d.FOOTER=36]="FOOTER",d[d.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",d[d.FORM=38]="FORM",d[d.FRAME=39]="FRAME",d[d.FRAMESET=40]="FRAMESET",d[d.H1=41]="H1",d[d.H2=42]="H2",d[d.H3=43]="H3",d[d.H4=44]="H4",d[d.H5=45]="H5",d[d.H6=46]="H6",d[d.HEAD=47]="HEAD",d[d.HEADER=48]="HEADER",d[d.HGROUP=49]="HGROUP",d[d.HR=50]="HR",d[d.HTML=51]="HTML",d[d.I=52]="I",d[d.IMG=53]="IMG",d[d.IMAGE=54]="IMAGE",d[d.INPUT=55]="INPUT",d[d.IFRAME=56]="IFRAME",d[d.KEYGEN=57]="KEYGEN",d[d.LABEL=58]="LABEL",d[d.LI=59]="LI",d[d.LINK=60]="LINK",d[d.LISTING=61]="LISTING",d[d.MAIN=62]="MAIN",d[d.MALIGNMARK=63]="MALIGNMARK",d[d.MARQUEE=64]="MARQUEE",d[d.MATH=65]="MATH",d[d.MENU=66]="MENU",d[d.META=67]="META",d[d.MGLYPH=68]="MGLYPH",d[d.MI=69]="MI",d[d.MO=70]="MO",d[d.MN=71]="MN",d[d.MS=72]="MS",d[d.MTEXT=73]="MTEXT",d[d.NAV=74]="NAV",d[d.NOBR=75]="NOBR",d[d.NOFRAMES=76]="NOFRAMES",d[d.NOEMBED=77]="NOEMBED",d[d.NOSCRIPT=78]="NOSCRIPT",d[d.OBJECT=79]="OBJECT",d[d.OL=80]="OL",d[d.OPTGROUP=81]="OPTGROUP",d[d.OPTION=82]="OPTION",d[d.P=83]="P",d[d.PARAM=84]="PARAM",d[d.PLAINTEXT=85]="PLAINTEXT",d[d.PRE=86]="PRE",d[d.RB=87]="RB",d[d.RP=88]="RP",d[d.RT=89]="RT",d[d.RTC=90]="RTC",d[d.RUBY=91]="RUBY",d[d.S=92]="S",d[d.SCRIPT=93]="SCRIPT",d[d.SEARCH=94]="SEARCH",d[d.SECTION=95]="SECTION",d[d.SELECT=96]="SELECT",d[d.SOURCE=97]="SOURCE",d[d.SMALL=98]="SMALL",d[d.SPAN=99]="SPAN",d[d.STRIKE=100]="STRIKE",d[d.STRONG=101]="STRONG",d[d.STYLE=102]="STYLE",d[d.SUB=103]="SUB",d[d.SUMMARY=104]="SUMMARY",d[d.SUP=105]="SUP",d[d.TABLE=106]="TABLE",d[d.TBODY=107]="TBODY",d[d.TEMPLATE=108]="TEMPLATE",d[d.TEXTAREA=109]="TEXTAREA",d[d.TFOOT=110]="TFOOT",d[d.TD=111]="TD",d[d.TH=112]="TH",d[d.THEAD=113]="THEAD",d[d.TITLE=114]="TITLE",d[d.TR=115]="TR",d[d.TRACK=116]="TRACK",d[d.TT=117]="TT",d[d.U=118]="U",d[d.UL=119]="UL",d[d.SVG=120]="SVG",d[d.VAR=121]="VAR",d[d.WBR=122]="WBR",d[d.XMP=123]="XMP"})(L||(L={}));const Dt=new Map([[Ge.A,L.A],[Ge.ADDRESS,L.ADDRESS],[Ge.ANNOTATION_XML,L.ANNOTATION_XML],[Ge.APPLET,L.APPLET],[Ge.AREA,L.AREA],[Ge.ARTICLE,L.ARTICLE],[Ge.ASIDE,L.ASIDE],[Ge.B,L.B],[Ge.BASE,L.BASE],[Ge.BASEFONT,L.BASEFONT],[Ge.BGSOUND,L.BGSOUND],[Ge.BIG,L.BIG],[Ge.BLOCKQUOTE,L.BLOCKQUOTE],[Ge.BODY,L.BODY],[Ge.BR,L.BR],[Ge.BUTTON,L.BUTTON],[Ge.CAPTION,L.CAPTION],[Ge.CENTER,L.CENTER],[Ge.CODE,L.CODE],[Ge.COL,L.COL],[Ge.COLGROUP,L.COLGROUP],[Ge.DD,L.DD],[Ge.DESC,L.DESC],[Ge.DETAILS,L.DETAILS],[Ge.DIALOG,L.DIALOG],[Ge.DIR,L.DIR],[Ge.DIV,L.DIV],[Ge.DL,L.DL],[Ge.DT,L.DT],[Ge.EM,L.EM],[Ge.EMBED,L.EMBED],[Ge.FIELDSET,L.FIELDSET],[Ge.FIGCAPTION,L.FIGCAPTION],[Ge.FIGURE,L.FIGURE],[Ge.FONT,L.FONT],[Ge.FOOTER,L.FOOTER],[Ge.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[Ge.FORM,L.FORM],[Ge.FRAME,L.FRAME],[Ge.FRAMESET,L.FRAMESET],[Ge.H1,L.H1],[Ge.H2,L.H2],[Ge.H3,L.H3],[Ge.H4,L.H4],[Ge.H5,L.H5],[Ge.H6,L.H6],[Ge.HEAD,L.HEAD],[Ge.HEADER,L.HEADER],[Ge.HGROUP,L.HGROUP],[Ge.HR,L.HR],[Ge.HTML,L.HTML],[Ge.I,L.I],[Ge.IMG,L.IMG],[Ge.IMAGE,L.IMAGE],[Ge.INPUT,L.INPUT],[Ge.IFRAME,L.IFRAME],[Ge.KEYGEN,L.KEYGEN],[Ge.LABEL,L.LABEL],[Ge.LI,L.LI],[Ge.LINK,L.LINK],[Ge.LISTING,L.LISTING],[Ge.MAIN,L.MAIN],[Ge.MALIGNMARK,L.MALIGNMARK],[Ge.MARQUEE,L.MARQUEE],[Ge.MATH,L.MATH],[Ge.MENU,L.MENU],[Ge.META,L.META],[Ge.MGLYPH,L.MGLYPH],[Ge.MI,L.MI],[Ge.MO,L.MO],[Ge.MN,L.MN],[Ge.MS,L.MS],[Ge.MTEXT,L.MTEXT],[Ge.NAV,L.NAV],[Ge.NOBR,L.NOBR],[Ge.NOFRAMES,L.NOFRAMES],[Ge.NOEMBED,L.NOEMBED],[Ge.NOSCRIPT,L.NOSCRIPT],[Ge.OBJECT,L.OBJECT],[Ge.OL,L.OL],[Ge.OPTGROUP,L.OPTGROUP],[Ge.OPTION,L.OPTION],[Ge.P,L.P],[Ge.PARAM,L.PARAM],[Ge.PLAINTEXT,L.PLAINTEXT],[Ge.PRE,L.PRE],[Ge.RB,L.RB],[Ge.RP,L.RP],[Ge.RT,L.RT],[Ge.RTC,L.RTC],[Ge.RUBY,L.RUBY],[Ge.S,L.S],[Ge.SCRIPT,L.SCRIPT],[Ge.SEARCH,L.SEARCH],[Ge.SECTION,L.SECTION],[Ge.SELECT,L.SELECT],[Ge.SOURCE,L.SOURCE],[Ge.SMALL,L.SMALL],[Ge.SPAN,L.SPAN],[Ge.STRIKE,L.STRIKE],[Ge.STRONG,L.STRONG],[Ge.STYLE,L.STYLE],[Ge.SUB,L.SUB],[Ge.SUMMARY,L.SUMMARY],[Ge.SUP,L.SUP],[Ge.TABLE,L.TABLE],[Ge.TBODY,L.TBODY],[Ge.TEMPLATE,L.TEMPLATE],[Ge.TEXTAREA,L.TEXTAREA],[Ge.TFOOT,L.TFOOT],[Ge.TD,L.TD],[Ge.TH,L.TH],[Ge.THEAD,L.THEAD],[Ge.TITLE,L.TITLE],[Ge.TR,L.TR],[Ge.TRACK,L.TRACK],[Ge.TT,L.TT],[Ge.U,L.U],[Ge.UL,L.UL],[Ge.SVG,L.SVG],[Ge.VAR,L.VAR],[Ge.WBR,L.WBR],[Ge.XMP,L.XMP]]);function Jt(d){var g;return(g=Dt.get(d))!==null&&g!==void 0?g:L.UNKNOWN}const gt=L,fn={[at.HTML]:new Set([gt.ADDRESS,gt.APPLET,gt.AREA,gt.ARTICLE,gt.ASIDE,gt.BASE,gt.BASEFONT,gt.BGSOUND,gt.BLOCKQUOTE,gt.BODY,gt.BR,gt.BUTTON,gt.CAPTION,gt.CENTER,gt.COL,gt.COLGROUP,gt.DD,gt.DETAILS,gt.DIR,gt.DIV,gt.DL,gt.DT,gt.EMBED,gt.FIELDSET,gt.FIGCAPTION,gt.FIGURE,gt.FOOTER,gt.FORM,gt.FRAME,gt.FRAMESET,gt.H1,gt.H2,gt.H3,gt.H4,gt.H5,gt.H6,gt.HEAD,gt.HEADER,gt.HGROUP,gt.HR,gt.HTML,gt.IFRAME,gt.IMG,gt.INPUT,gt.LI,gt.LINK,gt.LISTING,gt.MAIN,gt.MARQUEE,gt.MENU,gt.META,gt.NAV,gt.NOEMBED,gt.NOFRAMES,gt.NOSCRIPT,gt.OBJECT,gt.OL,gt.P,gt.PARAM,gt.PLAINTEXT,gt.PRE,gt.SCRIPT,gt.SECTION,gt.SELECT,gt.SOURCE,gt.STYLE,gt.SUMMARY,gt.TABLE,gt.TBODY,gt.TD,gt.TEMPLATE,gt.TEXTAREA,gt.TFOOT,gt.TH,gt.THEAD,gt.TITLE,gt.TR,gt.TRACK,gt.UL,gt.WBR,gt.XMP]),[at.MATHML]:new Set([gt.MI,gt.MO,gt.MN,gt.MS,gt.MTEXT,gt.ANNOTATION_XML]),[at.SVG]:new Set([gt.TITLE,gt.FOREIGN_OBJECT,gt.DESC]),[at.XLINK]:new Set,[at.XML]:new Set,[at.XMLNS]:new Set},Cn=new Set([gt.H1,gt.H2,gt.H3,gt.H4,gt.H5,gt.H6]),ui=new Set([Ge.STYLE,Ge.SCRIPT,Ge.XMP,Ge.IFRAME,Ge.NOEMBED,Ge.NOFRAMES,Ge.PLAINTEXT]);function Ln(d,g){return ui.has(d)||g&&d===Ge.NOSCRIPT}var rt;(function(d){d[d.DATA=0]="DATA",d[d.RCDATA=1]="RCDATA",d[d.RAWTEXT=2]="RAWTEXT",d[d.SCRIPT_DATA=3]="SCRIPT_DATA",d[d.PLAINTEXT=4]="PLAINTEXT",d[d.TAG_OPEN=5]="TAG_OPEN",d[d.END_TAG_OPEN=6]="END_TAG_OPEN",d[d.TAG_NAME=7]="TAG_NAME",d[d.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",d[d.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",d[d.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",d[d.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",d[d.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",d[d.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",d[d.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",d[d.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",d[d.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",d[d.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",d[d.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",d[d.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",d[d.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",d[d.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",d[d.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",d[d.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",d[d.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",d[d.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",d[d.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",d[d.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",d[d.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",d[d.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",d[d.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",d[d.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",d[d.BOGUS_COMMENT=40]="BOGUS_COMMENT",d[d.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",d[d.COMMENT_START=42]="COMMENT_START",d[d.COMMENT_START_DASH=43]="COMMENT_START_DASH",d[d.COMMENT=44]="COMMENT",d[d.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",d[d.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",d[d.COMMENT_END_DASH=49]="COMMENT_END_DASH",d[d.COMMENT_END=50]="COMMENT_END",d[d.COMMENT_END_BANG=51]="COMMENT_END_BANG",d[d.DOCTYPE=52]="DOCTYPE",d[d.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",d[d.DOCTYPE_NAME=54]="DOCTYPE_NAME",d[d.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",d[d.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",d[d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",d[d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",d[d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",d[d.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",d[d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",d[d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",d[d.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",d[d.CDATA_SECTION=68]="CDATA_SECTION",d[d.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",d[d.CDATA_SECTION_END=70]="CDATA_SECTION_END",d[d.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",d[d.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(rt||(rt={}));const Oi={DATA:rt.DATA,RCDATA:rt.RCDATA,RAWTEXT:rt.RAWTEXT,SCRIPT_DATA:rt.SCRIPT_DATA,PLAINTEXT:rt.PLAINTEXT,CDATA_SECTION:rt.CDATA_SECTION};function Qi(d){return d>=He.DIGIT_0&&d<=He.DIGIT_9}function Kt(d){return d>=He.LATIN_CAPITAL_A&&d<=He.LATIN_CAPITAL_Z}function zi(d){return d>=He.LATIN_SMALL_A&&d<=He.LATIN_SMALL_Z}function J(d){return zi(d)||Kt(d)}function re(d){return J(d)||Qi(d)}function Hn(d){return d+32}function Fe(d){return d===He.SPACE||d===He.LINE_FEED||d===He.TABULATION||d===He.FORM_FEED}function wt(d){return Fe(d)||d===He.SOLIDUS||d===He.GREATER_THAN_SIGN}function gi(d){return d===He.NULL?sn.nullCharacterReference:d>1114111?sn.characterReferenceOutsideUnicodeRange:kn(d)?sn.surrogateCharacterReference:dn(d)?sn.noncharacterCharacterReference:hi(d)||d===He.CARRIAGE_RETURN?sn.controlCharacterReference:null}class Rn{constructor(g,K){this.options=g,this.handler=K,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=rt.DATA,this.returnState=rt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dr(K),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ve(tr,(nt,mn)=>{this.preprocessor.pos=this.entityStartPos+mn-1,this._flushCodePointConsumedAsCharacterReference(nt)},K.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:nt=>{this._err(sn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+nt)},validateNumericCharacterReference:nt=>{const mn=gi(nt);mn&&this._err(mn,1)}}:void 0)}_err(g,K=0){var nt,mn;(mn=(nt=this.handler).onParseError)===null||mn===void 0||mn.call(nt,this.preprocessor.getError(g,K))}getCurrentLocation(g){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-g,startOffset:this.preprocessor.offset-g,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const g=this._consume();this._ensureHibernation()||this._callState(g)}this.inLoop=!1}}pause(){this.paused=!0}resume(g){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||g==null||g())}write(g,K,nt){this.active=!0,this.preprocessor.write(g,K),this._runParsingLoop(),this.paused||nt==null||nt()}insertHtmlAtCurrentPos(g){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(g),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(g){this.consumedAfterSnapshot+=g;for(let K=0;K<g;K++)this.preprocessor.advance()}_consumeSequenceIfMatch(g,K){return this.preprocessor.startsWith(g,K)?(this._advanceBy(g.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:qn.START_TAG,tagName:"",tagID:L.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:qn.END_TAG,tagName:"",tagID:L.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(g){this.currentToken={type:qn.COMMENT,data:"",location:this.getCurrentLocation(g)}}_createDoctypeToken(g){this.currentToken={type:qn.DOCTYPE,name:g,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(g,K){this.currentCharacterToken={type:g,chars:K,location:this.currentLocation}}_createAttr(g){this.currentAttr={name:g,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var g,K;const nt=this.currentToken;if(Rr(nt,this.currentAttr.name)===null){if(nt.attrs.push(this.currentAttr),nt.location&&this.currentLocation){const mn=(g=(K=nt.location).attrs)!==null&&g!==void 0?g:K.attrs=Object.create(null);mn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(sn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(g){this._emitCurrentCharacterToken(g.location),this.currentToken=null,g.location&&(g.location.endLine=this.preprocessor.line,g.location.endCol=this.preprocessor.col+1,g.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const g=this.currentToken;this.prepareToken(g),g.tagID=Jt(g.tagName),g.type===qn.START_TAG?(this.lastStartTagName=g.tagName,this.handler.onStartTag(g)):(g.attrs.length>0&&this._err(sn.endTagWithAttributes),g.selfClosing&&this._err(sn.endTagWithTrailingSolidus),this.handler.onEndTag(g)),this.preprocessor.dropParsedChunk()}emitCurrentComment(g){this.prepareToken(g),this.handler.onComment(g),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(g){this.prepareToken(g),this.handler.onDoctype(g),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(g){if(this.currentCharacterToken){switch(g&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=g.startLine,this.currentCharacterToken.location.endCol=g.startCol,this.currentCharacterToken.location.endOffset=g.startOffset),this.currentCharacterToken.type){case qn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case qn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case qn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const g=this.getCurrentLocation(0);g&&(g.endLine=g.startLine,g.endCol=g.startCol,g.endOffset=g.startOffset),this._emitCurrentCharacterToken(g),this.handler.onEof({type:qn.EOF,location:g}),this.active=!1}_appendCharToCurrentCharacterToken(g,K){if(this.currentCharacterToken)if(this.currentCharacterToken.type===g){this.currentCharacterToken.chars+=K;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(g,K)}_emitCodePoint(g){const K=Fe(g)?qn.WHITESPACE_CHARACTER:g===He.NULL?qn.NULL_CHARACTER:qn.CHARACTER;this._appendCharToCurrentCharacterToken(K,String.fromCodePoint(g))}_emitChars(g){this._appendCharToCurrentCharacterToken(qn.CHARACTER,g)}_startCharacterReference(){this.returnState=this.state,this.state=rt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?vt.Attribute:vt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===rt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===rt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===rt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(g){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(g):this._emitCodePoint(g)}_callState(g){switch(this.state){case rt.DATA:{this._stateData(g);break}case rt.RCDATA:{this._stateRcdata(g);break}case rt.RAWTEXT:{this._stateRawtext(g);break}case rt.SCRIPT_DATA:{this._stateScriptData(g);break}case rt.PLAINTEXT:{this._statePlaintext(g);break}case rt.TAG_OPEN:{this._stateTagOpen(g);break}case rt.END_TAG_OPEN:{this._stateEndTagOpen(g);break}case rt.TAG_NAME:{this._stateTagName(g);break}case rt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(g);break}case rt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(g);break}case rt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(g);break}case rt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(g);break}case rt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(g);break}case rt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(g);break}case rt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(g);break}case rt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(g);break}case rt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(g);break}case rt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(g);break}case rt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(g);break}case rt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(g);break}case rt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(g);break}case rt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(g);break}case rt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(g);break}case rt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(g);break}case rt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(g);break}case rt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(g);break}case rt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(g);break}case rt.ATTRIBUTE_NAME:{this._stateAttributeName(g);break}case rt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(g);break}case rt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(g);break}case rt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(g);break}case rt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(g);break}case rt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(g);break}case rt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(g);break}case rt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(g);break}case rt.BOGUS_COMMENT:{this._stateBogusComment(g);break}case rt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(g);break}case rt.COMMENT_START:{this._stateCommentStart(g);break}case rt.COMMENT_START_DASH:{this._stateCommentStartDash(g);break}case rt.COMMENT:{this._stateComment(g);break}case rt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(g);break}case rt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(g);break}case rt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(g);break}case rt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(g);break}case rt.COMMENT_END_DASH:{this._stateCommentEndDash(g);break}case rt.COMMENT_END:{this._stateCommentEnd(g);break}case rt.COMMENT_END_BANG:{this._stateCommentEndBang(g);break}case rt.DOCTYPE:{this._stateDoctype(g);break}case rt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(g);break}case rt.DOCTYPE_NAME:{this._stateDoctypeName(g);break}case rt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(g);break}case rt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(g);break}case rt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(g);break}case rt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(g);break}case rt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(g);break}case rt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(g);break}case rt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(g);break}case rt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(g);break}case rt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(g);break}case rt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(g);break}case rt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(g);break}case rt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(g);break}case rt.BOGUS_DOCTYPE:{this._stateBogusDoctype(g);break}case rt.CDATA_SECTION:{this._stateCdataSection(g);break}case rt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(g);break}case rt.CDATA_SECTION_END:{this._stateCdataSectionEnd(g);break}case rt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case rt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(g);break}default:throw new Error("Unknown state")}}_stateData(g){switch(g){case He.LESS_THAN_SIGN:{this.state=rt.TAG_OPEN;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitCodePoint(g);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRcdata(g){switch(g){case He.AMPERSAND:{this._startCharacterReference();break}case He.LESS_THAN_SIGN:{this.state=rt.RCDATA_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRawtext(g){switch(g){case He.LESS_THAN_SIGN:{this.state=rt.RAWTEXT_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptData(g){switch(g){case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_statePlaintext(g){switch(g){case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateTagOpen(g){if(J(g))this._createStartTagToken(),this.state=rt.TAG_NAME,this._stateTagName(g);else switch(g){case He.EXCLAMATION_MARK:{this.state=rt.MARKUP_DECLARATION_OPEN;break}case He.SOLIDUS:{this.state=rt.END_TAG_OPEN;break}case He.QUESTION_MARK:{this._err(sn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=rt.BOGUS_COMMENT,this._stateBogusComment(g);break}case He.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(sn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=rt.DATA,this._stateData(g)}}_stateEndTagOpen(g){if(J(g))this._createEndTagToken(),this.state=rt.TAG_NAME,this._stateTagName(g);else switch(g){case He.GREATER_THAN_SIGN:{this._err(sn.missingEndTagName),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(sn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=rt.BOGUS_COMMENT,this._stateBogusComment(g)}}_stateTagName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.BEFORE_ATTRIBUTE_NAME;break}case He.SOLIDUS:{this.state=rt.SELF_CLOSING_START_TAG;break}case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentTagToken();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.tagName+=nn;break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:K.tagName+=String.fromCodePoint(Kt(g)?Hn(g):g)}}_stateRcdataLessThanSign(g){g===He.SOLIDUS?this.state=rt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=rt.RCDATA,this._stateRcdata(g))}_stateRcdataEndTagOpen(g){J(g)?(this.state=rt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(g)):(this._emitChars("</"),this.state=rt.RCDATA,this._stateRcdata(g))}handleSpecialEndTag(g){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const K=this.currentToken;switch(K.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=rt.BEFORE_ATTRIBUTE_NAME,!1;case He.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=rt.SELF_CLOSING_START_TAG,!1;case He.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=rt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=rt.RCDATA,this._stateRcdata(g))}_stateRawtextLessThanSign(g){g===He.SOLIDUS?this.state=rt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=rt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagOpen(g){J(g)?(this.state=rt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(g)):(this._emitChars("</"),this.state=rt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=rt.RAWTEXT,this._stateRawtext(g))}_stateScriptDataLessThanSign(g){switch(g){case He.SOLIDUS:{this.state=rt.SCRIPT_DATA_END_TAG_OPEN;break}case He.EXCLAMATION_MARK:{this.state=rt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=rt.SCRIPT_DATA,this._stateScriptData(g)}}_stateScriptDataEndTagOpen(g){J(g)?(this.state=rt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(g)):(this._emitChars("</"),this.state=rt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=rt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStart(g){g===He.HYPHEN_MINUS?(this.state=rt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=rt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStartDash(g){g===He.HYPHEN_MINUS?(this.state=rt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=rt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscaped(g){switch(g){case He.HYPHEN_MINUS:{this.state=rt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataEscapedDash(g){switch(g){case He.HYPHEN_MINUS:{this.state=rt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.state=rt.SCRIPT_DATA_ESCAPED,this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=rt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedDashDash(g){switch(g){case He.HYPHEN_MINUS:{this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.GREATER_THAN_SIGN:{this.state=rt.SCRIPT_DATA,this._emitChars(">");break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.state=rt.SCRIPT_DATA_ESCAPED,this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=rt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedLessThanSign(g){g===He.SOLIDUS?this.state=rt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:J(g)?(this._emitChars("<"),this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(g)):(this._emitChars("<"),this.state=rt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagOpen(g){J(g)?(this.state=rt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(g)):(this._emitChars("</"),this.state=rt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=rt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscapeStart(g){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&wt(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Bn.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=rt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscaped(g){switch(g){case He.HYPHEN_MINUS:{this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDash(g){switch(g){case He.HYPHEN_MINUS:{this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDashDash(g){switch(g){case He.HYPHEN_MINUS:{this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.GREATER_THAN_SIGN:{this.state=rt.SCRIPT_DATA,this._emitChars(">");break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nn);break}case He.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedLessThanSign(g){g===He.SOLIDUS?(this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateScriptDataDoubleEscapeEnd(g){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&wt(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Bn.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=rt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=rt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateBeforeAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.SOLIDUS:case He.GREATER_THAN_SIGN:case He.EOF:{this.state=rt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case He.EQUALS_SIGN:{this._err(sn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=rt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=rt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:case He.SOLIDUS:case He.GREATER_THAN_SIGN:case He.EOF:{this._leaveAttrName(),this.state=rt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case He.EQUALS_SIGN:{this._leaveAttrName(),this.state=rt.BEFORE_ATTRIBUTE_VALUE;break}case He.QUOTATION_MARK:case He.APOSTROPHE:case He.LESS_THAN_SIGN:{this._err(sn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(g);break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.currentAttr.name+=nn;break}default:this.currentAttr.name+=String.fromCodePoint(Kt(g)?Hn(g):g)}}_stateAfterAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.SOLIDUS:{this.state=rt.SELF_CLOSING_START_TAG;break}case He.EQUALS_SIGN:{this.state=rt.BEFORE_ATTRIBUTE_VALUE;break}case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=rt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateBeforeAttributeValue(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{this.state=rt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this.state=rt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingAttributeValue),this.state=rt.DATA,this.emitCurrentTagToken();break}default:this.state=rt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(g)}}_stateAttributeValueDoubleQuoted(g){switch(g){case He.QUOTATION_MARK:{this.state=rt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.currentAttr.value+=nn;break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueSingleQuoted(g){switch(g){case He.APOSTROPHE:{this.state=rt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.currentAttr.value+=nn;break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueUnquoted(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this._leaveAttrValue(),this.state=rt.BEFORE_ATTRIBUTE_NAME;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=rt.DATA,this.emitCurrentTagToken();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),this.currentAttr.value+=nn;break}case He.QUOTATION_MARK:case He.APOSTROPHE:case He.LESS_THAN_SIGN:case He.EQUALS_SIGN:case He.GRAVE_ACCENT:{this._err(sn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(g);break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAfterAttributeValueQuoted(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this._leaveAttrValue(),this.state=rt.BEFORE_ATTRIBUTE_NAME;break}case He.SOLIDUS:{this._leaveAttrValue(),this.state=rt.SELF_CLOSING_START_TAG;break}case He.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=rt.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this._err(sn.missingWhitespaceBetweenAttributes),this.state=rt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateSelfClosingStartTag(g){switch(g){case He.GREATER_THAN_SIGN:{const K=this.currentToken;K.selfClosing=!0,this.state=rt.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(sn.eofInTag),this._emitEOFToken();break}default:this._err(sn.unexpectedSolidusInTag),this.state=rt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateBogusComment(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentComment(K);break}case He.EOF:{this.emitCurrentComment(K),this._emitEOFToken();break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.data+=nn;break}default:K.data+=String.fromCodePoint(g)}}_stateMarkupDeclarationOpen(g){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=rt.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=rt.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=rt.CDATA_SECTION:(this._err(sn.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=rt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(sn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=rt.BOGUS_COMMENT,this._stateBogusComment(g))}_stateCommentStart(g){switch(g){case He.HYPHEN_MINUS:{this.state=rt.COMMENT_START_DASH;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptClosingOfEmptyComment),this.state=rt.DATA;const K=this.currentToken;this.emitCurrentComment(K);break}default:this.state=rt.COMMENT,this._stateComment(g)}}_stateCommentStartDash(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=rt.COMMENT_END;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptClosingOfEmptyComment),this.state=rt.DATA,this.emitCurrentComment(K);break}case He.EOF:{this._err(sn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=rt.COMMENT,this._stateComment(g)}}_stateComment(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=rt.COMMENT_END_DASH;break}case He.LESS_THAN_SIGN:{K.data+="<",this.state=rt.COMMENT_LESS_THAN_SIGN;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.data+=nn;break}case He.EOF:{this._err(sn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+=String.fromCodePoint(g)}}_stateCommentLessThanSign(g){const K=this.currentToken;switch(g){case He.EXCLAMATION_MARK:{K.data+="!",this.state=rt.COMMENT_LESS_THAN_SIGN_BANG;break}case He.LESS_THAN_SIGN:{K.data+="<";break}default:this.state=rt.COMMENT,this._stateComment(g)}}_stateCommentLessThanSignBang(g){g===He.HYPHEN_MINUS?this.state=rt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=rt.COMMENT,this._stateComment(g))}_stateCommentLessThanSignBangDash(g){g===He.HYPHEN_MINUS?this.state=rt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=rt.COMMENT_END_DASH,this._stateCommentEndDash(g))}_stateCommentLessThanSignBangDashDash(g){g!==He.GREATER_THAN_SIGN&&g!==He.EOF&&this._err(sn.nestedComment),this.state=rt.COMMENT_END,this._stateCommentEnd(g)}_stateCommentEndDash(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=rt.COMMENT_END;break}case He.EOF:{this._err(sn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=rt.COMMENT,this._stateComment(g)}}_stateCommentEnd(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentComment(K);break}case He.EXCLAMATION_MARK:{this.state=rt.COMMENT_END_BANG;break}case He.HYPHEN_MINUS:{K.data+="-";break}case He.EOF:{this._err(sn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--",this.state=rt.COMMENT,this._stateComment(g)}}_stateCommentEndBang(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{K.data+="--!",this.state=rt.COMMENT_END_DASH;break}case He.GREATER_THAN_SIGN:{this._err(sn.incorrectlyClosedComment),this.state=rt.DATA,this.emitCurrentComment(K);break}case He.EOF:{this._err(sn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--!",this.state=rt.COMMENT,this._stateComment(g)}}_stateDoctype(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.BEFORE_DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this.state=rt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g);break}case He.EOF:{this._err(sn.eofInDoctype),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingWhitespaceBeforeDoctypeName),this.state=rt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g)}}_stateBeforeDoctypeName(g){if(Kt(g))this._createDoctypeToken(String.fromCharCode(Hn(g))),this.state=rt.DOCTYPE_NAME;else switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.NULL:{this._err(sn.unexpectedNullCharacter),this._createDoctypeToken(nn),this.state=rt.DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingDoctypeName),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(g)),this.state=rt.DOCTYPE_NAME}}_stateDoctypeName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.AFTER_DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.name+=nn;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.name+=String.fromCodePoint(Kt(g)?Hn(g):g)}}_stateAfterDoctypeName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=rt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=rt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(sn.invalidCharacterSequenceAfterDoctypeName),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g))}}_stateAfterDoctypePublicKeyword(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.QUOTATION_MARK:{this._err(sn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=rt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(sn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=rt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypePublicIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{K.publicId="",this.state=rt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.publicId="",this.state=rt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypePublicIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case He.QUOTATION_MARK:{this.state=rt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.publicId+=nn;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.publicId+=String.fromCodePoint(g)}}_stateDoctypePublicIdentifierSingleQuoted(g){const K=this.currentToken;switch(g){case He.APOSTROPHE:{this.state=rt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.publicId+=nn;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.publicId+=String.fromCodePoint(g)}}_stateAfterDoctypePublicIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case He.GREATER_THAN_SIGN:{this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.QUOTATION_MARK:{this._err(sn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(sn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBetweenDoctypePublicAndSystemIdentifiers(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.QUOTATION_MARK:{K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateAfterDoctypeSystemKeyword(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=rt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.QUOTATION_MARK:{this._err(sn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(sn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypeSystemIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.systemId="",this.state=rt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(sn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypeSystemIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case He.QUOTATION_MARK:{this.state=rt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.systemId+=nn;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.systemId+=String.fromCodePoint(g)}}_stateDoctypeSystemIdentifierSingleQuoted(g){const K=this.currentToken;switch(g){case He.APOSTROPHE:{this.state=rt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.NULL:{this._err(sn.unexpectedNullCharacter),K.systemId+=nn;break}case He.GREATER_THAN_SIGN:{this._err(sn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.systemId+=String.fromCodePoint(g)}}_stateAfterDoctypeSystemIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.EOF:{this._err(sn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(sn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=rt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBogusDoctype(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=rt.DATA;break}case He.NULL:{this._err(sn.unexpectedNullCharacter);break}case He.EOF:{this.emitCurrentDoctype(K),this._emitEOFToken();break}default:}}_stateCdataSection(g){switch(g){case He.RIGHT_SQUARE_BRACKET:{this.state=rt.CDATA_SECTION_BRACKET;break}case He.EOF:{this._err(sn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateCdataSectionBracket(g){g===He.RIGHT_SQUARE_BRACKET?this.state=rt.CDATA_SECTION_END:(this._emitChars("]"),this.state=rt.CDATA_SECTION,this._stateCdataSection(g))}_stateCdataSectionEnd(g){switch(g){case He.GREATER_THAN_SIGN:{this.state=rt.DATA;break}case He.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=rt.CDATA_SECTION,this._stateCdataSection(g)}}_stateCharacterReference(){let g=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(g<0)if(this.preprocessor.lastChunkWritten)g=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}g===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(He.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&re(this.preprocessor.peek(1))?rt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(g){re(g)?this._flushCodePointConsumedAsCharacterReference(g):(g===He.SEMICOLON&&this._err(sn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(g))}}const _i=new Set([L.DD,L.DT,L.LI,L.OPTGROUP,L.OPTION,L.P,L.RB,L.RP,L.RT,L.RTC]),Xt=new Set([..._i,L.CAPTION,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]),Ei=new Set([L.APPLET,L.CAPTION,L.HTML,L.MARQUEE,L.OBJECT,L.TABLE,L.TD,L.TEMPLATE,L.TH]),Zt=new Set([...Ei,L.OL,L.UL]),Bi=new Set([...Ei,L.BUTTON]),Gr=new Set([L.ANNOTATION_XML,L.MI,L.MN,L.MO,L.MS,L.MTEXT]),At=new Set([L.DESC,L.FOREIGN_OBJECT,L.TITLE]),eo=new Set([L.TR,L.TEMPLATE,L.HTML]),Qt=new Set([L.TBODY,L.TFOOT,L.THEAD,L.TEMPLATE,L.HTML]),Li=new Set([L.TABLE,L.TEMPLATE,L.HTML]),wi=new Set([L.TD,L.TH]);class pr{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(g,K,nt){this.treeAdapter=K,this.handler=nt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=L.UNKNOWN,this.current=g}_indexOf(g){return this.items.lastIndexOf(g,this.stackTop)}_isInTemplate(){return this.currentTagId===L.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===at.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(g,K){this.stackTop++,this.items[this.stackTop]=g,this.current=g,this.tagIDs[this.stackTop]=K,this.currentTagId=K,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(g,K,!0)}pop(){const g=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!0)}replace(g,K){const nt=this._indexOf(g);this.items[nt]=K,nt===this.stackTop&&(this.current=K)}insertAfter(g,K,nt){const mn=this._indexOf(g)+1;this.items.splice(mn,0,K),this.tagIDs.splice(mn,0,nt),this.stackTop++,mn===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,mn===this.stackTop)}popUntilTagNamePopped(g){let K=this.stackTop+1;do K=this.tagIDs.lastIndexOf(g,K-1);while(K>0&&this.treeAdapter.getNamespaceURI(this.items[K])!==at.HTML);this.shortenToLength(K<0?0:K)}shortenToLength(g){for(;this.stackTop>=g;){const K=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(K,this.stackTop<g)}}popUntilElementPopped(g){const K=this._indexOf(g);this.shortenToLength(K<0?0:K)}popUntilPopped(g,K){const nt=this._indexOfTagNames(g,K);this.shortenToLength(nt<0?0:nt)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Cn,at.HTML)}popUntilTableCellPopped(){this.popUntilPopped(wi,at.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(g,K){for(let nt=this.stackTop;nt>=0;nt--)if(g.has(this.tagIDs[nt])&&this.treeAdapter.getNamespaceURI(this.items[nt])===K)return nt;return-1}clearBackTo(g,K){const nt=this._indexOfTagNames(g,K);this.shortenToLength(nt+1)}clearBackToTableContext(){this.clearBackTo(Li,at.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Qt,at.HTML)}clearBackToTableRowContext(){this.clearBackTo(eo,at.HTML)}remove(g){const K=this._indexOf(g);K>=0&&(K===this.stackTop?this.pop():(this.items.splice(K,1),this.tagIDs.splice(K,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(g){return this._indexOf(g)>-1}getCommonAncestor(g){const K=this._indexOf(g)-1;return K>=0?this.items[K]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===L.HTML}hasInDynamicScope(g,K){for(let nt=this.stackTop;nt>=0;nt--){const mn=this.tagIDs[nt];switch(this.treeAdapter.getNamespaceURI(this.items[nt])){case at.HTML:{if(mn===g)return!0;if(K.has(mn))return!1;break}case at.SVG:{if(At.has(mn))return!1;break}case at.MATHML:{if(Gr.has(mn))return!1;break}}}return!0}hasInScope(g){return this.hasInDynamicScope(g,Ei)}hasInListItemScope(g){return this.hasInDynamicScope(g,Zt)}hasInButtonScope(g){return this.hasInDynamicScope(g,Bi)}hasNumberedHeaderInScope(){for(let g=this.stackTop;g>=0;g--){const K=this.tagIDs[g];switch(this.treeAdapter.getNamespaceURI(this.items[g])){case at.HTML:{if(Cn.has(K))return!0;if(Ei.has(K))return!1;break}case at.SVG:{if(At.has(K))return!1;break}case at.MATHML:{if(Gr.has(K))return!1;break}}}return!0}hasInTableScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===at.HTML)switch(this.tagIDs[K]){case g:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let g=this.stackTop;g>=0;g--)if(this.treeAdapter.getNamespaceURI(this.items[g])===at.HTML)switch(this.tagIDs[g]){case L.TBODY:case L.THEAD:case L.TFOOT:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasInSelectScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===at.HTML)switch(this.tagIDs[K]){case g:return!0;case L.OPTION:case L.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;_i.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Xt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(g){for(;this.currentTagId!==g&&Xt.has(this.currentTagId);)this.pop()}}const ar=3;var Zn;(function(d){d[d.Marker=0]="Marker",d[d.Element=1]="Element"})(Zn||(Zn={}));const ce={type:Zn.Marker};class mr{constructor(g){this.treeAdapter=g,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(g,K){const nt=[],mn=K.length,Yn=this.treeAdapter.getTagName(g),Ci=this.treeAdapter.getNamespaceURI(g);for(let wr=0;wr<this.entries.length;wr++){const zr=this.entries[wr];if(zr.type===Zn.Marker)break;const{element:Yr}=zr;if(this.treeAdapter.getTagName(Yr)===Yn&&this.treeAdapter.getNamespaceURI(Yr)===Ci){const Ra=this.treeAdapter.getAttrList(Yr);Ra.length===mn&&nt.push({idx:wr,attrs:Ra})}}return nt}_ensureNoahArkCondition(g){if(this.entries.length<ar)return;const K=this.treeAdapter.getAttrList(g),nt=this._getNoahArkConditionCandidates(g,K);if(nt.length<ar)return;const mn=new Map(K.map(Ci=>[Ci.name,Ci.value]));let Yn=0;for(let Ci=0;Ci<nt.length;Ci++){const wr=nt[Ci];wr.attrs.every(zr=>mn.get(zr.name)===zr.value)&&(Yn+=1,Yn>=ar&&this.entries.splice(wr.idx,1))}}insertMarker(){this.entries.unshift(ce)}pushElement(g,K){this._ensureNoahArkCondition(g),this.entries.unshift({type:Zn.Element,element:g,token:K})}insertElementAfterBookmark(g,K){const nt=this.entries.indexOf(this.bookmark);this.entries.splice(nt,0,{type:Zn.Element,element:g,token:K})}removeEntry(g){const K=this.entries.indexOf(g);K>=0&&this.entries.splice(K,1)}clearToLastMarker(){const g=this.entries.indexOf(ce);g>=0?this.entries.splice(0,g+1):this.entries.length=0}getElementEntryInScopeWithTagName(g){const K=this.entries.find(nt=>nt.type===Zn.Marker||this.treeAdapter.getTagName(nt.element)===g);return K&&K.type===Zn.Element?K:null}getElementEntry(g){return this.entries.find(K=>K.type===Zn.Element&&K.element===g)}}const Er={createDocument(){return{nodeName:"#document",mode:yt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(d,g,K){return{nodeName:d,tagName:d,attrs:K,namespaceURI:g,childNodes:[],parentNode:null}},createCommentNode(d){return{nodeName:"#comment",data:d,parentNode:null}},createTextNode(d){return{nodeName:"#text",value:d,parentNode:null}},appendChild(d,g){d.childNodes.push(g),g.parentNode=d},insertBefore(d,g,K){const nt=d.childNodes.indexOf(K);d.childNodes.splice(nt,0,g),g.parentNode=d},setTemplateContent(d,g){d.content=g},getTemplateContent(d){return d.content},setDocumentType(d,g,K,nt){const mn=d.childNodes.find(Yn=>Yn.nodeName==="#documentType");if(mn)mn.name=g,mn.publicId=K,mn.systemId=nt;else{const Yn={nodeName:"#documentType",name:g,publicId:K,systemId:nt,parentNode:null};Er.appendChild(d,Yn)}},setDocumentMode(d,g){d.mode=g},getDocumentMode(d){return d.mode},detachNode(d){if(d.parentNode){const g=d.parentNode.childNodes.indexOf(d);d.parentNode.childNodes.splice(g,1),d.parentNode=null}},insertText(d,g){if(d.childNodes.length>0){const K=d.childNodes[d.childNodes.length-1];if(Er.isTextNode(K)){K.value+=g;return}}Er.appendChild(d,Er.createTextNode(g))},insertTextBefore(d,g,K){const nt=d.childNodes[d.childNodes.indexOf(K)-1];nt&&Er.isTextNode(nt)?nt.value+=g:Er.insertBefore(d,Er.createTextNode(g),K)},adoptAttributes(d,g){const K=new Set(d.attrs.map(nt=>nt.name));for(let nt=0;nt<g.length;nt++)K.has(g[nt].name)||d.attrs.push(g[nt])},getFirstChild(d){return d.childNodes[0]},getChildNodes(d){return d.childNodes},getParentNode(d){return d.parentNode},getAttrList(d){return d.attrs},getTagName(d){return d.tagName},getNamespaceURI(d){return d.namespaceURI},getTextNodeContent(d){return d.value},getCommentNodeContent(d){return d.data},getDocumentTypeNodeName(d){return d.name},getDocumentTypeNodePublicId(d){return d.publicId},getDocumentTypeNodeSystemId(d){return d.systemId},isTextNode(d){return d.nodeName==="#text"},isCommentNode(d){return d.nodeName==="#comment"},isDocumentTypeNode(d){return d.nodeName==="#documentType"},isElementNode(d){return Object.prototype.hasOwnProperty.call(d,"tagName")},setNodeSourceCodeLocation(d,g){d.sourceCodeLocation=g},getNodeSourceCodeLocation(d){return d.sourceCodeLocation},updateNodeSourceCodeLocation(d,g){d.sourceCodeLocation=Uo(Uo({},d.sourceCodeLocation),g)}},cr="html",Wr="about:legacy-compat",Wi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Kr=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ri=[...Kr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ui=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Di=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Cr=[...Di,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Tr(d,g){return g.some(K=>d.startsWith(K))}function io(d){return d.name===cr&&d.publicId===null&&(d.systemId===null||d.systemId===Wr)}function bo(d){if(d.name!==cr)return yt.QUIRKS;const{systemId:g}=d;if(g&&g.toLowerCase()===Wi)return yt.QUIRKS;let{publicId:K}=d;if(K!==null){if(K=K.toLowerCase(),Ui.has(K))return yt.QUIRKS;let nt=g===null?Ri:Kr;if(Tr(K,nt))return yt.QUIRKS;if(nt=g===null?Di:Cr,Tr(K,nt))return yt.LIMITED_QUIRKS}return yt.NO_QUIRKS}const mi={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Sa="definitionurl",Wo="definitionURL",Jo=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(d=>[d.toLowerCase(),d])),Ta=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:at.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:at.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:at.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:at.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:at.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:at.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:at.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:at.XML}],["xml:space",{prefix:"xml",name:"space",namespace:at.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:at.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:at.XMLNS}]]),Ya=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(d=>[d.toLowerCase(),d])),ns=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function Na(d){const g=d.tagID;return g===L.FONT&&d.attrs.some(({name:nt})=>nt===hn.COLOR||nt===hn.SIZE||nt===hn.FACE)||ns.has(g)}function cs(d){for(let g=0;g<d.attrs.length;g++)if(d.attrs[g].name===Sa){d.attrs[g].name=Wo;break}}function Za(d){for(let g=0;g<d.attrs.length;g++){const K=Jo.get(d.attrs[g].name);K!=null&&(d.attrs[g].name=K)}}function jo(d){for(let g=0;g<d.attrs.length;g++){const K=Ta.get(d.attrs[g].name);K&&(d.attrs[g].prefix=K.prefix,d.attrs[g].name=K.name,d.attrs[g].namespace=K.namespace)}}function Wt(d){const g=Ya.get(d.tagName);g!=null&&(d.tagName=g,d.tagID=Jt(d.tagName))}function Ba(d,g){return g===at.MATHML&&(d===L.MI||d===L.MO||d===L.MN||d===L.MS||d===L.MTEXT)}function eu(d,g,K){if(g===at.MATHML&&d===L.ANNOTATION_XML){for(let nt=0;nt<K.length;nt++)if(K[nt].name===hn.ENCODING){const mn=K[nt].value.toLowerCase();return mn===mi.TEXT_HTML||mn===mi.APPLICATION_XML}}return g===at.SVG&&(d===L.FOREIGN_OBJECT||d===L.DESC||d===L.TITLE)}function ol(d,g,K,nt){return(!nt||nt===at.HTML)&&eu(d,g,K)||(!nt||nt===at.MATHML)&&Ba(d,g)}const po="hidden",ko=8,yo=3;var Mt;(function(d){d[d.INITIAL=0]="INITIAL",d[d.BEFORE_HTML=1]="BEFORE_HTML",d[d.BEFORE_HEAD=2]="BEFORE_HEAD",d[d.IN_HEAD=3]="IN_HEAD",d[d.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",d[d.AFTER_HEAD=5]="AFTER_HEAD",d[d.IN_BODY=6]="IN_BODY",d[d.TEXT=7]="TEXT",d[d.IN_TABLE=8]="IN_TABLE",d[d.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",d[d.IN_CAPTION=10]="IN_CAPTION",d[d.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",d[d.IN_TABLE_BODY=12]="IN_TABLE_BODY",d[d.IN_ROW=13]="IN_ROW",d[d.IN_CELL=14]="IN_CELL",d[d.IN_SELECT=15]="IN_SELECT",d[d.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",d[d.IN_TEMPLATE=17]="IN_TEMPLATE",d[d.AFTER_BODY=18]="AFTER_BODY",d[d.IN_FRAMESET=19]="IN_FRAMESET",d[d.AFTER_FRAMESET=20]="AFTER_FRAMESET",d[d.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",d[d.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Mt||(Mt={}));const Dr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},mo=new Set([L.TABLE,L.TBODY,L.TFOOT,L.THEAD,L.TR]),Ea={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Er,onParseError:null};class xr{constructor(g,K,nt=null,mn=null){this.fragmentContext=nt,this.scriptHandler=mn,this.currentToken=null,this.stopped=!1,this.insertionMode=Mt.INITIAL,this.originalInsertionMode=Mt.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Uo(Uo({},Ea),g),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=K!=null?K:this.treeAdapter.createDocument(),this.tokenizer=new Rn(this.options,this),this.activeFormattingElements=new mr(this.treeAdapter),this.fragmentContextID=nt?Jt(this.treeAdapter.getTagName(nt)):L.UNKNOWN,this._setContextModes(nt!=null?nt:this.document,this.fragmentContextID),this.openElements=new pr(this.document,this.treeAdapter,this)}static parse(g,K){const nt=new this(K);return nt.tokenizer.write(g,!0),nt.document}static getFragmentParser(g,K){const nt=Uo(Uo({},Ea),K);g!=null||(g=nt.treeAdapter.createElement(Ge.TEMPLATE,at.HTML,[]));const mn=nt.treeAdapter.createElement("documentmock",at.HTML,[]),Yn=new this(nt,mn,g);return Yn.fragmentContextID===L.TEMPLATE&&Yn.tmplInsertionModeStack.unshift(Mt.IN_TEMPLATE),Yn._initTokenizerForFragmentParsing(),Yn._insertFakeRootElement(),Yn._resetInsertionMode(),Yn._findFormInFragmentContext(),Yn}getFragment(){const g=this.treeAdapter.getFirstChild(this.document),K=this.treeAdapter.createDocumentFragment();return this._adoptNodes(g,K),K}_err(g,K,nt){var mn;if(!this.onParseError)return;const Yn=(mn=g.location)!==null&&mn!==void 0?mn:Dr,Ci={code:K,startLine:Yn.startLine,startCol:Yn.startCol,startOffset:Yn.startOffset,endLine:nt?Yn.startLine:Yn.endLine,endCol:nt?Yn.startCol:Yn.endCol,endOffset:nt?Yn.startOffset:Yn.endOffset};this.onParseError(Ci)}onItemPush(g,K,nt){var mn,Yn;(Yn=(mn=this.treeAdapter).onItemPush)===null||Yn===void 0||Yn.call(mn,g),nt&&this.openElements.stackTop>0&&this._setContextModes(g,K)}onItemPop(g,K){var nt,mn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(g,this.currentToken),(mn=(nt=this.treeAdapter).onItemPop)===null||mn===void 0||mn.call(nt,g,this.openElements.current),K){let Yn,Ci;this.openElements.stackTop===0&&this.fragmentContext?(Yn=this.fragmentContext,Ci=this.fragmentContextID):{current:Yn,currentTagId:Ci}=this.openElements,this._setContextModes(Yn,Ci)}}_setContextModes(g,K){const nt=g===this.document||this.treeAdapter.getNamespaceURI(g)===at.HTML;this.currentNotInHTML=!nt,this.tokenizer.inForeignNode=!nt&&!this._isIntegrationPoint(K,g)}_switchToTextParsing(g,K){this._insertElement(g,at.HTML),this.tokenizer.state=K,this.originalInsertionMode=this.insertionMode,this.insertionMode=Mt.TEXT}switchToPlaintextParsing(){this.insertionMode=Mt.TEXT,this.originalInsertionMode=Mt.IN_BODY,this.tokenizer.state=Oi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let g=this.fragmentContext;for(;g;){if(this.treeAdapter.getTagName(g)===Ge.FORM){this.formElement=g;break}g=this.treeAdapter.getParentNode(g)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==at.HTML))switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:{this.tokenizer.state=Oi.RCDATA;break}case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:{this.tokenizer.state=Oi.RAWTEXT;break}case L.SCRIPT:{this.tokenizer.state=Oi.SCRIPT_DATA;break}case L.PLAINTEXT:{this.tokenizer.state=Oi.PLAINTEXT;break}default:}}_setDocumentType(g){const K=g.name||"",nt=g.publicId||"",mn=g.systemId||"";if(this.treeAdapter.setDocumentType(this.document,K,nt,mn),g.location){const Ci=this.treeAdapter.getChildNodes(this.document).find(wr=>this.treeAdapter.isDocumentTypeNode(wr));Ci&&this.treeAdapter.setNodeSourceCodeLocation(Ci,g.location)}}_attachElementToTree(g,K){if(this.options.sourceCodeLocationInfo){const nt=K&&cd(Uo({},K),{startTag:K});this.treeAdapter.setNodeSourceCodeLocation(g,nt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(g);else{const nt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(nt,g)}}_appendElement(g,K){const nt=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(nt,g.location)}_insertElement(g,K){const nt=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(nt,g.location),this.openElements.push(nt,g.tagID)}_insertFakeElement(g,K){const nt=this.treeAdapter.createElement(g,at.HTML,[]);this._attachElementToTree(nt,null),this.openElements.push(nt,K)}_insertTemplate(g){const K=this.treeAdapter.createElement(g.tagName,at.HTML,g.attrs),nt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(K,nt),this._attachElementToTree(K,g.location),this.openElements.push(K,g.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nt,null)}_insertFakeRootElement(){const g=this.treeAdapter.createElement(Ge.HTML,at.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(g,null),this.treeAdapter.appendChild(this.openElements.current,g),this.openElements.push(g,L.HTML)}_appendCommentNode(g,K){const nt=this.treeAdapter.createCommentNode(g.data);this.treeAdapter.appendChild(K,nt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nt,g.location)}_insertCharacters(g){let K,nt;if(this._shouldFosterParentOnInsertion()?({parent:K,beforeElement:nt}=this._findFosterParentingLocation(),nt?this.treeAdapter.insertTextBefore(K,g.chars,nt):this.treeAdapter.insertText(K,g.chars)):(K=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(K,g.chars)),!g.location)return;const mn=this.treeAdapter.getChildNodes(K),Yn=nt?mn.lastIndexOf(nt):mn.length,Ci=mn[Yn-1];if(this.treeAdapter.getNodeSourceCodeLocation(Ci)){const{endLine:zr,endCol:Yr,endOffset:Ra}=g.location;this.treeAdapter.updateNodeSourceCodeLocation(Ci,{endLine:zr,endCol:Yr,endOffset:Ra})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ci,g.location)}_adoptNodes(g,K){for(let nt=this.treeAdapter.getFirstChild(g);nt;nt=this.treeAdapter.getFirstChild(g))this.treeAdapter.detachNode(nt),this.treeAdapter.appendChild(K,nt)}_setEndLocation(g,K){if(this.treeAdapter.getNodeSourceCodeLocation(g)&&K.location){const nt=K.location,mn=this.treeAdapter.getTagName(g),Yn=K.type===qn.END_TAG&&mn===K.tagName?{endTag:Uo({},nt),endLine:nt.endLine,endCol:nt.endCol,endOffset:nt.endOffset}:{endLine:nt.startLine,endCol:nt.startCol,endOffset:nt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(g,Yn)}}shouldProcessStartTagTokenInForeignContent(g){if(!this.currentNotInHTML)return!1;let K,nt;return this.openElements.stackTop===0&&this.fragmentContext?(K=this.fragmentContext,nt=this.fragmentContextID):{current:K,currentTagId:nt}=this.openElements,g.tagID===L.SVG&&this.treeAdapter.getTagName(K)===Ge.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(K)===at.MATHML?!1:this.tokenizer.inForeignNode||(g.tagID===L.MGLYPH||g.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(nt,K,at.HTML)}_processToken(g){switch(g.type){case qn.CHARACTER:{this.onCharacter(g);break}case qn.NULL_CHARACTER:{this.onNullCharacter(g);break}case qn.COMMENT:{this.onComment(g);break}case qn.DOCTYPE:{this.onDoctype(g);break}case qn.START_TAG:{this._processStartTag(g);break}case qn.END_TAG:{this.onEndTag(g);break}case qn.EOF:{this.onEof(g);break}case qn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(g);break}}}_isIntegrationPoint(g,K,nt){const mn=this.treeAdapter.getNamespaceURI(K),Yn=this.treeAdapter.getAttrList(K);return ol(g,mn,Yn,nt)}_reconstructActiveFormattingElements(){const g=this.activeFormattingElements.entries.length;if(g){const K=this.activeFormattingElements.entries.findIndex(mn=>mn.type===Zn.Marker||this.openElements.contains(mn.element)),nt=K<0?g-1:K-1;for(let mn=nt;mn>=0;mn--){const Yn=this.activeFormattingElements.entries[mn];this._insertElement(Yn.token,this.treeAdapter.getNamespaceURI(Yn.element)),Yn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Mt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let g=this.openElements.stackTop;g>=0;g--)switch(g===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[g]){case L.TR:{this.insertionMode=Mt.IN_ROW;return}case L.TBODY:case L.THEAD:case L.TFOOT:{this.insertionMode=Mt.IN_TABLE_BODY;return}case L.CAPTION:{this.insertionMode=Mt.IN_CAPTION;return}case L.COLGROUP:{this.insertionMode=Mt.IN_COLUMN_GROUP;return}case L.TABLE:{this.insertionMode=Mt.IN_TABLE;return}case L.BODY:{this.insertionMode=Mt.IN_BODY;return}case L.FRAMESET:{this.insertionMode=Mt.IN_FRAMESET;return}case L.SELECT:{this._resetInsertionModeForSelect(g);return}case L.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case L.HTML:{this.insertionMode=this.headElement?Mt.AFTER_HEAD:Mt.BEFORE_HEAD;return}case L.TD:case L.TH:{if(g>0){this.insertionMode=Mt.IN_CELL;return}break}case L.HEAD:{if(g>0){this.insertionMode=Mt.IN_HEAD;return}break}}this.insertionMode=Mt.IN_BODY}_resetInsertionModeForSelect(g){if(g>0)for(let K=g-1;K>0;K--){const nt=this.openElements.tagIDs[K];if(nt===L.TEMPLATE)break;if(nt===L.TABLE){this.insertionMode=Mt.IN_SELECT_IN_TABLE;return}}this.insertionMode=Mt.IN_SELECT}_isElementCausesFosterParenting(g){return mo.has(g)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let g=this.openElements.stackTop;g>=0;g--){const K=this.openElements.items[g];switch(this.openElements.tagIDs[g]){case L.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(K)===at.HTML)return{parent:this.treeAdapter.getTemplateContent(K),beforeElement:null};break}case L.TABLE:{const nt=this.treeAdapter.getParentNode(K);return nt?{parent:nt,beforeElement:K}:{parent:this.openElements.items[g-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(g){const K=this._findFosterParentingLocation();K.beforeElement?this.treeAdapter.insertBefore(K.parent,g,K.beforeElement):this.treeAdapter.appendChild(K.parent,g)}_isSpecialElement(g,K){const nt=this.treeAdapter.getNamespaceURI(g);return fn[nt].has(K)}onCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){E(this,g);return}switch(this.insertionMode){case Mt.INITIAL:{Yo(this,g);break}case Mt.BEFORE_HTML:{al(this,g);break}case Mt.BEFORE_HEAD:{Ho(this,g);break}case Mt.IN_HEAD:{Oa(this,g);break}case Mt.IN_HEAD_NO_SCRIPT:{js(this,g);break}case Mt.AFTER_HEAD:{as(this,g);break}case Mt.IN_BODY:case Mt.IN_CAPTION:case Mt.IN_CELL:case Mt.IN_TEMPLATE:{Ki(this,g);break}case Mt.TEXT:case Mt.IN_SELECT:case Mt.IN_SELECT_IN_TABLE:{this._insertCharacters(g);break}case Mt.IN_TABLE:case Mt.IN_TABLE_BODY:case Mt.IN_ROW:{Ir(this,g);break}case Mt.IN_TABLE_TEXT:{tu(this,g);break}case Mt.IN_COLUMN_GROUP:{pu(this,g);break}case Mt.AFTER_BODY:{zn(this,g);break}case Mt.AFTER_AFTER_BODY:{ji(this,g);break}default:}}onNullCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Gi(this,g);return}switch(this.insertionMode){case Mt.INITIAL:{Yo(this,g);break}case Mt.BEFORE_HTML:{al(this,g);break}case Mt.BEFORE_HEAD:{Ho(this,g);break}case Mt.IN_HEAD:{Oa(this,g);break}case Mt.IN_HEAD_NO_SCRIPT:{js(this,g);break}case Mt.AFTER_HEAD:{as(this,g);break}case Mt.TEXT:{this._insertCharacters(g);break}case Mt.IN_TABLE:case Mt.IN_TABLE_BODY:case Mt.IN_ROW:{Ir(this,g);break}case Mt.IN_COLUMN_GROUP:{pu(this,g);break}case Mt.AFTER_BODY:{zn(this,g);break}case Mt.AFTER_AFTER_BODY:{ji(this,g);break}default:}}onComment(g){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ns(this,g);return}switch(this.insertionMode){case Mt.INITIAL:case Mt.BEFORE_HTML:case Mt.BEFORE_HEAD:case Mt.IN_HEAD:case Mt.IN_HEAD_NO_SCRIPT:case Mt.AFTER_HEAD:case Mt.IN_BODY:case Mt.IN_TABLE:case Mt.IN_CAPTION:case Mt.IN_COLUMN_GROUP:case Mt.IN_TABLE_BODY:case Mt.IN_ROW:case Mt.IN_CELL:case Mt.IN_SELECT:case Mt.IN_SELECT_IN_TABLE:case Mt.IN_TEMPLATE:case Mt.IN_FRAMESET:case Mt.AFTER_FRAMESET:{Ns(this,g);break}case Mt.IN_TABLE_TEXT:{vl(this,g);break}case Mt.AFTER_BODY:{si(this,g);break}case Mt.AFTER_AFTER_BODY:case Mt.AFTER_AFTER_FRAMESET:{Hi(this,g);break}default:}}onDoctype(g){switch(this.skipNextNewLine=!1,this.insertionMode){case Mt.INITIAL:{As(this,g);break}case Mt.BEFORE_HEAD:case Mt.IN_HEAD:case Mt.IN_HEAD_NO_SCRIPT:case Mt.AFTER_HEAD:{this._err(g,sn.misplacedDoctype);break}case Mt.IN_TABLE_TEXT:{vl(this,g);break}default:}}onStartTag(g){this.skipNextNewLine=!1,this.currentToken=g,this._processStartTag(g),g.selfClosing&&!g.ackSelfClosing&&this._err(g,sn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(g){this.shouldProcessStartTagTokenInForeignContent(g)?W(this,g):this._startTagOutsideForeignContent(g)}_startTagOutsideForeignContent(g){switch(this.insertionMode){case Mt.INITIAL:{Yo(this,g);break}case Mt.BEFORE_HTML:{rs(this,g);break}case Mt.BEFORE_HEAD:{Ds(this,g);break}case Mt.IN_HEAD:{os(this,g);break}case Mt.IN_HEAD_NO_SCRIPT:{ml(this,g);break}case Mt.AFTER_HEAD:{wu(this,g);break}case Mt.IN_BODY:{So(this,g);break}case Mt.IN_TABLE:{Qs(this,g);break}case Mt.IN_TABLE_TEXT:{vl(this,g);break}case Mt.IN_CAPTION:{Js(this,g);break}case Mt.IN_COLUMN_GROUP:{Zs(this,g);break}case Mt.IN_TABLE_BODY:{Tu(this,g);break}case Mt.IN_ROW:{ll(this,g);break}case Mt.IN_CELL:{Vl(this,g);break}case Mt.IN_SELECT:{Ee(this,g);break}case Mt.IN_SELECT_IN_TABLE:{ht(this,g);break}case Mt.IN_TEMPLATE:{_t(this,g);break}case Mt.AFTER_BODY:{yn(this,g);break}case Mt.IN_FRAMESET:{$n(this,g);break}case Mt.AFTER_FRAMESET:{yi(this,g);break}case Mt.AFTER_AFTER_BODY:{ti(this,g);break}case Mt.AFTER_AFTER_FRAMESET:{ci(this,g);break}default:}}onEndTag(g){this.skipNextNewLine=!1,this.currentToken=g,this.currentNotInHTML?q(this,g):this._endTagOutsideForeignContent(g)}_endTagOutsideForeignContent(g){switch(this.insertionMode){case Mt.INITIAL:{Yo(this,g);break}case Mt.BEFORE_HTML:{Lr(this,g);break}case Mt.BEFORE_HEAD:{Ps(this,g);break}case Mt.IN_HEAD:{Ol(this,g);break}case Mt.IN_HEAD_NO_SCRIPT:{Xo(this,g);break}case Mt.AFTER_HEAD:{Ll(this,g);break}case Mt.IN_BODY:{ia(this,g);break}case Mt.TEXT:{_o(this,g);break}case Mt.IN_TABLE:{Io(this,g);break}case Mt.IN_TABLE_TEXT:{vl(this,g);break}case Mt.IN_CAPTION:{Wl(this,g);break}case Mt.IN_COLUMN_GROUP:{fu(this,g);break}case Mt.IN_TABLE_BODY:{Nu(this,g);break}case Mt.IN_ROW:{vs(this,g);break}case Mt.IN_CELL:{zu(this,g);break}case Mt.IN_SELECT:{Le(this,g);break}case Mt.IN_SELECT_IN_TABLE:{bt(this,g);break}case Mt.IN_TEMPLATE:{Ot(this,g);break}case Mt.AFTER_BODY:{ln(this,g);break}case Mt.IN_FRAMESET:{Gn(this,g);break}case Mt.AFTER_FRAMESET:{bi(this,g);break}case Mt.AFTER_AFTER_BODY:{ji(this,g);break}default:}}onEof(g){switch(this.insertionMode){case Mt.INITIAL:{Yo(this,g);break}case Mt.BEFORE_HTML:{al(this,g);break}case Mt.BEFORE_HEAD:{Ho(this,g);break}case Mt.IN_HEAD:{Oa(this,g);break}case Mt.IN_HEAD_NO_SCRIPT:{js(this,g);break}case Mt.AFTER_HEAD:{as(this,g);break}case Mt.IN_BODY:case Mt.IN_TABLE:case Mt.IN_CAPTION:case Mt.IN_COLUMN_GROUP:case Mt.IN_TABLE_BODY:case Mt.IN_ROW:case Mt.IN_CELL:case Mt.IN_SELECT:case Mt.IN_SELECT_IN_TABLE:{wa(this,g);break}case Mt.TEXT:{du(this,g);break}case Mt.IN_TABLE_TEXT:{vl(this,g);break}case Mt.IN_TEMPLATE:{ge(this,g);break}case Mt.AFTER_BODY:case Mt.IN_FRAMESET:case Mt.AFTER_FRAMESET:case Mt.AFTER_AFTER_BODY:case Mt.AFTER_AFTER_FRAMESET:{ta(this,g);break}default:}}onWhitespaceCharacter(g){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,g.chars.charCodeAt(0)===He.LINE_FEED)){if(g.chars.length===1)return;g.chars=g.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(g);return}switch(this.insertionMode){case Mt.IN_HEAD:case Mt.IN_HEAD_NO_SCRIPT:case Mt.AFTER_HEAD:case Mt.TEXT:case Mt.IN_COLUMN_GROUP:case Mt.IN_SELECT:case Mt.IN_SELECT_IN_TABLE:case Mt.IN_FRAMESET:case Mt.AFTER_FRAMESET:{this._insertCharacters(g);break}case Mt.IN_BODY:case Mt.IN_CAPTION:case Mt.IN_CELL:case Mt.IN_TEMPLATE:case Mt.AFTER_BODY:case Mt.AFTER_AFTER_BODY:case Mt.AFTER_AFTER_FRAMESET:{Gs(this,g);break}case Mt.IN_TABLE:case Mt.IN_TABLE_BODY:case Mt.IN_ROW:{Ir(this,g);break}case Mt.IN_TABLE_TEXT:{dc(this,g);break}default:}}}function Sn(d,g){let K=d.activeFormattingElements.getElementEntryInScopeWithTagName(g.tagName);return K?d.openElements.contains(K.element)?d.openElements.hasInScope(g.tagID)||(K=null):(d.activeFormattingElements.removeEntry(K),K=null):qo(d,g),K}function ur(d,g){let K=null,nt=d.openElements.stackTop;for(;nt>=0;nt--){const mn=d.openElements.items[nt];if(mn===g.element)break;d._isSpecialElement(mn,d.openElements.tagIDs[nt])&&(K=mn)}return K||(d.openElements.shortenToLength(nt<0?0:nt),d.activeFormattingElements.removeEntry(g)),K}function vi(d,g,K){let nt=g,mn=d.openElements.getCommonAncestor(g);for(let Yn=0,Ci=mn;Ci!==K;Yn++,Ci=mn){mn=d.openElements.getCommonAncestor(Ci);const wr=d.activeFormattingElements.getElementEntry(Ci),zr=wr&&Yn>=yo;!wr||zr?(zr&&d.activeFormattingElements.removeEntry(wr),d.openElements.remove(Ci)):(Ci=Vo(d,wr),nt===g&&(d.activeFormattingElements.bookmark=wr),d.treeAdapter.detachNode(nt),d.treeAdapter.appendChild(Ci,nt),nt=Ci)}return nt}function Vo(d,g){const K=d.treeAdapter.getNamespaceURI(g.element),nt=d.treeAdapter.createElement(g.token.tagName,K,g.token.attrs);return d.openElements.replace(g.element,nt),g.element=nt,nt}function ma(d,g,K){const nt=d.treeAdapter.getTagName(g),mn=Jt(nt);if(d._isElementCausesFosterParenting(mn))d._fosterParentElement(K);else{const Yn=d.treeAdapter.getNamespaceURI(g);mn===L.TEMPLATE&&Yn===at.HTML&&(g=d.treeAdapter.getTemplateContent(g)),d.treeAdapter.appendChild(g,K)}}function is(d,g,K){const nt=d.treeAdapter.getNamespaceURI(K.element),{token:mn}=K,Yn=d.treeAdapter.createElement(mn.tagName,nt,mn.attrs);d._adoptNodes(g,Yn),d.treeAdapter.appendChild(g,Yn),d.activeFormattingElements.insertElementAfterBookmark(Yn,mn),d.activeFormattingElements.removeEntry(K),d.openElements.remove(K.element),d.openElements.insertAfter(g,Yn,mn.tagID)}function Rs(d,g){for(let K=0;K<ko;K++){const nt=Sn(d,g);if(!nt)break;const mn=ur(d,nt);if(!mn)break;d.activeFormattingElements.bookmark=nt;const Yn=vi(d,mn,nt.element),Ci=d.openElements.getCommonAncestor(nt.element);d.treeAdapter.detachNode(Yn),Ci&&ma(d,Ci,Yn),is(d,mn,nt)}}function Ns(d,g){d._appendCommentNode(g,d.openElements.currentTmplContentOrNode)}function si(d,g){d._appendCommentNode(g,d.openElements.items[0])}function Hi(d,g){d._appendCommentNode(g,d.document)}function ta(d,g){if(d.stopped=!0,g.location){const K=d.fragmentContext?0:2;for(let nt=d.openElements.stackTop;nt>=K;nt--)d._setEndLocation(d.openElements.items[nt],g);if(!d.fragmentContext&&d.openElements.stackTop>=0){const nt=d.openElements.items[0],mn=d.treeAdapter.getNodeSourceCodeLocation(nt);if(mn&&!mn.endTag&&(d._setEndLocation(nt,g),d.openElements.stackTop>=1)){const Yn=d.openElements.items[1],Ci=d.treeAdapter.getNodeSourceCodeLocation(Yn);Ci&&!Ci.endTag&&d._setEndLocation(Yn,g)}}}}function As(d,g){d._setDocumentType(g);const K=g.forceQuirks?yt.QUIRKS:bo(g);io(g)||d._err(g,sn.nonConformingDoctype),d.treeAdapter.setDocumentMode(d.document,K),d.insertionMode=Mt.BEFORE_HTML}function Yo(d,g){d._err(g,sn.missingDoctype,!0),d.treeAdapter.setDocumentMode(d.document,yt.QUIRKS),d.insertionMode=Mt.BEFORE_HTML,d._processToken(g)}function rs(d,g){g.tagID===L.HTML?(d._insertElement(g,at.HTML),d.insertionMode=Mt.BEFORE_HEAD):al(d,g)}function Lr(d,g){const K=g.tagID;(K===L.HTML||K===L.HEAD||K===L.BODY||K===L.BR)&&al(d,g)}function al(d,g){d._insertFakeRootElement(),d.insertionMode=Mt.BEFORE_HEAD,d._processToken(g)}function Ds(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.HEAD:{d._insertElement(g,at.HTML),d.headElement=d.openElements.current,d.insertionMode=Mt.IN_HEAD;break}default:Ho(d,g)}}function Ps(d,g){const K=g.tagID;K===L.HEAD||K===L.BODY||K===L.HTML||K===L.BR?Ho(d,g):d._err(g,sn.endTagWithoutMatchingOpenElement)}function Ho(d,g){d._insertFakeElement(Ge.HEAD,L.HEAD),d.headElement=d.openElements.current,d.insertionMode=Mt.IN_HEAD,d._processToken(g)}function os(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:{d._appendElement(g,at.HTML),g.ackSelfClosing=!0;break}case L.TITLE:{d._switchToTextParsing(g,Oi.RCDATA);break}case L.NOSCRIPT:{d.options.scriptingEnabled?d._switchToTextParsing(g,Oi.RAWTEXT):(d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_HEAD_NO_SCRIPT);break}case L.NOFRAMES:case L.STYLE:{d._switchToTextParsing(g,Oi.RAWTEXT);break}case L.SCRIPT:{d._switchToTextParsing(g,Oi.SCRIPT_DATA);break}case L.TEMPLATE:{d._insertTemplate(g),d.activeFormattingElements.insertMarker(),d.framesetOk=!1,d.insertionMode=Mt.IN_TEMPLATE,d.tmplInsertionModeStack.unshift(Mt.IN_TEMPLATE);break}case L.HEAD:{d._err(g,sn.misplacedStartTagForHeadElement);break}default:Oa(d,g)}}function Ol(d,g){switch(g.tagID){case L.HEAD:{d.openElements.pop(),d.insertionMode=Mt.AFTER_HEAD;break}case L.BODY:case L.BR:case L.HTML:{Oa(d,g);break}case L.TEMPLATE:{Xa(d,g);break}default:d._err(g,sn.endTagWithoutMatchingOpenElement)}}function Xa(d,g){d.openElements.tmplCount>0?(d.openElements.generateImpliedEndTagsThoroughly(),d.openElements.currentTagId!==L.TEMPLATE&&d._err(g,sn.closingOfElementWithOpenChildElements),d.openElements.popUntilTagNamePopped(L.TEMPLATE),d.activeFormattingElements.clearToLastMarker(),d.tmplInsertionModeStack.shift(),d._resetInsertionMode()):d._err(g,sn.endTagWithoutMatchingOpenElement)}function Oa(d,g){d.openElements.pop(),d.insertionMode=Mt.AFTER_HEAD,d._processToken(g)}function ml(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:{os(d,g);break}case L.NOSCRIPT:{d._err(g,sn.nestedNoscriptInHead);break}default:js(d,g)}}function Xo(d,g){switch(g.tagID){case L.NOSCRIPT:{d.openElements.pop(),d.insertionMode=Mt.IN_HEAD;break}case L.BR:{js(d,g);break}default:d._err(g,sn.endTagWithoutMatchingOpenElement)}}function js(d,g){const K=g.type===qn.EOF?sn.openElementsLeftAfterEof:sn.disallowedContentInNoscriptInHead;d._err(g,K),d.openElements.pop(),d.insertionMode=Mt.IN_HEAD,d._processToken(g)}function wu(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.BODY:{d._insertElement(g,at.HTML),d.framesetOk=!1,d.insertionMode=Mt.IN_BODY;break}case L.FRAMESET:{d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_FRAMESET;break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{d._err(g,sn.abandonedHeadElementChild),d.openElements.push(d.headElement,L.HEAD),os(d,g),d.openElements.remove(d.headElement);break}case L.HEAD:{d._err(g,sn.misplacedStartTagForHeadElement);break}default:as(d,g)}}function Ll(d,g){switch(g.tagID){case L.BODY:case L.HTML:case L.BR:{as(d,g);break}case L.TEMPLATE:{Xa(d,g);break}default:d._err(g,sn.endTagWithoutMatchingOpenElement)}}function as(d,g){d._insertFakeElement(Ge.BODY,L.BODY),d.insertionMode=Mt.IN_BODY,Fa(d,g)}function Fa(d,g){switch(g.type){case qn.CHARACTER:{Ki(d,g);break}case qn.WHITESPACE_CHARACTER:{Gs(d,g);break}case qn.COMMENT:{Ns(d,g);break}case qn.START_TAG:{So(d,g);break}case qn.END_TAG:{ia(d,g);break}case qn.EOF:{wa(d,g);break}default:}}function Gs(d,g){d._reconstructActiveFormattingElements(),d._insertCharacters(g)}function Ki(d,g){d._reconstructActiveFormattingElements(),d._insertCharacters(g),d.framesetOk=!1}function ks(d,g){d.openElements.tmplCount===0&&d.treeAdapter.adoptAttributes(d.openElements.items[0],g.attrs)}function Rl(d,g){const K=d.openElements.tryPeekProperlyNestedBodyElement();K&&d.openElements.tmplCount===0&&(d.framesetOk=!1,d.treeAdapter.adoptAttributes(K,g.attrs))}function Vr(d,g){const K=d.openElements.tryPeekProperlyNestedBodyElement();d.framesetOk&&K&&(d.treeAdapter.detachNode(K),d.openElements.popAllUpToHtmlElement(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_FRAMESET)}function Co(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML)}function fa(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),Cn.has(d.openElements.currentTagId)&&d.openElements.pop(),d._insertElement(g,at.HTML)}function aa(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML),d.skipNextNewLine=!0,d.framesetOk=!1}function ro(d,g){const K=d.openElements.tmplCount>0;(!d.formElement||K)&&(d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML),K||(d.formElement=d.openElements.current))}function sa(d,g){d.framesetOk=!1;const K=g.tagID;for(let nt=d.openElements.stackTop;nt>=0;nt--){const mn=d.openElements.tagIDs[nt];if(K===L.LI&&mn===L.LI||(K===L.DD||K===L.DT)&&(mn===L.DD||mn===L.DT)){d.openElements.generateImpliedEndTagsWithExclusion(mn),d.openElements.popUntilTagNamePopped(mn);break}if(mn!==L.ADDRESS&&mn!==L.DIV&&mn!==L.P&&d._isSpecialElement(d.openElements.items[nt],mn))break}d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML)}function ga(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML),d.tokenizer.state=Oi.PLAINTEXT}function La(d,g){d.openElements.hasInScope(L.BUTTON)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.BUTTON)),d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML),d.framesetOk=!1}function Aa(d,g){const K=d.activeFormattingElements.getElementEntryInScopeWithTagName(Ge.A);K&&(Rs(d,g),d.openElements.remove(K.element),d.activeFormattingElements.removeEntry(K)),d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function Gl(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function Ys(d,g){d._reconstructActiveFormattingElements(),d.openElements.hasInScope(L.NOBR)&&(Rs(d,g),d._reconstructActiveFormattingElements()),d._insertElement(g,at.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function ka(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML),d.activeFormattingElements.insertMarker(),d.framesetOk=!1}function hc(d,g){d.treeAdapter.getDocumentMode(d.document)!==yt.QUIRKS&&d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,at.HTML),d.framesetOk=!1,d.insertionMode=Mt.IN_TABLE}function Zu(d,g){d._reconstructActiveFormattingElements(),d._appendElement(g,at.HTML),d.framesetOk=!1,g.ackSelfClosing=!0}function uu(d){const g=Rr(d,hn.TYPE);return g!=null&&g.toLowerCase()===po}function sr(d,g){d._reconstructActiveFormattingElements(),d._appendElement(g,at.HTML),uu(g)||(d.framesetOk=!1),g.ackSelfClosing=!0}function Ws(d,g){d._appendElement(g,at.HTML),g.ackSelfClosing=!0}function et(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._appendElement(g,at.HTML),d.framesetOk=!1,g.ackSelfClosing=!0}function Pn(d,g){g.tagName=Ge.IMG,g.tagID=L.IMG,Zu(d,g)}function Cu(d,g){d._insertElement(g,at.HTML),d.skipNextNewLine=!0,d.tokenizer.state=Oi.RCDATA,d.originalInsertionMode=d.insertionMode,d.framesetOk=!1,d.insertionMode=Mt.TEXT}function Yu(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._reconstructActiveFormattingElements(),d.framesetOk=!1,d._switchToTextParsing(g,Oi.RAWTEXT)}function Dl(d,g){d.framesetOk=!1,d._switchToTextParsing(g,Oi.RAWTEXT)}function Pl(d,g){d._switchToTextParsing(g,Oi.RAWTEXT)}function gl(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML),d.framesetOk=!1,d.insertionMode=d.insertionMode===Mt.IN_TABLE||d.insertionMode===Mt.IN_CAPTION||d.insertionMode===Mt.IN_TABLE_BODY||d.insertionMode===Mt.IN_ROW||d.insertionMode===Mt.IN_CELL?Mt.IN_SELECT_IN_TABLE:Mt.IN_SELECT}function Xu(d,g){d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML)}function cu(d,g){d.openElements.hasInScope(L.RUBY)&&d.openElements.generateImpliedEndTags(),d._insertElement(g,at.HTML)}function Ia(d,g){d.openElements.hasInScope(L.RUBY)&&d.openElements.generateImpliedEndTagsWithExclusion(L.RTC),d._insertElement(g,at.HTML)}function Or(d,g){d._reconstructActiveFormattingElements(),cs(g),jo(g),g.selfClosing?d._appendElement(g,at.MATHML):d._insertElement(g,at.MATHML),g.ackSelfClosing=!0}function Fs(d,g){d._reconstructActiveFormattingElements(),Za(g),jo(g),g.selfClosing?d._appendElement(g,at.SVG):d._insertElement(g,at.SVG),g.ackSelfClosing=!0}function gs(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,at.HTML)}function So(d,g){switch(g.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:{Gl(d,g);break}case L.A:{Aa(d,g);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{fa(d,g);break}case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{Co(d,g);break}case L.LI:case L.DD:case L.DT:{sa(d,g);break}case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:{Zu(d,g);break}case L.HR:{et(d,g);break}case L.RB:case L.RTC:{cu(d,g);break}case L.RT:case L.RP:{Ia(d,g);break}case L.PRE:case L.LISTING:{aa(d,g);break}case L.XMP:{Yu(d,g);break}case L.SVG:{Fs(d,g);break}case L.HTML:{ks(d,g);break}case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:{os(d,g);break}case L.BODY:{Rl(d,g);break}case L.FORM:{ro(d,g);break}case L.NOBR:{Ys(d,g);break}case L.MATH:{Or(d,g);break}case L.TABLE:{hc(d,g);break}case L.INPUT:{sr(d,g);break}case L.PARAM:case L.TRACK:case L.SOURCE:{Ws(d,g);break}case L.IMAGE:{Pn(d,g);break}case L.BUTTON:{La(d,g);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{ka(d,g);break}case L.IFRAME:{Dl(d,g);break}case L.SELECT:{gl(d,g);break}case L.OPTION:case L.OPTGROUP:{Xu(d,g);break}case L.NOEMBED:case L.NOFRAMES:{Pl(d,g);break}case L.FRAMESET:{Vr(d,g);break}case L.TEXTAREA:{Cu(d,g);break}case L.NOSCRIPT:{d.options.scriptingEnabled?Pl(d,g):gs(d,g);break}case L.PLAINTEXT:{ga(d,g);break}case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:gs(d,g)}}function lo(d,g){if(d.openElements.hasInScope(L.BODY)&&(d.insertionMode=Mt.AFTER_BODY,d.options.sourceCodeLocationInfo)){const K=d.openElements.tryPeekProperlyNestedBodyElement();K&&d._setEndLocation(K,g)}}function Ha(d,g){d.openElements.hasInScope(L.BODY)&&(d.insertionMode=Mt.AFTER_BODY,ln(d,g))}function Vs(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K))}function la(d){const g=d.openElements.tmplCount>0,{formElement:K}=d;g||(d.formElement=null),(K||g)&&d.openElements.hasInScope(L.FORM)&&(d.openElements.generateImpliedEndTags(),g?d.openElements.popUntilTagNamePopped(L.FORM):K&&d.openElements.remove(K))}function Ks(d){d.openElements.hasInButtonScope(L.P)||d._insertFakeElement(Ge.P,L.P),d._closePElement()}function ss(d){d.openElements.hasInListItemScope(L.LI)&&(d.openElements.generateImpliedEndTagsWithExclusion(L.LI),d.openElements.popUntilTagNamePopped(L.LI))}function hu(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTagsWithExclusion(K),d.openElements.popUntilTagNamePopped(K))}function Bo(d){d.openElements.hasNumberedHeaderInScope()&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilNumberedHeaderPopped())}function Es(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K),d.activeFormattingElements.clearToLastMarker())}function Eo(d){d._reconstructActiveFormattingElements(),d._insertFakeElement(Ge.BR,L.BR),d.openElements.pop(),d.framesetOk=!1}function qo(d,g){const K=g.tagName,nt=g.tagID;for(let mn=d.openElements.stackTop;mn>0;mn--){const Yn=d.openElements.items[mn],Ci=d.openElements.tagIDs[mn];if(nt===Ci&&(nt!==L.UNKNOWN||d.treeAdapter.getTagName(Yn)===K)){d.openElements.generateImpliedEndTagsWithExclusion(nt),d.openElements.stackTop>=mn&&d.openElements.shortenToLength(mn);break}if(d._isSpecialElement(Yn,Ci))break}}function ia(d,g){switch(g.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:{Rs(d,g);break}case L.P:{Ks(d);break}case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{Vs(d,g);break}case L.LI:{ss(d);break}case L.DD:case L.DT:{hu(d,g);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{Bo(d);break}case L.BR:{Eo(d);break}case L.BODY:{lo(d,g);break}case L.HTML:{Ha(d,g);break}case L.FORM:{la(d);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{Es(d,g);break}case L.TEMPLATE:{Xa(d,g);break}default:qo(d,g)}}function wa(d,g){d.tmplInsertionModeStack.length>0?ge(d,g):ta(d,g)}function _o(d,g){var K;g.tagID===L.SCRIPT&&((K=d.scriptHandler)===null||K===void 0||K.call(d,d.openElements.current)),d.openElements.pop(),d.insertionMode=d.originalInsertionMode}function du(d,g){d._err(g,sn.eofInElementThatCanContainOnlyText),d.openElements.pop(),d.insertionMode=d.originalInsertionMode,d.onEof(g)}function Ir(d,g){if(mo.has(d.openElements.currentTagId))switch(d.pendingCharacterTokens.length=0,d.hasNonWhitespacePendingCharacterToken=!1,d.originalInsertionMode=d.insertionMode,d.insertionMode=Mt.IN_TABLE_TEXT,g.type){case qn.CHARACTER:{tu(d,g);break}case qn.WHITESPACE_CHARACTER:{dc(d,g);break}}else Bs(d,g)}function sl(d,g){d.openElements.clearBackToTableContext(),d.activeFormattingElements.insertMarker(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_CAPTION}function To(d,g){d.openElements.clearBackToTableContext(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_COLUMN_GROUP}function Qu(d,g){d.openElements.clearBackToTableContext(),d._insertFakeElement(Ge.COLGROUP,L.COLGROUP),d.insertionMode=Mt.IN_COLUMN_GROUP,Zs(d,g)}function Ju(d,g){d.openElements.clearBackToTableContext(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_TABLE_BODY}function qu(d,g){d.openElements.clearBackToTableContext(),d._insertFakeElement(Ge.TBODY,L.TBODY),d.insertionMode=Mt.IN_TABLE_BODY,Tu(d,g)}function wc(d,g){d.openElements.hasInTableScope(L.TABLE)&&(d.openElements.popUntilTagNamePopped(L.TABLE),d._resetInsertionMode(),d._processStartTag(g))}function _u(d,g){uu(g)?d._appendElement(g,at.HTML):Bs(d,g),g.ackSelfClosing=!0}function Xs(d,g){!d.formElement&&d.openElements.tmplCount===0&&(d._insertElement(g,at.HTML),d.formElement=d.openElements.current,d.openElements.pop())}function Qs(d,g){switch(g.tagID){case L.TD:case L.TH:case L.TR:{qu(d,g);break}case L.STYLE:case L.SCRIPT:case L.TEMPLATE:{os(d,g);break}case L.COL:{Qu(d,g);break}case L.FORM:{Xs(d,g);break}case L.TABLE:{wc(d,g);break}case L.TBODY:case L.TFOOT:case L.THEAD:{Ju(d,g);break}case L.INPUT:{_u(d,g);break}case L.CAPTION:{sl(d,g);break}case L.COLGROUP:{To(d,g);break}default:Bs(d,g)}}function Io(d,g){switch(g.tagID){case L.TABLE:{d.openElements.hasInTableScope(L.TABLE)&&(d.openElements.popUntilTagNamePopped(L.TABLE),d._resetInsertionMode());break}case L.TEMPLATE:{Xa(d,g);break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:Bs(d,g)}}function Bs(d,g){const K=d.fosterParentingEnabled;d.fosterParentingEnabled=!0,Fa(d,g),d.fosterParentingEnabled=K}function dc(d,g){d.pendingCharacterTokens.push(g)}function tu(d,g){d.pendingCharacterTokens.push(g),d.hasNonWhitespacePendingCharacterToken=!0}function vl(d,g){let K=0;if(d.hasNonWhitespacePendingCharacterToken)for(;K<d.pendingCharacterTokens.length;K++)Bs(d,d.pendingCharacterTokens[K]);else for(;K<d.pendingCharacterTokens.length;K++)d._insertCharacters(d.pendingCharacterTokens[K]);d.insertionMode=d.originalInsertionMode,d._processToken(g)}const yl=new Set([L.CAPTION,L.COL,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]);function Js(d,g){const K=g.tagID;yl.has(K)?d.openElements.hasInTableScope(L.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Mt.IN_TABLE,Qs(d,g)):So(d,g)}function Wl(d,g){const K=g.tagID;switch(K){case L.CAPTION:case L.TABLE:{d.openElements.hasInTableScope(L.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Mt.IN_TABLE,K===L.TABLE&&Io(d,g));break}case L.BODY:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:ia(d,g)}}function Zs(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.COL:{d._appendElement(g,at.HTML),g.ackSelfClosing=!0;break}case L.TEMPLATE:{os(d,g);break}default:pu(d,g)}}function fu(d,g){switch(g.tagID){case L.COLGROUP:{d.openElements.currentTagId===L.COLGROUP&&(d.openElements.pop(),d.insertionMode=Mt.IN_TABLE);break}case L.TEMPLATE:{Xa(d,g);break}case L.COL:break;default:pu(d,g)}}function pu(d,g){d.openElements.currentTagId===L.COLGROUP&&(d.openElements.pop(),d.insertionMode=Mt.IN_TABLE,d._processToken(g))}function Tu(d,g){switch(g.tagID){case L.TR:{d.openElements.clearBackToTableBodyContext(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_ROW;break}case L.TH:case L.TD:{d.openElements.clearBackToTableBodyContext(),d._insertFakeElement(Ge.TR,L.TR),d.insertionMode=Mt.IN_ROW,ll(d,g);break}case L.CAPTION:case L.COL:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{d.openElements.hasTableBodyContextInTableScope()&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE,Qs(d,g));break}default:Qs(d,g)}}function Nu(d,g){const K=g.tagID;switch(g.tagID){case L.TBODY:case L.TFOOT:case L.THEAD:{d.openElements.hasInTableScope(K)&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE);break}case L.TABLE:{d.openElements.hasTableBodyContextInTableScope()&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE,Io(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TD:case L.TH:case L.TR:break;default:Io(d,g)}}function ll(d,g){switch(g.tagID){case L.TH:case L.TD:{d.openElements.clearBackToTableRowContext(),d._insertElement(g,at.HTML),d.insertionMode=Mt.IN_CELL,d.activeFormattingElements.insertMarker();break}case L.CAPTION:case L.COL:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE_BODY,Tu(d,g));break}default:Qs(d,g)}}function vs(d,g){switch(g.tagID){case L.TR:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE_BODY);break}case L.TABLE:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE_BODY,Nu(d,g));break}case L.TBODY:case L.TFOOT:case L.THEAD:{(d.openElements.hasInTableScope(g.tagID)||d.openElements.hasInTableScope(L.TR))&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Mt.IN_TABLE_BODY,Nu(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TD:case L.TH:break;default:Io(d,g)}}function Vl(d,g){const K=g.tagID;yl.has(K)?(d.openElements.hasInTableScope(L.TD)||d.openElements.hasInTableScope(L.TH))&&(d._closeTableCell(),ll(d,g)):So(d,g)}function zu(d,g){const K=g.tagID;switch(K){case L.TD:case L.TH:{d.openElements.hasInTableScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Mt.IN_ROW);break}case L.TABLE:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:{d.openElements.hasInTableScope(K)&&(d._closeTableCell(),vs(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:break;default:ia(d,g)}}function Ee(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.OPTION:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d._insertElement(g,at.HTML);break}case L.OPTGROUP:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop(),d._insertElement(g,at.HTML);break}case L.HR:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop(),d._appendElement(g,at.HTML),g.ackSelfClosing=!0;break}case L.INPUT:case L.KEYGEN:case L.TEXTAREA:case L.SELECT:{d.openElements.hasInSelectScope(L.SELECT)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),g.tagID!==L.SELECT&&d._processStartTag(g));break}case L.SCRIPT:case L.TEMPLATE:{os(d,g);break}default:}}function Le(d,g){switch(g.tagID){case L.OPTGROUP:{d.openElements.stackTop>0&&d.openElements.currentTagId===L.OPTION&&d.openElements.tagIDs[d.openElements.stackTop-1]===L.OPTGROUP&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop();break}case L.OPTION:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop();break}case L.SELECT:{d.openElements.hasInSelectScope(L.SELECT)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode());break}case L.TEMPLATE:{Xa(d,g);break}default:}}function ht(d,g){const K=g.tagID;K===L.CAPTION||K===L.TABLE||K===L.TBODY||K===L.TFOOT||K===L.THEAD||K===L.TR||K===L.TD||K===L.TH?(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),d._processStartTag(g)):Ee(d,g)}function bt(d,g){const K=g.tagID;K===L.CAPTION||K===L.TABLE||K===L.TBODY||K===L.TFOOT||K===L.THEAD||K===L.TR||K===L.TD||K===L.TH?d.openElements.hasInTableScope(K)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),d.onEndTag(g)):Le(d,g)}function _t(d,g){switch(g.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{os(d,g);break}case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{d.tmplInsertionModeStack[0]=Mt.IN_TABLE,d.insertionMode=Mt.IN_TABLE,Qs(d,g);break}case L.COL:{d.tmplInsertionModeStack[0]=Mt.IN_COLUMN_GROUP,d.insertionMode=Mt.IN_COLUMN_GROUP,Zs(d,g);break}case L.TR:{d.tmplInsertionModeStack[0]=Mt.IN_TABLE_BODY,d.insertionMode=Mt.IN_TABLE_BODY,Tu(d,g);break}case L.TD:case L.TH:{d.tmplInsertionModeStack[0]=Mt.IN_ROW,d.insertionMode=Mt.IN_ROW,ll(d,g);break}default:d.tmplInsertionModeStack[0]=Mt.IN_BODY,d.insertionMode=Mt.IN_BODY,So(d,g)}}function Ot(d,g){g.tagID===L.TEMPLATE&&Xa(d,g)}function ge(d,g){d.openElements.tmplCount>0?(d.openElements.popUntilTagNamePopped(L.TEMPLATE),d.activeFormattingElements.clearToLastMarker(),d.tmplInsertionModeStack.shift(),d._resetInsertionMode(),d.onEof(g)):ta(d,g)}function yn(d,g){g.tagID===L.HTML?So(d,g):zn(d,g)}function ln(d,g){var K;if(g.tagID===L.HTML){if(d.fragmentContext||(d.insertionMode=Mt.AFTER_AFTER_BODY),d.options.sourceCodeLocationInfo&&d.openElements.tagIDs[0]===L.HTML){d._setEndLocation(d.openElements.items[0],g);const nt=d.openElements.items[1];nt&&!(!((K=d.treeAdapter.getNodeSourceCodeLocation(nt))===null||K===void 0)&&K.endTag)&&d._setEndLocation(nt,g)}}else zn(d,g)}function zn(d,g){d.insertionMode=Mt.IN_BODY,Fa(d,g)}function $n(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.FRAMESET:{d._insertElement(g,at.HTML);break}case L.FRAME:{d._appendElement(g,at.HTML),g.ackSelfClosing=!0;break}case L.NOFRAMES:{os(d,g);break}default:}}function Gn(d,g){g.tagID===L.FRAMESET&&!d.openElements.isRootHtmlElementCurrent()&&(d.openElements.pop(),!d.fragmentContext&&d.openElements.currentTagId!==L.FRAMESET&&(d.insertionMode=Mt.AFTER_FRAMESET))}function yi(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.NOFRAMES:{os(d,g);break}default:}}function bi(d,g){g.tagID===L.HTML&&(d.insertionMode=Mt.AFTER_AFTER_FRAMESET)}function ti(d,g){g.tagID===L.HTML?So(d,g):ji(d,g)}function ji(d,g){d.insertionMode=Mt.IN_BODY,Fa(d,g)}function ci(d,g){switch(g.tagID){case L.HTML:{So(d,g);break}case L.NOFRAMES:{os(d,g);break}default:}}function Gi(d,g){g.chars=nn,d._insertCharacters(g)}function E(d,g){d._insertCharacters(g),d.framesetOk=!1}function _(d){for(;d.treeAdapter.getNamespaceURI(d.openElements.current)!==at.HTML&&!d._isIntegrationPoint(d.openElements.currentTagId,d.openElements.current);)d.openElements.pop()}function W(d,g){if(Na(g))_(d),d._startTagOutsideForeignContent(g);else{const K=d._getAdjustedCurrentElement(),nt=d.treeAdapter.getNamespaceURI(K);nt===at.MATHML?cs(g):nt===at.SVG&&(Wt(g),Za(g)),jo(g),g.selfClosing?d._appendElement(g,nt):d._insertElement(g,nt),g.ackSelfClosing=!0}}function q(d,g){if(g.tagID===L.P||g.tagID===L.BR){_(d),d._endTagOutsideForeignContent(g);return}for(let K=d.openElements.stackTop;K>0;K--){const nt=d.openElements.items[K];if(d.treeAdapter.getNamespaceURI(nt)===at.HTML){d._endTagOutsideForeignContent(g);break}const mn=d.treeAdapter.getTagName(nt);if(mn.toLowerCase()===g.tagName){g.tagName=mn,d.openElements.shortenToLength(K);break}}}const fe=/["&'<>$\x80-\uFFFF]/g,Ce=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),$e=String.prototype.codePointAt!=null?(d,g)=>d.codePointAt(g):(d,g)=>(d.charCodeAt(g)&64512)===55296?(d.charCodeAt(g)-55296)*1024+d.charCodeAt(g+1)-56320+65536:d.charCodeAt(g);function it(d){let g="",K=0,nt;for(;(nt=fe.exec(d))!==null;){const mn=nt.index,Yn=d.charCodeAt(mn),Ci=Ce.get(Yn);Ci!==void 0?(g+=d.substring(K,mn)+Ci,K=mn+1):(g+=`${d.substring(K,mn)}&#x${$e(d,mn).toString(16)};`,K=fe.lastIndex+=+((Yn&64512)===55296))}return g+d.substr(K)}const jt=null;function Lt(d,g){return function(nt){let mn,Yn=0,Ci="";for(;mn=d.exec(nt);)Yn!==mn.index&&(Ci+=nt.substring(Yn,mn.index)),Ci+=g.get(mn[0].charCodeAt(0)),Yn=mn.index+1;return Ci+nt.substring(Yn)}}const dt=Lt(/[&<>'"]/g,Ce),Yt=Lt(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),qt=Lt(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),zt=new Set([Ge.AREA,Ge.BASE,Ge.BASEFONT,Ge.BGSOUND,Ge.BR,Ge.COL,Ge.EMBED,Ge.FRAME,Ge.HR,Ge.IMG,Ge.INPUT,Ge.KEYGEN,Ge.LINK,Ge.META,Ge.PARAM,Ge.SOURCE,Ge.TRACK,Ge.WBR]);function Si(d,g){return g.treeAdapter.isElementNode(d)&&g.treeAdapter.getNamespaceURI(d)===NS.HTML&&zt.has(g.treeAdapter.getTagName(d))}const li={treeAdapter:Er,scriptingEnabled:!0};function lr(d,g){const K=Uo(Uo({},li),g);return Si(d,K)?"":Mr(d,K)}function Ni(d,g){const K=Uo(Uo({},li),g);return Zi(d,K)}function Mr(d,g){let K="";const nt=g.treeAdapter.isElementNode(d)&&g.treeAdapter.getTagName(d)===$.TEMPLATE&&g.treeAdapter.getNamespaceURI(d)===NS.HTML?g.treeAdapter.getTemplateContent(d):d,mn=g.treeAdapter.getChildNodes(nt);if(mn)for(const Yn of mn)K+=Zi(Yn,g);return K}function Zi(d,g){return g.treeAdapter.isElementNode(d)?oo(d,g):g.treeAdapter.isTextNode(d)?ii(d,g):g.treeAdapter.isCommentNode(d)?qi(d,g):g.treeAdapter.isDocumentTypeNode(d)?Qr(d,g):""}function oo(d,g){const K=g.treeAdapter.getTagName(d);return`<${K}${uo(d,g)}>${Si(d,g)?"":`${Mr(d,g)}</${K}>`}`}function uo(d,{treeAdapter:g}){let K="";for(const nt of g.getAttrList(d)){if(K+=" ",nt.namespace)switch(nt.namespace){case NS.XML:{K+=`xml:${nt.name}`;break}case NS.XMLNS:{nt.name!=="xmlns"&&(K+="xmlns:"),K+=nt.name;break}case NS.XLINK:{K+=`xlink:${nt.name}`;break}default:K+=`${nt.prefix}:${nt.name}`}else K+=nt.name;K+=`="${escapeAttribute(nt.value)}"`}return K}function ii(d,g){const{treeAdapter:K}=g,nt=K.getTextNodeContent(d),mn=K.getParentNode(d),Yn=mn&&K.isElementNode(mn)&&K.getTagName(mn);return Yn&&K.getNamespaceURI(mn)===NS.HTML&&hasUnescapedText(Yn,g.scriptingEnabled)?nt:escapeText(nt)}function qi(d,{treeAdapter:g}){return`<!--${g.getCommentNodeContent(d)}-->`}function Qr(d,{treeAdapter:g}){return`<!DOCTYPE ${g.getDocumentTypeNodeName(d)}>`}function qr(d,g){return Parser.parse(d,g)}function no(d,g,K){typeof d=="string"&&(K=g,g=d,d=null);const nt=Parser.getFragmentParser(d,K);return nt.tokenizer.write(g,!0),nt.getFragment()}var Mo=h(17970),ir=h(10528);const Mi=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Yi=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Pi={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Zr(d,g){const K=No(d),nt=_e("type",{handlers:{root:Br,element:co,text:rn,comment:En,doctype:va,raw:go},unknown:_a}),mn={parser:K?new xr(Pi):xr.getFragmentParser(void 0,Pi),handle(wr){nt(wr,mn)},stitches:!1,options:g||{}};nt(d,mn),ua(mn,(0,Mo.Pk)());const Yn=K?mn.parser.document:mn.parser.getFragment(),Ci=we(Yn,{file:mn.options.file});return mn.stitches&&(0,ir.Vn)(Ci,"comment",function(wr,zr,Yr){const Ra=wr;if(Ra.value.stitch&&Yr&&zr!==void 0){const ba=Yr.children;return ba[zr]=Ra.value.stitch,zr}}),Ci.type==="root"&&Ci.children.length===1&&Ci.children[0].type===d.type?Ci.children[0]:Ci}function Xi(d,g){let K=-1;if(d)for(;++K<d.length;)g.handle(d[K])}function Br(d,g){Xi(d.children,g)}function co(d,g){$a(d,g),Xi(d.children,g),Do(d,g)}function rn(d,g){g.parser.tokenizer.state>4&&(g.parser.tokenizer.state=0);const K={type:qn.CHARACTER,chars:d.value,location:Oo(d)};ua(g,(0,Mo.Pk)(d)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function va(d,g){const K={type:qn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Oo(d)};ua(g,(0,Mo.Pk)(d)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function ya(d,g){g.stitches=!0;const K=ra(d);if("children"in d&&"children"in K){const nt=Zr({type:"root",children:d.children},g.options);K.children=nt.children}En({type:"comment",value:{stitch:K}},g)}function En(d,g){const K=d.value,nt={type:qn.COMMENT,data:K,location:Oo(d)};ua(g,(0,Mo.Pk)(d)),g.parser.currentToken=nt,g.parser._processToken(g.parser.currentToken)}function go(d,g){if(g.parser.tokenizer.preprocessor.html="",g.parser.tokenizer.preprocessor.pos=-1,g.parser.tokenizer.preprocessor.lastGapPos=-2,g.parser.tokenizer.preprocessor.gapStack=[],g.parser.tokenizer.preprocessor.skipNextNewLine=!1,g.parser.tokenizer.preprocessor.lastChunkWritten=!1,g.parser.tokenizer.preprocessor.endOfChunkHit=!1,g.parser.tokenizer.preprocessor.isEol=!1,za(g,(0,Mo.Pk)(d)),g.parser.tokenizer.write(g.options.tagfilter?d.value.replace(Mi,"<$1$2"):d.value,!1),g.parser.tokenizer._runParsingLoop(),g.parser.tokenizer.state===72||g.parser.tokenizer.state===78){g.parser.tokenizer.preprocessor.lastChunkWritten=!0;const K=g.parser.tokenizer._consume();g.parser.tokenizer._callState(K)}}function _a(d,g){const K=d;if(g.options.passThrough&&g.options.passThrough.includes(K.type))ya(K,g);else{let nt="";throw Yi.has(K.type)&&(nt=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+K.type+"` node"+nt)}}function ua(d,g){za(d,g);const K=d.parser.tokenizer.currentCharacterToken;K&&K.location&&(K.location.endLine=d.parser.tokenizer.preprocessor.line,K.location.endCol=d.parser.tokenizer.preprocessor.col+1,K.location.endOffset=d.parser.tokenizer.preprocessor.offset+1,d.parser.currentToken=K,d.parser._processToken(d.parser.currentToken)),d.parser.tokenizer.paused=!1,d.parser.tokenizer.inLoop=!1,d.parser.tokenizer.active=!1,d.parser.tokenizer.returnState=Oi.DATA,d.parser.tokenizer.charRefCode=-1,d.parser.tokenizer.consumedAfterSnapshot=-1,d.parser.tokenizer.currentLocation=null,d.parser.tokenizer.currentCharacterToken=null,d.parser.tokenizer.currentToken=null,d.parser.tokenizer.currentAttr={name:"",value:""}}function za(d,g){if(g&&g.offset!==void 0){const K={startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:-1,endCol:-1,endOffset:-1};d.parser.tokenizer.preprocessor.lineStartPos=-g.column+1,d.parser.tokenizer.preprocessor.droppedBufferSize=g.offset,d.parser.tokenizer.preprocessor.line=g.line,d.parser.tokenizer.currentLocation=K}}function $a(d,g){const K=d.tagName.toLowerCase();if(g.parser.tokenizer.state===Oi.PLAINTEXT)return;ua(g,(0,Mo.Pk)(d));const nt=g.parser.openElements.current;let mn="namespaceURI"in nt?nt.namespaceURI:ue.t.html;mn===ue.t.html&&K==="svg"&&(mn=ue.t.svg);const Yn=mt(cd(Uo({},d),{children:[]}),{space:mn===ue.t.svg?"svg":"html"}),Ci={type:qn.START_TAG,tagName:K,tagID:Jt(K),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Yn?Yn.attrs:[],location:Oo(d)};g.parser.currentToken=Ci,g.parser._processToken(g.parser.currentToken),g.parser.tokenizer.lastStartTagName=K}function Do(d,g){const K=d.tagName.toLowerCase();if(!g.parser.tokenizer.inForeignNode&&Ut.includes(K)||g.parser.tokenizer.state===Oi.PLAINTEXT)return;ua(g,(0,Mo.rb)(d));const nt={type:qn.END_TAG,tagName:K,tagID:Jt(K),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Oo(d)};g.parser.currentToken=nt,g.parser._processToken(g.parser.currentToken),K===g.parser.tokenizer.lastStartTagName&&(g.parser.tokenizer.state===Oi.RCDATA||g.parser.tokenizer.state===Oi.RAWTEXT||g.parser.tokenizer.state===Oi.SCRIPT_DATA)&&(g.parser.tokenizer.state=Oi.DATA)}function No(d){const g=d.type==="root"?d.children[0]:d;return!!(g&&(g.type==="doctype"||g.type==="element"&&g.tagName.toLowerCase()==="html"))}function Oo(d){const g=(0,Mo.Pk)(d)||{line:void 0,column:void 0,offset:void 0},K=(0,Mo.rb)(d)||{line:void 0,column:void 0,offset:void 0};return{startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:K.line,endCol:K.column,endOffset:K.offset}}function ra(d){return"children"in d?(0,I.ZP)(cd(Uo({},d),{children:[]})):(0,I.ZP)(d)}function ja(d){return function(g,K){return Zr(g,cd(Uo({},d),{file:K}))}}},30084:function(Q,C,h){"use strict";h.d(C,{Z:function(){return Ae}});var v=h(87342);function I(Re,de){const pe=String(Re);let be=pe.indexOf(de),me=be,ke=0,ee=0;if(typeof de!="string")throw new TypeError("Expected substring");for(;be!==-1;)be===me?++ke>ee&&(ee=ke):ke=1,me=be+de.length,be=pe.indexOf(de,me);return ee}function O(){return{enter:{mathFlow:Re,mathFlowFenceMeta:de,mathText:ke},exit:{mathFlow:me,mathFlowFence:be,mathFlowFenceMeta:pe,mathFlowValue:Ne,mathText:ee,mathTextData:Ne}};function Re(Ie){const Pe={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Pe]}},Ie)}function de(){this.buffer()}function pe(){const Ie=this.resume(),Pe=this.stack[this.stack.length-1];(0,v.ok)(Pe.type==="math"),Pe.meta=Ie}function be(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function me(Ie){const Pe=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Xe=this.stack[this.stack.length-1];(0,v.ok)(Xe.type==="math"),this.exit(Ie),Xe.value=Pe;const Ye=Xe.data.hChildren[0];(0,v.ok)(Ye.type==="element"),(0,v.ok)(Ye.tagName==="code"),Ye.children.push({type:"text",value:Pe}),this.data.mathFlowInside=void 0}function ke(Ie){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Ie),this.buffer()}function ee(Ie){const Pe=this.resume(),Xe=this.stack[this.stack.length-1];(0,v.ok)(Xe.type==="inlineMath"),this.exit(Ie),Xe.value=Pe,Xe.data.hChildren.push({type:"text",value:Pe})}function Ne(Ie){this.config.enter.data.call(this,Ie),this.config.exit.data.call(this,Ie)}}function B(Re){let de=(Re||{}).singleDollarTextMath;return de==null&&(de=!0),be.peek=me,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:de?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:pe,inlineMath:be}};function pe(ke,ee,Ne,Ie){const Pe=ke.value||"",Xe=Ne.createTracker(Ie),Ye="$".repeat(Math.max(I(Pe,"$")+1,2)),ie=Ne.enter("mathFlow");let lt=Xe.move(Ye);if(ke.meta){const We=Ne.enter("mathFlowMeta");lt+=Xe.move(Ne.safe(ke.meta,Uo({after:`
|
|
|
`,before:lt,encode:["$"]},Xe.current()))),We()}return lt+=Xe.move(`
|
|
|
`),Pe&&(lt+=Xe.move(Pe+`
|
|
|
`)),lt+=Xe.move(Ye),ie(),lt}function be(ke,ee,Ne){let Ie=ke.value||"",Pe=1;for(de||Pe++;new RegExp("(^|[^$])"+"\\$".repeat(Pe)+"([^$]|$)").test(Ie);)Pe++;const Xe="$".repeat(Pe);/[^ \r\n]/.test(Ie)&&(/^[ \r\n]/.test(Ie)&&/[ \r\n]$/.test(Ie)||/^\$|\$$/.test(Ie))&&(Ie=" "+Ie+" ");let Ye=-1;for(;++Ye<Ne.unsafe.length;){const ie=Ne.unsafe[Ye];if(!ie.atBreak)continue;const lt=Ne.compilePattern(ie);let We;for(;We=lt.exec(Ie);){let Pt=We.index;Ie.codePointAt(Pt)===10&&Ie.codePointAt(Pt-1)===13&&Pt--,Ie=Ie.slice(0,Pt)+" "+Ie.slice(We.index+1)}}return Xe+Ie+Xe}function me(){return"$"}}var G=h(26735),F=h(80722);const M={tokenize:ue,concrete:!0,name:"mathFlow"},he={tokenize:te,partial:!0};function ue(Re,de,pe){const be=this,me=be.events[be.events.length-1],ke=me&&me[1].type==="linePrefix"?me[2].sliceSerialize(me[1],!0).length:0;let ee=0;return Ne;function Ne(Et){return Re.enter("mathFlow"),Re.enter("mathFlowFence"),Re.enter("mathFlowFenceSequence"),Ie(Et)}function Ie(Et){return Et===36?(Re.consume(Et),ee++,Ie):ee<2?pe(Et):(Re.exit("mathFlowFenceSequence"),(0,G.f)(Re,Pe,"whitespace")(Et))}function Pe(Et){return Et===null||(0,F.Ch)(Et)?Ye(Et):(Re.enter("mathFlowFenceMeta"),Re.enter("chunkString",{contentType:"string"}),Xe(Et))}function Xe(Et){return Et===null||(0,F.Ch)(Et)?(Re.exit("chunkString"),Re.exit("mathFlowFenceMeta"),Ye(Et)):Et===36?pe(Et):(Re.consume(Et),Xe)}function Ye(Et){return Re.exit("mathFlowFence"),be.interrupt?de(Et):Re.attempt(he,ie,xt)(Et)}function ie(Et){return Re.attempt({tokenize:Tt,partial:!0},xt,lt)(Et)}function lt(Et){return(ke?(0,G.f)(Re,We,"linePrefix",ke+1):We)(Et)}function We(Et){return Et===null?xt(Et):(0,F.Ch)(Et)?Re.attempt(he,ie,xt)(Et):(Re.enter("mathFlowValue"),Pt(Et))}function Pt(Et){return Et===null||(0,F.Ch)(Et)?(Re.exit("mathFlowValue"),We(Et)):(Re.consume(Et),Pt)}function xt(Et){return Re.exit("mathFlow"),de(Et)}function Tt(Et,wn,qe){let ae=0;return(0,G.f)(Et,le,"linePrefix",be.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function le(St){return Et.enter("mathFlowFence"),Et.enter("mathFlowFenceSequence"),$t(St)}function $t(St){return St===36?(ae++,Et.consume(St),$t):ae<ee?qe(St):(Et.exit("mathFlowFenceSequence"),(0,G.f)(Et,Vt,"whitespace")(St))}function Vt(St){return St===null||(0,F.Ch)(St)?(Et.exit("mathFlowFence"),wn(St)):qe(St)}}}function te(Re,de,pe){const be=this;return me;function me(ee){return ee===null?de(ee):(Re.enter("lineEnding"),Re.consume(ee),Re.exit("lineEnding"),ke)}function ke(ee){return be.parser.lazy[be.now().line]?pe(ee):de(ee)}}function Me(Re){let pe=(Re||{}).singleDollarTextMath;return pe==null&&(pe=!0),{tokenize:be,resolve:we,previous:Je,name:"mathText"};function be(me,ke,ee){const Ne=this;let Ie=0,Pe,Xe;return Ye;function Ye(xt){return me.enter("mathText"),me.enter("mathTextSequence"),ie(xt)}function ie(xt){return xt===36?(me.consume(xt),Ie++,ie):Ie<2&&!pe?ee(xt):(me.exit("mathTextSequence"),lt(xt))}function lt(xt){return xt===null?ee(xt):xt===36?(Xe=me.enter("mathTextSequence"),Pe=0,Pt(xt)):xt===32?(me.enter("space"),me.consume(xt),me.exit("space"),lt):(0,F.Ch)(xt)?(me.enter("lineEnding"),me.consume(xt),me.exit("lineEnding"),lt):(me.enter("mathTextData"),We(xt))}function We(xt){return xt===null||xt===32||xt===36||(0,F.Ch)(xt)?(me.exit("mathTextData"),lt(xt)):(me.consume(xt),We)}function Pt(xt){return xt===36?(me.consume(xt),Pe++,Pt):Pe===Ie?(me.exit("mathTextSequence"),me.exit("mathText"),ke(xt)):(Xe.type="mathTextData",We(xt))}}}function we(Re){let de=Re.length-4,pe=3,be,me;if((Re[pe][1].type==="lineEnding"||Re[pe][1].type==="space")&&(Re[de][1].type==="lineEnding"||Re[de][1].type==="space")){for(be=pe;++be<de;)if(Re[be][1].type==="mathTextData"){Re[de][1].type="mathTextPadding",Re[pe][1].type="mathTextPadding",pe+=2,de-=2;break}}for(be=pe-1,de++;++be<=de;)me===void 0?be!==de&&Re[be][1].type!=="lineEnding"&&(me=be):(be===de||Re[be][1].type==="lineEnding")&&(Re[me][1].type="mathTextData",be!==me+2&&(Re[me][1].end=Re[be-1][1].end,Re.splice(me+2,be-me-2),de-=be-me-2,be=me+2),me=void 0);return Re}function Je(Re){return Re!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Oe(Re){return{flow:{36:M},text:{36:Me(Re)}}}const Te={};function Ae(Re){const de=this,pe=Re||Te,be=de.data(),me=be.micromarkExtensions||(be.micromarkExtensions=[]),ke=be.fromMarkdownExtensions||(be.fromMarkdownExtensions=[]),ee=be.toMarkdownExtensions||(be.toMarkdownExtensions=[]);me.push(Oe(pe)),ke.push(O()),ee.push(B(pe))}},16722:function(Q,C,h){"use strict";h.d(C,{Z:function(){return he}});const v=ue=>typeof ue=="object"&&ue!=null&&ue.nodeType===1,I=(ue,te)=>(!te||ue!=="hidden")&&ue!=="visible"&&ue!=="clip",O=(ue,te)=>{if(ue.clientHeight<ue.scrollHeight||ue.clientWidth<ue.scrollWidth){const Me=getComputedStyle(ue,null);return I(Me.overflowY,te)||I(Me.overflowX,te)||(we=>{const Je=(Oe=>{if(!Oe.ownerDocument||!Oe.ownerDocument.defaultView)return null;try{return Oe.ownerDocument.defaultView.frameElement}catch(Te){return null}})(we);return!!Je&&(Je.clientHeight<we.scrollHeight||Je.clientWidth<we.scrollWidth)})(ue)}return!1},B=(ue,te,Me,we,Je,Oe,Te,Ae)=>Oe<ue&&Te>te||Oe>ue&&Te<te?0:Oe<=ue&&Ae<=Me||Te>=te&&Ae>=Me?Oe-ue-we:Te>te&&Ae<Me||Oe<ue&&Ae>Me?Te-te+Je:0,G=ue=>{const te=ue.parentElement;return te==null?ue.getRootNode().host||null:te},F=(ue,te)=>{var Me,we,Je,Oe;if(typeof document=="undefined")return[];const{scrollMode:Te,block:Ae,inline:Re,boundary:de,skipOverflowHiddenElements:pe}=te,be=typeof de=="function"?de:Vt=>Vt!==de;if(!v(ue))throw new TypeError("Invalid target");const me=document.scrollingElement||document.documentElement,ke=[];let ee=ue;for(;v(ee)&&be(ee);){if(ee=G(ee),ee===me){ke.push(ee);break}ee!=null&&ee===document.body&&O(ee)&&!O(document.documentElement)||ee!=null&&O(ee,pe)&&ke.push(ee)}const Ne=(we=(Me=window.visualViewport)==null?void 0:Me.width)!=null?we:innerWidth,Ie=(Oe=(Je=window.visualViewport)==null?void 0:Je.height)!=null?Oe:innerHeight,{scrollX:Pe,scrollY:Xe}=window,{height:Ye,width:ie,top:lt,right:We,bottom:Pt,left:xt}=ue.getBoundingClientRect(),{top:Tt,right:Et,bottom:wn,left:qe}=(Vt=>{const St=window.getComputedStyle(Vt);return{top:parseFloat(St.scrollMarginTop)||0,right:parseFloat(St.scrollMarginRight)||0,bottom:parseFloat(St.scrollMarginBottom)||0,left:parseFloat(St.scrollMarginLeft)||0}})(ue);let ae=Ae==="start"||Ae==="nearest"?lt-Tt:Ae==="end"?Pt+wn:lt+Ye/2-Tt+wn,le=Re==="center"?xt+ie/2-qe+Et:Re==="end"?We+Et:xt-qe;const $t=[];for(let Vt=0;Vt<ke.length;Vt++){const St=ke[Vt],{height:un,width:Ft,top:ai,right:On,bottom:ni,left:Jn}=St.getBoundingClientRect();if(Te==="if-needed"&<>=0&&xt>=0&&Pt<=Ie&&We<=Ne&&(St===me&&!O(St)||lt>=ai&&Pt<=ni&&xt>=Jn&&We<=On))return $t;const In=getComputedStyle(St),Mn=parseInt(In.borderLeftWidth,10),xe=parseInt(In.borderTopWidth,10),P=parseInt(In.borderRightWidth,10),k=parseInt(In.borderBottomWidth,10);let j=0,X=0;const T="offsetWidth"in St?St.offsetWidth-St.clientWidth-Mn-P:0,_e="offsetHeight"in St?St.offsetHeight-St.clientHeight-xe-k:0,kt="offsetWidth"in St?St.offsetWidth===0?0:Ft/St.offsetWidth:0,Ue="offsetHeight"in St?St.offsetHeight===0?0:un/St.offsetHeight:0;if(me===St)j=Ae==="start"?ae:Ae==="end"?ae-Ie:Ae==="nearest"?B(Xe,Xe+Ie,Ie,xe,k,Xe+ae,Xe+ae+Ye,Ye):ae-Ie/2,X=Re==="start"?le:Re==="center"?le-Ne/2:Re==="end"?le-Ne:B(Pe,Pe+Ne,Ne,Mn,P,Pe+le,Pe+le+ie,ie),j=Math.max(0,j+Xe),X=Math.max(0,X+Pe);else{j=Ae==="start"?ae-ai-xe:Ae==="end"?ae-ni+k+_e:Ae==="nearest"?B(ai,ni,un,xe,k+_e,ae,ae+Ye,Ye):ae-(ai+un/2)+_e/2,X=Re==="start"?le-Jn-Mn:Re==="center"?le-(Jn+Ft/2)+T/2:Re==="end"?le-On+P+T:B(Jn,On,Ft,Mn,P+T,le,le+ie,ie);const{scrollLeft:Be,scrollTop:mt}=St;j=Ue===0?0:Math.max(0,Math.min(mt+j/Ue,St.scrollHeight-un/Ue+_e)),X=kt===0?0:Math.max(0,Math.min(Be+X/kt,St.scrollWidth-Ft/kt+T)),ae+=mt-j,le+=Be-X}$t.push({el:St,top:j,left:X})}return $t},M=ue=>ue===!1?{block:"end",inline:"nearest"}:(te=>te===Object(te)&&Object.keys(te).length!==0)(ue)?ue:{block:"start",inline:"nearest"};function he(ue,te){if(!ue.isConnected||!(Je=>{let Oe=Je;for(;Oe&&Oe.parentNode;){if(Oe.parentNode===document)return!0;Oe=Oe.parentNode instanceof ShadowRoot?Oe.parentNode.host:Oe.parentNode}return!1})(ue))return;const Me=(Je=>{const Oe=window.getComputedStyle(Je);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(ue);if((Je=>typeof Je=="object"&&typeof Je.behavior=="function")(te))return te.behavior(F(ue,te));const we=typeof te=="boolean"||te==null?void 0:te.behavior;for(const{el:Je,top:Oe,left:Te}of F(ue,M(te))){const Ae=Oe-Me.top+Me.bottom,Re=Te-Me.left+Me.right;Je.scroll({top:Ae,left:Re,behavior:we})}}},71523:function(Q,C,h){"use strict";h.d(C,{P:function(){return I},Q:function(){return v}});function v(O){const B=String(O||"").trim();return B?B.split(/[ \t\n\r\f]+/g):[]}function I(O){return O.join(" ").trim()}},10502:function(Q,C,h){"use strict";h.d(C,{O:function(){return I}});const v=function(ue,te,Me,we,Je){const Oe=I(te);if(Me!=null&&(typeof Me!="number"||Me<0||Me===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(we!=null&&(!v(we)||!we.children))throw new Error("Expected parent node");if(we==null!=(Me==null))throw new Error("Expected both parent and index");return he(ue)?Oe.call(Je,ue,Me,we):!1},I=function(ue){if(ue==null)return M;if(typeof ue=="function")return F(ue);if(typeof ue=="object")return Array.isArray(ue)?O(ue):B(ue);if(typeof ue=="string")return G(ue);throw new Error("Expected function, string, or object as test")};function O(ue){const te=[];let Me=-1;for(;++Me<ue.length;)te[Me]=I(ue[Me]);return F(we);function we(...Je){let Oe=-1;for(;++Oe<te.length;)if(te[Oe].apply(this,Je))return!0;return!1}}function B(ue){const te=ue;return F(Me);function Me(we){const Je=we;let Oe;for(Oe in ue)if(Je[Oe]!==te[Oe])return!1;return!0}}function G(ue){return F(te);function te(Me){return Me&&Me.type===ue}}function F(ue){return te;function te(Me,we,Je){return!!(he(Me)&&ue.call(this,Me,typeof we=="number"?we:void 0,Je||void 0))}}function M(){return!0}function he(ue){return ue!==null&&typeof ue=="object"&&"type"in ue}},17970:function(Q,C,h){"use strict";h.d(C,{FK:function(){return B},Pk:function(){return I},rb:function(){return v}});const v=O("end"),I=O("start");function O(G){return F;function F(M){const he=M&&M.position&&M.position[G]||{};if(typeof he.line=="number"&&he.line>0&&typeof he.column=="number"&&he.column>0)return{line:he.line,column:he.column,offset:typeof he.offset=="number"&&he.offset>-1?he.offset:void 0}}}function B(G){const F=I(G),M=v(G);if(F&&M)return{start:F,end:M}}},2348:function(Q,C,h){"use strict";h.d(C,{AM:function(){return F},S4:function(){return M}});var v=h(10502);function I(ue){return ue}const O=[],B=!0,G=!1,F="skip";function M(ue,te,Me,we){let Je;typeof te=="function"&&typeof Me!="function"?(we=Me,Me=te):Je=te;const Oe=(0,v.O)(Je),Te=we?-1:1;Ae(ue,void 0,[])();function Ae(Re,de,pe){const be=Re&&typeof Re=="object"?Re:{};if(typeof be.type=="string"){const ke=typeof be.tagName=="string"?be.tagName:typeof be.name=="string"?be.name:void 0;Object.defineProperty(me,"name",{value:"node ("+(Re.type+(ke?"<"+ke+">":""))+")"})}return me;function me(){let ke=O,ee,Ne,Ie;if((!te||Oe(Re,de,pe[pe.length-1]||void 0))&&(ke=he(Me(Re,pe)),ke[0]===G))return ke;if("children"in Re&&Re.children){const Pe=Re;if(Pe.children&&ke[0]!==F)for(Ne=(we?Pe.children.length:-1)+Te,Ie=pe.concat(Pe);Ne>-1&&Ne<Pe.children.length;){const Xe=Pe.children[Ne];if(ee=Ae(Xe,Ne,Ie)(),ee[0]===G)return ee;Ne=typeof ee[1]=="number"?ee[1]:Ne+Te}}return ke}}}function he(ue){return Array.isArray(ue)?ue:typeof ue=="number"?[B,ue]:ue==null?O:[ue]}},10528:function(Q,C,h){"use strict";h.d(C,{Vn:function(){return I}});var v=h(2348);function I(O,B,G,F){let M,he,ue;typeof B=="function"&&typeof G!="function"?(he=void 0,ue=B,M=G):(he=B,ue=G,M=F),(0,v.S4)(O,he,te,M);function te(Me,we){const Je=we[we.length-1],Oe=Je?Je.children.indexOf(Me):void 0;return ue(Me,Oe,Je)}}},43309:function(Q,C,h){"use strict";h.d(C,{t:function(){return v}});const v={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/"}},47854:function(Q){"use strict";Q.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(Q){"use strict";Q.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"}')}}]);
|
|
|
}()); |