/*! For license information please see main.b992798c.js.LICENSE.txt */ (()=>{var __webpack_modules__={5513:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?h(w,--y):0,m--,10===b&&(m=1,f--),b}function C(){return b=y2||k(b)>3?"":" "}function R(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,S()+(t<6&&32==A()&&32==C()))}function D(e){for(;C();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&D(b);break;case 40:41===e&&D(e);break;case 92:C()}return y}function N(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==A()););return"/*"+T(t,y-1)+"*"+s(47===e?e:C())}function L(e){for(;!k(A());)C();return T(e,y)}var H="-ms-",B="-moz-",z="-webkit-",F="comm",U="rule",V="decl",j="@keyframes";function W(e,t){for(var n="",i=p(e),r=0;r0&&d(B)-v&&g(b>32?J(B+";",i,n,v-1):J(l(B," ","")+";",i,n,v-2),p);break;case 59:B+=";";default:if(g(H=X(B,t,n,f,m,r,u,M,P=[],D=[],v),o),123===k)if(0===m)K(B,t,H,H,P,o,v,u,D);else switch(99===y&&110===h(B,3)?100:y){case 100:case 108:case 109:case 115:K(e,H,H,i&&g(X(e,H,H,0,0,r,u,M,r,P=[],v),D),r,D,v,u,i?P:D);break;default:K(B,H,H,H,[""],D,0,u,D)}}f=m=b=0,E=T=1,M=B="",v=a;break;case 58:v=1+d(B),b=w;default:if(E<1)if(123==k)--E;else if(125==k&&0==E++&&125==_())continue;switch(B+=s(k),k*E){case 38:T=m>0?1:(B+="\f",-1);break;case 44:u[f++]=(d(B)-1)*T,T=1;break;case 64:45===A()&&(B+=I(C())),y=A(),m=v=d(M=B+=L(S())),k++;break;case 45:45===w&&2==d(B)&&(E=0)}}return o}function X(e,t,n,i,s,o,c,h,d,g,f){for(var m=s-1,v=0===s?o:[""],y=p(v),b=0,w=0,x=0;b0?v[_]+" "+C:l(C,/&\f/g,v[_])))&&(d[x++]=A);return E(e,t,n,0===s?U:h,d,g,f)}function Y(e,t,n){return E(e,t,n,F,s(b),u(e,2,-2),0)}function J(e,t,n,i){return E(e,t,n,V,u(e,0,i),u(e,i+1,-1),i)}var Q=function(e,t,n){for(var i=0,r=0;i=r,r=A(),38===i&&12===r&&(t[n]=1),!k(r);)C();return T(e,y)},Z=function(e,t){return P(function(e,t){var n=-1,i=44;do{switch(k(i)){case 0:38===i&&12===A()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=I(i);break;case 4:if(44===i){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=s(i)}}while(i=C());return e}(M(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!i){$.set(e,!0);for(var r=[],s=Z(t,r),o=n.props,a=0,l=0;a6)switch(h(e,t+1)){case 109:if(45!==h(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+B+(108==h(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==h(e,t+1))break;case 6444:switch(h(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===h(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(h(e,t+11)){case 114:return z+e+H+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+H+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+H+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+H+e+e}return e}var ie=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=ne(e.value,e.length);break;case j:return W([x(e,{value:l(e.value,"@","@"+z)})],i);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return W([x(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,H+"input-$1")]})],i)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||ie;var s,o,a={},l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function i(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>i})},6862:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,T:()=>u,a:()=>p,i:()=>a,w:()=>h});var i=n(5043),r=n(5513),s=n(8168),o=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var i=e(n);return t.set(n,i),i}},a=(n(2830),n(9436),!0),l=i.createContext("undefined"!==typeof HTMLElement?(0,r.A)({key:"css"}):null);var c=l.Provider,h=function(e){return(0,i.forwardRef)((function(t,n){var r=(0,i.useContext)(l);return e(t,r,n)}))};a||(h=function(e){return function(t){var n=(0,i.useContext)(l);return null===n?(n=(0,r.A)({key:"css"}),i.createElement(l.Provider,{value:n},e(t,n))):e(t,n)}});var u=i.createContext({});var d=o((function(e){return o((function(t){return function(e,t){return"function"===typeof t?t(e):(0,s.A)({},e,t)}(e,t)}))})),p=function(e){var t=i.useContext(u);return e.theme!==t&&(t=d(t)(e.theme)),i.createElement(u.Provider,{value:t},e.children)}},3290:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>h,mL:()=>l});var i=n(6862),r=n(5043),s=n(1722),o=n(9436),a=n(2830),l=(n(5513),n(219),(0,i.w)((function(e,t){var n=e.styles,l=(0,a.J)([n],void 0,r.useContext(i.T));if(!i.i){for(var c,h=l.name,u=l.styles,d=l.next;void 0!==d;)h+=" "+d.name,u+=d.styles,d=d.next;var p=!0===t.compat,g=t.insert("",{name:h,styles:u},t.sheet,p);return p?null:r.createElement("style",((c={})["data-emotion"]=t.key+"-global "+h,c.dangerouslySetInnerHTML={__html:g},c.nonce=t.sheet.nonce,c))}var f=r.useRef();return(0,o.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,r=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==r&&(i=!0,r.setAttribute("data-emotion",e),n.hydrate([r])),f.current=[n,i],function(){n.flush()}}),[t]),(0,o.i)((function(){var e=f.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,s.sk)(t,l.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{J:()=>g});var i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r=n(918),s=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,r.A)((function(e){return a(e)?e:e.replace(s,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(o,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===i[e]||a(e)||"number"!==typeof t||0===t?t:t+"px"};function u(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)d={name:i.name,styles:i.styles,next:d},i=i.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:d}}},9436:(e,t,n)=>{"use strict";var i;n.d(t,{i:()=>a,s:()=>o});var r=n(5043),s=!!(i||(i=n.t(r,2))).useInsertionEffect&&(i||(i=n.t(r,2))).useInsertionEffect,o=s||function(e){return e()},a=s||r.useLayoutEffect},1722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>i,SF:()=>r,sk:()=>s});function i(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):i+=n+" "})),i}var r=function(e,t,n){var i=e.key+"-"+t.name;!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},s=function(e,t,n){r(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do{e.insert(t===s?"."+i:"",s,e.sheet,!0),s=s.next}while(void 0!==s)}}},1458:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class i{}i.VERSION="0.9.0",i.basePath=".",i.setBasePath=e=>{"undefined"!==typeof e&&e.length>0?("/"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),i.basePath=e):i.basePath="."},i.imageBasePath=".",i.setImageBasePath=e=>{"undefined"!==typeof e&&e.length>0?("/"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),i.imageBasePath=e):i.imageBasePath="".concat(i.basePath,"/images")},i.language="undefined"!==typeof window?navigator.language:"en",i.setLanguage=e=>{i.language="undefined"!==typeof e&&null!=e?e:navigator.language},i.defaultLanguage="en",i.setDefaultLanguage=e=>{i.defaultLanguage="undefined"!==typeof e&&null!=e?e:"en"},i.languages=null,i.setLanguages=e=>{"undefined"!==typeof e&&null!=e&&(i.languages=e)},i.IS_EDGE="undefined"!==typeof window&&null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),i.IS_NS="undefined"!==typeof window&&null!=navigator.userAgent&&navigator.userAgent.indexOf("Mozilla/")>=0&&navigator.userAgent.indexOf("MSIE")<0&&navigator.userAgent.indexOf("Edge/")<0,i.IS_SF="undefined"!==typeof window&&/Apple Computer, Inc/.test(navigator.vendor),i.IS_ANDROID="undefined"!==typeof window&&navigator.appVersion.indexOf("Android")>=0,i.IS_IOS="undefined"!==typeof window&&/iP(hone|od|ad)/.test(navigator.platform),i.IS_GC="undefined"!==typeof window&&/Google Inc/.test(navigator.vendor),i.IS_CHROMEAPP="undefined"!==typeof window&&null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,i.IS_FF=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,i.IS_MT="undefined"!==typeof window&&(navigator.userAgent.indexOf("Firefox/")>=0&&navigator.userAgent.indexOf("Firefox/1.")<0&&navigator.userAgent.indexOf("Firefox/2.")<0||navigator.userAgent.indexOf("Iceweasel/")>=0&&navigator.userAgent.indexOf("Iceweasel/1.")<0&&navigator.userAgent.indexOf("Iceweasel/2.")<0||navigator.userAgent.indexOf("SeaMonkey/")>=0&&navigator.userAgent.indexOf("SeaMonkey/1.")<0||navigator.userAgent.indexOf("Iceape/")>=0&&navigator.userAgent.indexOf("Iceape/1.")<0),i.IS_SVG="undefined"!==typeof window&&"MICROSOFT INTERNET EXPLORER"!==navigator.appName.toUpperCase(),i.NO_FO="undefined"!==typeof window&&(!document.createElementNS||"[object SVGForeignObjectElement]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||navigator.userAgent.indexOf("Opera/")>=0),i.IS_WIN="undefined"!==typeof window&&navigator.appVersion.indexOf("Win")>0,i.IS_MAC="undefined"!==typeof window&&navigator.appVersion.indexOf("Mac")>0,i.IS_CHROMEOS="undefined"!==typeof window&&/\bCrOS\b/.test(navigator.appVersion),i.IS_TOUCH="undefined"!==typeof window&&"ontouchstart"in document.documentElement,i.IS_POINTER="undefined"!==typeof window&&null!=window.PointerEvent&&!(navigator.appVersion.indexOf("Mac")>0),i.IS_LOCAL="undefined"!==typeof window&&document.location.href.indexOf("http://")<0&&document.location.href.indexOf("https://")<0,i.isBrowserSupported=()=>i.IS_SVG;const r=i},8957:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _util_domUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9933),_util_Translations__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6064);class EditorPopupMenu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.imageBasePath=null,this.config=e}createMenu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(null!=this.config){const r=this.createConditions(e,n,i),s=this.config.firstChild;this.addItems(e,t,n,i,r,s,null)}}addItems(editor,menu){let cell=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,evt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,conditions=arguments.length>4?arguments[4]:void 0,item=arguments.length>5?arguments[5]:void 0,parent=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,addSeparator=!1;for(;null!=item;){if("add"===item.nodeName){const condition=item.getAttribute("if");if(null==condition||conditions[condition]){let as=item.getAttribute("as");as=_util_Translations__WEBPACK_IMPORTED_MODULE_1__.A.get(as)||as;const funct=eval((0,_util_domUtils__WEBPACK_IMPORTED_MODULE_0__.rf)(item)),action=item.getAttribute("action");let icon=item.getAttribute("icon");const iconCls=item.getAttribute("iconCls"),enabledCond=item.getAttribute("enabled-if"),enabled=null==enabledCond||conditions[enabledCond];addSeparator&&(menu.addSeparator(parent),addSeparator=!1),null!=icon&&this.imageBasePath&&(icon=this.imageBasePath+icon);const row=this.addAction(menu,editor,as,icon,funct,action,cell,parent,iconCls,enabled);this.addItems(editor,menu,cell,evt,conditions,item.firstChild,row)}}else"separator"===item.nodeName&&(addSeparator=!0);item=item.nextSibling}}addAction(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];return e.addItem(n,i||null,(e=>{"function"===typeof r&&r.call(t,t,o,e),null!=s&&t.execute(s,o,e)}),a,l,c)}createConditions(editor){let cell=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,evt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const model=editor.graph.getDataModel(),childCount=cell?cell.getChildCount():0,conditions={};conditions.nocell=null==cell,conditions.ncells=editor.graph.getSelectionCount()>1,conditions.notRoot=model.getRoot()!==editor.graph.getDefaultParent().getParent(),conditions.cell=null!=cell;const isCell=null!=cell&&1===editor.graph.getSelectionCount();conditions.nonEmpty=isCell&&childCount>0,conditions.expandable=isCell&&editor.graph.isCellFoldable(cell,!1),conditions.collapsable=isCell&&editor.graph.isCellFoldable(cell,!0),conditions.validRoot=isCell&&editor.graph.isValidRoot(cell),conditions.emptyValidRoot=conditions.validRoot&&0===childCount,conditions.swimlane=isCell&&editor.graph.isSwimlane(cell);const condNodes=this.config.getElementsByTagName("condition");for(let i=0;i{"use strict";n.d(t,{t:()=>c});var i=n(1458),r=n(9928),s=n(4854),o=n(8578),a=n(1483),l=n(2149);n(7556);class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.toolbar=null,this.resetHandler=null,this.spacing=4,this.connectOnDrop=!1,this.editor=t,null!=e&&null!=t&&this.init(e)}init(e){null!=e&&(this.toolbar=new r.A(e),this.toolbar.addListener(a.A.SELECT,((t,n)=>{const i=n.getProperty("function");this.editor.insertFunction=null!=i?()=>{i.apply(this,[e]),this.toolbar.resetMode()}:null})),this.resetHandler=()=>{null!=this.toolbar&&this.toolbar.resetMode(!0)},this.editor.graph.addListener(a.A.DOUBLE_CLICK,this.resetHandler),this.editor.addListener(a.A.ESCAPE,this.resetHandler))}addItem(e,t,n,i){return this.toolbar.addItem(e,t,(()=>{null!=n&&n.length>0&&this.editor.execute(n)}),i)}addSeparator(e){e=e||"".concat(i.A.imageBasePath,"/separator.gif"),this.toolbar.addSeparator(e)}addCombo(){return this.toolbar.addCombo()}addActionCombo(e){return this.toolbar.addActionCombo(e)}addActionOption(e,t,n){this.addOption(e,t,(()=>{this.editor.execute(n)}))}addOption(e,t,n){return this.toolbar.addOption(e,t,n)}addMode(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this.toolbar.addSwitchMode(e,t,(()=>{this.editor.setMode(n),null!=r&&r(this.editor)}),i)}addPrototype(e,t,n,i,r){let s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const o=()=>"function"===typeof n?n():null!=n?this.editor.graph.cloneCell(n):null,l=(e,t)=>{"function"===typeof r?r(this.editor,o(),e,t):this.drop(o(),e,t),this.toolbar.resetMode(),a.A.consume(e)},c=this.toolbar.addMode(e,t,l,i,null,s);return this.installDropHandler(c,((e,t,n)=>{l(t,n)})),c}drop(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{graph:i}=this.editor;i.getDataModel();if(null!=n&&!n.isEdge()&&this.connectOnDrop&&n.isConnectable())this.connect(e,t,n);else{for(;null!=n&&!i.isValidDropTarget(n,[e],t);)n=n.getParent();this.insert(e,t,n)}}insert(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{graph:i}=this.editor;if(i.canImportCell(e)){const r=(0,l.El)(t),s=(0,l.xJ)(t),a=(0,o.ce)(i.container,r,s);return n&&i.isSplitEnabled()&&i.isSplitTarget(n,[e],t)?i.splitEdge(n,[e],null,a.x,a.y):this.editor.addVertex(n,e,a.x,a.y)}return null}connect(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{graph:i}=this.editor,r=i.getDataModel();if(null!=n&&e.isConnectable()&&i.isEdgeValid(null,n,e)){let t=null;r.beginUpdate();try{const o=n.getGeometry(),a=e.getGeometry().clone();a.x=o.x+(o.width-a.width)/2,a.y=o.y+(o.height-a.height)/2;const l=this.spacing*i.gridSize,c=20*n.getDirectedEdgeCount(!0);this.editor.horizontalFlow?a.x+=(a.width+o.width)/2+l+c:a.y+=(a.height+o.height)/2+l+c,e.setGeometry(a);const h=n.getParent();if(i.addCell(e,h),i.constrainChild(e),t=this.editor.createEdge(n,e),null==t.getGeometry()){const e=new s.A;e.relative=!0,r.setGeometry(t,e)}i.addEdge(t,h,n,e)}finally{r.endUpdate()}i.setSelectionCells([e,t]),i.scrollCellToVisible(e)}}installDropHandler(e,t){const n=document.createElement("img");n.setAttribute("src",e.getAttribute("src"))}destroy(){null!=this.resetHandler&&(this.editor.graph.removeListener(this.resetHandler),this.editor.removeListener(this.resetHandler),this.resetHandler=null),null!=this.toolbar&&(this.toolbar.destroy(),this.toolbar=null)}}},6277:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(1458),r=n(1483),s=n(9933),o=n(2744),a=n(6171),l=n(1643);class c{static init(){if(null==c.window&&null!=document.body){const e="".concat(c.consoleName," - mxGraph ").concat(i.A.VERSION),t=document.createElement("table");t.setAttribute("width","100%"),t.setAttribute("height","100%");const n=document.createElement("tbody");let o=document.createElement("tr");const h=document.createElement("td");h.style.verticalAlign="top",c.textarea=document.createElement("textarea"),c.textarea.setAttribute("wrap","off"),c.textarea.setAttribute("readOnly","true"),c.textarea.style.height="100%",c.textarea.style.resize="none",c.textarea.value=c.buffer,i.A.IS_NS&&"BackCompat"!==document.compatMode?c.textarea.style.width="99%":c.textarea.style.width="100%",h.appendChild(c.textarea),o.appendChild(h),n.appendChild(o),o=document.createElement("tr"),c.td=document.createElement("td"),c.td.style.verticalAlign="top",c.td.setAttribute("height","30px"),o.appendChild(c.td),n.appendChild(o),t.appendChild(n),c.addButton("Info",(function(e){c.info()})),c.addButton("DOM",(function(e){const t=(0,s.K0)(document.body);c.debug(t)})),c.addButton("Trace",(function(e){c.TRACE=!c.TRACE,c.TRACE?c.debug("Tracing enabled"):c.debug("Tracing disabled")})),c.addButton("Copy",(function(e){try{(0,l.eM)(c.textarea.value)}catch(t){alert(t)}})),c.addButton("Show",(function(e){try{(0,a.lY)(c.textarea.value)}catch(t){alert(t)}})),c.addButton("Clear",(function(e){c.textarea.value=""}));let u=0,d=0;if("number"===typeof window.innerWidth?(u=window.innerHeight,d=window.innerWidth):(u=document.documentElement.clientHeight||document.body.clientHeight,d=document.body.clientWidth),c.window=new a.Ay(e,t,Math.max(0,d-320),Math.max(0,u-210),300,160),c.window.setMaximizable(!0),c.window.setScrollable(!1),c.window.setResizable(!0),c.window.setClosable(!0),c.window.destroyOnClose=!1,i.A.IS_NS&&!i.A.IS_GC&&!i.A.IS_SF&&"BackCompat"!==document.compatMode){const e=c.window.getElement(),t=(t,n)=>{c.textarea.style.height="".concat(Math.max(0,e.offsetHeight-70),"px")};c.window.addListener(r.A.RESIZE_END,t),c.window.addListener(r.A.MAXIMIZE,t),c.window.addListener(r.A.NORMALIZE,t),c.textarea.style.height="92px"}}}static info(){c.writeln((0,o.dI)(navigator))}static addButton(e,t){const n=document.createElement("button");(0,s.M9)(n,e),r.A.addListener(n,"click",t),c.td.appendChild(n)}static isVisible(){return null!=c.window&&c.window.isVisible()}static show(){c.setVisible(!0)}static setVisible(e){null==c.window&&c.init(),null!=c.window&&c.window.setVisible(e)}static enter(e){if(c.TRACE)return c.writeln("Entering ".concat(e)),(new Date).getTime()}static leave(e,t){if(c.TRACE){const n=0!==t?" (".concat((new Date).getTime()-t," ms)"):"";c.writeln("Leaving ".concat(e).concat(n))}}static debug(){c.DEBUG&&c.writeln(...arguments)}static warn(){c.WARN&&c.writeln(...arguments)}static write(){let e="";for(let t=0;t=0&&(c.textarea.style.visibility="hidden",c.textarea.style.visibility="visible"),c.textarea.scrollTop=c.textarea.scrollHeight):c.buffer+=e}static writeln(){let e="";for(let t=0;t{"use strict";n.d(t,{A:()=>u});var i=n(5121),r=n(8578),s=n(919),o=n(1458),a=n(1483),l=n(9933),c=n(2149);class h extends i.A{constructor(e){super(),this.activeRow=null,this.eventReceiver=null,this.submenuImage="".concat(o.A.imageBasePath,"/submenu.gif"),this.zIndex=10006,this.useLeftButtonForPopup=!1,this.enabled=!0,this.itemCount=0,this.autoExpand=!1,this.smartSeparators=!1,this.labels=!0,this.willAddSeparator=!1,this.containsItems=!1,e&&(this.factoryMethod=e),this.table=document.createElement("table"),this.table.className="mxPopupMenu",this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.div=document.createElement("div"),this.div.className="mxPopupMenu",this.div.style.display="inline",this.div.style.zIndex=String(this.zIndex),this.div.appendChild(this.table),a.A.disableContextMenu(this.div)}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}isPopupTrigger(e){return e.isPopupTrigger()||this.useLeftButtonForPopup&&(0,c.Lg)(e.getEvent())}addItem(e,t,n){var i,r;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],h=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7];s=null!==(i=s)&&void 0!==i?i:this,this.itemCount++,s.willAddSeparator&&(s.containsItems&&this.addSeparator(s,!0),s.willAddSeparator=!1),s.containsItems=!0;const d=document.createElement("tr");d.className="mxPopupMenuItem";const p=document.createElement("td");if(p.className="mxPopupMenuIcon",t){const e=document.createElement("img");e.src=t,p.appendChild(e)}else if(o){const e=document.createElement("div");e.className=o,p.appendChild(e)}if(d.appendChild(p),this.labels){const t=document.createElement("td");t.className="mxPopupMenuItem".concat(c?"":" mxDisabled"),(0,l.M9)(t,e),t.align="left",d.appendChild(t);const n=document.createElement("td");n.className="mxPopupMenuItem".concat(c?"":" mxDisabled"),n.style.paddingRight="6px",n.style.textAlign="right",d.appendChild(n),null==s.div&&this.createSubmenu(s)}return null===(r=s.tbody)||void 0===r||r.appendChild(d),h&&c&&(a.A.addGestureListeners(d,(e=>{this.eventReceiver=d,s&&s.activeRow!=d&&s.activeRow!=s&&(null!=s.activeRow&&null!=s.activeRow.div.parentNode&&this.hideSubmenu(s),null!=d.div&&(this.showSubmenu(s,d),s.activeRow=d)),a.A.consume(e)}),(e=>{s&&s.activeRow!=d&&s.activeRow!=s&&(null!=s.activeRow&&null!=s.activeRow.div.parentNode&&this.hideSubmenu(s),this.autoExpand&&null!=d.div&&(this.showSubmenu(s,d),s.activeRow=d)),u||(d.className="mxPopupMenuItemHover")}),(e=>{this.eventReceiver==d&&(s&&s.activeRow!=d&&this.hideMenu(),null!=n&&n(e)),this.eventReceiver=null,a.A.consume(e)})),u||a.A.addListener(d,"mouseout",(e=>{d.className="mxPopupMenuItem"}))),d}addCheckmark(e,t){if(e.firstChild){const n=e.firstChild.nextSibling;n.style.backgroundImage="url('".concat(t,"')"),n.style.backgroundRepeat="no-repeat",n.style.backgroundPosition="2px 50%"}}createSubmenu(e){var t;e.table=document.createElement("table"),e.table.className="mxPopupMenu",e.tbody=document.createElement("tbody"),e.table.appendChild(e.tbody),e.div=document.createElement("div"),e.div.className="mxPopupMenu",e.div.style.position="absolute",e.div.style.display="inline",e.div.style.zIndex=String(this.zIndex),e.div.appendChild(e.table);const n=document.createElement("img");if(n.setAttribute("src",this.submenuImage),null!==(t=e.firstChild)&&void 0!==t&&null!==(t=t.nextSibling)&&void 0!==t&&t.nextSibling){e.firstChild.nextSibling.nextSibling.appendChild(n)}}showSubmenu(e,t){if(null!=t.div){t.div.style.left="".concat(e.div.offsetLeft+t.offsetLeft+t.offsetWidth-1,"px"),t.div.style.top="".concat(e.div.offsetTop+t.offsetTop,"px"),document.body.appendChild(t.div);const n=t.div.offsetLeft,i=t.div.offsetWidth,s=(0,r.jb)(document),o=document.body,a=document.documentElement;n+i>s.x+(o.clientWidth||a.clientWidth)&&(t.div.style.left="".concat(Math.max(0,e.div.offsetLeft-i-6),"px")),(0,r.Uj)(t.div)}}addSeparator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=e||this,this.smartSeparators&&!t)e.willAddSeparator=!0;else if(e.tbody){e.willAddSeparator=!1;const t=document.createElement("tr"),n=document.createElement("td");n.className="mxPopupMenuIcon",n.style.padding="0 0 0 0px",t.appendChild(n);const i=document.createElement("td");i.style.padding="0 0 0 0px",i.setAttribute("colSpan","2");const r=document.createElement("hr");r.setAttribute("size","1"),i.appendChild(r),t.appendChild(i),e.tbody.appendChild(t)}}popup(e,t,n,i){if(null!=this.div&&null!=this.tbody&&null!=this.factoryMethod){for(this.div.style.left="".concat(e,"px"),this.div.style.top="".concat(t,"px");null!=this.tbody.firstChild;)a.A.release(this.tbody.firstChild),this.tbody.removeChild(this.tbody.firstChild);this.itemCount=0,this.factoryMethod(this,n,i),this.itemCount>0&&(this.showMenu(),this.fireEvent(new s.A(a.A.SHOW)))}}isMenuShowing(){return null!=this.div&&this.div.parentNode==document.body}showMenu(){document.body.appendChild(this.div),(0,r.Uj)(this.div)}hideMenu(){null!=this.div&&(null!=this.div.parentNode&&this.div.parentNode.removeChild(this.div),this.hideSubmenu(this),this.containsItems=!1,this.fireEvent(new s.A(a.A.HIDE)))}hideSubmenu(e){null!=e.activeRow&&(this.hideSubmenu(e.activeRow),null!=e.activeRow.div.parentNode&&e.activeRow.div.parentNode.removeChild(e.activeRow.div),e.activeRow=null)}destroy(){null!=this.div&&(a.A.release(this.div),null!=this.div.parentNode&&this.div.parentNode.removeChild(this.div))}}const u=h},9928:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(1483),r=n(4886),s=n(8910),o=n(5121),a=n(919),l=n(1458),c=n(9933);class h extends o.A{constructor(e){super(),this.menu=null,this.currentImg=null,this.selectedMode=null,this.defaultMode=null,this.defaultFunction=null,this.enabled=!0,this.noReset=!1,this.updateDefaultMode=!0,this.container=e}addItem(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;const u=document.createElement(null!=t?"img":"button"),d=a||(null!=h?"mxToolbarMode":"mxToolbarItem");u.className=d,t&&u.setAttribute("src",t),null!=e&&(null!=t?u.setAttribute("title",e):(0,c.M9)(u,e)),this.container.appendChild(u),null!=n&&(i.A.addListener(u,"click",n),l.A.IS_TOUCH&&i.A.addListener(u,"touchend",n));const p=e=>{null!=o?u.setAttribute("src",t):u.style.backgroundColor=""};return i.A.addGestureListeners(u,(e=>{if(null!=o?u.setAttribute("src",o):u.style.backgroundColor="gray",null!=h){null==this.menu&&(this.menu=new s.A);const t=this.currentImg;if(this.menu.isMenuShowing()&&this.menu.hideMenu(),t!=u){this.currentImg=u,this.menu.factoryMethod=h;const t=new r.A(u.offsetLeft,u.offsetTop+u.offsetHeight);if(this.menu.popup(t.x,t.y,null,e),this.menu.isMenuShowing()){u.className="".concat(d,"Selected");const e=this.menu.hideMenu;this.menu.hideMenu=()=>{e.apply(this),u.className=d,this.currentImg=null}}}}}),null,p),i.A.addListener(u,"mouseout",p),u}addCombo(e){const t=document.createElement("div");t.style.display="inline",t.className="mxToolbarComboContainer";const n=document.createElement("select");return n.className=e||"mxToolbarCombo",t.appendChild(n),this.container.appendChild(t),n}addActionCombo(e,t){const n=document.createElement("select");return n.className=t||"mxToolbarCombo",this.addOption(n,e,null),i.A.addListener(n,"change",(e=>{const t=n.options[n.selectedIndex];n.selectedIndex=0,null!=t.funct&&t.funct(e)})),this.container.appendChild(n),n}addOption(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const i=document.createElement("option");return(0,c.EG)(i,t),"function"===typeof n?i.funct=n:i.setAttribute("value",n),e.appendChild(i),i}addSwitchMode(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"mxToolbarMode";const o=document.createElement("img");return o.initialClassName=s,o.className=o.initialClassName,o.setAttribute("src",t),o.altIcon=r,null!=e&&o.setAttribute("title",e),i.A.addListener(o,"click",(e=>{const t=this.selectedMode;let r=t.altIcon;null!=r?(t.altIcon=t.getAttribute("src"),t.setAttribute("src",r)):t.className=t.initialClassName,this.updateDefaultMode&&(this.defaultMode=o),this.selectedMode=o,r=o.altIcon,null!=r?(o.altIcon=o.getAttribute("src"),o.setAttribute("src",r)):o.className="".concat(o.initialClassName,"Selected"),this.fireEvent(new a.A(i.A.SELECT)),n()})),this.container.appendChild(o),null==this.defaultMode&&(this.defaultMode=o,this.selectMode(o),n()),o}addMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];o=null==o||o;const a=document.createElement(null!=t?"img":"button");return a.initialClassName=s||"mxToolbarMode",a.className=a.initialClassName,t&&a.setAttribute("src",t),a.altIcon=r,null!=e&&a.setAttribute("title",e),this.enabled&&o&&(i.A.addListener(a,"click",(e=>{this.selectMode(a,n),this.noReset=!1})),i.A.addListener(a,"dblclick",(e=>{this.selectMode(a,n),this.noReset=!0})),null==this.defaultMode&&(this.defaultMode=a,this.defaultFunction=n,this.selectMode(a,n))),this.container.appendChild(a),a}selectMode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.selectedMode!=e){if(null!=this.selectedMode){const e=this.selectedMode.altIcon;null!=e?(this.selectedMode.altIcon=this.selectedMode.getAttribute("src"),this.selectedMode.setAttribute("src",e)):this.selectedMode.className=this.selectedMode.initialClassName}this.selectedMode=e;const n=this.selectedMode.altIcon;null!=n?(this.selectedMode.altIcon=this.selectedMode.getAttribute("src"),this.selectedMode.setAttribute("src",n)):this.selectedMode.className="".concat(this.selectedMode.initialClassName,"Selected"),this.fireEvent(new a.A(i.A.SELECT,{function:t}))}}resetMode(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.noReset||this.selectedMode==this.defaultMode||this.selectMode(this.defaultMode,this.defaultFunction)}addSeparator(e){return this.addItem(null,e,null)}addBreak(){(0,c.br)(this.container)}addLine(){const e=document.createElement("hr");e.style.marginRight="6px",e.setAttribute("size","1"),this.container.appendChild(e)}destroy(){i.A.release(this.container),this.container=null,this.defaultMode=null,this.defaultFunction=null,this.selectedMode=null,null!=this.menu&&this.menu.destroy()}}const u=h},6171:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,lY:()=>m,z3:()=>v});var i=n(8597),r=n(919),s=n(5121),o=n(8578),a=n(1483),l=n(1458),c=n(4027),h=n(9933),u=n(6064),d=n(2149),p=n(2744),g=n(1643);class f extends s.A{constructor(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=!(arguments.length>7&&void 0!==arguments[7])||arguments[7],h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";super(),this.closeImage="".concat(l.A.imageBasePath,"/close.gif"),this.minimizeImage="".concat(l.A.imageBasePath,"/minimize.gif"),this.normalizeImage="".concat(l.A.imageBasePath,"/normalize.gif"),this.maximizeImage="".concat(l.A.imageBasePath,"/maximize.gif"),this.resizeImage="".concat(l.A.imageBasePath,"/resize.gif"),this.visible=!1,this.minimumSize=new i.A(0,0,50,40),this.destroyOnClose=!0,null!=t&&(this.content=t,this.init(n,r,s,o,u),this.installMaximizeHandler(),this.installMinimizeHandler(),this.installCloseHandler(),this.setMinimizable(a),this.setTitle(e),c&&this.installMoveHandler(),null!=h&&null!=h.parentNode?h.parentNode.replaceChild(this.div,h):document.body.appendChild(this.div))}init(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"MaxWindow";this.div=document.createElement("div"),this.div.className=r,this.div.style.left="".concat(e,"px"),this.div.style.top="".concat(t,"px"),this.table=document.createElement("table"),this.table.className=r,l.A.IS_POINTER&&(this.div.style.touchAction="none"),null!=n&&(this.div.style.width="".concat(n,"px"),this.table.style.width="".concat(n,"px")),null!=i&&(this.div.style.height="".concat(i,"px"),this.table.style.height="".concat(i,"px"));const s=document.createElement("tbody");let o=document.createElement("tr");this.title=document.createElement("td"),this.title.className="".concat(r,"Title"),this.buttons=document.createElement("div"),this.buttons.style.position="absolute",this.buttons.style.display="inline-block",this.buttons.style.right="4px",this.buttons.style.top="5px",this.title.appendChild(this.buttons),o.appendChild(this.title),s.appendChild(o),o=document.createElement("tr"),this.td=document.createElement("td"),this.td.className="".concat(r,"Pane"),this.contentWrapper=document.createElement("div"),this.contentWrapper.className="".concat(r,"Pane"),this.contentWrapper.style.width="100%",this.contentWrapper.appendChild(this.content),"DIV"!==this.content.nodeName.toUpperCase()&&(this.contentWrapper.style.height="100%"),this.td.appendChild(this.contentWrapper),o.appendChild(this.td),s.appendChild(o),this.table.appendChild(s),this.div.appendChild(this.table);const c=e=>{this.activate()};a.A.addGestureListeners(this.title,c),a.A.addGestureListeners(this.table,c),this.hide()}setTitle(e){let t=this.title.firstChild;for(;null!=t;){const e=t.nextSibling;t.nodeType===c.Js.TEXT&&t.parentNode.removeChild(t),t=e}(0,h.M9)(this.title,e||""),this.title.appendChild(this.buttons)}setScrollable(e){(null==navigator.userAgent||navigator.userAgent.indexOf("Presto/2.5")<0)&&(this.contentWrapper.style.overflow=e?"auto":"hidden")}activate(){if(f.activeWindow!==this){const e=(0,o.lY)(this.getElement()),t=null!=e?parseInt(e.zIndex):3;if(f.activeWindow){const e=f.activeWindow.getElement();null!=e&&null!=e.style&&(e.style.zIndex=String(t))}const n=f.activeWindow;this.getElement().style.zIndex=String(t+1),f.activeWindow=this,this.fireEvent(new r.A(a.A.ACTIVATE,{previousWindow:n}))}}getElement(){return this.div}fit(){(0,o.Uj)(this.div)}isResizable(){return null!=this.resize&&"none"!==this.resize.style.display}setResizable(e){if(e)if(null==this.resize){this.resize=document.createElement("img"),this.resize.style.position="absolute",this.resize.style.bottom="2px",this.resize.style.right="2px",this.resize.setAttribute("src",this.resizeImage),this.resize.style.cursor="nw-resize";let e=null,t=null,n=null,i=null;const s=s=>{this.activate(),e=(0,d.El)(s),t=(0,d.xJ)(s),n=this.div.offsetWidth,i=this.div.offsetHeight,a.A.addGestureListeners(document,null,o,l),this.fireEvent(new r.A(a.A.RESIZE_START,{event:s})),a.A.consume(s)},o=s=>{if(null!=e&&null!=t){const o=(0,d.El)(s)-e,l=(0,d.xJ)(s)-t;null!=n&&null!=i&&this.setSize(n+o,i+l),this.fireEvent(new r.A(a.A.RESIZE,{event:s})),a.A.consume(s)}},l=n=>{null!=e&&null!=t&&(e=null,t=null,a.A.removeGestureListeners(document,null,o,l),this.fireEvent(new r.A(a.A.RESIZE_END,{event:n})),a.A.consume(n))};a.A.addGestureListeners(this.resize,s,o,l),this.div.appendChild(this.resize)}else this.resize.style.display="inline";else null!=this.resize&&(this.resize.style.display="none")}setSize(e,t){e=Math.max(this.minimumSize.width,e),t=Math.max(this.minimumSize.height,t),this.div.style.width="".concat(e,"px"),this.div.style.height="".concat(t,"px"),this.table.style.width="".concat(e,"px"),this.table.style.height="".concat(t,"px"),this.contentWrapper.style.height="".concat(this.div.offsetHeight-this.title.offsetHeight,"px")}setMinimizable(e){this.minimize.style.display=e?"":"none"}getMinimumSize(){return new i.A(0,0,0,this.title.offsetHeight)}installMinimizeHandler(){this.minimize=document.createElement("img"),this.minimize.setAttribute("src",this.minimizeImage),this.minimize.setAttribute("title","Minimize"),this.minimize.style.cursor="pointer",this.minimize.style.marginLeft="2px",this.minimize.style.display="none",this.buttons.appendChild(this.minimize);let e=!1,t=null,n=null;a.A.addGestureListeners(this.minimize,(i=>{if(this.activate(),e)e=!1,this.minimize.setAttribute("src",this.minimizeImage),this.minimize.setAttribute("title","Minimize"),this.contentWrapper.style.display="",null!=t&&null!=n&&(this.maximize.style.display=t,this.div.style.height=n,this.table.style.height=n),null!=this.resize&&(this.resize.style.visibility=""),this.fireEvent(new r.A(a.A.NORMALIZE,{event:i}));else{e=!0,this.minimize.setAttribute("src",this.normalizeImage),this.minimize.setAttribute("title","Normalize"),this.contentWrapper.style.display="none",t=this.maximize.style.display,this.maximize.style.display="none",n=this.table.style.height;const s=this.getMinimumSize();s.height>0&&(this.div.style.height="".concat(s.height,"px"),this.table.style.height="".concat(s.height,"px")),s.width>0&&(this.div.style.width="".concat(s.width,"px"),this.table.style.width="".concat(s.width,"px")),null!=this.resize&&(this.resize.style.visibility="hidden"),this.fireEvent(new r.A(a.A.MINIMIZE,{event:i}))}a.A.consume(i)}))}setMaximizable(e){this.maximize.style.display=e?"":"none"}installMaximizeHandler(){this.maximize=document.createElement("img"),this.maximize.setAttribute("src",this.maximizeImage),this.maximize.setAttribute("title","Maximize"),this.maximize.style.cursor="default",this.maximize.style.marginLeft="2px",this.maximize.style.cursor="pointer",this.maximize.style.display="none",this.buttons.appendChild(this.maximize);let e=!1,t=null,n=null,i=null,s=null,l=null;const c=c=>{if(this.activate(),"none"!==this.maximize.style.display){if(e){e=!1,this.maximize.setAttribute("src",this.maximizeImage),this.maximize.setAttribute("title","Maximize"),this.contentWrapper.style.display="",null!=l&&(this.minimize.style.display=l),this.div.style.left="".concat(t,"px"),this.div.style.top="".concat(n,"px"),null!=s&&null!=i&&(this.div.style.height=i,this.div.style.width=s);"auto"!==(0,o.lY)(this.contentWrapper).overflow&&null==this.resize||(this.contentWrapper.style.height="".concat(this.div.offsetHeight-this.title.offsetHeight,"px")),null!=s&&null!=i&&(this.table.style.height=i,this.table.style.width=s),null!=this.resize&&(this.resize.style.visibility=""),this.fireEvent(new r.A(a.A.NORMALIZE,{event:c}))}else{e=!0,this.maximize.setAttribute("src",this.normalizeImage),this.maximize.setAttribute("title","Normalize"),this.contentWrapper.style.display="",l=this.minimize.style.display,this.minimize.style.display="none",t=parseInt(this.div.style.left),n=parseInt(this.div.style.top),i=this.table.style.height,s=this.table.style.width,this.div.style.left="0px",this.div.style.top="0px";const h=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0);this.div.style.width="".concat(document.body.clientWidth-2,"px"),this.div.style.height="".concat(h-2,"px"),this.table.style.width="".concat(document.body.clientWidth-2,"px"),this.table.style.height="".concat(h-2,"px"),null!=this.resize&&(this.resize.style.visibility="hidden");"auto"!==(0,o.lY)(this.contentWrapper).overflow&&null==this.resize||(this.contentWrapper.style.height="".concat(this.div.offsetHeight-this.title.offsetHeight,"px")),this.fireEvent(new r.A(a.A.MAXIMIZE,{event:c}))}a.A.consume(c)}};a.A.addGestureListeners(this.maximize,c),a.A.addListener(this.title,"dblclick",c)}installMoveHandler(){this.title.style.cursor="move",a.A.addGestureListeners(this.title,(e=>{const t=(0,d.El)(e),n=(0,d.xJ)(e),i=this.getX(),s=this.getY(),o=e=>{const o=(0,d.El)(e)-t,l=(0,d.xJ)(e)-n;this.setLocation(i+o,s+l),this.fireEvent(new r.A(a.A.MOVE,{event:e})),a.A.consume(e)},l=e=>{a.A.removeGestureListeners(document,null,o,l),this.fireEvent(new r.A(a.A.MOVE_END,{event:e})),a.A.consume(e)};a.A.addGestureListeners(document,null,o,l),this.fireEvent(new r.A(a.A.MOVE_START,{event:e})),a.A.consume(e)})),l.A.IS_POINTER&&(this.title.style.touchAction="none")}setLocation(e,t){this.div.style.left="".concat(e,"px"),this.div.style.top="".concat(t,"px")}getX(){return parseInt(this.div.style.left)}getY(){return parseInt(this.div.style.top)}installCloseHandler(){this.closeImg=document.createElement("img"),this.closeImg.setAttribute("src",this.closeImage),this.closeImg.setAttribute("title","Close"),this.closeImg.style.marginLeft="2px",this.closeImg.style.cursor="pointer",this.closeImg.style.display="none",this.buttons.appendChild(this.closeImg),a.A.addGestureListeners(this.closeImg,(e=>{this.fireEvent(new r.A(a.A.CLOSE,{event:e})),this.destroyOnClose?this.destroy():this.setVisible(!1),a.A.consume(e)}))}setImage(e){this.image=document.createElement("img"),this.image.setAttribute("src",e),this.image.setAttribute("align","left"),this.image.style.marginRight="4px",this.image.style.marginLeft="0px",this.image.style.marginTop="-2px",this.title.insertBefore(this.image,this.title.firstChild)}setClosable(e){this.closeImg.style.display=e?"":"none"}isVisible(){return null!=this.div&&"none"!==this.div.style.display}setVisible(e){null!=this.div&&this.isVisible()!==e&&(e?this.show():this.hide())}show(){this.div.style.display="",this.activate();"auto"!=(0,o.lY)(this.contentWrapper).overflow&&null==this.resize||"none"==this.contentWrapper.style.display||(this.contentWrapper.style.height="".concat(this.div.offsetHeight-this.title.offsetHeight,"px")),this.fireEvent(new r.A(a.A.SHOW))}hide(){this.div.style.display="none",this.fireEvent(new r.A(a.A.HIDE))}destroy(){this.fireEvent(new r.A(a.A.DESTROY)),null!=this.div&&(a.A.release(this.div),this.div.parentNode.removeChild(this.div),this.div=null),this.title=null,this.content=null,this.contentWrapper=null}}f.activeWindow=null;const m=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){const t=document.createElement("div");t.style.overflow="scroll",t.style.width="636px",t.style.height="460px";const n=document.createElement("pre");n.innerHTML=(0,p.bG)(e,!1).replace(/\n/g,"
").replace(/ /g," "),t.appendChild(n);const i=document.body.clientWidth,r=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight),s=new f("Popup Window",t,i/2-320,r/2-240,640,480,!1,!0);s.setClosable(!0),s.setVisible(!0)}else if(l.A.IS_NS){const t=window.open();if(!t)throw new Error("Permission not granted to open popup window");t.document.writeln("
".concat((0,p.bG)(e),"").replace(/ /g," "),t.document.body.appendChild(n)}},v=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const r=document.createElement("div");r.style.padding="20px";const s=document.createElement("img");s.setAttribute("src",i||g.Wp.errorImage),s.setAttribute("valign","bottom"),s.style.verticalAlign="middle",r.appendChild(s),r.appendChild(document.createTextNode("\xa0")),r.appendChild(document.createTextNode("\xa0")),r.appendChild(document.createTextNode("\xa0")),(0,h.M9)(r,e);const o=document.body.clientWidth,l=document.body.clientHeight||document.documentElement.clientHeight,c=new f(u.A.get(g.Wp.errorResource)||g.Wp.errorResource,r,(o-t)/2,l/4,t,null,!1,!0);if(n){(0,h.br)(r);const e=document.createElement("p"),t=document.createElement("button");t.setAttribute("style","float:right"),a.A.addListener(t,"click",(e=>{c.destroy()})),(0,h.M9)(t,u.A.get(g.Wp.closeResource)||g.Wp.closeResource),e.appendChild(t),r.appendChild(e),(0,h.br)(r),c.setClosable(!0)}return c.setVisible(!0),c},y=f},1832:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(7857),r=n(9315),s=n(4027),o=n(9342),a=n(6277),l=n(2744),c=n(9933);const h=()=>document.implementation.createDocument("","",null);const u=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h();this.elements=null,this.encodeDefaults=!1,this.document=e,this.objects={}}putObject(e,t){return this.objects[e]=t,t}getObject(e){let t=null;if(null!=e&&(t=this.objects[e],null==t&&(t=this.lookup(e),null==t))){const n=this.getElementById(e);null!=n&&(t=this.decode(n))}return t}lookup(e){return null}getElementById(e){return this.updateElements(),this.elements[e]}updateElements(){null==this.elements&&(this.elements={},null!=this.document.documentElement&&this.addElement(this.document.documentElement))}addElement(e){if(e.nodeType===s.Js.ELEMENT){const t=e.getAttribute("id");if(null!=t)if(null==this.elements[t])this.elements[t]=e;else if(this.elements[t]!==e)throw new Error("".concat(t,": Duplicate ID"))}let t=e.firstChild;for(;null!=t;)this.addElement(t),t=t.nextSibling}getId(e){let t=null;return null!=e&&(t=this.reference(e),null==t&&e instanceof o.A&&(t=e.getId(),null==t&&(t=i.A.create(e),0===t.length&&(t="root")))),t}reference(e){return null}encode(e){let t=null;if(null!=e&&null!=e.constructor){const n=r.A.getCodec(e.constructor);null!=n?t=n.encode(this,e):(0,c.Ll)(e)?t=(0,c.Az)(this.document,e,!0):a.A.warn("Codec.encode: No codec for ".concat((0,l.qQ)(e.constructor)))}return t}decode(e,t){this.updateElements();let n=null;if(null!=e&&e.nodeType===s.Js.ELEMENT){const i=r.A.getCodecByName(e.nodeName);null!=i?n=i.decode(this,e,t):(n=e.cloneNode(!0),n.removeAttribute("as"))}return n}encodeCell(e,t,n){const i=this.encode(e);if(i&&t.appendChild(i),null==n||n){const n=e.getChildCount();for(let i=0;i1&&void 0!==arguments[1])||arguments[1];if((null===e||void 0===e?void 0:e.nodeType)!==s.Js.ELEMENT)return null;let i=r.A.getCodec(e.nodeName);if(!this.isCellCodec(i)){let t=e.firstChild;for(;null!=t&&!this.isCellCodec(i);)i=r.A.getCodec(t.nodeName),t=t.nextSibling}this.isCellCodec(i)||(i=r.A.getCodec(o.A));const a=null===(t=i)||void 0===t?void 0:t.decode(this,e);return n&&this.insertIntoGraph(a),a}insertIntoGraph(e){const{parent:t}=e,n=e.getTerminal(!0),i=e.getTerminal(!1);if(e.setTerminal(null,!1),e.setTerminal(null,!0),e.parent=null,null!=t){if(t===e)throw new Error("".concat(t.id,": Self Reference"));t.insert(e)}null!=n&&n.insertEdge(e,!0),null!=i&&i.insertEdge(e,!1)}setAttribute(e,t,n){null!=t&&null!=n&&e.setAttribute(t,n)}}},9315:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(5773);class r{static register(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null!=e){const n=e.getName();r.codecs[n]=e;const i=e.template.constructor.name;t&&i!==n&&r.addAlias(i,n)}return e}static addAlias(e,t){r.aliases[e]=t}static getCodec(e){var t;if(null==e)return null;let n=null,s="string"===typeof e?e:e.name;const o=r.aliases[s];if(null!=o&&(s=o),n=null!==(t=r.codecs[s])&&void 0!==t?t:null,null==n)try{n=new i.A(new e),r.register(n)}catch(a){}return n}static getCodecByName(e){var t;let n=r.codecs[e];if(!n){const t=r.aliases[e];t&&(n=r.codecs[t])}return null!==(t=n)&&void 0!==t?t:null}}r.codecs={},r.aliases={};const s=r},5773:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _util_ObjectIdentity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6741),_gui_MaxLog__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6277),_view_geometry_Geometry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4854),_view_geometry_Point__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4886),_util_Constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4027),_util_mathUtils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5553),_util_domUtils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9933),_util_MaxXmlRequest__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3906);class ObjectCodec{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.template=e,this.exclude=t,this.idrefs=n,this.mapping=i,this.reverse={};for(const r in this.mapping)this.reverse[this.mapping[r]]=r}getName(){var e;return null!==(e=this.name)&&void 0!==e?e:this.template.constructor.name}setName(e){this.name=e}cloneTemplate(){return new this.template.constructor}getFieldName(e){if(null!=e){const t=this.reverse[e];null!=t&&(e=t)}return e}getAttributeName(e){if(null!=e){const t=this.mapping[e];null!=t&&(e=t)}return e}isExcluded(e,t,n,i){return t==_util_ObjectIdentity__WEBPACK_IMPORTED_MODULE_0__.A.FIELD_NAME||this.exclude.indexOf(t)>=0}isReference(e,t,n,i){return this.idrefs.indexOf(t)>=0}encode(e,t){const n=e.document.createElement(this.getName());return t=this.beforeEncode(e,t,n),this.encodeObject(e,t,n),this.afterEncode(e,t,n)}encodeObject(e,t,n){e.setAttribute(n,"id",e.getId(t));for(const i in t){let r=i;const s=t[r];null==s||this.isExcluded(t,r,s,!0)||((0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_5__.Fq)(r)&&(r=null),this.encodeValue(e,t,r,s,n))}}encodeValue(e,t,n,i,r){if(null!=i){if(null!=n&&this.isReference(t,n,i,!0)){const t=e.getId(i);if(null==t)return void _gui_MaxLog__WEBPACK_IMPORTED_MODULE_1__.A.warn("ObjectCodec.encode: No ID for ".concat(this.getName(),".").concat(n,"=").concat(i));i=t}(null==n||e.encodeDefaults||this.template[n]!=i)&&(n=this.getAttributeName(n),this.writeAttribute(e,t,n,i,r))}}writeAttribute(e,t,n,i,r){"object"!==typeof i?this.writePrimitiveAttribute(e,t,n,i,r):this.writeComplexAttribute(e,t,n,i,r)}writePrimitiveAttribute(e,t,n,i,r){if(i=this.convertAttributeToXml(e,t,n,i,r),null==n){const t=e.document.createElement("add");"function"===typeof i?t.appendChild(e.document.createTextNode(i)):e.setAttribute(t,"value",i),r.appendChild(t)}else"function"!==typeof i&&e.setAttribute(r,n,i)}writeComplexAttribute(e,t,n,i,r){const s=e.encode(i);null!=s?(null!=n&&s.setAttribute("as",n),r.appendChild(s)):_gui_MaxLog__WEBPACK_IMPORTED_MODULE_1__.A.warn("ObjectCodec.encode: No node for ".concat(this.getName(),".").concat(n,": ").concat(i))}convertAttributeToXml(e,t,n,i,r){return this.isBooleanAttribute(e,t,n,i)&&(i=1==i?"1":"0"),i}isBooleanAttribute(e,t,n,i){return"undefined"===typeof i.length&&(1==i||0==i)}convertAttributeFromXml(e,t,n){let{value:i}=t;return this.isNumericAttribute(e,t,n)&&(i=parseFloat(i),!Number.isNaN(i)&&Number.isFinite(i)||(i=0)),i}isNumericAttribute(e,t,n){return n.constructor===_view_geometry_Geometry__WEBPACK_IMPORTED_MODULE_2__.A&&("x"===t.name||"y"===t.name||"width"===t.name||"height"===t.name)||n.constructor===_view_geometry_Point__WEBPACK_IMPORTED_MODULE_3__.A&&("x"===t.name||"y"===t.name)||(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_5__.kf)(t.value)}beforeEncode(e,t,n){return t}afterEncode(e,t,n){return n}decode(e,t,n){const i=t.getAttribute("id");let r=e.objects[i];null==r&&(r=n||this.cloneTemplate(),null!=i&&e.putObject(i,r));const s=this.beforeDecode(e,t,r);return this.decodeNode(e,s,r),this.afterDecode(e,s,r)}decodeNode(e,t,n){null!=t&&(this.decodeAttributes(e,t,n),this.decodeChildren(e,t,n))}decodeAttributes(e,t,n){const i=t.attributes;if(null!=i)for(let r=0;r0&&(i=null),i}addObjectValue(e,t,n,i){null!=n&&n!==i&&(null!=t&&t.length>0?e[t]=n:e.push(n))}processInclude(e,t,n){if("include"===t.nodeName){const r=t.getAttribute("name");if(null!=r)try{const t=(0,_util_MaxXmlRequest__WEBPACK_IMPORTED_MODULE_7__.Hh)(r).getDocumentElement();null!=t&&e.decode(t,n)}catch(i){}return!0}return!1}beforeDecode(e,t,n){return t}afterDecode(e,t,n){return n}}ObjectCodec.allowEval=!1;const __WEBPACK_DEFAULT_EXPORT__=ObjectCodec},4698:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _ObjectCodec__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5773),_view_style_Stylesheet__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6245),_view_style_StyleRegistry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4703),_util_cloneUtils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7222),_gui_MaxLog__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6277),_util_Constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4027),_util_mathUtils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5553),_util_domUtils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9933);class StylesheetCodec extends _ObjectCodec__WEBPACK_IMPORTED_MODULE_0__.A{constructor(){super(new _view_style_Stylesheet__WEBPACK_IMPORTED_MODULE_1__.n)}encode(e,t){const n=e.document.createElement(this.getName());for(const i in t.styles){const r=t.styles[i],s=e.document.createElement("add");if(null!=i){s.setAttribute("as",i);for(const t in r){const n=this.getStringValue(t,r[t]);if(null!=n){const i=e.document.createElement("add");i.setAttribute("value",n),i.setAttribute("as",t),s.appendChild(i)}}s.childNodes.length>0&&n.appendChild(s)}}return n}getStringValue(e,t){const n=typeof t;return"function"===n?t=_view_style_StyleRegistry__WEBPACK_IMPORTED_MODULE_2__.A.getName(t):"object"===n&&(t=null),t}decode(dec,_node,into){const obj=into||new this.template.constructor,id=_node.getAttribute("id");null!=id&&(dec.objects[id]=obj);let node=_node.firstChild;for(;null!=node;){if(!this.processInclude(dec,node,obj)&&"add"===node.nodeName){const as=node.getAttribute("as");if(null!=as){const extend=node.getAttribute("extend");let style=null!=extend?(0,_util_cloneUtils__WEBPACK_IMPORTED_MODULE_3__.o)(obj.styles[extend]):null;null==style&&(null!=extend&&_gui_MaxLog__WEBPACK_IMPORTED_MODULE_4__.A.warn("StylesheetCodec.decode: stylesheet ".concat(extend," not found to extend")),style={});let entry=node.firstChild;for(;null!=entry;){if(entry.nodeType===_util_Constants__WEBPACK_IMPORTED_MODULE_5__.Js.ELEMENT){const key=entry.getAttribute("as");if("add"===entry.nodeName){const text=(0,_util_domUtils__WEBPACK_IMPORTED_MODULE_7__.rf)(entry);let value=null;null!=text&&text.length>0&&StylesheetCodec.allowEval?value=eval(text):(value=entry.getAttribute("value"),(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_6__.kf)(value)&&(value=parseFloat(value))),null!=value&&(style[key]=value)}else"remove"===entry.nodeName&&delete style[key]}entry=entry.nextSibling}obj.putCellStyle(as,style)}}node=node.nextSibling}return obj}}StylesheetCodec.allowEval=!0},5688:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _ObjectCodec__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5773),_editor_EditorToolbar__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1391),_util_Constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4027),_gui_MaxLog__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6277),_util_styleUtils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8578),_util_EventUtils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2149),_view_event_InternalEvent__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1483),_util_domUtils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9933),_util_Translations__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6064);class EditorToolbarCodec extends _ObjectCodec__WEBPACK_IMPORTED_MODULE_0__.A{constructor(){super(new _editor_EditorToolbar__WEBPACK_IMPORTED_MODULE_1__.t)}encode(e,t){return null}decode(dec,_node,into){if(null!=into){const editor=into.editor;let node=_node.firstChild;for(;null!=node;){if(node.nodeType===_util_Constants__WEBPACK_IMPORTED_MODULE_2__.Js.ELEMENT&&!this.processInclude(dec,node,into))if("separator"===node.nodeName)into.addSeparator();else if("br"===node.nodeName)into.toolbar.addBreak();else if("hr"===node.nodeName)into.toolbar.addLine();else if("add"===node.nodeName){let as=node.getAttribute("as");as=_util_Translations__WEBPACK_IMPORTED_MODULE_8__.A.get(as)||as;const icon=node.getAttribute("icon"),pressedIcon=node.getAttribute("pressedIcon"),action=node.getAttribute("action"),mode=node.getAttribute("mode"),template=node.getAttribute("template"),toggle="0"!=node.getAttribute("toggle"),text=(0,_util_domUtils__WEBPACK_IMPORTED_MODULE_7__.rf)(node);let elt=null,funct;if(null!=action)elt=into.addItem(as,icon,action,pressedIcon);else if(null!=mode)funct=EditorToolbarCodec.allowEval?eval(text):null,elt=into.addMode(as,icon,mode,pressedIcon,funct);else if(null!=template||null!=text&&text.length>0){let cell=template?editor.templates[template]:null;const style=node.getAttribute("style");null!=cell&&null!=style&&(cell=editor.graph.cloneCell(cell),cell.setStyle(style));let insertFunction=null;null!=text&&text.length>0&&EditorToolbarCodec.allowEval&&(insertFunction=eval(text)),elt=into.addPrototype(as,icon,cell,pressedIcon,insertFunction,toggle)}else{const e=(0,_util_domUtils__WEBPACK_IMPORTED_MODULE_7__.iQ)(node);if(e.length>0)if(null==icon){const t=into.addActionCombo(as);for(let n=0;n{const e=editor.templates[t.value];if(null!=e){const n=e.clone(),i=t.options[t.selectedIndex].cellStyle;return null!=i&&n.setStyle(i),n}return _gui_MaxLog__WEBPACK_IMPORTED_MODULE_3__.A.warn("Template ".concat(e," not found")),null},i=into.addPrototype(as,icon,n,null,null,toggle);_view_event_InternalEvent__WEBPACK_IMPORTED_MODULE_6__.A.addListener(t,"change",(()=>{into.toolbar.selectMode(i,(e=>{const t=(0,_util_styleUtils__WEBPACK_IMPORTED_MODULE_4__.ce)(editor.graph.container,(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_5__.El)(e),(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_5__.xJ)(e));return editor.addVertex(null,funct(),t.x,t.y)})),into.toolbar.noReset=!1}));for(let r=0;r0&&elt.setAttribute("id",e)}}node=node.nextSibling}}return into}}},4027:(e,t,n)=>{"use strict";n.d(t,{$g:()=>Q,$o:()=>A,$p:()=>a,CT:()=>X,Cx:()=>Z,DK:()=>s,Ec:()=>ge,FK:()=>p,FV:()=>Y,Fb:()=>$,G2:()=>me,G7:()=>y,IW:()=>Ee,J8:()=>G,JP:()=>N,Jk:()=>I,Js:()=>f,Lm:()=>C,M8:()=>fe,MO:()=>O,MQ:()=>R,Mm:()=>d,Mn:()=>L,Q5:()=>re,QG:()=>l,QX:()=>te,RH:()=>g,SR:()=>P,SU:()=>k,Sr:()=>J,TE:()=>ve,V8:()=>_,VI:()=>H,Vj:()=>v,Vm:()=>T,XA:()=>V,XW:()=>W,XZ:()=>w,Xy:()=>D,_v:()=>pe,aQ:()=>F,aY:()=>we,ag:()=>S,aq:()=>ye,bF:()=>x,bR:()=>be,dZ:()=>j,eX:()=>b,en:()=>B,es:()=>E,fQ:()=>se,fm:()=>ee,gK:()=>ce,ir:()=>i,jo:()=>m,mE:()=>de,nh:()=>M,o7:()=>K,pC:()=>le,pK:()=>h,pr:()=>c,qG:()=>ae,r5:()=>z,s4:()=>he,tK:()=>ie,vd:()=>r,wh:()=>ne,x3:()=>ue,xU:()=>oe,y2:()=>u,yS:()=>U,zI:()=>q});const i=.3,r=8,s=0;var o,a;!function(e){e.EXACT="exact",e.FASTER="faster",e.FASTEST="fastest"}(o||(o={})),function(e){e.SVG="svg",e.MIXEDHTML="mixedHtml",e.PREFERHTML="preferHtml",e.STRICTHTML="strictHtml"}(a||(a={}));const l="mxObjectId",c="http://www.w3.org/2000/svg",h="http://www.w3.org/1999/xlink",u="gray",d=2,p=3,g=1;var f;!function(e){e[e.ELEMENT=1]="ELEMENT",e[e.ATTRIBUTE=2]="ATTRIBUTE",e[e.TEXT=3]="TEXT",e[e.CDATA=4]="CDATA",e[e.ENTITY_REFERENCE=5]="ENTITY_REFERENCE",e[e.ENTITY=6]="ENTITY",e[e.PROCESSING_INSTRUCTION=7]="PROCESSING_INSTRUCTION",e[e.COMMENT=8]="COMMENT",e[e.DOCUMENT=9]="DOCUMENT",e[e.DOCUMENTTYPE=10]="DOCUMENTTYPE",e[e.DOCUMENT_FRAGMENT=11]="DOCUMENT_FRAGMENT",e[e.NOTATION=12]="NOTATION"}(f||(f={}));const m=16,v="#00FF00",y="#FF0000",b="#00FF00",w=5,E=3,x=2,_=100;var C;!function(e){e.MOVABLE_VERTEX="move",e.MOVABLE_EDGE="move",e.LABEL_HANDLE="default",e.TERMINAL_HANDLE="pointer",e.BEND_HANDLE="crosshair",e.VIRTUAL_BEND_HANDLE="crosshair",e.CONNECT="pointer"}(C||(C={}));const A="#FF0000",S="#0000FF",T="#00FF00",k="#FF0000",M="#00FF00",P="#00FF00",I=1,O=1,R=!0,D=!0,N="#FF0000",L=1,H="#0099FF",B=3,z=6,F=4,U="#00FF00",V="black",j="yellow",W="#0000FF",G="#FF0000",q="#00FFFF",K="#0033FF",X="Arial,Helvetica",Y=11,J="",Q=1.2,Z="normal",$=!1,ee=0,te=40,ne=6,ie=24,re=30,se=.15,oe=20,ae=0,le=30,ce=30,he=[0,0,827,1169],ue="none";var de,pe,ge,fe,me;!function(e){e[e.BOLD=1]="BOLD",e[e.ITALIC=2]="ITALIC",e[e.UNDERLINE=4]="UNDERLINE",e[e.STRIKETHROUGH=8]="STRIKETHROUGH"}(de||(de={})),function(e){e.CLASSIC="classic",e.CLASSIC_THIN="classicThin",e.BLOCK="block",e.BLOCK_THIN="blockThin",e.OPEN="open",e.OPEN_THIN="openThin",e.OVAL="oval",e.DIAMOND="diamond",e.DIAMOND_THIN="diamondThin"}(pe||(pe={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.TOP="top",e.MIDDLE="middle",e.BOTTOM="bottom"}(ge||(ge={})),function(e){e.NORTH="north",e.SOUTH="south",e.EAST="east",e.WEST="west"}(fe||(fe={})),function(e){e.DEFAULT="",e.AUTO="auto",e.LTR="ltr",e.RTL="rtl"}(me||(me={}));const ve={NONE:0,WEST:1,NORTH:2,SOUTH:4,EAST:8,ALL:15};var ye,be,we,Ee;!function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(ye||(ye={})),function(e){e.ELBOW="elbowEdgeStyle",e.ENTITY_RELATION="entityRelationEdgeStyle",e.LOOP="loopEdgeStyle",e.SIDETOSIDE="sideToSideEdgeStyle",e.TOPTOBOTTOM="topToBottomEdgeStyle",e.ORTHOGONAL="orthogonalEdgeStyle",e.SEGMENT="segmentEdgeStyle",e.MANHATTAN="manhattanEdgeStyle"}(be||(be={})),function(e){e.ELLIPSE="ellipsePerimeter",e.RECTANGLE="rectanglePerimeter",e.RHOMBUS="rhombusPerimeter",e.HEXAGON="hexagonPerimeter",e.TRIANGLE="trianglePerimeter"}(we||(we={})),function(e){e.RECTANGLE="rectangle",e.ELLIPSE="ellipse",e.DOUBLE_ELLIPSE="doubleEllipse",e.RHOMBUS="rhombus",e.LINE="line",e.IMAGE="image",e.ARROW="arrow",e.ARROW_CONNECTOR="arrowConnector",e.LABEL="label",e.CYLINDER="cylinder",e.SWIMLANE="swimlane",e.CONNECTOR="connector",e.ACTOR="actor",e.CLOUD="cloud",e.TRIANGLE="triangle",e.HEXAGON="hexagon"}(Ee||(Ee={}))},1080:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(6741);const r=class{constructor(){this.map={},this.clear()}clear(){this.map={}}get(e){var t;const n=i.A.get(e);return null!==(t=this.map[n])&&void 0!==t?t:null}put(e,t){const n=i.A.get(e),r=this.map[n];return this.map[n]=t,null!==r&&void 0!==r?r:null}remove(e){const t=i.A.get(e),n=this.map[t];return delete this.map[t],null!==n&&void 0!==n?n:null}getKeys(){const e=[];for(const t in this.map)e.push(t);return e}getValues(){const e=[];for(const t in this.map)e.push(this.map[t]);return e}visit(e){for(const t in this.map)e(t,this.map[t])}}},2149:(e,t,n)=>{"use strict";n.d(t,{$Y:()=>g,CA:()=>m,DO:()=>u,El:()=>s,Er:()=>d,Lg:()=>p,M4:()=>r,RT:()=>f,UT:()=>y,el:()=>a,ew:()=>h,fm:()=>l,kH:()=>c,qt:()=>v,xJ:()=>o});var i=n(1458);const r=e=>{let t=e;return("touchstart"===t.type||"touchmove"===t.type)&&t.touches&&t.touches[0]?t=t.touches[0]:"touchend"===t.type&&t.changedTouches&&t.changedTouches[0]&&(t=t.changedTouches[0]),t},s=e=>r(e).clientX,o=e=>r(e).clientY,a=e=>e.target,l=e=>{const t=e;return void 0!==t.isConsumed&&t.isConsumed},c=e=>{const t=e;return t.pointerType?"touch"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_TOUCH:void 0!==t.mozInputSource?5===t.mozInputSource:0===t.type.indexOf("touch")},h=e=>{const t=e;return t.pointerType?"pen"==t.pointerType||t.pointerType===t.MSPOINTER_TYPE_PEN:void 0!==t.mozInputSource?2===t.mozInputSource:0===t.type.indexOf("pen")},u=e=>{const t=e;return t.type&&0==t.type.indexOf("touch")&&void 0!==t.touches&&t.touches.length>1},d=e=>{const t=e;return t.pointerType?"mouse"==t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE:void 0!==t.mozInputSource?1===t.mozInputSource:0===t.type.indexOf("mouse")},p=e=>!("buttons"in e)||"mousedown"!==e.type&&"mousemove"!==e.type?void 0!==e.which?1===e.which:1===e.button:1===e.buttons,g=e=>(e=>2===e.button)(e)||i.A.IS_MAC&&v(e)&&!f(e)&&!y(e)&&!m(e),f=e=>e.shiftKey,m=e=>e.altKey,v=e=>e.ctrlKey,y=e=>e.metaKey},3906:(e,t,n)=>{"use strict";n.d(t,{Hh:()=>s,Jt:()=>o,bE:()=>a,tA:()=>l});var i=n(9933);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.binary=!1,this.withCredentials=!1,this.request=null,this.decodeSimulateValues=!1,this.url=e,this.params=t,this.method=n||"POST",this.async=i,this.username=r,this.password=s}isBinary(){return this.binary}setBinary(e){this.binary=e}getText(){return this.request.responseText}isReady(){return 4===this.request.readyState}getDocumentElement(){const e=this.getXml();return null!=e?e.documentElement:null}getXml(){let e=this.request.responseXML;return null!=e&&null!=e.documentElement||(e=(new DOMParser).parseFromString(this.request.responseText,"text/xml")),e}getStatus(){return null!=this.request?this.request.status:null}create(){const e=new XMLHttpRequest;return this.isBinary()&&e.overrideMimeType&&e.overrideMimeType("text/plain; charset=x-user-defined"),e}send(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.request=this.create(),null!=this.request&&(null!=e&&(this.request.onreadystatechange=()=>{this.isReady()&&(e(this),this.request.onreadystatechange=null)}),this.request.open(this.method,this.url,this.async,this.username,this.password),this.setRequestHeaders(this.request,this.params),window.XMLHttpRequest&&this.withCredentials&&(this.request.withCredentials="true"),window.XMLHttpRequest&&null!=t&&null!=n&&(this.request.timeout=t,this.request.ontimeout=n),this.request.send(this.params))}setRequestHeaders(e,t){null!=t&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}simulate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null;(e=e||document)===document&&(n=window.onbeforeunload,window.onbeforeunload=null);const r=e.createElement("form");r.setAttribute("method",this.method),r.setAttribute("action",this.url),null!=t&&r.setAttribute("target",t),r.style.display="none",r.style.visibility="hidden";const s=this.params,o=s.indexOf("&")>0?s.split("&"):s.split(" ");for(let a=0;a0){const n=o[a].substring(0,t);let s=o[a].substring(t+1);this.decodeSimulateValues&&(s=decodeURIComponent(s));const l=e.createElement("textarea");l.setAttribute("wrap","off"),l.setAttribute("name",n),(0,i.M9)(l,s),r.appendChild(l)}}e.body.appendChild(r),r.submit(),null!=r.parentNode&&r.parentNode.removeChild(r),null!=n&&(window.onbeforeunload=n)}}const s=e=>{const t=new r(e,null,"GET",!1);return t.send(),t},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;const l=new r(e,null,"GET"),{setRequestHeaders:c}=l;return a&&(l.setRequestHeaders=(e,t)=>{c.apply(undefined,[e,t]);for(const n in a)e.setRequestHeader(n,a[n])}),null!=i&&l.setBinary(i),l.send(t,n,s,o),l},a=function(e){let t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new r(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null).send(t,n)},l=(e,t,n,i)=>new r(e,t).simulate(n,i)},6741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4027),r=n(2744);class s{static get(e){if(e){if(null===e[i.QG]||void 0===e[i.QG])if("object"===typeof e){const t=(0,r.qQ)(e.constructor);e[i.QG]="".concat(t,"#").concat(s.counter++)}else"function"===typeof e&&(e[i.QG]="Function#".concat(s.counter++));return e[i.QG]}return null}static clear(e){delete e[i.QG]}}s.FIELD_NAME=i.QG,s.counter=0;const o=s},2744:(e,t,n)=>{"use strict";n.d(t,{Bq:()=>o,Jn:()=>u,K7:()=>l,KE:()=>c,WZ:()=>d,bG:()=>h,dI:()=>p,qQ:()=>a});var i=n(4027),r=n(9933);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return null!=e?e.replace(new RegExp("^[".concat(t,"]+"),"g"),""):null},o=(e,t)=>s(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return null!=e?e.replace(new RegExp("[".concat(t,"]+$"),"g"),""):null}(e,t),t),a=e=>{let t=null;if(null!=e)if(null!=e.name)t=e.name;else if(t=o(e.toString()),null!==t&&/^function\s/.test(t)&&(t=s(t.substring(9)),null!==t)){const e=t.indexOf("(");e>0&&(t=t.substring(0,e))}return t},l=(e,t)=>{let n="";for(;e.length>0&&"\n"==e.charAt(e.length-1);)e=e.substring(0,e.length-1),n+=t;return e+n},c=(e,t)=>{let n=t?e.previousSibling:e.nextSibling;for(;null!=n&&n.nodeType===i.Js.TEXT;){var s;const e=t?n.previousSibling:n.nextSibling,i=(0,r.rf)(n);var a;if(0===(null===(s=o(i))||void 0===s?void 0:s.length))null===(a=n.parentNode)||void 0===a||a.removeChild(n);n=e}},h=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=(e=(e=(e=(e=(e=String(e||"")).replace(/&/g,"&")).replace(/"/g,""")).replace(/'/g,"'")).replace(//g,">"),t&&(e=e.replace(/\n/g,"
")),e},u=(e,t,n)=>{let i=null!=e?e[t]:null;return null==i&&(i=n),null==i?null:String(i)},d=(e,t,n)=>{let i=null!=e?e[t]:null;return null==i&&(i=n||0),Number(i)},p=e=>{let t="";for(const i in e)try{if(null==e[i])t+="".concat(i," = [null]\n");else if("function"===typeof e[i])t+="".concat(i," => [Function]\n");else if("object"===typeof e[i]){const n=a(e[i].constructor);t+="".concat(i," => [").concat(n,"]\n")}else t+="".concat(i," = ").concat(e[i],"\n")}catch(n){t+="".concat(i,"=").concat(n.message)}return t}},6064:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(1458),r=n(4027),s=n(3906);class o{}o.resources={},o.extension=".txt",o.resourcesEncoded=!1,o.loadDefaultBundle=!0,o.loadSpecialBundle=!0,o.isLanguageSupported=e=>null==i.A.languages||i.A.languages.indexOf(e)>=0,o.getDefaultBundle=(e,t)=>o.loadDefaultBundle||!o.isLanguageSupported(t)?e+o.extension:null,o.getSpecialBundle=(e,t)=>{if(null==i.A.languages||!o.isLanguageSupported(t)){const e=t.indexOf("-");e>0&&(t=t.substring(0,e))}return o.loadSpecialBundle&&o.isLanguageSupported(t)&&t!=i.A.defaultLanguage?"".concat(e,"_").concat(t).concat(o.extension):null},o.add=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t=null!=t?t:null!=i.A.language?i.A.language.toLowerCase():r.x3,t!==r.x3){const i=o.getDefaultBundle(e,t),r=o.getSpecialBundle(e,t),l=()=>{if(null!=r)if(n)(0,s.Jt)(r,(e=>{o.parse(e.getText()),n()}),(()=>{n()}));else try{const e=(0,s.Hh)(r);e.isReady()&&o.parse(e.getText())}catch(e){}else null!=n&&n()};if(null!=i)if(n)(0,s.Jt)(i,(e=>{o.parse(e.getText()),l()}),(()=>{l()}));else try{const e=(0,s.Hh)(i);e.isReady()&&o.parse(e.getText()),l()}catch(a){}else l()}},o.parse=e=>{if(null!=e){const t=e.split("\n");for(let e=0;e0){const i=t[e].substring(0,n);let r=t[e].length;13===t[e].charCodeAt(r-1)&&r--;let s=t[e].substring(n+1,r);o.resourcesEncoded?(s=s.replace(/\\(?=u[a-fA-F\d]{4})/g,"%"),o.resources[i]=unescape(s)):o.resources[i]=s}}}},o.get=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=o.resources[e];return null==i&&(i=n),null!=i&&null!=t&&(i=o.replacePlaceholders(i,t)),i},o.replacePlaceholders=(e,t)=>{const n=[];let i=null;for(let r=0;r=0&&i{o.add("".concat(i.A.basePath,"/resources/editor"),null,(()=>{o.add("".concat(i.A.basePath,"/resources/graph"),null,e)}))};const a=o},6487:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=class{constructor(){this.enabled=!0,this.baseUrl=null,this.baseDomain=null}updateBaseUrl(){this.baseDomain="".concat(location.protocol,"//").concat(location.host),this.baseUrl=this.baseDomain+location.pathname;const e=this.baseUrl.lastIndexOf("/");e>0&&(this.baseUrl=this.baseUrl.substring(0,e+1))}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}getBaseUrl(){return this.baseUrl}setBaseUrl(e){this.baseUrl=e}getBaseDomain(){return this.baseDomain}setBaseDomain(e){this.baseDomain=e}isRelativeUrl(e){return e&&"//"!==e.substring(0,2)&&"http://"!==e.substring(0,7)&&"https://"!==e.substring(0,8)&&"data:image"!==e.substring(0,10)&&"file://"!==e.substring(0,7)}convert(e){return this.isEnabled()&&this.isRelativeUrl(e)&&(this.getBaseUrl()||this.updateBaseUrl(),e="/"===e.charAt(0)?this.getBaseDomain()+e:this.getBaseUrl()+e),e}}},1643:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>o,Wp:()=>r,_W:()=>l,eM:()=>c,rU:()=>a,uy:()=>s});var i=n(1458);const r={errorResource:"error",closeResource:"close",errorImage:"".concat(i.A.imageBasePath,"/error.gif")},s=e=>null===e||void 0===e,o=e=>!s(e),a=e=>t=>{const n=Reflect.ownKeys(t);try{for(const i of n)Object.defineProperty(e.prototype,i,{value:t[i],writable:!0})}catch(i){console.error("Error while mixing",i)}},l=(e,t,n)=>{let i=null!=e?e[t]:null;return null==i&&(i=n),i},c=e=>{navigator.clipboard?navigator.clipboard.writeText(e).then((function(){console.log("Async: Copying to clipboard was successful!")}),(function(e){console.error("Async: Could not copy text: ",e)})):h(e)},h=e=>{const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{const e=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+e)}catch(n){console.error("Fallback: Oops, unable to copy",n)}document.body.removeChild(t)}},678:(e,t,n)=>{"use strict";n.d(t,{FG:()=>o,R3:()=>a,TF:()=>r,s7:()=>s});var i=n(1080);const r=(e,t)=>{let n=null;if("object"===typeof t){let i=t.indexOf(e);for(;i>=0;)t.splice(i,1),n=e,i=t.indexOf(e)}for(const i in t)t[i]==e&&(delete t[i],n=e);return n},s=(e,t)=>{if(!e&&t||e&&!t||e&&t&&e.length!=t.length)return!1;if(e&&t)for(let n=0;n{let n=0;if(!e&&t||e&&!t||e&&t&&e.length!=t.length)return!1;if(e&&t){for(const e in t)n++;for(const i in e)if(n--,(!Number.isNaN(e[i])||!Number.isNaN(t[i]))&&e[i]!==t[i])return!1}return 0===n},a=e=>{const t=new i.A,n=[];for(let i=0;i{"use strict";n.d(t,{o:()=>r});var i=n(6741);const r=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r=null!=r&&r;let s=null;if(null!=t&&"function"===typeof t.constructor){s=new t.constructor;for(const o in t)o!=i.A.FIELD_NAME&&(null==n||n.indexOf(o)<0)&&(r||"object"!==typeof t[o]?s[o]=t[o]:s[o]=e(t[o]))}return s}},9933:(e,t,n)=>{"use strict";n.d(t,{Az:()=>g,EG:()=>c,H4:()=>m,K0:()=>o,Ll:()=>u,M9:()=>l,b6:()=>a,br:()=>h,iQ:()=>p,oH:()=>d,rf:()=>s,uq:()=>r,wr:()=>f});var i=n(4027);const r=e=>{const t=["BLOCKQUOTE","DIV","H1","H2","H3","H4","H5","H6","OL","P","PRE","TABLE","UL"],n=[];return function e(i){if(1!=i.length||"BR"!=i[0].nodeName&&"\n"!=i[0].innerHTML)for(let r=0;r"==s.innerHTML.toLowerCase()?n.push("\n"):(3===s.nodeType||4===s.nodeType?s.nodeValue&&s.nodeValue.length>0&&n.push(s.nodeValue):8!==s.nodeType&&s.childNodes.length>0&&e(Array.from(s.childNodes)),r=0&&n.push("\n"))}}(e),n.join("")},s=e=>null!=e&&e.textContent?e.textContent:"",o=e=>{if(null!=e){return(new XMLSerializer).serializeToString(e)}return""},a=e=>{if(null!=e){return(new XMLSerializer).serializeToString(e)}return""},l=(e,t)=>{const n=e.ownerDocument.createTextNode(t);return null!=e&&e.appendChild(n),n},c=(e,t)=>{const n=e.ownerDocument.createTextNode(t);return null!=e&&(e.appendChild(n),e.appendChild(document.createElement("br"))),n},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=null;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return!(null==e||isNaN(e.nodeType)||null!=t&&e.nodeName.toLowerCase()!=t.toLowerCase())&&(null==n||e.getAttribute(n)==i)},d=(e,t)=>{let n=t;for(;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Js.ELEMENT;t=t||i.Js.ELEMENT;const n=[];let r=e.firstChild;for(;null!=r;)r.nodeType===t&&n.push(r),r=r.nextSibling;return n},g=(e,t,n)=>e.importNode(t,n),f=()=>{const e=window.getSelection?window.getSelection():document.selection;e&&(e.removeAllRanges?e.removeAllRanges():e.empty&&e.empty())},m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n=n||document;const r=n.createElement("link");r.setAttribute("rel",e),r.setAttribute("href",t),r.setAttribute("charset","UTF-8"),r.setAttribute("type","text/css"),i&&r.setAttribute("id",i);n.getElementsByTagName("head")[0].appendChild(r)}},7556:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var i=n(3864),r=n(4886),s=n(4027);const o=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;const p=new i.A(e,n);return p.dragOffset=new r.A(null!=a?a:0,null!=l?l:s.jo),null!=c&&(p.autoscroll=c),p.setGuidesEnabled(!1),null!=u&&(p.highlightDropTargets=u),null!=d&&(p.getDropTarget=d),p.getGraphForEvent=e=>"function"===typeof t?t(e):t,null!=o&&(p.createDragElement=()=>o.cloneNode(!0),h&&(p.createPreviewElement=e=>{const t=o.cloneNode(!0),n=parseInt(t.style.width),i=parseInt(t.style.height);return t.style.width="".concat(Math.round(n*e.view.scale),"px"),t.style.height="".concat(Math.round(i*e.view.scale),"px"),t})),p}},5553:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>g,E$:()=>E,E8:()=>x,Fq:()=>b,HY:()=>m,Iq:()=>h,JQ:()=>p,KP:()=>v,Qg:()=>d,UA:()=>l,UX:()=>c,_C:()=>_,ct:()=>u,eh:()=>a,gR:()=>f,kf:()=>y,zi:()=>w});var i=n(4027),r=n(4886),s=n(8597),o=n(1643);const a=e=>Math.PI*e/180,l=(e,t,n,i,r,s,o,a,l)=>{if(a-=e,l-=t,0===n||0===i)return[];const c=o,h=r;n=Math.abs(n),i=Math.abs(i);const u=-a/2,d=-l/2,p=Math.cos(h*Math.PI/180),g=Math.sin(h*Math.PI/180),f=p*u+g*d,m=-1*g*u+p*d,v=f*f,y=m*m,b=n*n,w=i*i,E=v/b+y/w;let x;if(E>1)n=Math.sqrt(E)*n,i=Math.sqrt(E)*i,x=0;else{let e=1;s===c&&(e=-1),x=e*Math.sqrt((b*w-b*y-w*v)/(b*y+w*v))}const _=x*n*m/i,C=-1*x*i*f/n,A=p*_-g*C+a/2,S=g*_+p*C+l/2;let T=Math.atan2((m-C)/i,(f-_)/n)-Math.atan2(0,1),k=T>=0?T:2*Math.PI+T;T=Math.atan2((-m-C)/i,(-f-_)/n)-Math.atan2((m-C)/i,(f-_)/n);let M=T>=0?T:2*Math.PI+T;!c&&M>0?M-=2*Math.PI:c&&M<0&&(M+=2*Math.PI);const P=2*M/Math.PI,I=Math.ceil(P<0?-1*P:P),O=M/I,R=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),D=p*n,N=p*i,L=g*n,H=g*i;let B=Math.cos(k),z=Math.sin(k),F=-R*(D*z+H*B),U=-R*(L*z-N*B),V=0,j=0;const W=[];for(let G=0;G2&&void 0!==arguments[2]?arguments[2]:null,i=null;if(e&&0!==t){const o=a(t),l=Math.cos(o),c=Math.sin(o);n=null!=n?n:new r.A(e.x+e.width/2,e.y+e.height/2);let u=new r.A(e.x,e.y),d=new r.A(e.x+e.width,e.y),p=new r.A(d.x,e.y+e.height),g=new r.A(e.x,p.y);u=h(u,l,c,n),d=h(d,l,c,n),p=h(p,l,c,n),g=h(g,l,c,n),i=new s.A(u.x,u.y,0,0),i.add(new s.A(d.x,d.y,0,0)),i.add(new s.A(p.x,p.y,0,0)),i.add(new s.A(g.x,g.y,0,0))}return i},h=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new r.A;const s=e.x-i.x,o=e.y-i.y,a=s*t-o*n,l=o*t+s*n;return new r.A(a+i.x,l+i.y)},u=(e,t,n,r)=>{var s;const a=(0,o._W)(e.style,"portConstraint",(0,o._W)(t.style,n?"sourcePortConstraint":"targetPortConstraint",null));if((0,o.uy)(a))return r;const l=a.toString();let c=i.TE.NONE;let h=0;var u;null!==(s=e.style.portConstraintRotation)&&void 0!==s&&s&&(h=null!==(u=e.style.rotation)&&void 0!==u?u:0);let d=0;if(h>45?(d=1,h>=135&&(d=2)):h<-45&&(d=3,h<=-135&&(d=2)),l.indexOf(i.M8.NORTH)>=0)switch(d){case 0:c|=i.TE.NORTH;break;case 1:c|=i.TE.EAST;break;case 2:c|=i.TE.SOUTH;break;case 3:c|=i.TE.WEST}if(l.indexOf(i.M8.WEST)>=0)switch(d){case 0:c|=i.TE.WEST;break;case 1:c|=i.TE.NORTH;break;case 2:c|=i.TE.EAST;break;case 3:c|=i.TE.SOUTH}if(l.indexOf(i.M8.SOUTH)>=0)switch(d){case 0:c|=i.TE.SOUTH;break;case 1:c|=i.TE.WEST;break;case 2:c|=i.TE.NORTH;break;case 3:c|=i.TE.EAST}if(l.indexOf(i.M8.EAST)>=0)switch(d){case 0:c|=i.TE.EAST;break;case 1:c|=i.TE.SOUTH;break;case 2:c|=i.TE.WEST;break;case 3:c|=i.TE.NORTH}return c},d=e=>{let t=0;return t=(e&i.TE.WEST)<<3,t|=(e&i.TE.NORTH)<<1,t|=(e&i.TE.SOUTH)>>1,t|=(e&i.TE.EAST)>>3,t},p=(e,t,n)=>{let i=-1;if(e.absolutePoints.length>0){let r=e.absolutePoints[0],s=null;for(let o=1;o{const l=(0,o._W)(n,"direction",i.M8.EAST);if(r=null!=r?r:(0,o._W)(n,"flipH",!1),a=null!=a?a:(0,o._W)(n,"flipV",!1),t.x=Math.round(Math.max(0,Math.min(e.width,t.x))),t.y=Math.round(Math.max(0,Math.min(e.height,t.y))),t.width=Math.round(Math.max(0,Math.min(e.width,t.width))),t.height=Math.round(Math.max(0,Math.min(e.height,t.height))),a&&(l===i.M8.SOUTH||l===i.M8.NORTH)||r&&(l===i.M8.EAST||l===i.M8.WEST)){const e=t.x;t.x=t.width,t.width=e}if(r&&(l===i.M8.SOUTH||l===i.M8.NORTH)||a&&(l===i.M8.EAST||l===i.M8.WEST)){const e=t.y;t.y=t.height,t.height=e}const c=s.A.fromRectangle(t);return l===i.M8.SOUTH?(c.y=t.x,c.x=t.height,c.width=t.y,c.height=t.width):l===i.M8.WEST?(c.y=t.height,c.x=t.width,c.width=t.x,c.height=t.y):l===i.M8.NORTH&&(c.y=t.width,c.x=t.y,c.width=t.height,c.height=t.x),new s.A(e.x+c.x,e.y+c.y,e.width-c.width-c.x,e.height-c.height-c.y)},f=(e,t,n)=>e.x<=t&&e.x+e.width>=t&&e.y<=n&&e.y+e.height>=n,m=(e,t)=>{let n=e.width,i=e.height,r=t.width,s=t.height;if(r<=0||s<=0||n<=0||i<=0)return!1;const o=e.x,a=e.y,l=t.x,c=t.y;return r+=l,s+=c,n+=o,i+=a,(ro)&&(sa)&&(nl)&&(ic)},v=(e,t,n,i,l,c)=>{if(l=null!=l?l:0,c=null!=c?c:0,(i=null!=i?i:1)>0){let u=e.getCenterX(),d=e.getCenterY(),p=e.width,g=e.height;const m=(0,o._W)(e.style,"startSize")*e.view.scale;m>0&&((0,o._W)(e.style,"horizontal",!0)?(d=e.y+m/2,g=m):(u=e.x+m/2,p=m)),p=Math.max(l,p*i),g=Math.max(l,g*i),c>0&&(p=Math.min(p,c),g=Math.min(g,c));const v=new s.A(u-p/2,d-g/2,p,g),y=a((0,o._W)(e.style,"rotation")||0);if(0!=y){const i=Math.cos(-y),s=Math.sin(-y),o=new r.A(e.getCenterX(),e.getCenterY()),a=h(new r.A(t,n),i,s,o);t=a.x,n=a.y}return f(v,t,n)}return!0},y=e=>!Number.isNaN(parseFloat(e))&&isFinite(+e)&&("string"!==typeof e||e.toLowerCase().indexOf("0x")<0),b=e=>String(parseInt(e))===String(e),w=(e,t)=>(e%t+t)%t,E=(e,t,n,i,s,o,a,l)=>{const c=(l-o)*(n-e)-(a-s)*(i-t),h=((a-s)*(t-o)-(l-o)*(e-s))/c,u=((n-e)*(t-o)-(i-t)*(e-s))/c;if(h>=0&&h<=1&&u>=0&&u<=1){const s=e+h*(n-e),o=t+h*(i-t);return new r.A(s,o)}return null},x=(e,t,n,i,r,s)=>{let o,a=(r-=e)*(n-=e)+(s-=t)*(i-=t);a<=0?o=0:(a=(r=n-r)*n+(s=i-s)*i,o=a<=0?0:a*a/(n*n+i*i));let l=r*r+s*s-o;return l<0&&(l=0),l},_=(e,t,n,i,r,s)=>{let o=(r-=e)*(i-=t)-(s-=t)*(n-=e);return 0==o&&(o=r*n+s*i,o>0&&(o=(r-=n)*n+(s-=i)*i,o<0&&(o=0))),o<0?-1:o>0?1:0}},8578:(e,t,n)=>{"use strict";n.d(t,{A3:()=>f,FR:()=>d,ID:()=>v,Ko:()=>x,Uj:()=>g,bW:()=>_,ce:()=>y,fE:()=>w,gU:()=>A,gf:()=>c,i4:()=>C,jb:()=>m,lY:()=>h,nf:()=>b,oM:()=>S,sc:()=>u,uM:()=>p});var i=n(1458),r=n(4027),s=n(4886),o=n(1080),a=n(7857),l=n(8597);const c=e=>{e.style&&(e.style.cursor="");const t=e.children;if(t){const e=t.length;for(let n=0;ne&&"[object ShadowRoot]"!==e.toString()?window.getComputedStyle(e,""):null,u=e=>{"thin"===e?e="2":"medium"===e?e="4":"thick"===e&&(e="6");let t=parseFloat(e);return Number.isNaN(t)&&(t=0),t},d=(e,t,n)=>{let r=null;i.A.IS_SF||i.A.IS_GC?r="Webkit":i.A.IS_MT&&(r="Moz"),e.setProperty(t,n),null!==r&&t.length>0&&(t=r+t.substring(0,1).toUpperCase()+t.substring(1),e.setProperty(t,n))},p=e=>{const t=h(e);return!!t&&("scroll"===t.overflow||"auto"===t.overflow)},g=e=>{const t=(()=>{const e=document.body,t=document.documentElement;try{var n,i;return new l.A(0,0,null!==(n=e.clientWidth)&&void 0!==n?n:t.clientWidth,Math.max(null!==(i=e.clientHeight)&&void 0!==i?i:0,t.clientHeight))}catch(r){return new l.A}})(),n=e.offsetLeft,i=e.offsetWidth,r=m(e.ownerDocument),s=r.x,o=r.y,a=s+t.width;n+i>a&&(e.style.left="".concat(Math.max(s,a-i),"px"));const c=e.offsetTop,h=e.offsetHeight,u=o+t.height;c+h>u&&(e.style.top="".concat(Math.max(o,u-h),"px"))},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,i=0,r=!1,o=e;const a=document.body,l=document.documentElement;for(;null!=o&&o!=a&&o!=l&&!r;){const e=h(o);null!=e&&(r=r||"fixed"==e.position),o=o.parentNode}if(!t&&!r){const t=m(e.ownerDocument);n+=t.x,i+=t.y}const c=e.getBoundingClientRect();return null!=c&&(n+=c.left,i+=c.top),new s.A(n,i)},m=e=>{const t=e.defaultView||e.parentWindow,n=null!=t&&void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,i=null!=t&&void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return new s.A(n,i)},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=null!=e?e.ownerDocument:document,r=i.body,o=i.documentElement,a=new s.A;let l=!1;for(;null!=e&&e!=r&&e!=o;){Number.isNaN(e.scrollLeft)||Number.isNaN(e.scrollTop)||(a.x+=e.scrollLeft,a.y+=e.scrollTop);const n=h(e);null!=n&&(l=l||"fixed"==n.position),e=t?e.parentNode:null}if(!l&&n){const e=m(i);a.x+=e.x,a.y+=e.y}return a},y=(e,t,n)=>{const i=v(e,!1),r=f(e);return r.x-=i.x,r.y-=i.y,new s.A(t-r.x,n-r.y)},b=(e,t,n,i)=>{t.length>0&&e.batchUpdate((()=>{for(let r=0;r{t.length>0&&e.batchUpdate((()=>{for(let s=0;s{const r=e[t];return e[t]=void 0===r?void 0===i||i?n:0:void 0===i?r^n:i?r|n:r&~n,e},x=(e,t)=>{e.style.opacity=String(t/100)},_=(e,t)=>(e&t)===t,C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.FV,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.CT,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const o=document.createElement("div");if(o.style.fontFamily=n,o.style.fontSize="".concat(Math.round(t),"px"),o.style.lineHeight="".concat(Math.round(t*r.$g),"px"),null!==s){_(s,r.mE.BOLD)&&(o.style.fontWeight="bold"),_(s,r.mE.ITALIC)&&(o.style.fontWeight="italic");const e=[];_(s,r.mE.UNDERLINE)&&e.push("underline"),_(s,r.mE.STRIKETHROUGH)&&e.push("line-through"),e.length>0&&(o.style.textDecoration=e.join(" "))}o.style.position="absolute",o.style.visibility="hidden",o.style.display="inline-block",null!==i?(o.style.width="".concat(i,"px"),o.style.whiteSpace="normal"):o.style.whiteSpace="nowrap",o.innerHTML=e,document.body.appendChild(o);const a=new l.A(0,0,o.offsetWidth,o.offsetHeight);return document.body.removeChild(o),a},A=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=new o.A;return e.sort(((e,i)=>{let r=n.get(e);null==r&&(r=a.A.create(e).split(a.A.PATH_SEPARATOR),n.put(e,r));let s=n.get(i);null==s&&(s=a.A.create(i).split(a.A.PATH_SEPARATOR),n.put(i,s));const o=a.A.compare(r,s);return 0==o?0:o>0==t?1:-1})),e},S=(e,t)=>{let n=-.5,i=-.5;return e===r.Ec.LEFT?n=0:e===r.Ec.RIGHT&&(n=-1),t===r.Ec.TOP?i=0:t===r.Ec.BOTTOM&&(i=-1),new s.A(n,i)}},9158:(e,t,n)=>{"use strict";n.d(t,{g5:()=>l,ll:()=>a});var i=n(4027),r=n(4886),s=(n(2744),n(2125)),o=(n(9933),n(1832));const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(null==n){n=[e.getDataModel().getRoot()]}const c=e.getView();let h=null;const u=c.isEventsEnabled();c.setEventsEnabled(!1);const{drawPane:d}=c,{overlayPane:p}=c;e.dialect===i.$p.SVG?(c.drawPane=document.createElementNS(i.pr,"g"),c.canvas.appendChild(c.drawPane),c.overlayPane=document.createElementNS(i.pr,"g"),c.canvas.appendChild(c.overlayPane)):(c.drawPane=c.drawPane.cloneNode(!1),c.canvas.appendChild(c.drawPane),c.overlayPane=c.overlayPane.cloneNode(!1),c.canvas.appendChild(c.overlayPane));const g=c.getTranslate();c.translate=new r.A(a,l);const f=new s.A(e.getView(),t,n);try{h=(new o.A).encode(e.getView())}finally{f.destroy(),c.translate=g,c.canvas.removeChild(c.drawPane),c.canvas.removeChild(c.overlayPane),c.drawPane=d,c.overlayPane=p,c.setEventsEnabled(u)}return h},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"
";let n=(new XMLSerializer).serializeToString(e);return t=t||"
",n=n.replace(/\n/g,t),n}},8242:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _geometry_Point__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4886),_geometry_Rectangle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8597),_util_Dictionary__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1080),_event_EventSource__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5121),_event_EventObject__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(919),_geometry_node_RectangleShape__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7203),_util_Constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4027),_Client__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1458),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1483),_util_styleUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8578),_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(5553),_gui_MaxLog__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(6277),_util_Translations__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6064),_cell_CellState__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(4233),_undoable_changes_UndoableEdit__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3440),_geometry_node_ImageShape__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(567),_event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(4070),_undoable_changes_CurrentRootChange__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(3929),_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(2149),_util_cloneUtils__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(7222),_style_StyleRegistry__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(4703);class GraphView extends _event_EventSource__WEBPACK_IMPORTED_MODULE_3__.A{constructor(e){super(),this.backgroundImage=null,this.backgroundPageShape=null,this.EMPTY_POINT=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A,this.doneResource="none"!==_Client__WEBPACK_IMPORTED_MODULE_7__.A.language?"done":"",this.updatingDocumentResource="none"!==_Client__WEBPACK_IMPORTED_MODULE_7__.A.language?"updatingDocument":"",this.allowEval=!1,this.captureDocumentGesture=!0,this.rendering=!0,this.currentRoot=null,this.graphBounds=new _geometry_Rectangle__WEBPACK_IMPORTED_MODULE_1__.A,this.scale=1,this.translate=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A,this.states=new _util_Dictionary__WEBPACK_IMPORTED_MODULE_2__.A,this.updateStyle=!1,this.lastNode=null,this.lastHtmlNode=null,this.lastForegroundNode=null,this.lastForegroundHtmlNode=null,this.endHandler=null,this.moveHandler=null,this.graph=e}getGraphBounds(){return this.graphBounds}setGraphBounds(e){this.graphBounds=e}getScale(){return this.scale}setScale(e){const t=this.scale;t!==e&&(this.scale=e,this.isEventsEnabled()&&this.viewStateChanged()),this.fireEvent(new _event_EventObject__WEBPACK_IMPORTED_MODULE_4__.A(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.SCALE,{scale:e,previousScale:t}))}getTranslate(){return this.translate}isRendering(){return this.rendering}setRendering(e){this.rendering=e}setTranslate(e,t){const n=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(this.translate.x,this.translate.y);this.translate.x===e&&this.translate.y===t||(this.translate.x=e,this.translate.y=t,this.isEventsEnabled()&&this.viewStateChanged()),this.fireEvent(new _event_EventObject__WEBPACK_IMPORTED_MODULE_4__.A(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.TRANSLATE,{translate:this.translate,previousTranslate:n}))}isAllowEval(){return this.allowEval}setAllowEval(e){this.allowEval=e}getStates(){return this.states}setStates(e){this.states=e}getCanvas(){return this.canvas}getBackgroundPane(){return this.backgroundPane}getDrawPane(){return this.drawPane}getOverlayPane(){return this.overlayPane}getDecoratorPane(){return this.decoratorPane}getBounds(e){let t=null;if(e.length>0)for(let n=0;n1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e||(e=this.graph.getDataModel().getRoot()),e)if(this.removeState(e),n&&(t||e!==this.currentRoot)){const n=e.getChildCount();for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:null,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.graph.getDataModel();if(t=null!==(e=t)&&void 0!==e?e:r.getRoot(),t){const e=this.getState(t);if(e&&(e.invalid=!0),!t.invalidating){if(t.invalidating=!0,n){const e=t.getChildCount();for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:null;const n=_gui_MaxLog__WEBPACK_IMPORTED_MODULE_11__.A.enter("mxGraphView.validate");window.status=_util_Translations__WEBPACK_IMPORTED_MODULE_12__.A.get(this.updatingDocumentResource)||this.updatingDocumentResource,this.resetValidationState();const i=t||(null!==(e=this.currentRoot)&&void 0!==e?e:this.graph.getDataModel().getRoot());if(i){const e=this.getBoundingBox(this.validateCellState(i?this.validateCell(i):null));this.setGraphBounds(null!==e&&void 0!==e?e:this.getEmptyBounds()),this.validateBackground(),this.resetValidationState()}window.status=_util_Translations__WEBPACK_IMPORTED_MODULE_12__.A.get(this.doneResource)||this.doneResource,_gui_MaxLog__WEBPACK_IMPORTED_MODULE_11__.A.leave("mxGraphView.validate",n)}getEmptyBounds(){return new _geometry_Rectangle__WEBPACK_IMPORTED_MODULE_1__.A(this.translate.x*this.scale,this.translate.y*this.scale)}getBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;if(e&&(e.shape&&e.shape.boundingBox&&(n=e.shape.boundingBox.clone()),e.text&&e.text.boundingBox&&(n?n.add(e.text.boundingBox):n=e.text.boundingBox.clone()),t)){const t=e.cell.getChildCount();for(let i=0;i{e.dblClick(t)})),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addGestureListeners(this.backgroundPageShape.node,(t=>{e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_DOWN,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t))}),(t=>{const n=e.getPlugin("TooltipHandler");n&&n.isHideOnHover()&&n.hide(),e.isMouseDown&&!(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__.fm)(t)&&e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_MOVE,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t))}),(t=>{e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_UP,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t))})))):(this.backgroundPageShape.scale=this.scale,this.backgroundPageShape.bounds=t,this.backgroundPageShape.redraw())}else this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null)}getBackgroundPageBounds(){const e=this.graph.pageFormat,t=this.scale*this.graph.pageScale;return new _geometry_Rectangle__WEBPACK_IMPORTED_MODULE_1__.A(this.scale*this.translate.x,this.scale*this.translate.y,e.width*t,e.height*t)}redrawBackgroundImage(e,t){if(e.scale=this.scale,e.bounds){const n=e.bounds;n.x=this.scale*this.translate.x,n.y=this.scale*this.translate.y,n.width=this.scale*t.width,n.height=this.scale*t.height}e.redraw()}validateCell(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=t&&e.isVisible();if(this.getState(e,t)&&!t)this.removeState(e);else{const n=e.getChildCount();for(let i=0;i1&&void 0!==arguments[1])||arguments[1],n=null;if(e&&(n=this.getState(e),n&&(n.invalid&&(n.invalid=!1,n.style&&!n.invalidStyle||(n.style=this.graph.getCellStyle(n.cell),n.invalidStyle=!1),e!==this.currentRoot&&this.validateCellState(e.getParent(),!1),n.setVisibleTerminalState(this.validateCellState(this.getVisibleTerminal(e,!0),!1),!0),n.setVisibleTerminalState(this.validateCellState(this.getVisibleTerminal(e,!1),!1),!1),this.updateCellState(n),e===this.currentRoot||n.invalid||(this.graph.cellRenderer.redraw(n,!1,this.isRendering()),n.updateCachedBounds())),t&&!n.invalid))){n.shape&&this.stateValidated(n);const t=e.getChildCount();for(let n=0;n2&&void 0!==arguments[2]&&arguments[2];if(e&&t){const i=e.origin,r=n?1:this.scale;return new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(r*(t.x+this.translate.x+i.x),r*(t.y+this.translate.y+i.y))}return null}isLoopStyleEnabled(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const s=this.graph.getConnectionConstraint(e,i,!0),o=this.graph.getConnectionConstraint(e,r,!1);return(null==n||n.length<2)&&(null===(t=e.style.orthogonalLoop)||void 0===t||!t)&&(null!=s&&null!=s.point||null!=o&&null!=o.point)&&(null!=i&&i===r)}getEdgeStyle(edge){var _edge$style$loopStyle,_edge$style$noEdgeSty;let points=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,target=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,edgeStyle=this.isLoopStyleEnabled(edge,points,source,target)?null!==(_edge$style$loopStyle=edge.style.loopStyle)&&void 0!==_edge$style$loopStyle?_edge$style$loopStyle:this.graph.defaultLoopStyle:null!==(_edge$style$noEdgeSty=!edge.style.noEdgeStyle)&&void 0!==_edge$style$noEdgeSty&&_edge$style$noEdgeSty?edge.style.edgeStyle:null;if("string"===typeof edgeStyle){let tmp=_style_StyleRegistry__WEBPACK_IMPORTED_MODULE_20__.A.getValue(edgeStyle);!tmp&&this.isAllowEval()&&(tmp=eval(edgeStyle)),edgeStyle=tmp}return"function"===typeof edgeStyle?edgeStyle:null}updateFloatingTerminalPoints(e,t,n){const i=e.absolutePoints,r=i[0];!i[i.length-1]&&n&&this.updateFloatingTerminalPoint(e,n,t,!1),!r&&t&&this.updateFloatingTerminalPoint(e,t,n,!0)}updateFloatingTerminalPoint(e,t,n,i){e.setAbsoluteTerminalPoint(this.getFloatingTerminalPoint(e,t,n,i),i)}getFloatingTerminalPoint(e,t,n,i){var r,s,o;t=this.getTerminalPort(e,t,i);let a=this.getNextPoint(e,n,i);const l=this.graph.isOrthogonal(e),c=(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__.eh)(null!==(r=t.style.rotation)&&void 0!==r?r:0),h=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(t.getCenterX(),t.getCenterY());if(0!==c){const e=Math.cos(-c),t=Math.sin(-c);a=(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__.Iq)(a,e,t,h)}let u=null!==(s=e.style.perimeterSpacing)&&void 0!==s?s:0;u+=null!==(o=e.style[i?"sourcePerimeterSpacing":"targetPerimeterSpacing"])&&void 0!==o?o:0;let d=this.getPerimeterPoint(t,a,0===c&&l,u);if(d&&0!==c){const e=Math.cos(c),t=Math.sin(c);d=(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__.Iq)(d,e,t,h)}return d}getTerminalPort(e,t){const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"sourcePort":"targetPort",i=e.style[n];if(i){const e=this.graph.getDataModel().getCell(i);if(e){const n=this.getState(e,!1);n&&(t=n)}}return t}getPerimeterPoint(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=null;if(null!=e){const s=this.getPerimeterFunction(e);if(null!=s&&null!=t){const o=this.getPerimeterBounds(e,i);if(o.width>0||o.height>0){r=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(t.x,t.y);let i=!1,a=!1;e.cell.isVertex()&&(i=!!e.style.flipH,a=!!e.style.flipV,i&&(r.x=2*o.getCenterX()-r.x),a&&(r.y=2*o.getCenterY()-r.y)),r=s(o,e,r,n),null!=r&&(i&&(r.x=2*o.getCenterX()-r.x),a&&(r.y=2*o.getCenterY()-r.y))}}null==r&&(r=this.getPoint(e))}return r}getRoutingCenterX(e){var t;const n=e.style&&null!==(t=e.style.routingCenterX)&&void 0!==t?t:0;return e.getCenterX()+n*e.width}getRoutingCenterY(e){var t;const n=e.style&&null!==(t=e.style.routingCenterY)&&void 0!==t?t:0;return e.getCenterY()+n*e.height}getPerimeterBounds(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n+=null!==(t=e.style.perimeterSpacing)&&void 0!==t?t:0,e.getPerimeterBounds(n*this.scale)}getPerimeterFunction(state){let perimeter=state.style.perimeter;if("string"===typeof perimeter){let tmp=_style_StyleRegistry__WEBPACK_IMPORTED_MODULE_20__.A.getValue(perimeter);null==tmp&&this.isAllowEval()&&(tmp=eval(perimeter)),perimeter=tmp}return"function"===typeof perimeter?perimeter:null}getNextPoint(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.absolutePoints;let r=null;if(i.length>=2){const e=i.length;r=i[n?Math.min(1,e-1):Math.max(0,e-2)]}return!r&&t&&(r=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(t.getCenterX(),t.getCenterY())),r}getVisibleTerminal(e,t){const n=this.graph.getDataModel();let i=e.getTerminal(t),r=i;for(;i&&i!==this.currentRoot;)(r&&!r.isVisible()||i.isCollapsed())&&(r=i),i=i.getParent();return!r||n.contains(r)&&r.getParent()!==n.getRoot()&&r!==this.currentRoot||(r=null),r}updateEdgeBounds(e){const t=e.absolutePoints,n=t[0],i=t[t.length-1];if(n&&i&&(n.x!==i.x||n.y!==i.y)){const t=i.x-n.x,r=i.y-n.y;e.terminalDistance=Math.sqrt(t*t+r*r)}else e.terminalDistance=0;let r=0;const s=[];let o=n;if(o){let n=o.x,i=o.y,a=n,l=i;for(let e=1;e1&&void 0!==arguments[1]?arguments[1]:null,n=e.getCenterX(),i=e.getCenterY();if(null==e.segments||null!=t&&!t.relative){if(null!=t){const{offset:e}=t;null!=e&&(n+=e.x,i+=e.y)}}else{const r=null!=t?t.x/2:0,s=e.absolutePoints.length,o=Math.round((r+.5)*e.length);let a=e.segments[0],l=0,c=1;for(;o>=Math.round(l+a)&&c1){const i=e.length,{segments:o}=e;let a=r[0],l=r[1],c=(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__.E8)(a.x,a.y,l.x,l.y,t,n),h=0,u=0,d=0;for(let e=2;ep&&(C=p);let A=Math.sqrt((0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__.E8)(a.x,a.y,l.x,l.y,t,n));return-1===(0,_util_mathUtils__WEBPACK_IMPORTED_MODULE_10__._C)(a.x,a.y,l.x,l.y,t,n)&&(A=-A),new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A((i/2-h-C)/i*-2,A/this.scale)}}return new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A}updateEdgeLabelOffset(e){const t=e.absolutePoints,n=e.absoluteOffset;if(n.x=e.getCenterX(),n.y=e.getCenterY(),t.length>0&&e.segments){const i=e.cell.getGeometry();if(i)if(i.relative){const t=this.getPoint(e,i);e.absoluteOffset=t}else{const e=t[0],r=t[t.length-1];if(e&&r){const t=r.x-e.x,s=r.y-e.y;let o=0,a=0;const l=i.offset;l&&(o=l.x,a=l.y);const c=e.x+t/2+o*this.scale,h=e.y+s/2+a*this.scale;n.x=c,n.y=h}}}}getState(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.states.get(e);return t&&(!n||this.updateStyle)&&e.isVisible()&&(n?n.style=this.graph.getCellStyle(e):(n=this.createState(e),this.states.put(e,n))),n}getCellStates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return this.states.getValues();const t=[];for(const n of e){const e=this.getState(n);e&&t.push(e)}return t}removeState(e){const t=this.states.remove(e);return t&&(this.graph.cellRenderer.destroy(t),t.invalid=!0,t.destroy()),t}createState(e){return new _cell_CellState__WEBPACK_IMPORTED_MODULE_13__.A(this,e,this.graph.getCellStyle(e))}isContainerEvent(e){const t=(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__.el)(e);return t&&(t===this.graph.container||t.parentNode===this.backgroundPane||t.parentNode&&t.parentNode.parentNode===this.backgroundPane||t===this.canvas.parentNode||t===this.canvas||t===this.backgroundPane||t===this.drawPane||t===this.overlayPane||t===this.decoratorPane)}isScrollEvent(e){const t=this.graph,n=(0,_util_styleUtils__WEBPACK_IMPORTED_MODULE_9__.A3)(t.container),i=new _geometry_Point__WEBPACK_IMPORTED_MODULE_0__.A(e.clientX-n.x,e.clientY-n.y),r=t.container,s=r.offsetWidth,o=r.clientWidth;if(s>o&&i.x>o+2&&i.x<=s)return!0;const a=r.offsetHeight,l=r.clientHeight;return a>l&&i.y>l+2&&i.y<=a}init(){this.installListeners(),this.createSvg()}installListeners(){const e=this.graph,{container:t}=e;_Client__WEBPACK_IMPORTED_MODULE_7__.A.IS_TOUCH&&(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addListener(t,"gesturestart",(t=>{e.fireGestureEvent(t),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.consume(t)})),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addListener(t,"gesturechange",(t=>{e.fireGestureEvent(t),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.consume(t)})),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addListener(t,"gestureend",(t=>{e.fireGestureEvent(t),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.consume(t)})));let n=null;_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addGestureListeners(t,(t=>{!this.isContainerEvent(t)||(_Client__WEBPACK_IMPORTED_MODULE_7__.A.IS_GC||_Client__WEBPACK_IMPORTED_MODULE_7__.A.IS_SF)&&this.isScrollEvent(t)||(e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_DOWN,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t)),n=t.pointerId)}),(t=>{!this.isContainerEvent(t)||null!==n&&t.pointerId!==n||e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_MOVE,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t))}),(t=>{this.isContainerEvent(t)&&e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_UP,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t)),n=null})),_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addListener(t,"dblclick",(t=>{this.isContainerEvent(t)&&e.dblClick(t)}));e.addMouseListener({mouseDown:(t,n)=>{const i=e.getPlugin("PopupMenuHandler");null===i||void 0===i||i.hideMenu()},mouseMove:()=>{},mouseUp:()=>{}}),this.moveHandler=n=>{const i=e.getPlugin("TooltipHandler");i&&i.isHideOnHover()&&i.hide(),this.captureDocumentGesture&&e.isMouseDown&&null!=e.container&&!this.isContainerEvent(n)&&"none"!==e.container.style.display&&"hidden"!==e.container.style.visibility&&!(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__.fm)(n)&&e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_MOVE,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(n,(n=>{let i=null;if(_Client__WEBPACK_IMPORTED_MODULE_7__.A.IS_TOUCH){const r=(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__.El)(n),s=(0,_util_EventUtils__WEBPACK_IMPORTED_MODULE_18__.xJ)(n),o=(0,_util_styleUtils__WEBPACK_IMPORTED_MODULE_9__.ce)(t,r,s),a=e.getCellAt(o.x,o.y);a&&(i=e.view.getState(a))}return i})(n)))},this.endHandler=t=>{this.captureDocumentGesture&&e.isMouseDown&&null!=e.container&&!this.isContainerEvent(t)&&"none"!==e.container.style.display&&"hidden"!==e.container.style.visibility&&e.fireMouseEvent(_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.MOUSE_UP,new _event_InternalMouseEvent__WEBPACK_IMPORTED_MODULE_16__.A(t))},_event_InternalEvent__WEBPACK_IMPORTED_MODULE_8__.A.addGestureListeners(document,null,this.moveHandler,this.endHandler)}createSvg(){const{container:e}=this.graph,t=this.canvas=document.createElementNS("http://www.w3.org/2000/svg","g");this.backgroundPane=document.createElementNS("http://www.w3.org/2000/svg","g"),t.appendChild(this.backgroundPane),this.drawPane=document.createElementNS("http://www.w3.org/2000/svg","g"),t.appendChild(this.drawPane),this.overlayPane=document.createElementNS("http://www.w3.org/2000/svg","g"),t.appendChild(this.overlayPane),this.decoratorPane=document.createElementNS("http://www.w3.org/2000/svg","g"),t.appendChild(this.decoratorPane);const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.left="0px",n.style.top="0px",n.style.width="100%",n.style.height="100%",n.style.display="block",n.appendChild(this.canvas),null!=e&&(e.appendChild(n),this.updateContainerStyle(e))}createHtml(){const e=this.graph.container;null!=e&&(this.canvas=this.createHtmlPane("100%","100%"),this.canvas.style.overflow="hidden",this.backgroundPane=this.createHtmlPane("1px","1px"),this.drawPane=this.createHtmlPane("1px","1px"),this.overlayPane=this.createHtmlPane("1px","1px"),this.decoratorPane=this.createHtmlPane("1px","1px"),this.canvas.appendChild(this.backgroundPane),this.canvas.appendChild(this.drawPane),this.canvas.appendChild(this.overlayPane),this.canvas.appendChild(this.decoratorPane),e.appendChild(this.canvas),this.updateContainerStyle(e))}updateHtmlCanvasSize(e,t){if(null!=this.graph.container){const n=this.graph.container.offsetWidth,i=this.graph.container.offsetHeight;this.canvas.style.width=n{"use strict";n.d(t,{A:()=>l});var i=n(5553),r=n(4027),s=n(6487),o=n(4886),a=n(7222);const l=class{constructor(){var e=this;this.state=this.createState(),this.states=[],this.path=[],this.rotateHtml=!0,this.lastX=0,this.lastY=0,this.moveOp="M",this.lineOp="L",this.quadOp="Q",this.curveOp="C",this.closeOp="Z",this.pointerEvents=!1,this.pointerEventsValue=null,this.addOp=function(t){if(e.path.push(t),(arguments.length<=1?0:arguments.length-1)>1){const t=e.state;for(let n=1;n<(arguments.length<=1?0:arguments.length-1);n+=2)e.lastX=n-1+1<1||arguments.length<=n-1+1?void 0:arguments[n-1+1],e.lastY=n+1<1||arguments.length<=n+1?void 0:arguments[n+1],e.path.push(e.format((e.lastX+t.dx)*t.scale)),e.path.push(e.format((e.lastY+t.dy)*t.scale))}},this.converter=this.createUrlConverter(),this.reset()}createUrlConverter(){return new s.A}reset(){this.state=this.createState(),this.states=[]}createState(){return{dx:0,dy:0,scale:1,alpha:1,fillAlpha:1,strokeAlpha:1,fillColor:r.x3,gradientFillAlpha:1,gradientColor:r.x3,gradientAlpha:1,gradientDirection:r.M8.EAST,strokeColor:r.x3,strokeWidth:1,dashed:!1,dashPattern:"3 3",fixDash:!1,lineCap:"flat",lineJoin:"miter",miterLimit:10,fontColor:"#000000",fontBackgroundColor:r.x3,fontBorderColor:r.x3,fontSize:r.FV,fontFamily:r.CT,fontStyle:0,shadow:!1,shadowColor:r.y2,shadowAlpha:r.RH,shadowDx:r.Mm,shadowDy:r.FK,rotation:0,rotationCx:0,rotationCy:0}}format(e){return Math.round(e)}rotatePoint(e,t,n,r,s){const a=n*(Math.PI/180);return(0,i.Iq)(new o.A(e,t),Math.cos(a),Math.sin(a),new o.A(r,s))}save(){this.states.push(this.state),this.state=(0,a.o)(this.state)}restore(){const e=this.states.pop();e&&(this.state=e)}setLink(e){}scale(e){this.state.scale*=e,null!==this.state.strokeWidth&&(this.state.strokeWidth*=e)}translate(e,t){this.state.dx+=e,this.state.dy+=t}rotate(e,t,n,i,r){}setAlpha(e){this.state.alpha=e}setFillAlpha(e){this.state.fillAlpha=e}setStrokeAlpha(e){this.state.strokeAlpha=e}setFillColor(e){this.state.fillColor=null!==e&&void 0!==e?e:r.x3,this.state.gradientColor=r.x3}setGradient(e,t,n,i,r,s,o){let a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;const c=this.state;c.fillColor=e,c.gradientFillAlpha=a,c.gradientColor=t,c.gradientAlpha=l,c.gradientDirection=o}setStrokeColor(e){this.state.strokeColor=null!==e&&void 0!==e?e:r.x3}setStrokeWidth(e){this.state.strokeWidth=e}setDashed(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.state.dashed=e,this.state.fixDash=t}setDashPattern(e){this.state.dashPattern=e}setLineCap(e){this.state.lineCap=e}setLineJoin(e){this.state.lineJoin=e}setMiterLimit(e){this.state.miterLimit=e}setFontColor(e){this.state.fontColor=null!==e&&void 0!==e?e:r.x3}setFontBackgroundColor(e){this.state.fontBackgroundColor=null!==e&&void 0!==e?e:r.x3}setFontBorderColor(e){this.state.fontBorderColor=null!==e&&void 0!==e?e:r.x3}setFontSize(e){this.state.fontSize=e}setFontFamily(e){this.state.fontFamily=e}setFontStyle(e){this.state.fontStyle=e}setShadow(e){this.state.shadow=e}setShadowColor(e){this.state.shadowColor=null!==e&&void 0!==e?e:r.x3}setShadowAlpha(e){this.state.shadowAlpha=e}setShadowOffset(e,t){this.state.shadowDx=e,this.state.shadowDy=t}begin(){this.lastX=0,this.lastY=0,this.path=[]}moveTo(e,t){this.addOp(this.moveOp,e,t)}lineTo(e,t){this.addOp(this.lineOp,e,t)}quadTo(e,t,n,i){this.addOp(this.quadOp,e,t,n,i)}curveTo(e,t,n,i,r,s){this.addOp(this.curveOp,e,t,n,i,r,s)}arcTo(e,t,n,r,s,o,a){const l=(0,i.UA)(this.lastX,this.lastY,e,t,n,r,s,o,a);if(null!=l)for(let i=0;i{"use strict";n.d(t,{A:()=>f});var i=n(1643),r=n(5553),s=n(8578),o=n(1458),a=n(4027),l=n(8597),c=n(2010),h=n(9158),u=n(9933),d=n(2744);const p="function"===typeof DOMParser&&!o.A.IS_CHROMEAPP&&!o.A.IS_EDGE&&document.getElementsByTagName("base").length>0;class g extends c.A{constructor(e,t){super(),this.defs=null,this.styleEnabled=!0,this.node=null,this.matchHtmlAlignment=!0,this.textEnabled=!0,this.foEnabled=!0,this.foAltText="[Object]",this.foOffset=0,this.textOffset=0,this.imageOffset=0,this.strokeTolerance=0,this.minStrokeWidth=1,this.refCount=0,this.lineHeightCorrection=1,this.pointerEventsValue="all",this.fontMetricsPadding=10,this.cacheOffsetSize=!0,this.originalRoot=null,this.root=e,this.gradients={},this.defs=null,this.styleEnabled=null!=t&&t;let n=null;if(e.ownerDocument!==document){let t=e;for(;t&&"svg"!==t.nodeName;)t=t.parentElement;n=t}if(n){n.getElementsByTagName("defs").length>0&&(this.defs=n.getElementsByTagName("defs")[0]),this.defs||(this.defs=this.createElement("defs"),null!=n.firstChild?n.insertBefore(this.defs,n.firstChild):n.appendChild(this.defs)),this.styleEnabled&&this.defs.appendChild(this.createStyle())}}format(e){return parseFloat(e.toFixed(2))}getBaseUrl(){let{href:e}=window.location;const t=e.lastIndexOf("#");return t>0&&(e=e.substring(0,t)),e}reset(){super.reset(),this.gradients={}}end(){}createStyle(){const e=this.createElement("style");return e.setAttribute("type","text/css"),(0,u.M9)(e,"svg{font-family:".concat(a.CT,";font-size:").concat(a.FV,";fill:none;stroke-miterlimit:10}")),e}createElement(e,t){var n;return null===(n=this.root)||void 0===n?void 0:n.ownerDocument.createElementNS(t||a.pr,e)}getAlternateText(e,t,n,r,s,o,a,l,c,h,u,d,p){return(0,i.Vq)(o)?this.foAltText:null}createAlternateContent(e,t,n,r,o,l,c,h,d,p,g,f,m){const v=this.getAlternateText(e,t,n,r,o,l,c,h,d,p,g,f,m),y=this.state;if((0,i.Vq)(v)&&y.fontSize>0){const e=h===a.Ec.TOP?1:h===a.Ec.BOTTOM?0:.3,i=c===a.Ec.RIGHT?"end":c===a.Ec.LEFT?"start":"middle",r=this.createElement("text");r.setAttribute("x",String(Math.round(t+y.dx))),r.setAttribute("y",String(Math.round(n+y.dy+e*y.fontSize))),r.setAttribute("fill",y.fontColor||"black"),r.setAttribute("font-family",y.fontFamily),r.setAttribute("font-size","".concat(Math.round(y.fontSize),"px")),"start"!==i&&r.setAttribute("text-anchor",i);const o=y.fontStyle;(0,s.bW)(o,a.mE.BOLD)&&r.setAttribute("font-weight","bold"),(0,s.bW)(o,a.mE.ITALIC)&&r.setAttribute("font-style","italic");const l=[];return(0,s.bW)(o,a.mE.UNDERLINE)&&l.push("underline"),(0,s.bW)(o,a.mE.STRIKETHROUGH)&&l.push("line-through"),l.length>0&&r.setAttribute("text-decoration",l.join(" ")),(0,u.M9)(r,v),r}return null}createGradientId(e,t,n,i,r){"#"===e.charAt(0)&&(e=e.substring(1)),"#"===t.charAt(0)&&(t=t.substring(1)),e="".concat(e.toLowerCase(),"-").concat(n),t="".concat(t.toLowerCase(),"-").concat(i);let s=null;if(null==r||r===a.M8.SOUTH)s="s";else if(r===a.M8.EAST)s="e";else{const n=e;e=t,t=n,r===a.M8.NORTH?s="s":r===a.M8.WEST&&(s="e")}return"mx-gradient-".concat(e,"-").concat(t,"-").concat(s)}getSvgGradient(e,t,n,i,r){const s=this.createGradientId(e,t,n,i,r);let o=this.gradients[s];if(!o){const a=this.root.ownerSVGElement;let l=0,c="".concat(s,"-").concat(l);if(a)for(o=a.ownerDocument.getElementById(c);o&&o.ownerSVGElement!==a;)c="".concat(s,"-").concat(l++),o=a.ownerDocument.getElementById(c);else c="id".concat(++this.refCount);o||(o=this.createSvgGradient(e,t,n,i,r),o.setAttribute("id",c),this.defs?this.defs.appendChild(o):a&&a.appendChild(o)),this.gradients[s]=o}return o.getAttribute("id")}createSvgGradient(e,t,n,i,r){const s=this.createElement("linearGradient");s.setAttribute("x1","0%"),s.setAttribute("y1","0%"),s.setAttribute("x2","0%"),s.setAttribute("y2","0%"),null==r||r===a.M8.SOUTH?s.setAttribute("y2","100%"):r===a.M8.EAST?s.setAttribute("x2","100%"):r===a.M8.NORTH?s.setAttribute("y1","100%"):r===a.M8.WEST&&s.setAttribute("x1","100%");let o=n<1?";stop-opacity:".concat(n):"",l=this.createElement("stop");return l.setAttribute("offset","0%"),l.setAttribute("style","stop-color:".concat(e).concat(o)),s.appendChild(l),o=i<1?";stop-opacity:".concat(i):"",l=this.createElement("stop"),l.setAttribute("offset","100%"),l.setAttribute("style","stop-color:".concat(t).concat(o)),s.appendChild(l),s}addNode(e,t){const{node:n}=this,i=this.state;if(n){if("path"===n.nodeName){if(!(this.path&&this.path.length>0))return;n.setAttribute("d",this.path.join(" "))}e&&i.fillColor!==a.x3?this.updateFill():this.styleEnabled||("ellipse"===n.nodeName&&o.A.IS_FF?n.setAttribute("fill","transparent"):n.setAttribute("fill",a.x3),e=!1),t&&i.strokeColor!==a.x3?this.updateStroke():this.styleEnabled||n.setAttribute("stroke",a.x3),i.transform&&i.transform.length>0&&n.setAttribute("transform",i.transform),i.shadow&&this.root.appendChild(this.createShadow(n)),this.strokeTolerance>0&&!e&&this.root.appendChild(this.createTolerance(n)),this.pointerEvents?n.setAttribute("pointer-events",this.pointerEventsValue):this.pointerEvents||this.originalRoot||n.setAttribute("pointer-events",a.x3),("rect"!==n.nodeName&&"path"!==n.nodeName&&"ellipse"!==n.nodeName||n.getAttribute("fill")!==a.x3&&"transparent"!==n.getAttribute("fill")||n.getAttribute("stroke")!==a.x3||n.getAttribute("pointer-events")!==a.x3)&&this.root.appendChild(n),this.node=null}}updateFill(){const e=this.state;if((e.alpha<1||e.fillAlpha<1)&&this.node.setAttribute("fill-opacity",String(e.alpha*e.fillAlpha)),e.fillColor!==a.x3)if(e.gradientColor!==a.x3){var t;const n=this.getSvgGradient(e.fillColor,e.gradientColor,e.gradientFillAlpha,e.gradientAlpha,e.gradientDirection);if((null===(t=this.root)||void 0===t?void 0:t.ownerDocument)===document&&p){const e=this.getBaseUrl().replace(/([()])/g,"\\$1");this.node.setAttribute("fill","url(".concat(e,"#").concat(n,")"))}else this.node.setAttribute("fill","url(#".concat(n,")"))}else this.node.setAttribute("fill",e.fillColor.toLowerCase())}getCurrentStrokeWidth(){return Math.max(this.minStrokeWidth,Math.max(.01,this.format(this.state.strokeWidth*this.state.scale)))}updateStroke(){const e=this.state;e.strokeColor&&e.strokeColor!==a.x3&&this.node.setAttribute("stroke",e.strokeColor.toLowerCase()),(e.alpha<1||e.strokeAlpha<1)&&this.node.setAttribute("stroke-opacity",String(e.alpha*e.strokeAlpha));const t=this.getCurrentStrokeWidth();1!==t&&this.node.setAttribute("stroke-width",String(t)),"path"===this.node.nodeName&&this.updateStrokeAttributes(),e.dashed&&this.node.setAttribute("stroke-dasharray",this.createDashPattern((e.fixDash?1:e.strokeWidth)*e.scale))}updateStrokeAttributes(){const e=this.state;if(e.lineJoin&&"miter"!==e.lineJoin&&this.node.setAttribute("stroke-linejoin",e.lineJoin),e.lineCap){let t=e.lineCap;"flat"===t&&(t="butt"),"butt"!==t&&this.node.setAttribute("stroke-linecap",t)}null==e.miterLimit||this.styleEnabled&&10===e.miterLimit||this.node.setAttribute("stroke-miterlimit",String(e.miterLimit))}createDashPattern(e){const t=[];if("string"===typeof this.state.dashPattern){const n=this.state.dashPattern.split(" ");if(n.length>0)for(let i=0;i0&&this.node.setAttribute("rx",String(this.format(r*this.state.scale))),s>0&&this.node.setAttribute("ry",String(this.format(s*this.state.scale)))}ellipse(e,t,n,i){const r=this.state,s=this.createElement("ellipse");s.setAttribute("cx",String(this.format((e+n/2+r.dx)*r.scale))),s.setAttribute("cy",String(this.format((t+i/2+r.dy)*r.scale))),s.setAttribute("rx",String(n/2*r.scale)),s.setAttribute("ry",String(i/2*r.scale)),this.node=s}image(e,t,n,i,r){let s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];r=this.converter.convert(r);const c=this.state;e+=c.dx,t+=c.dy;const h=this.createElement("image");h.setAttribute("x",String(this.format(e*c.scale)+this.imageOffset)),h.setAttribute("y",String(this.format(t*c.scale)+this.imageOffset)),h.setAttribute("width",String(this.format(n*c.scale))),h.setAttribute("height",String(this.format(i*c.scale))),h.setAttributeNS?h.setAttributeNS(a.pK,"xlink:href",r):h.setAttribute("xlink:href",r),s||h.setAttribute("preserveAspectRatio","none"),(c.alpha<1||c.fillAlpha<1)&&h.setAttribute("opacity",String(c.alpha*c.fillAlpha));let u=this.state.transform||"";if(o||l){let r=1,s=1,a=0,h=0;o&&(r=-1,a=-n-2*e),l&&(s=-1,h=-i-2*t),u+="scale(".concat(r,",").concat(s,")translate(").concat(a*c.scale,",").concat(h*c.scale,")")}u.length>0&&h.setAttribute("transform",u),this.pointerEvents||h.setAttribute("pointer-events","none"),this.root.appendChild(h)}convertHtml(e){const t=(new DOMParser).parseFromString(e,"text/html");return null!=t&&("",5)+1)),""===e.substring(e.length-7,e.length)&&(e=e.substring(0,e.length-7))),e}createDiv(e){let t=e;if((0,u.Ll)(t)||(t="
".concat(this.convertHtml(t),"
")),document.createElementNS){const e=document.createElementNS("http://www.w3.org/1999/xhtml","div");if((0,u.Ll)(t)){const n=t,i=document.createElement("div"),r=i.cloneNode(!1);this.root.ownerDocument!==document?i.appendChild(n.cloneNode(!0)):i.appendChild(n),r.appendChild(i),e.appendChild(r)}else e.innerHTML=t;return e}return(0,u.Ll)(t)&&(t="
".concat((0,h.g5)(t),"
")),t='
'.concat(t,"
"),(new DOMParser).parseFromString(t,"text/xml").documentElement}updateText(e,t,n,i,r,s,o,a,l,c,h){h&&h.firstChild&&h.firstChild.firstChild&&this.updateTextNodes(e,t,n,i,r,s,o,a,l,c,h.firstChild)}addForeignObject(e,t,n,i,r,s,o,a,l,c,h,u,d,p,g){var f;const m=this.createElement("g"),v=this.createElement("foreignObject");if(v.setAttribute("style","overflow: visible; text-align: left;"),v.setAttribute("pointer-events","none"),v.appendChild(p),m.appendChild(v),this.updateTextNodes(e,t,n,i,s,o,a,c,h,u,m),(null===(f=this.root)||void 0===f?void 0:f.ownerDocument)!==document){const d=this.createAlternateContent(v,e,t,n,i,r,s,o,a,l,c,h,u);if(null!=d){v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");const e=this.createElement("switch");e.appendChild(v),e.appendChild(d),m.appendChild(e)}}g.appendChild(m)}updateTextNodes(e,t,n,i,r,s,o,l,c,h,u){const d=this.state.scale;g.createCss(n+2,i,r,s,o,l,c,null!=this.state.fontBackgroundColor?this.state.fontBackgroundColor:null,null!=this.state.fontBorderColor?this.state.fontBorderColor:null,"display: flex; align-items: unsafe ".concat(s===a.Ec.TOP?"flex-start":s===a.Ec.BOTTOM?"flex-end":"center","; ")+"justify-content: unsafe ".concat(r===a.Ec.LEFT?"flex-start":r===a.Ec.RIGHT?"flex-end":"center","; "),this.getTextCss(),d,((n,i,r,s,o)=>{e+=this.state.dx,t+=this.state.dy;const a=u.firstChild,l=a.firstChild,c=l.firstChild,p=c.firstChild,g=(this.rotateHtml?this.state.rotation:0)+(null!=h?h:0);let f=(0!==this.foOffset?"translate(".concat(this.foOffset," ").concat(this.foOffset,")"):"")+(1!==d?"scale(".concat(d,")"):"");p.setAttribute("style",o),c.setAttribute("style",s),a.setAttribute("width","".concat(Math.ceil(1/Math.min(1,d)*100),"%")),a.setAttribute("height","".concat(Math.ceil(1/Math.min(1,d)*100),"%"));const m=Math.round(t+i);m<0?a.setAttribute("y",String(m)):(a.removeAttribute("y"),r+="padding-top: ".concat(m,"px; ")),l.setAttribute("style","".concat(r,"margin-left: ").concat(Math.round(e+n),"px;")),f+=0!==g?"rotate(".concat(g," ").concat(e," ").concat(t,")"):"",""!==f?u.setAttribute("transform",f):u.removeAttribute("transform"),1!==this.state.alpha?u.setAttribute("opacity",String(this.state.alpha)):u.removeAttribute("opacity")}))}getTextCss(){const e=this.state,t=a.Fb?"".concat(e.fontSize*a.$g,"px"):a.$g*this.lineHeightCorrection;let n="display: inline-block; font-size: ".concat(e.fontSize,"px; ")+"font-family: ".concat(e.fontFamily,"; color: ").concat(e.fontColor,"; line-height: ").concat(t,"; pointer-events: ").concat(this.pointerEvents?this.pointerEventsValue:"none","; ");const i=e.fontStyle;(0,s.bW)(i,a.mE.BOLD)&&(n+="font-weight: bold; "),(0,s.bW)(i,a.mE.ITALIC)&&(n+="font-style: italic; ");const r=[];return(0,s.bW)(i,a.mE.UNDERLINE)&&r.push("underline"),(0,s.bW)(i,a.mE.STRIKETHROUGH)&&r.push("line-through"),r.length>0&&(n+="text-decoration: ".concat(r.join(" "),"; ")),n}text(e,t,n,i,r,s,o,a,l,c,h){let u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:0,d=arguments.length>12?arguments[12]:void 0;if(this.textEnabled&&null!=r)if(u=null!=u?u:0,this.foEnabled&&"html"===l){const p=this.createDiv(r);null!=p&&(null!=d&&p.setAttribute("dir",d),this.addForeignObject(e,t,n,i,r,s,o,a,l,c,h,u,d,p,this.root))}else this.plainText(e+this.state.dx,t+this.state.dy,n,i,r,s,o,a,c,h,u,d)}createClip(e,t,n,i){e=Math.round(e),t=Math.round(t),n=Math.round(n),i=Math.round(i);const r="mx-clip-".concat(e,"-").concat(t,"-").concat(n,"-").concat(i);let s=0,o="".concat(r,"-").concat(s);for(;null!=document.getElementById(o);)o="".concat(r,"-").concat(++s);const a=this.createElement("clipPath");a.setAttribute("id",o);const l=this.createElement("rect");return l.setAttribute("x",String(e)),l.setAttribute("y",String(t)),l.setAttribute("width",String(n)),l.setAttribute("height",String(i)),a.appendChild(l),a}plainText(e,t,n,i,r,s,l,c,h,p){let g=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=arguments.length>11?arguments[11]:void 0;const m=this.state,v=m.fontSize,y=this.createElement("g");let b=m.transform||"";if(this.updateFont(y),this.pointerEvents||null!=this.originalRoot||y.setAttribute("pointer-events","none"),0!==g&&(b+="rotate(".concat(g,",").concat(this.format(e*m.scale),",").concat(this.format(t*m.scale),")")),null!=f&&y.setAttribute("direction",f),p&&n>0&&i>0){let r=e,c=t;s===a.Ec.CENTER?r-=n/2:s===a.Ec.RIGHT&&(r-=n),"fill"!==h&&(l===a.Ec.MIDDLE?c-=i/2:l===a.Ec.BOTTOM&&(c-=i));const u=this.createClip(r*m.scale-2,c*m.scale-2,n*m.scale+4,i*m.scale+4);if(null!=this.defs?this.defs.appendChild(u):this.root.appendChild(u),o.A.IS_CHROMEAPP||o.A.IS_EDGE||this.root.ownerDocument!==document)y.setAttribute("clip-path","url(#".concat(u.getAttribute("id"),")"));else{const e=this.getBaseUrl().replace(/([()])/g,"\\$1");y.setAttribute("clip-path","url(".concat(e,"#").concat(u.getAttribute("id"),")"))}}const w=s===a.Ec.RIGHT?"end":s===a.Ec.CENTER?"middle":"start";"start"!==w&&y.setAttribute("text-anchor",w),this.styleEnabled&&v===a.FV||y.setAttribute("font-size","".concat(v*m.scale,"px")),b.length>0&&y.setAttribute("transform",b),m.alpha<1&&y.setAttribute("opacity",String(m.alpha));const E=r.split("\n"),x=Math.round(v*a.$g),_=v+(E.length-1)*x;let C=t+v-1;if(l===a.Ec.MIDDLE)if("fill"===h)C-=i/2;else{C-=(this.matchHtmlAlignment&&p&&i>0?Math.min(_,i):_)/2}else if(l===a.Ec.BOTTOM)if("fill"===h)C-=i;else{C-=(this.matchHtmlAlignment&&p&&i>0?Math.min(_,i):_)+1}for(let o=0;o0&&e.setAttribute("text-decoration",i.join(" "))}addTextBackground(e,t,n,i,o,c,h,u,p){const g=this.state;if(null!=g.fontBackgroundColor||null!=g.fontBorderColor){let v=null;if("fill"===p||"width"===p)h===a.Ec.CENTER?n-=o/2:h===a.Ec.RIGHT&&(n-=o),u===a.Ec.MIDDLE?i-=c/2:u===a.Ec.BOTTOM&&(i-=c),v=new l.A((n+1)*g.scale,i*g.scale,(o-2)*g.scale,(c+2)*g.scale);else if(null!=e.getBBox&&this.root.ownerDocument===document)try{v=e.getBBox(),v=new l.A(v.x,v.y+1,v.width,v.height+0)}catch(m){}if(null==v||0===v.width||0===v.height){const e=document.createElement("div");e.style.lineHeight=a.Fb?"".concat(g.fontSize*a.$g,"px"):String(a.$g),e.style.fontSize="".concat(g.fontSize,"px"),e.style.fontFamily=g.fontFamily,e.style.whiteSpace="nowrap",e.style.position="absolute",e.style.visibility="hidden",e.style.display="inline-block",(0,s.bW)(g.fontStyle,a.mE.BOLD)&&(e.style.fontWeight="bold"),(0,s.bW)(g.fontStyle,a.mE.ITALIC)&&(e.style.fontStyle="italic"),t=(0,d.bG)(t,!1),e.innerHTML=t.replace(/\n/g,"
"),document.body.appendChild(e);const r=e.offsetWidth,o=e.offsetHeight;document.body.removeChild(e),h===a.Ec.CENTER?n-=r/2:h===a.Ec.RIGHT&&(n-=r),u===a.Ec.MIDDLE?i-=o/2:u===a.Ec.BOTTOM&&(i-=o),v=new l.A((n+1)*g.scale,(i+2)*g.scale,r*g.scale,(o+1)*g.scale)}if(null!=v){var f;const t=this.createElement("rect");t.setAttribute("fill",g.fontBackgroundColor||"none"),t.setAttribute("stroke",g.fontBorderColor||"none"),t.setAttribute("x",String(Math.floor(v.x-1))),t.setAttribute("y",String(Math.floor(v.y-1))),t.setAttribute("width",String(Math.ceil(v.width+2))),t.setAttribute("height",String(Math.ceil(v.height)));const n=g.fontBorderColor?Math.max(1,this.format(g.scale)):0;t.setAttribute("stroke-width",String(n)),(null===(f=this.root)||void 0===f?void 0:f.ownerDocument)===document&&1===(0,r.zi)(n,2)&&t.setAttribute("transform","translate(0.5, 0.5)"),e.insertBefore(t,e.firstChild)}}}stroke(){this.addNode(!1,!0)}fill(){this.addNode(!0,!1)}fillAndStroke(){this.addNode(!0,!0)}}g.createCss=(e,t,n,i,r,o,l,c,h,u,d,p,g)=>{let f="box-sizing: border-box; font-size: 0; text-align: ".concat(n===a.Ec.LEFT?"left":n===a.Ec.RIGHT?"right":"center","; ");const m=(0,s.oM)(n,i);let v="overflow: hidden; ",y="width: 1px; ",b="height: 1px; ",w=m.x*e,E=m.y*t;l?(y="width: ".concat(Math.round(e),"px; "),f+="max-height: ".concat(Math.round(t),"px; "),E=0):"fill"===o?(y="width: ".concat(Math.round(e),"px; "),b="height: ".concat(Math.round(t),"px; "),d+="width: 100%; height: 100%; ",f+=y+b):"width"===o?(y="width: ".concat(Math.round(e),"px; "),d+="width: 100%; ",f+=y,E=0,t>0&&(f+="max-height: ".concat(Math.round(t),"px; "))):(v="",E=0);let x="";c&&(x+="background-color: ".concat(c,"; ")),h&&(x+="border: 1px solid ".concat(h,"; ")),""==v||l?d+=x:f+=x,r&&e>0?(d+="white-space: normal; word-wrap: ".concat(a.Cx,"; "),y="width: ".concat(Math.round(e),"px; "),""!==v&&"fill"!==o&&(E=0)):(d+="white-space: nowrap; ",""===v&&(w=0)),g(w,E,u+y+b,f+v,d,v)};const f=g},9342:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,f:()=>l});var i=n(4027),r=n(7222),s=n(4886),o=n(7857),a=n(1643);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.invalidating=!1,this.onInit=null,this.overlays=[],this.id=null,this.value=null,this.geometry=null,this.style={},this.vertex=!1,this.edge=!1,this.connectable=!0,this.visible=!0,this.collapsed=!1,this.parent=null,this.source=null,this.target=null,this.children=[],this.edges=[],this.mxTransient=["id","value","parent","source","target","children","edges"],this.value=e,this.setGeometry(t),this.setStyle(n),this.onInit&&this.onInit()}getChildren(){return this.children||[]}getId(){return this.id}setId(e){this.id=e}getValue(){return this.value}setValue(e){this.value=e}valueChanged(e){const t=this.getValue();return this.setValue(e),t}getGeometry(){return this.geometry}setGeometry(e){this.geometry=e}getStyle(){return this.style}getClonedStyle(){return(0,r.o)(this.getStyle())}setStyle(e){this.style=e}isVertex(){return this.vertex}setVertex(e){this.vertex=e}isEdge(){return this.edge}setEdge(e){this.edge=e}isConnectable(){return this.connectable}setConnectable(e){this.connectable=e}isVisible(){return this.visible}setVisible(e){this.visible=e}isCollapsed(){return this.collapsed}setCollapsed(e){this.collapsed=e}getParent(){return this.parent}setParent(e){this.parent=e}getTerminal(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.source:this.target}setTerminal(e,t){return t?this.source=e:this.target=e,e}getChildCount(){return this.children.length}getIndex(e){return null===e?-1:this.children.indexOf(e)}getChildAt(e){return this.children[e]}insert(e,t){return void 0===t&&(t=this.getChildCount(),e.getParent()===this&&t--),e.removeFromParent(),e.setParent(this),this.children.splice(t,0,e),e}remove(e){let t=null;return e>=0&&(t=this.getChildAt(e),t&&(this.children.splice(e,1),t.setParent(null))),t}removeFromParent(){if(this.parent){const e=this.parent.getIndex(this);this.parent.remove(e)}}getEdgeCount(){return this.edges.length}getEdgeIndex(e){return this.edges.indexOf(e)}getEdgeAt(e){return this.edges[e]}insertEdge(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.removeFromTerminal(t),e.setTerminal(this,t),(0===this.edges.length||e.getTerminal(!t)!==this||this.edges.indexOf(e)<0)&&this.edges.push(e),e}removeEdge(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e){if(e.getTerminal(!t)!==this&&null!=this.edges){const t=this.getEdgeIndex(e);t>=0&&this.edges.splice(t,1)}e.setTerminal(null,t)}return e}removeFromTerminal(e){const t=this.getTerminal(e);t&&t.removeEdge(this,e)}hasAttribute(e){const t=this.getValue();return(0,a.Vq)(t)&&(t.nodeType===i.Js.ELEMENT&&t.hasAttribute?t.hasAttribute(e):(0,a.Vq)(t.getAttribute(e)))}getAttribute(e,t){const n=this.getValue(),r=(0,a.Vq)(n)&&n.nodeType===i.Js.ELEMENT?n.getAttribute(e):null;return r||t}setAttribute(e,t){const n=this.getValue();(0,a.Vq)(n)&&n.nodeType===i.Js.ELEMENT&&n.setAttribute(e,t)}clone(){const e=(0,r.o)(this,this.mxTransient);return e.setValue(this.cloneValue()),e}cloneValue(){let e=this.getValue();return(0,a.Vq)(e)&&("function"===typeof e.clone?e=e.clone():(0,a.Vq)(e.nodeType)&&(e=e.cloneNode(!0))),e}getNearestCommonAncestor(e){let t=o.A.create(e);if(t.length>0){let n=this,i=o.A.create(n);if(t.length0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getChildCount(),i=[];for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=0;const i=this.getEdgeCount();for(let r=0;r0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=this.getEdgeCount(),r=[];for(let s=0;s{"use strict";n.d(t,{A:()=>o});var i=n(4027),r=n(1483),s=n(8597);const o=class{constructor(e,t,n,s){this.strokeWidth=0,this.dashed=!1,this.opacity=100,this.shape=null,this.keepOnTop=!1,this.state=null,this.spacing=2,this.graph=e,this.highlightColor=null!==t&&void 0!==t?t:i.Vj,this.strokeWidth=null!==n&&void 0!==n?n:i.es,this.dashed=null!==s&&void 0!==s&&s,this.opacity=i.V8,this.repaintHandler=()=>{if(this.state){const e=this.graph.view.getState(this.state.cell);e?(this.state=e,this.repaint()):this.hide()}},this.graph.getView().addListener(r.A.SCALE,this.repaintHandler),this.graph.getView().addListener(r.A.TRANSLATE,this.repaintHandler),this.graph.getView().addListener(r.A.SCALE_AND_TRANSLATE,this.repaintHandler),this.graph.getDataModel().addListener(r.A.CHANGE,this.repaintHandler),this.resetHandler=()=>{this.hide()},this.graph.getView().addListener(r.A.DOWN,this.resetHandler),this.graph.getView().addListener(r.A.UP,this.resetHandler)}setHighlightColor(e){this.highlightColor=e,this.shape&&(this.shape.stroke=e)}drawHighlight(){if(this.shape=this.createShape(),this.repaint(),this.shape){var e;const t=this.shape.node;!this.keepOnTop&&(null===t||void 0===t||null===(e=t.parentNode)||void 0===e?void 0:e.firstChild)!==t&&t.parentNode&&t.parentNode.insertBefore(t,t.parentNode.firstChild)}}createShape(){if(!this.state)return null;const e=this.graph.cellRenderer.createShape(this.state);return e.svgStrokeTolerance=this.graph.getEventTolerance(),e.points=this.state.absolutePoints,e.apply(this.state),e.stroke=this.highlightColor,e.opacity=this.opacity,e.isDashed=this.dashed,e.isShadow=!1,e.dialect=i.$p.SVG,e.init(this.graph.getView().getOverlayPane()),r.A.redirectMouseEvents(e.node,this.graph,this.state),this.graph.dialect!==i.$p.SVG?e.pointerEvents=!1:e.svgPointerEvents="stroke",e}getStrokeWidth(){return this.strokeWidth}repaint(){if(this.state&&this.shape){var e;if(this.shape.scale=this.state.view.scale,this.state.cell.isEdge())this.shape.strokeWidth=this.getStrokeWidth(),this.shape.points=this.state.absolutePoints,this.shape.outline=!1;else this.shape.bounds=new s.A(this.state.x-this.spacing,this.state.y-this.spacing,this.state.width+2*this.spacing,this.state.height+2*this.spacing),this.shape.rotation=null!==(e=this.state.style.rotation)&&void 0!==e?e:0,this.shape.strokeWidth=this.getStrokeWidth()/this.state.view.scale,this.shape.outline=!0;this.state.shape&&this.shape.setCursor(this.state.shape.getCursor()),this.shape.redraw()}}hide(){this.highlight(null)}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.state!==e&&(this.shape&&(this.shape.destroy(),this.shape=null),this.state=e,this.state&&this.drawHighlight())}isHighlightAt(e,t){let n=!1;if(this.shape&&document.elementFromPoint){let i=document.elementFromPoint(e,t);for(;i;){if(i===this.shape.node){n=!0;break}i=i.parentNode}}return n}destroy(){const e=this.graph;e.getView().removeListener(this.resetHandler),e.getView().removeListener(this.repaintHandler),e.getDataModel().removeListener(this.repaintHandler),this.shape&&(this.shape.destroy(),this.shape=null)}}},7857:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class i{constructor(){throw new Error("Static class can't be instantiated!")}static create(e){let t="",n=e.getParent();for(;n;){t=n.getIndex(e)+i.PATH_SEPARATOR+t,n=(e=n).getParent()}const r=t.length;return r>1&&(t=t.substring(0,r-1)),t}static getParentPath(e){const t=e.lastIndexOf(i.PATH_SEPARATOR);return t>=0?e.substring(0,t):e.length>0?"":null}static resolve(e,t){let n=e;const r=t.split(i.PATH_SEPARATOR);for(let i=0;it[r]?1:-1;else{const n=parseInt(e[r]),s=parseInt(t[r]);i=n===s?0:n>s?1:-1}break}if(0===i){const n=e.length,r=t.length;n!==r&&(i=n>r?1:-1)}return i}}i.PATH_SEPARATOR=".";const r=i},4233:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(4886),r=n(8597),s=n(1080),o=n(4027);class a extends r.A{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;super(),this.node=null,this.cellBounds=null,this.paintBounds=null,this.boundingBox=null,this.control=null,this.overlays=new s.A,this.invalidStyle=!1,this.invalid=!0,this.absolutePoints=[],this.visibleSourceState=null,this.visibleTargetState=null,this.terminalDistance=0,this.length=0,this.segments=[],this.shape=null,this.text=null,this.unscaledWidth=0,this.unscaledHeight=0,this.parentHighlight=null,this.point=null,e&&(this.view=e),t&&(this.cell=t),this.style=null!==n&&void 0!==n?n:{},this.origin=new i.A,this.absoluteOffset=new i.A}getPerimeterBounds(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r.A(this.x,this.y,this.width,this.height);if("fixed"===(null===(e=this.shape)||void 0===e||null===(e=e.stencil)||void 0===e?void 0:e.aspect)){const e=this.shape.stencil.computeAspect(this.shape,n.x,n.y,n.width,n.height);n.x=e.x,n.y=e.y,n.width=this.shape.stencil.w0*e.width,n.height=this.shape.stencil.h0*e.height}return 0!==t&&n.grow(t),n}setAbsoluteTerminalPoint(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?0===this.absolutePoints.length?this.absolutePoints.push(e):this.absolutePoints[0]=e:0===this.absolutePoints.length?(this.absolutePoints.push(null),this.absolutePoints.push(e)):1===this.absolutePoints.length?this.absolutePoints.push(e):this.absolutePoints[this.absolutePoints.length-1]=e}setCursor(e){this.shape&&this.shape.setCursor(e),this.text&&this.text.setCursor(e)}getVisibleTerminal(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==(e=null===(t=this.getVisibleTerminalState(n))||void 0===t?void 0:t.cell)&&void 0!==e?e:null}getVisibleTerminalState(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.visibleSourceState:this.visibleTargetState}setVisibleTerminalState(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.visibleSourceState=e:this.visibleTargetState=e}getCellBounds(){return this.cellBounds}getPaintBounds(){return this.paintBounds}updateCachedBounds(){const e=this.view,t=e.translate,n=e.scale;this.cellBounds=new r.A(this.x/n-t.x,this.y/n-t.y,this.width/n,this.height/n),this.paintBounds=r.A.fromRectangle(this.cellBounds),this.shape&&this.shape.isPaintBoundsInverted()&&this.paintBounds.rotate90()}setState(e){this.view=e.view,this.cell=e.cell,this.style=e.style,this.absolutePoints=e.absolutePoints,this.origin=e.origin,this.absoluteOffset=e.absoluteOffset,this.boundingBox=e.boundingBox,this.terminalDistance=e.terminalDistance,this.segments=e.segments,this.length=e.length,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.unscaledWidth=e.unscaledWidth,this.unscaledHeight=e.unscaledHeight}clone(){const e=new a(this.view,this.cell,this.style);for(let t=0;t{"use strict";n.d(t,{A:()=>s});var i=n(8597),r=n(1080);const s=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.view=e,this.oldValidateCellState=e.validateCellState,this.oldBounds=e.getGraphBounds(),this.oldStates=e.getStates(),this.oldScale=e.getScale(),this.oldDoRedrawShape=e.graph.cellRenderer.doRedrawShape,null!=o&&(e.graph.cellRenderer.doRedrawShape=t=>{const n=null===t||void 0===t?void 0:t.shape,i=n.paint;n.paint=e=>{const n=o(t);null!=n&&e.setLink(n),i.apply(this,[e]),null!=n&&e.setLink(null)},this.oldDoRedrawShape.apply(e.graph.cellRenderer,[t]),n.paint=i}),e.validateCellState=(t,n)=>null==t||null==s||s(t)?this.oldDoRedrawShape.apply(e,[t,n]):null,e.setStates(new r.A),e.setScale(t),e.resetValidationState();let a=null;for(const i of n){const t=e.getBoundingBox(e.validateCellState(e.validateCell(i)));null==a?a=t:a.add(t)}e.setGraphBounds(a||new i.A)}destroy(){const e=this.view;e.setScale(this.oldScale),e.setStates(this.oldStates),e.setGraphBounds(this.oldBounds),e.validateCellState=this.oldValidateCellState,e.graph.cellRenderer.doRedrawShape=this.oldDoRedrawShape}}},919:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.consumed=!1,this.name=e,this.properties={};for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{"use strict";n.d(t,{A:()=>r});var i=n(919);const r=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.eventListeners=[],this.eventsEnabled=!0,this.eventSource=null,this.eventSource=e}isEventsEnabled(){return this.eventsEnabled}setEventsEnabled(e){this.eventsEnabled=e}getEventSource(){return this.eventSource}setEventSource(e){this.eventSource=e}addListener(e,t){this.eventListeners.push({name:e,funct:t})}removeListener(e){let t=0;for(;t1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEventsEnabled()){e||(e=new i.A("")),t||(t=this.getEventSource()),t||(t=this);for(const n of this.eventListeners)null!==n.name&&n.name!==e.getName()||n.funct.apply(this,[t,e])}}}},1483:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(4070),r=n(1458),s=n(2149);let o=!1;try{document.addEventListener("test",(()=>{}),Object.defineProperty&&Object.defineProperty({},"passive",{get:()=>{o=!0}}))}catch(c){}class a{static addListener(e,t,n){e.addEventListener(t,n,!!o&&{passive:!1}),e.mxListenerList||(e.mxListenerList=[]);const i={name:t,f:n};e.mxListenerList.push(i)}static removeListener(e,t,n){if(e.removeEventListener(t,n,!1),e.mxListenerList){const t=e.mxListenerList.length;for(let i=0;i0;){const n=t[0];a.removeListener(e,n.name,n.f)}}static addGestureListeners(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t&&a.addListener(e,r.A.IS_POINTER?"pointerdown":"mousedown",t),n&&a.addListener(e,r.A.IS_POINTER?"pointermove":"mousemove",n),i&&a.addListener(e,r.A.IS_POINTER?"pointerup":"mouseup",i),!r.A.IS_POINTER&&r.A.IS_TOUCH&&(t&&a.addListener(e,"touchstart",t),n&&a.addListener(e,"touchmove",n),i&&a.addListener(e,"touchend",i))}static removeGestureListeners(e,t,n,i){t&&a.removeListener(e,r.A.IS_POINTER?"pointerdown":"mousedown",t),n&&a.removeListener(e,r.A.IS_POINTER?"pointermove":"mousemove",n),i&&a.removeListener(e,r.A.IS_POINTER?"pointerup":"mouseup",i),!r.A.IS_POINTER&&r.A.IS_TOUCH&&(t&&a.removeListener(e,"touchstart",t),n&&a.removeListener(e,"touchmove",n),i&&a.removeListener(e,"touchend",i))}static redirectMouseEvents(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;const h=e=>"function"===typeof n?n(e):n;a.addGestureListeners(e,(e=>{r?r(e):(0,s.fm)(e)||t.fireMouseEvent(a.MOUSE_DOWN,new i.A(e,h(e)))}),(e=>{o?o(e):(0,s.fm)(e)||t.fireMouseEvent(a.MOUSE_MOVE,new i.A(e,h(e)))}),(e=>{l?l(e):(0,s.fm)(e)||t.fireMouseEvent(a.MOUSE_UP,new i.A(e,h(e)))})),a.addListener(e,"dblclick",(e=>{if(c)c(e);else if(!(0,s.fm)(e)){const n=h(e);t.dblClick(e,null===n||void 0===n?void 0:n.cell)}}))}static release(e){try{a.removeAllListeners(e);const t=e.childNodes;if(void 0!==t){const e=t.length;for(let n=0;n{t.ctrlKey&&t.preventDefault(),(Math.abs(t.deltaX)>.5||Math.abs(t.deltaY)>.5)&&e(t,0==t.deltaY?-t.deltaX>0:-t.deltaY>0)};if(t=null!=t?t:window,r.A.IS_SF&&!r.A.IS_TOUCH){let n=1;a.addListener(t,"gesturestart",(e=>{a.consume(e),n=1})),a.addListener(t,"gesturechange",(t=>{if(a.consume(t),"number"===typeof t.scale){const i=n-t.scale;Math.abs(i)>.2&&(e(t,i<0,!0),n=t.scale)}})),a.addListener(t,"gestureend",(e=>{a.consume(e)}))}else{let n=[],i=0,r=0;a.addGestureListeners(t,(e=>{(0,s.Er)(e)||null==e.pointerId||n.push(e)}),(t=>{if(!(0,s.Er)(t)&&2==n.length){for(let e=0;ea.PINCH_THRESHOLD||c>a.PINCH_THRESHOLD){const t=n[0].clientX+(n[1].clientX-n[0].clientX)/2,a=n[0].clientY+(n[1].clientY-n[0].clientY)/2;e(n[0],l>c?s>i:o>r,!0,t,a),i=s,r=o}}}),(e=>{n=[],i=0,r=0}))}a.addListener(t,"wheel",n)}}static disableContextMenu(e){a.addListener(e,"contextmenu",(e=>(e.preventDefault&&e.preventDefault(),!1)))}static consume(e){let t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.preventDefault?(t&&e.stopPropagation(),e.preventDefault()):t&&(e.cancelBubble=!0)),e.isConsumed=!0,e.preventDefault||(e.returnValue=!1)}}a.LABEL_HANDLE=-1,a.ROTATION_HANDLE=-2,a.CUSTOM_HANDLE=-100,a.VIRTUAL_HANDLE=-1e5,a.MOUSE_DOWN="mouseDown",a.MOUSE_MOVE="mouseMove",a.MOUSE_UP="mouseUp",a.ACTIVATE="activate",a.RESIZE_START="resizeStart",a.RESIZE="resize",a.RESIZE_END="resizeEnd",a.MOVE_START="moveStart",a.MOVE="move",a.MOVE_END="moveEnd",a.PAN_START="panStart",a.PAN="pan",a.PAN_END="panEnd",a.MINIMIZE="minimize",a.NORMALIZE="normalize",a.MAXIMIZE="maximize",a.HIDE="hide",a.SHOW="show",a.CLOSE="close",a.DESTROY="destroy",a.REFRESH="refresh",a.SIZE="size",a.SELECT="select",a.FIRED="fired",a.FIRE_MOUSE_EVENT="fireMouseEvent",a.GESTURE="gesture",a.TAP_AND_HOLD="tapAndHold",a.GET="get",a.RECEIVE="receive",a.CONNECT="connect",a.DISCONNECT="disconnect",a.SUSPEND="suspend",a.RESUME="resume",a.MARK="mark",a.ROOT="root",a.POST="post",a.OPEN="open",a.SAVE="save",a.BEFORE_ADD_VERTEX="beforeAddVertex",a.ADD_VERTEX="addVertex",a.AFTER_ADD_VERTEX="afterAddVertex",a.DONE="done",a.EXECUTE="execute",a.EXECUTED="executed",a.BEGIN_UPDATE="beginUpdate",a.START_EDIT="startEdit",a.END_UPDATE="endUpdate",a.END_EDIT="endEdit",a.BEFORE_UNDO="beforeUndo",a.UNDO="undo",a.REDO="redo",a.CHANGE="change",a.NOTIFY="notify",a.LAYOUT_CELLS="layoutCells",a.CLICK="click",a.SCALE="scale",a.TRANSLATE="translate",a.SCALE_AND_TRANSLATE="scaleAndTranslate",a.UP="up",a.DOWN="down",a.ADD="add",a.REMOVE="remove",a.CLEAR="clear",a.ADD_CELLS="addCells",a.CELLS_ADDED="cellsAdded",a.MOVE_CELLS="moveCells",a.CELLS_MOVED="cellsMoved",a.RESIZE_CELLS="resizeCells",a.CELLS_RESIZED="cellsResized",a.TOGGLE_CELLS="toggleCells",a.CELLS_TOGGLED="cellsToggled",a.ORDER_CELLS="orderCells",a.CELLS_ORDERED="cellsOrdered",a.REMOVE_CELLS="removeCells",a.CELLS_REMOVED="cellsRemoved",a.GROUP_CELLS="groupCells",a.UNGROUP_CELLS="ungroupCells",a.REMOVE_CELLS_FROM_PARENT="removeCellsFromParent",a.FOLD_CELLS="foldCells",a.CELLS_FOLDED="cellsFolded",a.ALIGN_CELLS="alignCells",a.LABEL_CHANGED="labelChanged",a.CONNECT_CELL="connectCell",a.CELL_CONNECTED="cellConnected",a.SPLIT_EDGE="splitEdge",a.FLIP_EDGE="flipEdge",a.START_EDITING="startEditing",a.EDITING_STARTED="editingStarted",a.EDITING_STOPPED="editingStopped",a.ADD_OVERLAY="addOverlay",a.REMOVE_OVERLAY="removeOverlay",a.UPDATE_CELL_SIZE="updateCellSize",a.ESCAPE="escape",a.DOUBLE_CLICK="doubleClick",a.START="start",a.RESET="reset",a.PINCH_THRESHOLD=10;const l=a},4070:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(2149),r=n(9933);const s=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.consumed=!1,this.evt=e,this.state=t,this.sourceState=t,this.graphX=0,this.graphY=0}getEvent(){return this.evt}getSource(){return(0,i.el)(this.evt)}isSource(e){return!!e&&(0,r.oH)(e.node,this.getSource())}getX(){return(0,i.El)(this.getEvent())}getY(){return(0,i.xJ)(this.getEvent())}getGraphX(){return this.graphX}getGraphY(){return this.graphY}getState(){return this.state}getCell(){const e=this.getState();return e?e.cell:null}isPopupTrigger(){return(0,i.$Y)(this.getEvent())}isConsumed(){return this.consumed}consume(e){(e=e||(window.TouchEvent&&this.evt instanceof TouchEvent||(0,i.Er)(this.evt)))&&this.evt.preventDefault&&this.evt.preventDefault(),this.consumed=!0}}},4854:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(4886),r=n(8597),s=n(5553),o=n(678),a=n(7222);class l extends r.A{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0),this.TRANSLATE_CONTROL_POINTS=!0,this.alternateBounds=null,this.sourcePoint=null,this.targetPoint=null,this.points=null,this.offset=null,this.relative=!1}setRelative(e){this.relative=e}swap(){if(this.alternateBounds){const e=new r.A(this.x,this.y,this.width,this.height);this.x=this.alternateBounds.x,this.y=this.alternateBounds.y,this.width=this.alternateBounds.width,this.height=this.alternateBounds.height,this.alternateBounds=e}}getTerminalPoint(e){return e?this.sourcePoint:this.targetPoint}setTerminalPoint(e,t){return t?this.sourcePoint=e:this.targetPoint=e,e}rotate(e,t){const n=(0,s.eh)(e),r=Math.cos(n),o=Math.sin(n);if(!this.relative){const e=new i.A(this.getCenterX(),this.getCenterY()),n=(0,s.Iq)(e,r,o,t);this.x=Math.round(n.x-this.width/2),this.y=Math.round(n.y-this.height/2)}if(this.sourcePoint){const e=(0,s.Iq)(this.sourcePoint,r,o,t);this.sourcePoint.x=Math.round(e.x),this.sourcePoint.y=Math.round(e.y)}if(this.targetPoint){const e=(0,s.Iq)(this.targetPoint,r,o,t);this.targetPoint.x=Math.round(e.x),this.targetPoint.y=Math.round(e.y)}if(this.points)for(let i=0;i{"use strict";n.d(t,{A:()=>r});class i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._x=0,this._y=0,this.x=e,this.y=t}get x(){return this._x}set x(e){if(Number.isNaN(e))throw new Error("Invalid x supplied.");this._x=e}get y(){return this._y}set y(e){if(Number.isNaN(e))throw new Error("Invalid y supplied.");this._y=e}equals(e){return!!e&&(e.x===this.x&&e.y===this.y)}clone(){return new i(this.x,this.y)}}const r=i},8597:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(4886);class r extends i.A{constructor(){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),this._width=0,this._height=0,this.width=e,this.height=t}get width(){return this._width}set width(e){if(Number.isNaN(e))throw new Error("Invalid width supplied.");this._width=e}get height(){return this._height}set height(e){if(Number.isNaN(e))throw new Error("Invalid height supplied.");this._height=e}setRect(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}getCenterX(){return this.x+this.width/2}getCenterY(){return this.y+this.height/2}add(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),i=Math.max(this.x+this.width,e.x+e.width),r=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.y=n,this.width=i-t,this.height=r-n}intersect(e){const t=this.x+this.width,n=e.x+e.width,i=this.y+this.height,r=e.y+e.height;this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.width=Math.min(t,n)-this.x,this.height=Math.min(i,r)-this.y}grow(e){this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e}getPoint(){return new i.A(this.x,this.y)}rotate90(){const e=(this.width-this.height)/2;this.x+=e,this.y-=e;const t=this.width;this.width=this.height,this.height=t}equals(e){return!!e&&(e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height)}clone(){return new r(this.x,this.y,this.width,this.height)}}r.fromRectangle=e=>new r(e.x,e.y,e.width,e.height);const s=r},4829:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(8597),r=n(1643),s=n(5553),o=n(4027),a=n(4886),l=n(3552),c=n(1483),h=n(1458);const u=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.preserveImageAspect=!1,this.overlay=null,this.indicator=null,this.indicatorShape=null,this.opacity=100,this.isDashed=!1,this.fill=o.x3,this.gradient=o.x3,this.gradientDirection=o.M8.EAST,this.fillOpacity=100,this.strokeOpacity=100,this.stroke=o.x3,this.strokeWidth=1,this.spacing=0,this.startSize=1,this.endSize=1,this.startArrow=o.x3,this.endArrow=o.x3,this.direction=o.M8.EAST,this.flipH=!1,this.flipV=!1,this.isShadow=!1,this.isRounded=!1,this.rotation=0,this.cursor="",this.verticalTextRotation=0,this.oldGradients={},this.glass=!1,this.dialect=null,this.scale=1,this.antiAlias=!0,this.minSvgStrokeWidth=1,this.bounds=null,this.points=[],this.state=null,this.style=null,this.boundingBox=null,this.stencil=null,this.svgStrokeTolerance=8,this.pointerEvents=!0,this.originalPointerEvents=null,this.svgPointerEvents="all",this.shapePointerEvents=!1,this.stencilPointerEvents=!1,this.outline=!1,this.visible=!0,this.useSvgBoundingBox=!0,this.image=null,this.imageSrc=null,this.indicatorColor=o.x3,this.indicatorStrokeColor=o.x3,this.indicatorGradientColor=o.x3,this.indicatorDirection=o.M8.EAST,this.indicatorImageSrc=null,e&&(this.stencil=e),this.node=this.create()}init(e){this.node.parentNode||e.appendChild(this.node)}initStyles(){this.strokeWidth=1,this.rotation=0,this.opacity=100,this.fillOpacity=100,this.strokeOpacity=100,this.flipH=!1,this.flipV=!1}isHtmlAllowed(){return!1}getSvgScreenOffset(){var e;const t=this.stencil&&"inherit"!==this.stencil.strokeWidthValue?Number(this.stencil.strokeWidthValue):null!==(e=this.strokeWidth)&&void 0!==e?e:0;return 1===(0,s.zi)(Math.max(1,Math.round(t*this.scale)),2)?.5:0}create(){return document.createElementNS("http://www.w3.org/2000/svg","g")}reconfigure(){this.redraw()}redraw(){this.updateBoundsFromPoints(),this.visible&&this.checkBounds()?(this.node.style.visibility="visible",this.clear(),this.redrawShape(),this.updateBoundingBox()):(this.node.style.visibility="hidden",this.boundingBox=null)}clear(){for(;this.node.lastChild;)this.node.removeChild(this.node.lastChild)}updateBoundsFromPoints(){const e=this.points;if(e.length>0&&e[0]){this.bounds=new i.A(Math.round(e[0].x),Math.round(e[0].y),1,1);for(const t of e)t&&this.bounds.add(new i.A(Math.round(t.x),Math.round(t.y),1,1))}}getLabelBounds(e){var t,n;const i=null!==(t=null===(n=this.style)||void 0===n?void 0:n.direction)&&void 0!==t?t:o.M8.EAST;let r=e.clone();i!==o.M8.SOUTH&&i!==o.M8.NORTH&&this.state&&this.state.text&&this.state.text.isPaintBoundsInverted()&&(r=r.clone(),[r.width,r.height]=[r.height,r.width]);let a=this.getLabelMargins(r);if(a){var l,c,h,u;a=a.clone();let t=null!==(l=null===(c=this.style)||void 0===c?void 0:c.flipH)&&void 0!==l&&l,n=null!==(h=null===(u=this.style)||void 0===u?void 0:u.flipV)&&void 0!==h&&h;if(this.state&&this.state.text&&this.state.text.isPaintBoundsInverted()){const e=a.x;a.x=a.height,a.height=a.width,a.width=a.y,a.y=e,[t,n]=[n,t]}return(0,s.Aw)(e,a,this.style,t,n)}return e}getLabelMargins(e){return null}checkBounds(){return!Number.isNaN(this.scale)&&Number.isFinite(this.scale)&&this.scale>0&&this.bounds&&!Number.isNaN(this.bounds.x)&&!Number.isNaN(this.bounds.y)&&!Number.isNaN(this.bounds.width)&&!Number.isNaN(this.bounds.height)&&this.bounds.width>0&&this.bounds.height>0}redrawShape(){const e=this.createCanvas();e&&(e.pointerEvents=this.pointerEvents,this.beforePaint(e),this.paint(e),this.afterPaint(e),this.node!==e.root&&e.root&&this.node.insertAdjacentHTML("beforeend",e.root.outerHTML),this.destroyCanvas(e))}createCanvas(){const e=this.createSvgCanvas();return e&&this.outline&&(e.setStrokeWidth(this.strokeWidth),e.setStrokeColor(this.stroke),this.isDashed&&e.setDashed(this.isDashed),e.setStrokeWidth=()=>{},e.setStrokeColor=()=>{},e.setFillColor=()=>{},e.setGradient=()=>{},e.setDashed=()=>{},e.text=()=>{}),e}createSvgCanvas(){if(!this.node)return null;const e=new l.A(this.node,!1);e.strokeTolerance=this.pointerEvents?this.svgStrokeTolerance:0,e.pointerEventsValue=this.svgPointerEvents;const t=this.getSvgScreenOffset();return 0!==t?this.node.setAttribute("transform","translate(".concat(t,",").concat(t,")")):this.node.removeAttribute("transform"),e.minStrokeWidth=this.minSvgStrokeWidth,this.antiAlias||(e.format=e=>Math.round(e)),e}destroyCanvas(e){if(e instanceof l.A){for(const t in e.gradients){const n=e.gradients[t];n&&(n.mxRefCount=(n.mxRefCount||0)+1)}this.releaseSvgGradients(this.oldGradients),this.oldGradients=e.gradients}}beforePaint(e){}afterPaint(e){}paint(e){let t=!1;if(e&&this.outline){const{stroke:n}=e;e.stroke=function(){t=!0;for(var i=arguments.length,r=new Array(i),s=0;s0){const t=[];for(let e=0;e2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];if(t.length>0){const c=t[t.length-1];if(r&&n){const e=(t=t.slice())[0],n=new a.A(c.x+(e.x-c.x)/2,c.y+(e.y-c.y)/2);t.splice(0,0,n)}let h=t[0],u=1;for(l?e.moveTo(h.x,h.y):e.lineTo(h.x,h.y);u<(r?t.length:t.length-1);){let r=t[(0,s.zi)(u,t.length)],l=h.x-r.x,c=h.y-r.y;if(n&&(0!==l||0!==c)&&o.indexOf(u-1)<0){let n=Math.sqrt(l*l+c*c);const o=l*Math.min(i,n/2)/n,h=c*Math.min(i,n/2)/n,d=r.x+o,p=r.y+h;e.lineTo(d,p);let g=t[(0,s.zi)(u+1,t.length)];for(;u0&&t.height>0)return this.boundingBox=new i.A(t.x,t.y,t.width,t.height),void this.boundingBox.grow((null!==(e=this.strokeWidth)&&void 0!==e?e:0)*this.scale/2)}catch(t){}if(this.bounds){let e=this.createBoundingBox();if(e){this.augmentBoundingBox(e);const t=this.getShapeRotation();0!==t&&(e=(0,s.UX)(e,t))}this.boundingBox=e}}createBoundingBox(){if(!this.bounds)return null;const e=this.bounds.clone();return(this.stencil&&(this.direction===o.M8.NORTH||this.direction===o.M8.SOUTH)||this.isPaintBoundsInverted())&&e.rotate90(),e}augmentBoundingBox(e){var t;this.isShadow&&(e.width+=Math.ceil(o.Mm*this.scale),e.height+=Math.ceil(o.FK*this.scale)),e.grow((null!==(t=this.strokeWidth)&&void 0!==t?t:0)*this.scale/2)}isPaintBoundsInverted(){return!this.stencil&&(this.direction===o.M8.NORTH||this.direction===o.M8.SOUTH)}getRotation(){var e;return null!==(e=this.rotation)&&void 0!==e?e:0}getTextRotation(){var e,t;let n=this.getRotation();return null===(e=null===(t=this.style)||void 0===t?void 0:t.horizontal)||void 0===e||e||(n+=this.verticalTextRotation||-90),n}getShapeRotation(){let e=this.getRotation();return this.direction===o.M8.NORTH?e+=270:this.direction===o.M8.WEST?e+=180:this.direction===o.M8.SOUTH&&(e+=90),e}createTransparentSvgRectangle(e,t,n,i){const r=document.createElementNS("http://www.w3.org/2000/svg","rect");return r.setAttribute("x",String(e)),r.setAttribute("y",String(t)),r.setAttribute("width",String(n)),r.setAttribute("height",String(i)),r.setAttribute("fill",o.x3),r.setAttribute("stroke",o.x3),r.setAttribute("pointer-events","all"),r}redrawHtmlShape(){}setTransparentBackgroundImage(e){e.style.backgroundImage="url('".concat(h.A.imageBasePath,"/transparent.gif')")}releaseSvgGradients(e){for(const t in e){const n=e[t];n&&(n.mxRefCount=(n.mxRefCount||0)-1,0===n.mxRefCount&&n.parentNode&&n.parentNode.removeChild(n))}}destroy(){c.A.release(this.node),this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node.innerHTML="",this.releaseSvgGradients(this.oldGradients),this.oldGradients={}}}},8977:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4829),r=n(4027);class s extends i.A{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(),this.points=e,this.stroke=t,this.strokeWidth=n}getRotation(){return 0}getShapeRotation(){return 0}isPaintBoundsInverted(){return!1}paintEdgeShape(e,t){const n=e.pointerEventsValue;e.pointerEventsValue="stroke",this.style&&this.style.curved?this.paintCurvedLine(e,t):this.paintLine(e,t,this.isRounded),e.pointerEventsValue=n}paintLine(e,t,n){var i,s;const o=null!==(i=null===(s=this.style)||void 0===s?void 0:s.arcSize)&&void 0!==i?i:r.xU;e.begin(),this.addPoints(e,t,n,o,!1),e.stroke()}paintCurvedLine(e,t){e.begin();const n=t[0],i=t.length;e.moveTo(n.x,n.y);for(let o=1;o{"use strict";n.d(t,{A:()=>o});var i=n(7203),r=n(4027);class s extends i.A{constructor(e,t){super(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FFFFFF",arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#000000",arguments.length>4&&void 0!==arguments[4]?arguments[4]:1),this.overlay=null,this.preserveImageAspect=!0,this.imageSrc=t,this.shadow=!1}getSvgScreenOffset(){return 0}apply(e){super.apply(e),this.fill=r.x3,this.stroke=r.x3,this.gradient=r.x3,this.style&&null!=this.style.imageAspect&&(this.preserveImageAspect=this.style.imageAspect)}isHtmlAllowed(){return!this.preserveImageAspect}createHtml(){const e=document.createElement("div");return e.style.position="absolute",e}isRoundable(e,t,n,i,r){return!1}paintVertexShape(e,t,n,i,s){if(this.imageSrc){var o,a,l,c;const h=null!==(o=null===(a=this.style)||void 0===a?void 0:a.imageBackground)&&void 0!==o?o:r.x3,u=null!==(l=null===(c=this.style)||void 0===c?void 0:c.imageBorder)&&void 0!==l?l:r.x3;h!==r.x3&&(e.setFillColor(h),e.setStrokeColor(u),e.rect(t,n,i,s),e.fillAndStroke()),e.image(t,n,i,s,this.imageSrc,this.preserveImageAspect,!1,!1),u!==r.x3&&(e.setShadow(!1),e.setStrokeColor(u),e.rect(t,n,i,s),e.stroke())}else this.paintBackground(e,t,n,i,s)}}const o=s},7203:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4027),r=n(4829);class s extends r.A{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(),this.bounds=e,this.fill=t,this.stroke=n,this.strokeWidth=i}isHtmlAllowed(){let e=!0;return this.style&&null!=this.style.pointerEvents&&(e=this.style.pointerEvents),!this.isRounded&&!this.glass&&0===this.rotation&&(e||this.fill!==i.x3)}paintBackground(e,t,n,r,s){let o=!0;if(this.style&&null!=this.style.pointerEvents&&(o=this.style.pointerEvents),o||this.fill!==i.x3||this.stroke!==i.x3){if(o||this.fill!==i.x3||(e.pointerEvents=!1),this.isRounded){var a,l;let o=0;if(null!==(a=null===(l=this.style)||void 0===l?void 0:l.absoluteArcSize)&&void 0!==a&&a){var c,h;o=Math.min(r/2,Math.min(s/2,(null!==(c=null===(h=this.style)||void 0===h?void 0:h.arcSize)&&void 0!==c?c:i.xU)/2))}else{var u,d;const e=(null!==(u=null===(d=this.style)||void 0===d?void 0:d.arcSize)&&void 0!==u?u:100*i.fQ)/100;o=Math.min(r*e,s*e)}e.roundrect(t,n,r,s,o,o)}else e.rect(t,n,r,s);e.fillAndStroke()}}isRoundable(e,t,n,i,r){return!0}paintForeground(e,t,n,r,s){this.glass&&!this.outline&&this.fill!==i.x3&&this.paintGlassEffect(e,t,n,r,s,this.getArcSize(r+this.strokeWidth,s+this.strokeWidth))}}const o=s},1059:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _other_ConnectionConstraint__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9487),_Rectangle__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8597),_Shape__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4829),_util_Translations__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6064),_util_Utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1643),_util_Constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4027),_StencilShapeRegistry__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4475),_util_domUtils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9933),_Point__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4886),_util_StringUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2744);class StencilShape extends _Shape__WEBPACK_IMPORTED_MODULE_2__.A{constructor(e){super(),this.constraints=[],this.aspect="auto",this.w0=100,this.h0=100,this.bgNode=null,this.fgNode=null,this.strokeWidthValue=null,this.desc=e,this.parseDescription(),this.parseConstraints()}parseDescription(){this.fgNode=this.desc.getElementsByTagName("foreground")[0],this.bgNode=this.desc.getElementsByTagName("background")[0],this.w0=Number(this.desc.getAttribute("w")||100),this.h0=Number(this.desc.getAttribute("h")||100);const e=this.desc.getAttribute("aspect");this.aspect=null!==e&&void 0!==e?e:"variable";const t=this.desc.getAttribute("strokewidth");this.strokeWidthValue=(0,_util_Utils__WEBPACK_IMPORTED_MODULE_4__.Vq)(t)?t:"1"}parseConstraints(){const e=this.desc.getElementsByTagName("connections")[0];if(e){const t=(0,_util_domUtils__WEBPACK_IMPORTED_MODULE_7__.iQ)(e);if(t.length>0){this.constraints=[];for(let e=0;e0&&s>0){let n=o.firstChild;for(;n;)n.nodeType===_util_Constants__WEBPACK_IMPORTED_MODULE_5__.Js.ELEMENT&&this.drawNode(e,t,n,a,l,c),n=n.nextSibling}}computeAspect(){let e=arguments.length>3?arguments[3]:void 0,t=arguments.length>4?arguments[4]:void 0,n=arguments.length>5?arguments[5]:void 0,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,s=e/this.w0,o=t/this.h0;const a=n===_util_Constants__WEBPACK_IMPORTED_MODULE_5__.M8.NORTH||n===_util_Constants__WEBPACK_IMPORTED_MODULE_5__.M8.SOUTH;if(a){o=e/this.h0,s=t/this.w0;const n=(e-t)/2;i+=n,r-=n}return"fixed"===this.aspect&&(o=Math.min(s,o),s=o,a?(i+=(t-this.w0*s)/2,r+=(e-this.h0*o)/2):(i+=(e-this.w0*s)/2,r+=(t-this.h0*o)/2)),new _Rectangle__WEBPACK_IMPORTED_MODULE_1__.A(i,r,s,o)}drawNode(e,t,n,i,r,s){const o=n.nodeName,a=i.x,l=i.y,c=i.width,h=i.height,u=Math.min(c,h);if("save"===o)e.save();else if("restore"===o)e.restore();else if(s){if("path"===o){e.begin();let o=!0;if("1"==n.getAttribute("rounded")){o=!1;const t=Number(n.getAttribute("arcSize"));let i=0;const r=[];let s=n.firstChild;for(;null!=s;){if(s.nodeType===_util_Constants__WEBPACK_IMPORTED_MODULE_5__.Js.ELEMENT){const e=s.nodeName;if("move"!==e&&"line"!==e){o=!0;break}"move"!==e&&0!==r.length||r.push([]),r[r.length-1].push(new _Point__WEBPACK_IMPORTED_MODULE_8__.A(a+Number(s.getAttribute("x"))*c,l+Number(s.getAttribute("y"))*h)),i++}s=s.nextSibling}if(!o&&i>0)for(let n=0;n0&&i.push(Number(n[e])*u);t=i.join(" "),e.setDashPattern(t)}}else"strokecolor"===o?e.setStrokeColor(n.getAttribute("color")):"linecap"===o?e.setLineCap(n.getAttribute("cap")):"linejoin"===o?e.setLineJoin(n.getAttribute("join")):"miterlimit"===o?e.setMiterLimit(Number(n.getAttribute("limit"))):"fillcolor"===o?e.setFillColor(n.getAttribute("color")):"alpha"===o||"fillalpha"===o||"strokealpha"===o?e.setAlpha(Number(n.getAttribute("alpha"))):"fontcolor"===o?e.setFontColor(n.getAttribute("color")):"fontstyle"===o?e.setFontStyle(Number(n.getAttribute("style"))):"fontfamily"===o?e.setFontFamily(n.getAttribute("family")):"fontsize"===o&&e.setFontSize(Number(n.getAttribute("size"))*u);!r||"fillstroke"!==o&&"fill"!==o&&"stroke"!==o||(r=!1,e.setShadow(!1))}}}StencilShape.defaultLocalized=!1,StencilShape.allowEval=!1;var __WEBPACK_DEFAULT_EXPORT__=StencilShape},4475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class i{static addStencil(e,t){i.stencils[e]=t}static getStencil(e){return i.stencils[e]}}i.stencils={};const r=i},9487:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=class{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;this.perimeter=!0,this.name=null,this.dx=0,this.dy=0,this.point=e,this.perimeter=t,this.name=n,this.dx=i,this.dy=r}}},3864:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(8597),r=n(516),s=n(8578),o=n(1483),a=n(1458),l=n(9738),c=n(4027),h=n(4886),u=n(2149);const d=class{constructor(e,t){this.dragOffset=null,this.dragElement=null,this.previewElement=null,this.previewOffset=null,this.enabled=!0,this.currentGraph=null,this.currentDropTarget=null,this.currentPoint=null,this.currentGuide=null,this.currentHighlight=null,this.autoscroll=!0,this.guidesEnabled=!0,this.gridEnabled=!0,this.highlightDropTargets=!0,this.dragElementZIndex=100,this.dragElementOpacity=70,this.checkEventSource=!0,this.mouseMoveHandler=null,this.mouseUpHandler=null,this.eventSource=null,this.element=e,this.dropHandler=t,o.A.addGestureListeners(e,(e=>{this.mouseDown(e)})),o.A.addListener(e,"dragstart",(e=>{o.A.consume(e)})),this.eventConsumer=(e,t)=>{const n=t.getProperty("eventName"),i=t.getProperty("event");n!==o.A.MOUSE_DOWN&&i.consume()}}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}isGuidesEnabled(){return this.guidesEnabled}setGuidesEnabled(e){this.guidesEnabled=e}isGridEnabled(){return this.gridEnabled}setGridEnabled(e){this.gridEnabled=e}getGraphForEvent(e){return null}getDropTarget(e,t,n,i){return e.getCellAt(t,n)}createDragElement(e){return this.element.cloneNode(!0)}createPreviewElement(e){return null}isActive(){return!!this.mouseMoveHandler}reset(){this.currentGraph&&(this.dragExit(this.currentGraph),this.currentGraph=null),this.removeDragElement(),this.removeListeners(),this.stopDrag()}mouseDown(e){this.enabled&&!(0,u.fm)(e)&&null==this.mouseMoveHandler&&(this.startDrag(e),this.mouseMoveHandler=this.mouseMove.bind(this),this.mouseUpHandler=this.mouseUp.bind(this),o.A.addGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),a.A.IS_TOUCH&&!(0,u.Er)(e)&&(this.eventSource=(0,u.el)(e),this.eventSource&&o.A.addGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler)))}startDrag(e){this.dragElement=this.createDragElement(e),this.dragElement.style.position="absolute",this.dragElement.style.zIndex=String(this.dragElementZIndex),(0,s.Ko)(this.dragElement,this.dragElementOpacity),this.checkEventSource&&a.A.IS_SVG&&(this.dragElement.style.pointerEvents="none")}stopDrag(){this.removeDragElement()}removeDragElement(){this.dragElement&&(this.dragElement.parentNode&&this.dragElement.parentNode.removeChild(this.dragElement),this.dragElement=null)}getElementForEvent(e){return(0,u.kH)(e)||(0,u.ew)(e)?document.elementFromPoint((0,u.El)(e),(0,u.xJ)(e)):(0,u.el)(e)}graphContainsEvent(e,t){const n=(0,u.El)(t),i=(0,u.xJ)(t),r=(0,s.A3)(e.container),o=(0,s.ID)();let a=this.getElementForEvent(t);if(this.checkEventSource)for(;a&&a!==e.container;)a=a.parentNode;return!!a&&n>=r.x-o.x&&i>=r.y-o.y&&n<=r.x-o.x+e.container.offsetWidth&&i<=r.y-o.y+e.container.offsetHeight}mouseMove(e){let t=this.getGraphForEvent(e);if(t&&!this.graphContainsEvent(t,e)&&(t=null),t!==this.currentGraph&&(this.currentGraph&&this.dragExit(this.currentGraph,e),this.currentGraph=t,this.currentGraph&&this.dragEnter(this.currentGraph,e)),this.currentGraph&&this.dragOver(this.currentGraph,e),!this.dragElement||this.previewElement&&"visible"===this.previewElement.style.visibility)this.dragElement&&(this.dragElement.style.visibility="hidden");else{let t=(0,u.El)(e),n=(0,u.xJ)(e);null==this.dragElement.parentNode&&document.body.appendChild(this.dragElement),this.dragElement.style.visibility="visible",this.dragOffset&&(t+=this.dragOffset.x,n+=this.dragOffset.y);const i=(0,s.jb)(document);this.dragElement.style.left="".concat(t+i.x,"px"),this.dragElement.style.top="".concat(n+i.y,"px")}o.A.consume(e)}mouseUp(e){if(this.currentGraph){if(this.currentPoint&&(!this.previewElement||"hidden"!==this.previewElement.style.visibility)){const{scale:t}=this.currentGraph.view,n=this.currentGraph.view.translate,i=this.currentPoint.x/t-n.x,r=this.currentPoint.y/t-n.y;this.drop(this.currentGraph,e,this.currentDropTarget,i,r)}this.dragExit(this.currentGraph),this.currentGraph=null}this.stopDrag(),this.removeListeners(),o.A.consume(e)}removeListeners(){this.eventSource&&(o.A.removeGestureListeners(this.eventSource,null,this.mouseMoveHandler,this.mouseUpHandler),this.eventSource=null),o.A.removeGestureListeners(document,null,this.mouseMoveHandler,this.mouseUpHandler),this.mouseMoveHandler=null,this.mouseUpHandler=null}dragEnter(e,t){if(e.isMouseDown=!0,e.isMouseTrigger=(0,u.Er)(t),this.previewElement=this.createPreviewElement(e),this.previewElement&&this.checkEventSource&&a.A.IS_SVG&&(this.previewElement.style.pointerEvents="none"),this.isGuidesEnabled()&&this.previewElement){const t=e.getPlugin("SelectionHandler");this.currentGuide=new l.A(e,null===t||void 0===t?void 0:t.getGuideStates())}this.highlightDropTargets&&(this.currentHighlight=new r.A(e,c.ag)),e.addListener(o.A.FIRE_MOUSE_EVENT,this.eventConsumer)}dragExit(e,t){this.currentDropTarget=null,this.currentPoint=null,e.isMouseDown=!1,e.removeListener(this.eventConsumer),this.previewElement&&(this.previewElement.parentNode&&this.previewElement.parentNode.removeChild(this.previewElement),this.previewElement=null),this.currentGuide&&(this.currentGuide.destroy(),this.currentGuide=null),this.currentHighlight&&(this.currentHighlight.destroy(),this.currentHighlight=null)}dragOver(e,t){const n=(0,s.A3)(e.container),r=(0,s.ID)(e.container);let o=(0,u.El)(t)-n.x+r.x-e.getPanDx(),a=(0,u.xJ)(t)-n.y+r.y-e.getPanDy();if(!e.isAutoScroll()||this.autoscroll&&!this.autoscroll||e.scrollPointToVisible(o,a,e.isAutoExtend()),this.currentHighlight&&e.isDropEnabled()&&(this.currentDropTarget=this.getDropTarget(e,o,a,t),this.currentDropTarget)){const t=e.getView().getState(this.currentDropTarget);this.currentHighlight.highlight(t)}if(this.previewElement){this.previewElement.parentNode||(e.container.appendChild(this.previewElement),this.previewElement.style.zIndex="3",this.previewElement.style.position="absolute");const n=this.isGridEnabled()&&e.isGridEnabledEvent(t);let r=!0;if(this.currentGuide&&this.currentGuide.isEnabledForEvent(t)){const e=parseInt(this.previewElement.style.width),t=parseInt(this.previewElement.style.height),s=new i.A(0,0,e,t);let l=new h.A(o,a);l=this.currentGuide.move(s,l,n,!0),r=!1,o=l.x,a=l.y}else if(n){const{scale:t}=e.view,n=e.view.translate,i=e.getGridSize()/2;o=(e.snap(o/t-n.x-i)+n.x)*t,a=(e.snap(a/t-n.y-i)+n.y)*t}this.currentGuide&&r&&this.currentGuide.hide(),this.previewOffset&&(o+=this.previewOffset.x,a+=this.previewOffset.y),this.previewElement.style.left="".concat(Math.round(o),"px"),this.previewElement.style.top="".concat(Math.round(a),"px"),this.previewElement.style.visibility="visible"}this.currentPoint=new h.A(o,a)}drop(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;this.dropHandler(e,t,n,i,r),"hidden"!==e.container.style.visibility&&e.container.focus()}}},9738:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4027),r=n(4886),s=n(8977);const o=class{constructor(e,t){this.states=[],this.horizontal=!0,this.vertical=!0,this.guideX=null,this.guideY=null,this.rounded=!1,this.tolerance=2,this.graph=e,this.setStates(t)}setStates(e){this.states=e}isEnabledForEvent(e){return!0}getGuideTolerance(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.graph.isGridEnabled()?this.graph.getGridSize()/2:this.tolerance}createGuideShape(){const e=new s.A([],i.JP,i.Mn);return e.isDashed=!0,e}isStateIgnored(e){return!1}move(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((this.horizontal||this.vertical)&&e){const{scale:s}=this.graph.getView(),o=this.getGuideTolerance(n)*s,a=e.clone();a.x+=t.x,a.y+=t.y;let l=!1,c=null,h=null,u=!1,d=null,p=null,g=o,f=o;const m=a.x,v=a.x+a.width,y=a.getCenterX(),b=a.y,w=a.y+a.height,E=a.getCenterY(),x=(n,r,s)=>{let o=!1;s&&Math.abs(n-y){let o=!1;s&&Math.abs(n-E)1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4?arguments[4]:void 0;const o=this.graph.view.scale;return(this.rounded||null!=t&&null==t.cell)&&(n=Math.round((e.x+n)/o)*o-e.x),(this.rounded||null!=i&&null==i.cell)&&(s=Math.round((e.y+s)/o)*o-e.y),new r.A(n,s)}getGuideColor(e,t){return i.JP}hide(){this.setVisible(!1)}setVisible(e){this.guideX&&(this.guideX.node.style.visibility=e?"visible":"hidden"),this.guideY&&(this.guideY.node.style.visibility=e?"visible":"hidden")}destroy(){this.guideX&&(this.guideX.destroy(),this.guideX=null),this.guideY&&(this.guideY.destroy(),this.guideY=null)}}},4703:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class i{static putValue(e,t){i.values[e]=t}static getValue(e){return i.values[e]}static getName(e){for(const t in i.values)if(i.values[t]===e)return t;return null}}i.values={};const r=i},6245:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var i=n(4027);class r{constructor(){this.styles=new Map,this.putDefaultVertexStyle(this.createDefaultVertexStyle()),this.putDefaultEdgeStyle(this.createDefaultEdgeStyle())}createDefaultVertexStyle(){const e={};return e.shape=i.IW.RECTANGLE,e.perimeter="rectanglePerimeter",e.verticalAlign=i.Ec.MIDDLE,e.align=i.Ec.CENTER,e.fillColor="#C3D9FF",e.strokeColor="#6482B9",e.fontColor="#774400",e}createDefaultEdgeStyle(){const e={};return e.shape=i.IW.CONNECTOR,e.endArrow=i._v.CLASSIC,e.verticalAlign=i.Ec.MIDDLE,e.align=i.Ec.CENTER,e.strokeColor="#6482B9",e.fontColor="#446299",e}putDefaultVertexStyle(e){this.putCellStyle("defaultVertex",e)}putDefaultEdgeStyle(e){this.putCellStyle("defaultEdge",e)}getDefaultVertexStyle(){return this.styles.get("defaultVertex")}getDefaultEdgeStyle(){return this.styles.get("defaultEdge")}putCellStyle(e,t){this.styles.set(e,t)}getCellStyle(e,t){let n;return n=e.baseStyleNames?e.baseStyleNames.reduce(((e,t)=>({...e,...this.styles.get(t)})),{...t}):{...t},n={...n,...e},"baseStyleNames"in n&&delete n.baseStyleNames,n}}},3929:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(919),r=n(4886),s=n(1483);const o=class{constructor(e,t){if(this.view=e,this.root=t,this.previous=t,this.isUp=null===t,!this.isUp){let e=this.view.currentRoot;for(;e;){if(e===t){this.isUp=!0;break}e=e.getParent()}}}execute(){const e=this.view.currentRoot;this.view.currentRoot=this.previous,this.previous=e;const t=this.view.graph.getTranslateForRoot(this.view.currentRoot);t&&(this.view.translate=new r.A(-t.x,-t.y)),this.isUp?(this.view.clear(this.view.currentRoot,!0,!0),this.view.validate(null)):this.view.refresh();const n=this.isUp?s.A.UP:s.A.DOWN;this.view.fireEvent(new i.A(n,{root:this.view.currentRoot,previous:this.previous})),this.isUp=!this.isUp}}},3440:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(1483),r=n(919);const s=class{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.changes=[],this.significant=!0,this.undone=!1,this.redone=!1,this.source=e,this.changes=[],this.significant=t}isEmpty(){return 0===this.changes.length}isSignificant(){return this.significant}add(e){this.changes.push(e)}notify(){}die(){}undo(){if(!this.undone){this.source.fireEvent(new r.A(i.A.START_EDIT));for(let e=this.changes.length-1;e>=0;e--){const t=this.changes[e];t.execute?t.execute():t.undo&&t.undo(),this.source.fireEvent(new r.A(i.A.EXECUTED,{change:t}))}this.undone=!0,this.redone=!1,this.source.fireEvent(new r.A(i.A.END_EDIT))}this.notify()}redo(){if(!this.redone){this.source.fireEvent(new r.A(i.A.START_EDIT));const e=this.changes.length;for(let t=0;t{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},3471:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},5540:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},5342:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp")},1702:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout")},4055:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},4469:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},5973:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark")},2492:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo")},6164:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},5981:(e,t,n)=>{"use strict";var i=n(4994);t.A=void 0;var r=i(n(39)),s=n(579);t.A=(0,r.default)((0,s.jsx)("path",{d:"M16 20H2V4h14zm2-12h4V4h-4zm0 12h4v-4h-4zm0-6h4v-4h-4z"}),"ViewSidebar")},39:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(1512)},8122:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var i=n(8168),r=n(8587),s=n(5043),o=n(8387),a=n(8606),l=n(6803),c=n(2876),h=n(4535),u=n(7056),d=n(2400);function p(e){return(0,d.Ay)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(579);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,h.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var i,r,s,o,a,l,c,h,u,d,p,g,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(i=t.transitions)||null==(r=i.create)?void 0:r.call(i,"fill",{duration:null==(s=t.transitions)||null==(s=s.duration)?void 0:s.shorter}),fontSize:{inherit:"inherit",small:(null==(o=t.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(h=t.typography)||null==(u=h.pxToRem)?void 0:u.call(h,35))||"2.1875rem"}[n.fontSize],color:null!=(d=null==(p=(t.vars||t).palette)||null==(p=p[n.color])?void 0:p.main)?d:{action:null==(g=(t.vars||t).palette)||null==(g=g.action)?void 0:g.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[n.color]}})),v=s.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:h,className:u,color:d="inherit",component:v="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:E,viewBox:x="0 0 24 24"}=n,_=(0,r.A)(n,f),C=s.isValidElement(h)&&"svg"===h.type,A=(0,i.A)({},n,{color:d,component:v,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:x,hasSvgAsChild:C}),S={};w||(S.viewBox=x);const T=(e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,a.A)(r,p,i)})(A);return(0,g.jsxs)(m,(0,i.A)({as:v,className:(0,o.A)(T.root,u),focusable:"false",color:b,"aria-hidden":!E||void 0,role:E?"img":void 0,ref:t},S,_,C&&h.props,{ownerState:A,children:[C?h.props.children:h,E?(0,g.jsx)("title",{children:E}):null]}))}));v.muiName="SvgIcon";const y=v},8279:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var i=n(8168),r=n(8587),s=n(6632),o=n(3216),a=n(7758),l=n(8812),c=n(8280);var h=n(7266);const u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},g={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},f={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:u.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},E={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,i){const r=i.light||i,s=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,h.a)(e.main,r):"dark"===t&&(e.dark=(0,h.e$)(e.main,s)))}function _(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,l=(0,r.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),_=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[500],light:g[300],dark:g[700]}:{main:g[700],light:g[400],dark:g[800]}}(t),A=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),S=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[400],light:f[300],dark:f[700]}:{main:"#ed6c02",light:f[500],dark:f[900]}}(t);function k(e){return(0,h.eM)(e,E.text.primary)>=n?E.text.primary:w.text.primary}const M=e=>{let{color:t,name:n,mainShade:r=500,lightShade:o=300,darkShade:l=700}=e;if(t=(0,i.A)({},t),!t.main&&t[r]&&(t.main=t[r]),!t.hasOwnProperty("main"))throw new Error((0,s.A)(11,n?" (".concat(n,")"):"",r));if("string"!==typeof t.main)throw new Error((0,s.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return x(t,"light",o,a),x(t,"dark",l,a),t.contrastText||(t.contrastText=k(t.main)),t},P={dark:E,light:w};return(0,o.A)((0,i.A)({common:(0,i.A)({},u),mode:t,primary:M({color:c,name:"primary"}),secondary:M({color:_,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:C,name:"error"}),warning:M({color:T,name:"warning"}),info:M({color:A,name:"info"}),success:M({color:S,name:"success"}),grey:d,contrastThreshold:n,getContrastText:k,augmentColor:M,tonalOffset:a},P[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const A={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"===typeof t?t(e):t,{fontFamily:s=S,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:h=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:p,pxToRem:g}=n,f=(0,r.A)(n,C);const m=a/14,v=g||(e=>"".concat(e/d*m,"rem")),y=(e,t,n,r,o)=>{return(0,i.A)({fontFamily:s,fontWeight:e,fontSize:v(t),lineHeight:n},s===S?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,p);var a},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(h,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(h,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(h,14,1.75,.4,A),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,A),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.A)((0,i.A)({htmlFontSize:d,pxToRem:v,fontFamily:s,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:h,fontWeightBold:u},b),f,{clone:!1})}function k(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const M=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)],P=["duration","easing","delay"],I={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},O={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R(e){return"".concat(Math.round(e),"ms")}function D(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function N(e){const t=(0,i.A)({},I,e.easing),n=(0,i.A)({},O,e.duration);return(0,i.A)({getAutoHeightDuration:D,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:s=n.standard,easing:o=t.easeInOut,delay:a=0}=i;(0,r.A)(i,P);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof s?s:R(s)," ").concat(o," ").concat("string"===typeof a?a:R(a)))).join(",")}},e,{easing:t,duration:n})}const L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:h={},typography:u={}}=e,d=(0,r.A)(e,H);if(e.vars)throw new Error((0,s.A)(18));const p=_(n),g=(0,c.A)(e);let f=(0,o.A)(g,{mixins:(m=g.breakpoints,v=t,(0,i.A)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:M.slice(),typography:T(p,u),transitions:N(h),zIndex:(0,i.A)({},L)});var m,v;f=(0,o.A)(f,d);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w(0,o.A)(e,t)),f),f.unstable_sxConfig=(0,i.A)({},a.A,null==d?void 0:d.unstable_sxConfig),f.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},f}const z=B},5170:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=(0,n(8279).A)()},3375:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i="$$material"},1475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(7123);const r=e=>(0,i.A)(e)&&"classes"!==e},7123:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},4535:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var i=n(8052),r=n(5170),s=n(3375),o=n(1475);const a=(0,i.Ay)({themeId:s.A,defaultTheme:r.A,rootShouldForwardProp:o.A})},2876:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(2919),r=n(5170),s=n(3375);function o(e){let{props:t,name:n}=e;return(0,i.A)({props:t,name:n,defaultTheme:r.A,themeId:s.A})}},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(410).A},6593:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(4708).A},6734:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(8168),r=n(5043),s=n(8122),o=n(579);function a(e,t){function n(n,r){return(0,o.jsx)(s.A,(0,i.A)({"data-testid":"".concat(t,"Icon"),ref:r},n,{children:e}))}return n.muiName=s.A.muiName,r.memo(r.forwardRef(n))}},950:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(6440).A},1512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>s.A,createSvgIcon:()=>o.A,debounce:()=>a.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>h.A,ownerWindow:()=>u.A,requirePropFactory:()=>d,setRef:()=>p,unstable_ClassNameGenerator:()=>E,unstable_useEnhancedEffect:()=>g.A,unstable_useId:()=>f.A,unsupportedProp:()=>m,useControlled:()=>v.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var i=n(5430),r=n(6803),s=n(6593),o=n(6734),a=n(950);const l=function(e,t){return()=>null};var c=n(154),h=n(2427),u=n(6078);n(8168);const d=function(e,t){return()=>null};const p=n(9184).A;var g=n(5013),f=n(5879);const m=function(e,t,n,i,r){return null};var v=n(5242),y=n(3319),b=n(5849),w=n(2191);const E={configure:e=>{i.A.configure(e)}}},154:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(5043);const r=function(e,t){var n,r;return i.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}},2427:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(2144).A},6078:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(6288).A},5242:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(5043);const r=function(e){let{controlled:t,default:n,name:r,state:s="value"}=e;const{current:o}=i.useRef(void 0!==t),[a,l]=i.useState(n);return[o?t:a,i.useCallback((e=>{o||l(e)}),[])]}},5013:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(3844).A},3319:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(4626).A},5849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(7042).A},5879:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=n(992).A},2191:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(5043),r=n(1140);let s=!0,o=!1;const a=new r.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(s=!0)}function h(){s=!1}function u(){"hidden"===this.visibilityState&&o&&(s=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return s||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const p=function(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",h,!0),t.addEventListener("pointerdown",h,!0),t.addEventListener("touchstart",h,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o=!0,a.start(100,(()=>{o=!1})),t.current=!1,!0)},ref:e}}},869:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(5043);var i=n(3290),r=n(579);function s(e){const{styles:t,defaultTheme:n={}}=e,s="function"===typeof t?e=>{return t(void 0===(i=e)||null===i||0===Object.keys(i).length?n:e);var i}:t;return(0,r.jsx)(i.mL,{styles:s})}},3174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>_.A,StyledEngineProvider:()=>x,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>C,internal_processStyles:()=>A,keyframes:()=>y.i7});var i=n(8168),r=n(5043),s=n(918),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,s.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(6862),c=n(1722),h=n(2830),u=n(9436),d=a,p=function(e){return"theme"!==e},g=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,n){var i;if(t){var r=t.shouldForwardProp;i=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!==typeof i&&n&&(i=e.__emotion_forwardProp),i},m=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return(0,c.SF)(t,n,i),(0,u.s)((function(){return(0,c.sk)(t,n,i)})),null},v=function e(t,n){var s,o,a=t.__emotion_real===t,u=a&&t.__emotion_base||t;void 0!==n&&(s=n.label,o=n.target);var d=f(t,n,a),p=d||g(u),v=!p("as");return function(){var y=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&b.push("label:"+s+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var w=y.length,E=1;E{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,n)=>{"use strict";var i=n(4994);t.X4=p,t.e$=g,t.eM=function(e,t){const n=d(e),i=d(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)},t.a=f;var r=i(n(7245)),s=i(n(5383));function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,s.default)(e,t,n)}function a(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(a(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.default)(9,e));let i,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),i=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.default)(10,i))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:i}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function h(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return-1!==t.indexOf("rgb")?i=i.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(i[1]="".concat(i[1],"%"),i[2]="".concat(i[2],"%")),i=-1!==t.indexOf("color")?"".concat(n," ").concat(i.join(" ")):"".concat(i.join(", ")),"".concat(t,"(").concat(i,")")}function u(e){e=l(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,s=i*Math.min(r,1-r),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return r-s*Math.max(Math.min(t-3,9-t,1),-1)};let a="rgb";const c=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(a+="a",c.push(t[3])),h({type:a,values:c})}function d(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(u(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,h(e)}function g(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return h(e)}function f(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return h(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return d(e)>.5?g(e,t):f(e,t)}},8052:(e,t,n)=>{"use strict";var i=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=f,rootShouldForwardProp:i=g,slotShouldForwardProp:l=g}=e,h=e=>(0,c.default)((0,r.default)({},e,{theme:v((0,r.default)({},e,{defaultTheme:n,themeId:t}))}));return h.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:p,skipVariantsResolver:f,skipSx:w,overridesResolver:E=y(m(p))}=c,x=(0,s.default)(c,d),_=void 0!==f?f:p&&"Root"!==p&&"root"!==p||!1,C=w||!1;let A=g;"Root"===p||"root"===p?A=i:p?A=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const S=(0,o.default)(e,(0,r.default)({shouldForwardProp:A,label:undefined},x)),T=e=>"function"===typeof e&&e.__emotion_real!==e||(0,a.isPlainObject)(e)?i=>b(e,(0,r.default)({},i,{theme:v({theme:i.theme,defaultTheme:n,themeId:t})})):e,k=function(i){let s=T(i);for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l{const i=v((0,r.default)({},e,{defaultTheme:n,themeId:t}));if(!i.components||!i.components[u]||!i.components[u].styleOverrides)return null;const s=i.components[u].styleOverrides,o={};return Object.entries(s).forEach((t=>{let[n,s]=t;o[n]=b(s,(0,r.default)({},e,{theme:i}))})),E(e,o)})),u&&!_&&c.push((e=>{var i;const s=v((0,r.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==s||null==(i=s.components)||null==(i=i[u])?void 0:i.variants},(0,r.default)({},e,{theme:s}))})),C||c.push(h);const d=c.length-a.length;if(Array.isArray(i)&&d>0){const e=new Array(d).fill("");s=[...i,...e],s.raw=[...i.raw,...e]}const p=S(s,...c);return e.muiName&&(p.muiName=e.muiName),p};return S.withConfig&&(k.withConfig=S.withConfig),k}};var r=i(n(4634)),s=i(n(4893)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=r?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(n(3174)),a=n(4534),l=(i(n(578)),i(n(2046)),i(n(4989))),c=i(n(3234));const h=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function g(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:i}=e;return r=n,0===Object.keys(r).length?t:n[i]||n;var r}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,i=(0,s.default)(t,h);const o="function"===typeof e?e((0,r.default)({ownerState:n},i)):e;if(Array.isArray(o))return o.flatMap((e=>b(e,(0,r.default)({ownerState:n},i))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,s.default)(o,u);return e.forEach((e=>{let s=!0;"function"===typeof e.props?s=e.props((0,r.default)({ownerState:n},i,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&i[t]!==e.props[t]&&(s=!1)})),s&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,r.default)({ownerState:n},i,n)):e.style))})),t}return o}},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>a,NI:()=>o,iZ:()=>c,kW:()=>h,vf:()=>l,zu:()=>r});var i=n(3216);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},s={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(r[e],"px)")};function o(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const e=i.breakpoints||s;return t.reduce(((i,r,s)=>(i[e.up(e.keys[s])]=n(t[s]),i)),{})}if("object"===typeof t){const e=i.breakpoints||s;return Object.keys(t).reduce(((i,s)=>{if(-1!==Object.keys(e.values||r).indexOf(s)){i[e.up(s)]=n(t[s],s)}else{const e=s;i[e]=t[e]}return i}),{})}return n(t)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=a(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s(0,i.A)(e,t)),{});return l(Object.keys(t),o)}function h(e){let{values:t,breakpoints:n,base:i}=e;const r=i||function(e,t){if("object"!==typeof e)return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach(((t,i)=>{i{null!=e[t]&&(n[t]=!0)})),n}(t,n),s=Object.keys(r);if(0===s.length)return t;let o;return s.reduce(((e,n,i)=>(Array.isArray(t)?(e[n]=null!=t[i]?t[i]:t[o],o=i):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[o],o=n):e[n]=t,e)),{})}},9703:(e,t,n)=>{"use strict";function i(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const i=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[i]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>i})},4853:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(8587),r=n(8168);const s=["values","unit","step"],o=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.A)({},e,{[t.key]:t.val})),{})};function a(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,l=(0,i.A)(e,s),c=o(t),h=Object.keys(c);function u(e){const i="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(i).concat(n,")")}function d(e){const i="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(i-a/100).concat(n,")")}function p(e,i){const r=h.indexOf(i);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof t[h[r]]?t[h[r]]:i)-a/100).concat(n,")")}return(0,r.A)({keys:h,values:c,up:u,down:d,between:p,only:function(e){return h.indexOf(e)+1{"use strict";n.d(t,{A:()=>p});var i=n(8168),r=n(8587),s=n(3216),o=n(4853);const a={borderRadius:4};var l=n(8604);var c=n(8812),h=n(7758),u=n(9703);const d=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:g={}}=e,f=(0,r.A)(e,d),m=(0,o.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),i=0;i{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(p);let y=(0,s.A)({breakpoints:m,direction:"ltr",components:{},palette:(0,i.A)({mode:"light"},n),spacing:v,shape:(0,i.A)({},a,g)},f);y.applyStyles=u.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),E=1;E(0,s.A)(e,t)),y),y.unstable_sxConfig=(0,i.A)({},h.A,null==f?void 0:f.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},4989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A,private_createBreakpoints:()=>r.A,unstable_applyStyles:()=>s.A});var i=n(8280),r=n(4853),s=n(9703)},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(3216);const r=function(e,t){return t?(0,i.A)(e,t,{clone:!1}):e}},8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>g,MA:()=>p,_W:()=>f,Lc:()=>y,Ms:()=>b});var i=n(9751),r=n(7162),s=n(3815);const o={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),i=o[t],r=a[n]||"";return Array.isArray(r)?r.map((e=>i+e)):[i+r]})),h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...h,...u];function p(e,t,n,i){var s;const o=null!=(s=(0,r.Yn)(e,t,!1))?s:n;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function g(e){return p(e,"spacing",8)}function f(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function m(e,t,n,r){if(-1===t.indexOf(n))return null;const s=function(e,t){return n=>e.reduce(((e,i)=>(e[i]=f(t,n),e)),{})}(c(n),r),o=e[n];return(0,i.NI)(e,o,s)}function v(e,t){const n=g(e.theme);return Object.keys(e).map((i=>m(e,t,i,n))).reduce(s.A,{})}function y(e){return v(e,h)}function b(e){return v(e,u)}function w(e){return v(e,d)}y.propTypes={},y.filterProps=h,b.propTypes={},b.filterProps=u,w.propTypes={},w.filterProps=d},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,BO:()=>o,Yn:()=>s});var i=n(410),r=n(9751);function s(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n){let i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return i="function"===typeof e?e(n):Array.isArray(e)?e[n]||r:s(e,n)||r,t&&(i=t(i,r,e)),i}const a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],h=s(e.theme,a)||{};return(0,r.NI)(e,c,(e=>{let r=o(h,l,e);return e===r&&"string"===typeof e&&(r=o(h,l,"".concat(t).concat("default"===e?"":(0,i.A)(e)),e)),!1===n?r:{[n]:r}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var i=n(8604),r=n(7162),s=n(3815);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),r=e=>Object.keys(e).reduce(((t,n)=>i[n]?(0,s.A)(t,i[n](e)):t),{});return r.propTypes={},r.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var a=n(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,r.Ay)({prop:e,themeKey:"borders",transform:t})}const h=c("border",l),u=c("borderTop",l),d=c("borderRight",l),p=c("borderBottom",l),g=c("borderLeft",l),f=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),E=c("outlineColor"),x=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,i.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,i._W)(t,e)});return(0,a.NI)(e,e.borderRadius,n)}return null};x.propTypes={},x.filterProps=["borderRadius"];o(h,u,d,p,g,f,m,v,y,b,x,w,E);const _=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,i.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,i._W)(t,e)});return(0,a.NI)(e,e.gap,n)}return null};_.propTypes={},_.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,i.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,i._W)(t,e)});return(0,a.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const A=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,i.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,i._W)(t,e)});return(0,a.NI)(e,e.rowGap,n)}return null};A.propTypes={},A.filterProps=["rowGap"];o(_,C,A,(0,r.Ay)({prop:"gridColumn"}),(0,r.Ay)({prop:"gridRow"}),(0,r.Ay)({prop:"gridAutoFlow"}),(0,r.Ay)({prop:"gridAutoColumns"}),(0,r.Ay)({prop:"gridAutoRows"}),(0,r.Ay)({prop:"gridTemplateColumns"}),(0,r.Ay)({prop:"gridTemplateRows"}),(0,r.Ay)({prop:"gridTemplateAreas"}),(0,r.Ay)({prop:"gridArea"}));function S(e,t){return"grey"===t?t:e}o((0,r.Ay)({prop:"color",themeKey:"palette",transform:S}),(0,r.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,r.Ay)({prop:"backgroundColor",themeKey:"palette",transform:S}));function T(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const k=(0,r.Ay)({prop:"width",transform:T}),M=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,i;const r=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||a.zu[t];return r?"px"!==(null==(i=e.theme)||null==(i=i.breakpoints)?void 0:i.unit)?{maxWidth:"".concat(r).concat(e.theme.breakpoints.unit)}:{maxWidth:r}:{maxWidth:T(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};M.filterProps=["maxWidth"];const P=(0,r.Ay)({prop:"minWidth",transform:T}),I=(0,r.Ay)({prop:"height",transform:T}),O=(0,r.Ay)({prop:"maxHeight",transform:T}),R=(0,r.Ay)({prop:"minHeight",transform:T}),D=((0,r.Ay)({prop:"size",cssProperty:"width",transform:T}),(0,r.Ay)({prop:"size",cssProperty:"height",transform:T}),o(k,M,P,I,O,R,(0,r.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:i.Ms},pt:{style:i.Ms},pr:{style:i.Ms},pb:{style:i.Ms},pl:{style:i.Ms},px:{style:i.Ms},py:{style:i.Ms},padding:{style:i.Ms},paddingTop:{style:i.Ms},paddingRight:{style:i.Ms},paddingBottom:{style:i.Ms},paddingLeft:{style:i.Ms},paddingX:{style:i.Ms},paddingY:{style:i.Ms},paddingInline:{style:i.Ms},paddingInlineStart:{style:i.Ms},paddingInlineEnd:{style:i.Ms},paddingBlock:{style:i.Ms},paddingBlockStart:{style:i.Ms},paddingBlockEnd:{style:i.Ms},m:{style:i.Lc},mt:{style:i.Lc},mr:{style:i.Lc},mb:{style:i.Lc},ml:{style:i.Lc},mx:{style:i.Lc},my:{style:i.Lc},margin:{style:i.Lc},marginTop:{style:i.Lc},marginRight:{style:i.Lc},marginBottom:{style:i.Lc},marginLeft:{style:i.Lc},marginX:{style:i.Lc},marginY:{style:i.Lc},marginInline:{style:i.Lc},marginInlineStart:{style:i.Lc},marginInlineEnd:{style:i.Lc},marginBlock:{style:i.Lc},marginBlockStart:{style:i.Lc},marginBlockEnd:{style:i.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:A},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:M},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},8698:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(8168),r=n(8587),s=n(3216),o=n(7758);const a=["sx"],l=e=>{var t,n;const i={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:o.A;return Object.keys(e).forEach((t=>{r[t]?i.systemProps[t]=e[t]:i.otherProps[t]=e[t]})),i};function c(e){const{sx:t}=e,n=(0,r.A)(e,a),{systemProps:o,otherProps:c}=l(n);let h;return h=Array.isArray(t)?[o,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,s.Q)(e)?(0,i.A)({},o,e):o}:(0,i.A)({},o,t),(0,i.A)({},c,{sx:h})}},3234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A,extendSxProp:()=>r.A,unstable_createStyleFunctionSx:()=>i.k,unstable_defaultSxConfig:()=>s.A});var i=n(8812),r=n(8698),s=n(7758)},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,k:()=>l});var i=n(410),r=n(3815),s=n(7162),o=n(9751),a=n(7758);function l(){function e(e,t,n,r){const a={[e]:t,theme:n},l=r[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:h,transform:u,style:d}=l;if(null==t)return null;if("typography"===h&&"inherit"===t)return{[e]:t};const p=(0,s.Yn)(n,h)||{};if(d)return d(a);return(0,o.NI)(a,t,(t=>{let n=(0,s.BO)(p,u,t);return t===n&&"string"===typeof t&&(n=(0,s.BO)(p,u,"".concat(e).concat("default"===t?"":(0,i.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var i;const{sx:s,theme:l={}}=n||{};if(!s)return null;const c=null!=(i=l.unstable_sxConfig)?i:a.A;function h(n){let i=n;if("function"===typeof n)i=n(l);else if("object"!==typeof n)return n;if(!i)return null;const s=(0,o.EU)(l.breakpoints),a=Object.keys(s);let h=s;return Object.keys(i).forEach((n=>{const s=(a=i[n],u=l,"function"===typeof a?a(u):a);var a,u;if(null!==s&&void 0!==s)if("object"===typeof s)if(c[n])h=(0,r.A)(h,e(n,s,l,c));else{const e=(0,o.NI)({theme:l},s,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;ne.concat(Object.keys(t))),[]),r=new Set(i);return t.every((e=>r.size===Object.keys(e).length))}(e,s)?h=(0,r.A)(h,e):h[n]=t({sx:s,theme:l})}else h=(0,r.A)(h,e(n,s,l,c))})),(0,o.vf)(a,h)}return Array.isArray(s)?s.map(h):h(s)}}const c=l();c.filterProps=["sx"];const h=c},8653:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(8280),r=n(5043),s=n(6862);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(s.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},a=(0,i.A)();const l=function(){return o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a)}},2919:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(2018);var r=n(8653);function s(e){let{props:t,name:n,defaultTheme:s,themeId:o}=e,a=(0,r.A)(s);o&&(a=a[o]||a);const l=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,i.A)(t.components[n].defaultProps,r):r}({theme:a,name:n,props:t});return l}},2374:(e,t,n)=>{"use strict";t.A=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}(n(5043)),r=n(3174);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(r.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},5430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const i=e=>e,r=(()=>{let e=i;return{configure(t){e=t},generate:t=>e(t),reset(){e=i}}})()},410:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(6632);function r(e){if("string"!==typeof e)throw new Error((0,i.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A});var i=n(410)},7040:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},5383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A});var i=n(7040)},8606:(e,t,n)=>{"use strict";function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i={};return Object.keys(e).forEach((r=>{i[r]=e[r].reduce(((e,i)=>{if(i){const r=t(i);""!==r&&e.push(r),n&&n[i]&&e.push(n[i])}return e}),[]).join(" ")})),i}n.d(t,{A:()=>i})},4708:(e,t,n)=>{"use strict";function i(){for(var e=arguments.length,t=new Array(e),n=0;nnull==t?e:function(){for(var n=arguments.length,i=new Array(n),r=0;r{}))}n.d(t,{A:()=>i})},6440:(e,t,n)=>{"use strict";function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function i(){for(var i=arguments.length,r=new Array(i),s=0;s{e.apply(this,r)}),n)}return i.clear=()=>{clearTimeout(t)},i}n.d(t,{A:()=>i})},3216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,Q:()=>r});var i=n(8168);function r(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function s(e){if(!r(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=s(e[n])})),t}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const a=n.clone?(0,i.A)({},e):e;return r(e)&&r(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(r(t[i])&&i in e&&r(e[i])?a[i]=o(e[i],t[i],n):n.clone?a[i]=r(t[i])?s(t[i]):t[i]:a[i]=t[i])})),a}},4534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A,isPlainObject:()=>i.Q});var i=n(3216)},6632:(e,t,n)=>{"use strict";function i(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;ni})},7245:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.A});var i=n(6632)},2400:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,li:()=>r});var i=n(5430);const r={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const s=r[t];return s?"".concat(n,"-").concat(s):"".concat(i.A.generate(e),"-").concat(t)}},7056:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(2400);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=(0,i.Ay)(e,t,n)})),r}},2046:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>s});var i=n(2086);const r=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function s(e){const t="".concat(e).match(r);return t&&t[1]||""}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||s(e)||t}function a(e,t,n){const i=o(t);return e.displayName||(""!==i?"".concat(n,"(").concat(i,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return o(e,"Component");if("object"===typeof e)switch(e.$$typeof){case i.ForwardRef:return a(e,e.render,"ForwardRef");case i.Memo:return a(e,e.type,"memo");default:return}}}},2144:(e,t,n)=>{"use strict";function i(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>i})},6288:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(2144);function r(e){return(0,i.A)(e).defaultView||window}},2018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(8168);function r(e,t){const n=(0,i.A)({},t);return Object.keys(e).forEach((s=>{if(s.toString().match(/^(components|slots)$/))n[s]=(0,i.A)({},e[s],n[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const o=e[s]||{},a=t[s];n[s]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[s]=(0,i.A)({},a),Object.keys(o).forEach((e=>{n[s][e]=r(o[e],a[e])}))):n[s]=a:n[s]=o}else void 0===n[s]&&(n[s]=e[s])})),n}},9184:(e,t,n)=>{"use strict";function i(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>i})},3844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(5043);const r="undefined"!==typeof window?i.useLayoutEffect:i.useEffect},4626:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(5043),r=n(3844);const s=function(e){const t=i.useRef(e);return(0,r.A)((()=>{t.current=e})),i.useRef((function(){return(0,t.current)(...arguments)})).current}},7042:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(5043),r=n(9184);function s(){for(var e=arguments.length,t=new Array(e),n=0;nt.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,r.A)(t,e)}))}),t)}},992:(e,t,n)=>{"use strict";var i;n.d(t,{A:()=>a});var r=n(5043);let s=0;const o=(i||(i=n.t(r,2)))["useId".toString()];function a(e){if(void 0!==o){const t=o();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),i=e||t;return r.useEffect((()=>{null==t&&(s+=1,n("mui-".concat(s)))}),[t]),i}(e)}},1140:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,A:()=>a});var i=n(5043);const r={};const s=[];class o{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new o}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function a(){const e=function(e,t){const n=i.useRef(r);return n.current===r&&(n.current=e(t)),n}(o.create).current;var t;return t=e.disposeEffect,i.useEffect(t,s),e}},854:(e,t,n)=>{e.exports=n(672)},1989:(e,t,n)=>{"use strict";var i=n(6267),r=n(3229),s=n(7903),o=n(6735),a=n(7638),l=n(3101),c=n(705),h=n(9335),u=n(2702),d=n(7482),p=n(3403);e.exports=function(e){return new Promise((function(t,n){var g,f=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}i.isFormData(f)&&i.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+E)}var x=a(e.baseURL,e.url);function _(){if(b){var i="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,s={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b};r((function(e){t(e),y()}),(function(e){n(e),y()}),s),b=null}}if(b.open(e.method.toUpperCase(),o(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new u("Request aborted",u.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new u("Network Error",u.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||h;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new u(t,i.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,e,b)),b=null},i.isStandardBrowserEnv()){var C=(e.withCredentials||c(x))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in b&&i.forEach(m,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),f||(f=null);var A=p(x);A&&-1===["http","https","file"].indexOf(A)?n(new u("Unsupported protocol "+A+":",u.ERR_BAD_REQUEST,e)):b.send(f)}))}},672:(e,t,n)=>{"use strict";var i=n(6267),r=n(6973),s=n(8938),o=n(6438);var a=function e(t){var n=new s(t),a=r(s.prototype.request,n);return i.extend(a,s.prototype,n),i.extend(a,n),a.create=function(n){return e(o(t,n))},a}(n(2989));a.Axios=s,a.CanceledError=n(7482),a.CancelToken=n(7690),a.isCancel=n(7767),a.VERSION=n(3104).version,a.toFormData=n(7289),a.AxiosError=n(2702),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8125),a.isAxiosError=n(8738),e.exports=a,e.exports.default=a},7690:(e,t,n)=>{"use strict";var i=n(7482);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t{"use strict";var i=n(2702);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(6267).inherits(r,i,{__CANCEL__:!0}),e.exports=r},7767:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8938:(e,t,n)=>{"use strict";var i=n(6267),r=n(6735),s=n(6664),o=n(4395),a=n(6438),l=n(7638),c=n(2478),h=c.validators;function u(e){this.defaults=e,this.interceptors={request:new s,response:new s}}u.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:h.transitional(h.boolean),forcedJSONParsing:h.transitional(h.boolean),clarifyTimeoutError:h.transitional(h.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var s,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var u=[o,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(l),s=Promise.resolve(t);u.length;)s=s.then(u.shift(),u.shift());return s}for(var d=t;i.length;){var p=i.shift(),g=i.shift();try{d=p(d)}catch(f){g(f);break}}try{s=o(d)}catch(f){return Promise.reject(f)}for(;l.length;)s=s.then(l.shift(),l.shift());return s},u.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(a(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}u.prototype[e]=t(),u.prototype[e+"Form"]=t(!0)})),e.exports=u},2702:(e,t,n)=>{"use strict";var i=n(6267);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=r.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(r,o),Object.defineProperty(s,"isAxiosError",{value:!0}),r.from=function(e,t,n,o,a,l){var c=Object.create(s);return i.toFlatObject(e,c,(function(e){return e!==Error.prototype})),r.call(c,e.message,t,n,o,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=r},6664:(e,t,n)=>{"use strict";var i=n(6267);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},7638:(e,t,n)=>{"use strict";var i=n(2762),r=n(1523);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},4395:(e,t,n)=>{"use strict";var i=n(6267),r=n(3024),s=n(7767),o=n(2989),a=n(7482);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},6438:(e,t,n)=>{"use strict";var i=n(6267);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||s,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},3229:(e,t,n)=>{"use strict";var i=n(2702);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},3024:(e,t,n)=>{"use strict";var i=n(6267),r=n(2989);e.exports=function(e,t,n){var s=this||r;return i.forEach(n,(function(n){e=n.call(s,e,t)})),e}},2989:(e,t,n)=>{"use strict";var i=n(6267),r=n(2121),s=n(2702),o=n(9335),a=n(7289),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h={transitional:o,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(1989)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,s=i.isObject(e),o=t&&t["Content-Type"];if((n=i.isFileList(e))||s&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return s||"application/json"===o?(c(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(o){if("SyntaxError"===a.name)throw s.from(a,s.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3055)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(l)})),e.exports=h},9335:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3104:e=>{e.exports={version:"0.27.2"}},6973:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i{"use strict";var i=n(6267);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(i.isURLSearchParams(t))s=t.toString();else{var o=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))})))})),s=o.join("&")}if(s){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}},1523:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},7903:(e,t,n)=>{"use strict";var i=n(6267);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,s,o){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2762:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},8738:(e,t,n)=>{"use strict";var i=n(6267);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},705:(e,t,n)=>{"use strict";var i=n(6267);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},2121:(e,t,n)=>{"use strict";var i=n(6267);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},3055:e=>{e.exports=null},3101:(e,t,n)=>{"use strict";var i=n(6267),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,o={};return e?(i.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),t=i.trim(e.substr(0,s)).toLowerCase(),n=i.trim(e.substr(s+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},3403:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8125:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7289:(e,t,n)=>{"use strict";var i=n(6267);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(s,o){if(i.isPlainObject(s)||i.isArray(s)){if(-1!==n.indexOf(s))throw Error("Circular reference detected in "+o);n.push(s),i.forEach(s,(function(n,s){if(!i.isUndefined(n)){var a,l=o?o+"."+s:s;if(n&&!o&&"object"===typeof n)if(i.endsWith(s,"{}"))n=JSON.stringify(n);else if(i.endsWith(s,"[]")&&(a=i.toArray(n)))return void a.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(o,r(s))}(e),t}},2478:(e,t,n)=>{"use strict";var i=n(3104).version,r=n(2702),s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};s.transitional=function(e,t,n){function s(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new r(s(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!o[i]&&(o[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),s=i.length;s-- >0;){var o=i[s],a=t[o];if(a){var l=e[o],c=void 0===l||a(l,o,e);if(!0!==c)throw new r("option "+o+" must be "+c,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+o,r.ERR_BAD_OPTION)}},validators:s}},6267:(e,t,n)=>{"use strict";var i,r=n(6973),s=Object.prototype.toString,o=(i=Object.create(null),function(e){var t=s.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return"undefined"===typeof e}var h=a("ArrayBuffer");function u(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=a("Date"),g=a("File"),f=a("Blob"),m=a("FileList");function v(e){return"[object Function]"===s.call(e)}var y=a("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,i=e.length;n0;)o[s=i[r]]||(t[s]=e[s],o[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:m}},219:(e,t,n)=>{"use strict";var i=n(3763),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var c=Object.defineProperty,h=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,i){if("string"!==typeof n){if(g){var r=p(n);r&&r!==g&&e(t,r,i)}var o=h(n);u&&(o=o.concat(u(n)));for(var a=l(t),f=l(n),m=0;m{"use strict";var n="function"===typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case h:case u:case s:case a:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case f:case l:return e;default:return t}}case r:return t}}}function x(e){return E(e)===u}t.AsyncMode=h,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=s,t.Lazy=m,t.Memo=f,t.Portal=r,t.Profiler=a,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===h},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===s},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===f},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===a},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===s||e===u||e===a||e===o||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},1497:(e,t,n)=>{"use strict";var i=n(3218);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,s,o){if(o!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2730:(e,n,i)=>{"use strict";var r=i(5043),s=i(8853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n